/* --------------------------------------------------
   GLOBAL RESET + BASE STYLES
-------------------------------------------------- */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #222;
}

h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Smooth anchor scroll + fade-in */
section {
    scroll-margin-top: 80px;
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Apply layout to all sections EXCEPT hero */
section:not(.home-hero) {
    padding: 120px 20px;
    max-width: 1300px;   /* unified width */
    margin: auto;
}

/* --------------------------------------------------
   NAVIGATION BAR
-------------------------------------------------- */
.navbar {
    width: 100%;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: #222;
    text-decoration: none;
}

.nav-right {
    list-style: none;
    display: flex;
    gap: 34px;
    align-items: center;
}

.nav-right a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.25s ease;
}

.nav-right a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1.5px;
    background: #333;
    transition: width 0.28s ease;
}

.nav-right a:hover {
    color: #000;
}

.nav-right a:hover::after {
    width: 100%;
}

/* --------------------------------------------------
   HERO SECTION
-------------------------------------------------- */
.home-hero {
    width: 100%;
    height: 50vh;
    padding-top: 120px;

    background-image: url('images/Aryan_1.jpeg');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    margin-bottom: 40px;
}

.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-text h1 {
    font-size: 60px;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 24px;
}

/* Bullets on right side */
.hero-right-bullets {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
}

.hero-right-bullets ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-right-bullets li {
    font-size: 28px;
    font-weight: 500;
    margin: 12px 0;
    color: #f2f2f2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-right-bullets li:nth-child(1) { animation-delay: 0.2s; }
.hero-right-bullets li:nth-child(2) { animation-delay: 0.4s; }
.hero-right-bullets li:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile hero bullets */
@media (max-width: 800px) {
    .hero-right-bullets {
        right: 0;
        left: 0;
        text-align: center;
        transform: translateY(-40%);
    }

    .hero-right-bullets li {
        font-size: 22px;
    }
}

.small-hero {
    height: 30vh;
    background-position: center;
}

/* --------------------------------------------------
   PROJECTS GRID
-------------------------------------------------- */
#projects {
    background: #ffffff;
}

.projects-grid {
    display: grid;
  
   grid-template-columns: repeat(3, minmax(380px, 1fr)); /* NEW */
    gap: 28px; /* reduced from 40px */
    margin-top: 40px;

    justify-items: center;
    justify-content: center;
}

.project-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    max-width: 420px; /* increased from 380px */
    width: 100%;
    margin: auto;
}


@media (max-width: 1000px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}



.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.project-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-card h3 {
    margin: 10px 0 8px;
    font-size: 20px;
    font-weight: 600;
}

.project-card p {
    font-size: 15px;
    color: #555;
}

.project-link {
    text-decoration: none;
    color: inherit;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.site-footer {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);

    padding: 30px 20px;
    text-align: center;
    margin-top: 80px;
}

.footer-content p {
    margin: 6px 0;
    color: #444;
    font-size: 15px;
}

.footer-links a {
    color: #444;
    text-decoration: none;
    transition: 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.6;
}

/* --------------------------------------------------
   BACK TO TOP BUTTON
-------------------------------------------------- */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 22px;
    cursor: pointer;
    display: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2000;
}

#backToTop:hover {
    transform: translateY(-4px);
    opacity: 0.9;
}

/* --------------------------------------------------
   CONTACT SECTION
-------------------------------------------------- */
.contact-wrapper {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.contact-info-only {
    grid-template-columns: 1fr;
    text-align: left;
}

.contact-info h3 {
    margin-top: 0;
    font-size: 22px;
    font-weight: 600;
}

.info-table p {
    margin: 12px 0;
    font-size: 16px;
}

.info-table a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.25s ease;
}

.info-table a:hover {
    border-bottom: 1px solid #333;
}

/* --------------------------------------------------
   APPLE-STYLE SECTION BACKGROUNDS
-------------------------------------------------- */
#about {
    background: #f7f7f7;
}

#research {
    background: linear-gradient(180deg, #fafafa, #f0f0f0);
}

#awards {
    background: #fdfcfb;
}

#contact {
    background: #f5f5f5;
}
