/* Base styles */
:root {
  --primary-bg: #fff;
  --primary-text: #222;
  --accent: #007bff;
  --header-bg: #f5f5f5;
  --card-bg: #fafafa;
}
html {
    scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--primary-bg);
  color: var(--primary-text);
  transition: background 0.3s, color 0.3s;
}
header {
  background: var(--header-bg);
  padding: 2rem 1rem 1rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.header-content h1 {
  margin: 0;
  font-size: 2.5rem;
}
.header-content p {
  margin: 0.5rem 0 1rem 0;
  font-size: 1.2rem;
  color: var(--accent);
}
#download-resume, #dark-mode-toggle {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
#dark-mode-toggle {
  background: #333;
}
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}
section {
  margin-bottom: 2.5rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}
#contact-form input, #contact-form textarea {
  padding: 0.75rem;
  border: none;
  border-bottom: 2px solid #ccc;
  border-radius: 0;
  font-size: 1rem;
  background: transparent;
  transition: border-color 0.2s;
}
#contact-form input:focus, #contact-form textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--accent);
}
#contact-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}
#form-message {
  min-height: 1.5em;
  color: #d32f2f;
  font-size: 0.95em;
}
/* Dark mode */
body.dark-mode {
  --primary-bg: #181a1b;
  --primary-text: #f1f1f1;
  --accent: #90caf9;
  --header-bg: #23272a;
  --card-bg: #23272a;
}
body.dark-mode #download-resume {
  background: #222;
}
body.dark-mode #dark-mode-toggle {
  background: #f1c40f;
  color: #222;
}
/* Responsive */
@media (max-width: 600px) {
  .header-content h1 {
    font-size: 1.5rem;
  }
  main {
    padding: 0 0.5rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  #download-resume, #dark-mode-toggle {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  }
}

/* Scroll-based animation */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.visible {
  opacity: 1;
  transform: none;
} 
.profile-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
}
.profile-photo {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  border: 3px solid var(--accent);
  background: #fff;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: none;
  border: none;
  margin-left: 0.25rem;
  transition: color 0.2s;
}
.icon-link:hover {
  color: #0056b3;
}
.main-nav {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--accent);
  cursor: pointer;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  text-decoration: none;
  color: var(--primary-text);
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.nav-links li a:hover {
  color: var(--accent);
}
@media (max-width: 800px) {
  .main-nav {
    right: 1rem;
    top: 1rem;
    display: none;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--card-bg);
    position: absolute;
    top: 2.5rem;
    right: 0;
    min-width: 160px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    border-radius: 8px;
    padding: 1rem 0;
    z-index: 100;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: inline-block;
  }
}
/* Section backgrounds (monochromatic) */
.section-about {
  background: #e3f2fd;
  border-radius: 18px;
  margin-bottom: 2.5rem;
  padding: 2rem 1.5rem;
}
.section-portfolio {
  background: #f1f8e9;
  border-radius: 18px;
  margin-bottom: 2.5rem;
  padding: 2rem 1.5rem;
}
.section-projects {
  background: #fff3e0;
  border-radius: 18px;
  margin-bottom: 2.5rem;
  padding: 2rem 1.5rem;
}
.section-contact {
  background: #fce4ec;
  border-radius: 18px;
  margin-bottom: 2.5rem;
  padding: 2rem 1.5rem;
}
/* Smooth transitions */
section, .project-card, .profile-photo, .header-content, .main-nav, .nav-links, .icon-link {
  transition: background 0.4s, color 0.4s, box-shadow 0.3s, border 0.3s;
}
/* Clean up header for modern look */
.header-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (max-width: 600px) {
  .profile-block {
    flex-direction: column;
    gap: 0.5rem;
  }
  .header-content {
    gap: 0.5rem;
  }
} 
.profile-photo-large {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  border: 4px solid var(--accent);
  background: #fff;
  display: block;
  margin: 2rem auto 1rem auto;
}
#title {
  text-align: center;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-top: 1.5rem;
}
.main-nav {
  margin-top: 0.5rem;
  position: static;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.nav-links li a {
  text-decoration: none;
  color: var(--primary-text);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links li a:hover {
  color: var(--accent);
}
/* .header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.2rem;
} */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-links .icon-link {
  font-size: 1.1rem;
  color: var(--primary-text);
  gap: 0.5rem;
  text-decoration: none;
  align-items: center;
  transition: color 0.2s;
}
.contact-links .icon-link:hover {
  color: var(--accent);
}
@media (max-width: 600px) {
  .profile-photo-large {
    width: 120px;
    height: 120px;
  }
  .nav-links {
    gap: 1rem;
  }
  .header-actions{
    position: absolute;
    top: -30px;
    right: 0px;
  }
} 
body.dark-mode .nav-links li a,
body.dark-mode #title,
body.dark-mode .icon-link,
body.dark-mode .contact-links .icon-link {
  color: #f1f1f1;
}
body.dark-mode .nav-links li a:hover,
body.dark-mode .icon-link:hover,
body.dark-mode .contact-links .icon-link:hover {
  color: var(--accent);
}
body.dark-mode .section-about {
  background: #263238;
}
body.dark-mode .section-portfolio {
  background: #1b2a23;
}
body.dark-mode .section-projects {
  background: #2d2320;
}
body.dark-mode .section-contact {
  background: #2a1b23;
}
body.dark-mode .profile-photo-large {
  border-color: var(--accent);
} 
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  background: #fff;
}
body::before { display: none !important; }
.profile-photo-header {
  width: 260px;
  height: 320px;
  min-width: 180px;
  min-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  border: 4px solid var(--accent);
  background: #fff;
  display: block;
}
@media (max-width: 800px) {
  .header-flex {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 0 1rem 0;
  }
  .profile-photo-header {
    width: 160px;
    height: 180px;
    min-width: 100px;
    min-height: 120px;
  }
} 
.cover-photo {
  width: 100vw;
  max-width: 100%;
  overflow: hidden;
  height: 260px;
  margin-bottom: 0.5rem;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  position: relative;
}
.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 800px) {
  .cover-photo {
    height: 140px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }
} 



 nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
      background: transparent;
    }

    nav ul {
      list-style: none;
      display: flex;
      gap: 1.5rem;
      margin: 0;
    }

    nav ul li a {
      text-decoration: none;
      color: white;
      transition: color 0.3s;
    }

    nav ul li a:hover {
      color: #ccc;
    }

    .chat-btn {
      background: white;
      color: black;
      padding: 0.5rem 1.2rem;
      border-radius: 999px;
      font-weight: bold;
      border: none;
      cursor: pointer;
    }

    /* Hero Section */
    .hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 3rem 2rem;
      text-align: center;
      gap: 40px;
    }

    @media (min-width: 768px) {
      .hero {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
      }
    }

    .hero-text {
      max-width: 600px;
    }

    .availability-btn {
      background: rgb(239, 238, 238);
      color: black;
      padding: 0.6rem 1.2rem;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      border: none;
      margin: 1rem 0;
      font-weight: bold;
      text-decoration: none;
    }

    .hero h1 {
      font-size: 2.5rem;
      font-weight: 800;
      margin: 0.5rem 0;
    }

    .hero-image {
      position: relative;
      margin-top: 2rem;
    }

    .hero-image img {
      width: 280px;
      border-radius: 12px;
    }

    @media (min-width: 768px) {
      .hero-image {
        margin-top: 0;
      }

      .hero-image img {
        width: 350px;
      }
    }

    .socials {
      position: absolute;
      top: 25%;
      right: -60px;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      align-items: center;
    }

    .socials p {
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      font-size: 0.8rem;
      color: #ccc;
      margin: 0;
    }

    .socials a {
      display: inline-block;
      width: 30px;
      height: 30px;
    }

    .socials img, .socials .x-icon {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .x-icon {
      background: #c6ff00;
      color: black;
      font-weight: bold;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 50%;
    }

    .header-top{
      display: flex;
      align-items: center;
    }