/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4CAF50;
    --secondary: #2E7D32;
    --background: #121212;
    --surface: #1a1a1a;
    --surface-alt: #222;
    --text: #ffffff;
    --text-secondary: #ccc;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    padding-top: 80px;
}

img {
    max-width: 100%;
    height: auto;
  }
  

/* Navbar Styles */
/* Main Nav */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  z-index: 1000;
}

.site-name {
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Hamburger */
.hamburger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
}

.hamburger .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  transition: all 0.3s ease;
}

/* Change to X when active */
.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Overlay menu */

/* Hero Section */
.hero {
    padding: 100px 20px;
    background: var(--surface);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}

.hero-left img {
    border-radius: 50%;
    width: 1300px;
    height: 350px;
    object-fit: cover;
}

.hero-right h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-right p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Shared Section Styles */
section {
    padding: 20px 20px;
    max-width: 1200px;
    margin: 0 auto;

    scroll-margin-top: 70px;
}

.section-header {
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 20px;
}

.section-header::before,
.section-header::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 0 30px;
}

.section-header::before {
    background: linear-gradient(270deg, transparent, var(--primary), transparent);
}

/* About, Skills, Honors, Contact headings */
#about h2, #skills h2, #research-paper h2, #projects h2, #writeups h2, #honors h2, #contact h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* About & Skills Section */
#about p, #skills p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.skill {
    background-color: var(--surface-alt);
    padding: 20px;
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #555;
    border-radius: 5px;
}

.progress {
    height: 100%;
    background-color: var(--primary);
    border-radius: 5px;
}

/* Projects / Research Papers / Writeups Shared Block */
.projects-row, .projects-center, .writeups-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.blog-post {
    width: 400px;
    min-height: 400px;
    background: var(--surface-alt);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    
}

.blog-post img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
    background-color: #333;
    padding: 10px;
}

.blog-post h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
    min-height: 60px;
}

.blog-post p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-post a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
}

.blog-post a:hover {
    text-decoration: underline;
}

/* Honors Section */
.honors-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.honor {
    background-color: var(--surface-alt);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.honor h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.honor p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Contact Section */
#contact {
    text-align: left;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icons img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--surface);
    padding: 20px;
    text-align: center;
}

footer p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Responsive Design */
/* Keep everything you already have up to your current @media query */

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav .logo-container {
        justify-content: space-between;
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-left img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .hero-right h2 {
        font-size: 2rem;
    }

    .hero-right p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .skills-container,
    .honors-container {
        grid-template-columns: 1fr;
    }

    .projects-row,
    .projects-center,
    .writeups-container {
        flex-direction: column;
        align-items: center;
    }

    .blog-post {
        width: 90%;
    }

    .section-header {
        font-size: 2rem;
        flex-direction: column;
        text-align: center;
    }

    .section-header::before,
    .section-header::after {
        display: none;
    }

    #about p,
    #skills p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .social-icons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .social-icons img {
        width: 32px;
        height: 32px;
    }
}

/* Hamburger Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo-container {
    display: flex;
    align-items: center;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links ul {
    flex-direction: column;
    width: 100%;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .hero-left img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
  }

  .hero-right h2 {
    font-size: 1.7rem;
  }

  .hero-right p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .skills-container,
  .honors-container {
    grid-template-columns: 1fr;
  }

  .projects-row,
  .projects-center,
  .writeups-container {
    flex-direction: column;
    align-items: center;
  }

  .blog-post {
    width: 90%;
  }

  .section-header {
    font-size: 2rem;
    flex-direction: column;
    text-align: center;
  }

  .section-header::before,
  .section-header::after {
    display: none;
  }

  #about p,
  #skills p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .social-icons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .social-icons img {
    width: 32px;
    height: 32px;
  }
}

