* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #162a33;
  background-image: radial-gradient(circle at center, #1c3640 0%, #162a33 100%);
  color: #d1d1d1;
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(22, 42, 51, 0.98);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #2a4d59;
}

.logo {
  color: #74a4ad;
  font-size: 22px;
  letter-spacing: 1px;
}

nav {
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: #a0b1b7;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover, nav a.Home { color: #ffffff; }

section {
  min-height: 100vh;
  padding: 120px 8% 60px;
}

/* Home Section */
.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.home-text h1 { font-size: 42px; color: #ffffff; margin-bottom: 10px; }
.home-text h3 { color: #74a4ad; font-size: 18px; margin-bottom: 20px; }
.home img { width: 320px; height: 320px; border-radius: 30px; border: 1px solid #3d6370; object-fit: cover; }

.social-icons { display: flex; gap: 12px; margin-top: 25px; flex-wrap: wrap; }
.social-icons a {
  width: 42px; height: 42px; border: 1px solid #3d6370; color: #74a4ad;
  border-radius: 50%; display: flex; justify-content: center; align-items: center;
  font-size: 18px; transition: 0.3s;
}
.social-icons a:hover { background: #3d6370; color: #fff; transform: translateY(-5px); }

/* About Section */
.about-section { background: #122229; }
.about-container { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.about-image img { width: 280px; border-radius: 20px; border: 1px solid #3d6370; }

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 40px;
}
.skill-card { background: rgba(255, 255, 255, 0.03); padding: 25px; border-radius: 15px; border: 1px solid #2a4d59; }
.skill-card h3 { color: #74a4ad; margin-bottom: 10px; font-size: 1rem; }
.skill-bar { background: #0f1d24; height: 10px; border-radius: 10px; overflow: hidden; margin-top: 10px; }
.skill-progress { height: 100%; background: #4a7d8c; width: 0; animation: fillProgress 2s forwards; }
@keyframes fillProgress { to { width: var(--progress); } }

/* Timer Section */
.timer-section { background: #0f1d24; text-align: center; border-top: 1px solid #2a4d59; }
.timer-container h2 { margin-bottom: 30px; color: #ffffff; }
.countdown-grid { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.time-box { background: rgba(255, 255, 255, 0.02); border: 1px solid #3d6370; padding: 20px; border-radius: 15px; min-width: 90px; }
.time-box span { font-size: 32px; font-weight: bold; color: #74a4ad; display: block; }
.time-box p { font-size: 12px; color: #5d7a83; }

footer { padding: 30px; background: #0b161a; color: #5d7a83; text-align: center; border-top: 1px solid #2a4d59; }

/* --- Responsive (Mobile First) --- */
.menu-checkbox { display: none; }
.menu-toggle { display: none; font-size: 24px; color: #74a4ad; cursor: pointer; }

@media (max-width: 900px) {
  header { padding: 15px 5%; }
  .menu-toggle { display: block; }
  
  nav {
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: #162a33;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid #2a4d59;
    display: none;
    text-align: center;
  }

  .menu-checkbox:checked ~ nav { display: flex; }

  .home { flex-direction: column-reverse; text-align: center; padding-top: 100px; }
  .home-text h1 { font-size: 28px; }
  .home img { width: 220px; height: 220px; }
  .social-icons { justify-content: center; }

  .about-container { flex-direction: column; text-align: center; gap: 30px; }
  .about-image img { width: 180px; }

  .time-box { min-width: 70px; padding: 10px; }
  .time-box span { font-size: 22px; }
}

@media (max-width: 480px) {
  .logo { font-size: 16px; }
  .skills-grid { grid-template-columns: 1fr; }
}