/* =================================
   Tarun Meena — Personal Website
   Main stylesheet
   ================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f4ee;
    color: #20382d;
    line-height: 1.6;
}


/* =================================
   Navigation
   ================================= */

header {
    background: #18382c;
    color: white;
    padding: 22px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
}

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

nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

nav a:hover {
    opacity: 0.7;
}


/* =================================
   Hero
   ================================= */

.hero {
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;
    padding: 70px 7%;
}

.hero-content {
    max-width: 700px;
}

.eyebrow {
    color: #49685a;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #45685b;
    margin-bottom: 25px;
}

.hero-description {
    max-width: 650px;
    font-size: 1.15rem;
    color: #53675f;
    margin-bottom: 35px;
}

.button {
    display: inline-block;
    background: #18382c;
    color: white;
    text-decoration: none;
    padding: 14px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    background: #2b5142;
}


/* =================================
   Hero Image
   ================================= */

.hero-image {
    width: 100%;
    height: 650px;
    object-fit: cover;
    border-radius: 4px;
}


/* =================================
   About Section
   ================================= */

.about-section {
    padding: 120px 7%;
    background: #e9e9df;
}

.section-label {
    color: #49685a;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 50px;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 100px;
    max-width: 1250px;
}

.about-heading h2 {
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -1.5px;
    max-width: 600px;
}

.about-content {
    max-width: 650px;
}

.about-content p {
    color: #53675f;
    font-size: 1.05rem;
    margin-bottom: 22px;
}

.about-content .about-lead {
    color: #20382d;
    font-size: 1.35rem;
    line-height: 1.5;
    margin-bottom: 28px;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #b7b9ae;
}

.about-details div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-details span {
    color: #49685a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.about-details strong {
    color: #20382d;
    font-size: 0.95rem;
    font-weight: 600;
}


/* =================================
   Responsive Design
   ================================= */

@media (max-width: 900px) {

    header {
        padding: 20px 5%;
    }

    nav {
        gap: 18px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 60px 5%;
    }

    .hero-image {
        height: 500px;
    }

    .about-section {
        padding: 90px 5%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-details {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}


@media (max-width: 600px) {

    nav {
        display: none;
    }

    .hero {
        padding: 50px 6%;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-image {
        height: 400px;
    }
}
/* =================================
   Research Section
   ================================= */

.research-section {
    padding: 120px 7%;
    background: #f5f4ee;
}

.research-intro {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 100px;
    max-width: 1250px;
    margin-bottom: 80px;
}

.research-intro h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -1.5px;
    max-width: 700px;
}

.research-intro p {
    align-self: end;
    color: #53675f;
    font-size: 1.1rem;
    max-width: 500px;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1250px;
    border-top: 1px solid #b7b9ae;
}

.research-card {
    padding: 40px 45px 45px 0;
    border-bottom: 1px solid #b7b9ae;
}

.research-card:nth-child(even) {
    padding-left: 45px;
    border-left: 1px solid #b7b9ae;
}

.research-number {
    display: block;
    color: #49685a;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.research-card h3 {
    color: #20382d;
    font-size: 1.7rem;
    margin-bottom: 15px;
}

.research-card p {
    color: #53675f;
    font-size: 1rem;
    max-width: 520px;
}


/* =================================
   Research — Mobile
   ================================= */

@media (max-width: 900px) {

    .research-section {
        padding: 90px 5%;
    }

    .research-intro {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .research-card {
        padding: 35px 0;
    }

    .research-card:nth-child(even) {
        padding-left: 0;
        border-left: none;
    }
}
/* =================================
   Projects Section
   ================================= */

.projects-section {
    padding: 120px 7%;
    background: #e9e9df;
}

.projects-intro {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 100px;
    max-width: 1250px;
    margin-bottom: 80px;
}

.projects-intro h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -1.5px;
    max-width: 700px;
}

.projects-intro p {
    align-self: end;
    color: #53675f;
    font-size: 1.1rem;
    max-width: 500px;
}


/* ---------- Project Cards ---------- */

.project-list {
    max-width: 1250px;
    border-top: 1px solid #b7b9ae;
}

.project-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 50px;
    padding: 55px 0;
    border-bottom: 1px solid #b7b9ae;
}

.project-number {
    color: #49685a;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.project-content {
    max-width: 900px;
}

.project-category {
    color: #49685a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.project-content h3 {
    color: #20382d;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.1;
    letter-spacing: -1px;
    max-width: 850px;
    margin-bottom: 25px;
}

.project-content p {
    color: #53675f;
    font-size: 1.05rem;
    max-width: 800px;
    margin-bottom: 30px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tags span {
    border: 1px solid #9ea69d;
    border-radius: 50px;
    padding: 7px 14px;
    color: #49685a;
    font-size: 0.8rem;
}


/* ---------- Projects — Mobile ---------- */

@media (max-width: 900px) {

    .projects-section {
        padding: 90px 5%;
    }

    .projects-intro {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    .project-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0;
    }

    .project-number {
        margin-bottom: 5px;
    }
}
/* =================================
   Connect Section
   ================================= */

.connect-section {
    padding: 120px 7%;
    background: #e9e9df;
}

.connect-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 100px;
    max-width: 1350px;
    margin-top: 55px;
}


/* ---------- Heading ---------- */

.connect-heading h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1;
    letter-spacing: -2px;
    color: #20382d;
    margin: 0;
}


/* ---------- Content ---------- */

.connect-content {
    max-width: 700px;
}

.connect-intro {
    color: #53675f;
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 0 30px;
}


/* ---------- Email ---------- */

.connect-email {
    display: inline-flex;
    align-items: center;
    gap: 15px;

    color: #20382d;
    text-decoration: none;

    font-size: 1.2rem;
    font-weight: 600;

    padding-bottom: 8px;

    border-bottom: 1px solid #20382d;

    transition:
        gap 0.2s ease,
        opacity 0.2s ease;
}

.connect-email:hover {
    gap: 22px;
    opacity: 0.7;
}


/* ---------- Social Links ---------- */

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    margin-top: 60px;

    border-top: 1px solid #b7b9ae;
}


.social-link {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 15px;

    padding: 22px 15px 22px 0;

    color: #20382d;
    text-decoration: none;

    border-bottom: 1px solid #b7b9ae;

    transition:
        padding-left 0.2s ease,
        background 0.2s ease;
}


.social-link:nth-child(odd) {
    border-right: 1px solid #b7b9ae;
    padding-right: 25px;
}


.social-link:nth-child(even) {
    padding-left: 25px;
}


.social-link:hover {
    background: rgba(32, 56, 45, 0.04);
    padding-left: 10px;
}


/* ---------- Social Icons ---------- */

.social-icon {
    width: 40px;
    height: 40px;

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

    border: 1px solid #49685a;
    border-radius: 50%;

    color: #20382d;

    font-size: 0.85rem;
    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.social-link:hover .social-icon {
    background: #20382d;
    color: #f5f4ee;
    transform: translateY(-2px);
}


/* ---------- Social Names ---------- */

.social-name {
    font-size: 1rem;
    font-weight: 600;
}


/* ---------- Arrow ---------- */

.social-arrow {
    color: #49685a;
    font-size: 1.1rem;

    transition: transform 0.2s ease;
}


.social-link:hover .social-arrow {
    transform: translate(3px, -3px);
}


/* =================================
   Connect — Responsive
   ================================= */

@media (max-width: 900px) {

    .connect-section {
        padding: 90px 5%;
    }

    .connect-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .social-link:nth-child(odd) {
        border-right: none;
        padding-right: 15px;
    }

    .social-link:nth-child(even) {
        padding-left: 0;
    }

}


@media (max-width: 600px) {

    .connect-section {
        padding: 75px 6%;
    }

    .connect-heading h2 {
        font-size: 3rem;
    }

    .connect-intro {
        font-size: 1rem;
    }

    .social-links {
        margin-top: 45px;
    }

}
