/* =========================================================
   PORTFOLIO – style.css
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f1eb;
    color: #1f1f1f;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

:root {
    --accent:       #b87a46;
    --accent-dark:  #8e5c34;
    --bg-warm:      #f5f1eb;
    --bg-warm-alt:  #f0ebe2;
    --bg-white:     #ffffff;
    --text-dark:    #1f1f1f;
    --text-muted:   #666666;
    --border:       rgba(0, 0, 0, 0.08);
    --radius-sm:    15px;
    --radius-md:    25px;
    --radius-lg:    30px;
    --shadow:       0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ---- LOADER ---- */
#loader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-logo {
    font-size: 120px;
    font-family: 'Cormorant Garamond', serif;

}

/* ---- NAVBAR ---- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 7%;
    position: sticky;
    top: 0;
    background: rgba(245, 241, 235, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    z-index: 100;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    padding: 16px 7%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.logo {
    font-size: 35px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

.navbar ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

.navbar ul a {
    color: #111;
    transition: color 0.3s;
    font-size: 14px;
}

.navbar ul a:hover {
    color: var(--accent);
}

.nav-btn {
    padding: 14px 24px;
    background: var(--accent);
    color: #fff !important;
    border-radius: 40px;
    font-size: 14px;
    transition: background 0.3s, transform 0.2s;
}

.nav-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 8%;
    gap: 60px;
    background-color: var(--bg-warm);
    background-image: linear-gradient(135deg, rgba(184, 122, 70, 0.03) 25%, transparent 25%),
                      linear-gradient(225deg, rgba(184, 122, 70, 0.03) 25%, transparent 25%);
    background-size: 40px 40px;
}

.eyebrow {
    display: block;
    letter-spacing: 4px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;

}

.hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 7rem;
    line-height: 1;
    margin: 20px 0;

}

.hero-role {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.hero-desc {
    max-width: 550px;
    line-height: 1.9;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.socials {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.socials a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--accent);
}

.hero-image {
    position: relative;

    will-change: transform;
    transform-style: preserve-3d;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    max-height: 520px;
}

/* ---- BUTTONS ---- */
.btn-dark, .btn-light {
    display: inline-block;
    padding: 16px 28px;
    border-radius: 40px;
    font-size: 14px;
    transition: background 0.3s, transform 0.2s, border-color 0.3s, color 0.3s;
    cursor: pointer;
}

.btn-dark {
    background: var(--accent);
    color: #fff;
}

.btn-dark:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-light {
    border: 1px solid #ccc;
    color: #111;
}

.btn-light:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ---- SECTIONS ---- */
.section {
    padding: 120px 8%;
    position: relative;
    border-top: 1px solid var(--border);
    background-color: #f8f4ef;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(184, 122, 70, 0.02) 20px,
        rgba(184, 122, 70, 0.02) 22px
    );
}

.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

.section-tag {
    display: block;
    letter-spacing: 3px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    display: block;
    letter-spacing: 3px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}

.section-title h2,
.about-text h2 {
    font-size: 4rem;
    font-family: 'Cormorant Garamond', serif;
    margin: 0;
    line-height: 1.15;
}

/* ---- ABOUT ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.9;
    margin-top: 16px;
    font-size: 15px;
}

/* Right column: photo on top, cards below */
.about-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    max-height: 340px;
}

/* Cards in a 2×2 grid below the photo */
.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.info-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 20px;
    border-left: 3px solid var(--accent);
    transition: transform 0.2s;
}

.info-card:hover {
    transform: translateX(4px);
}

.info-card h4 {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.info-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- STATS ---- */
.stats {
    padding: 60px 8%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.stat:hover {
    transform: translateY(-6px);
}

.stat h3 {
    font-size: 3rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--accent);
}

.stat p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ---- SKILLS ---- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.skill-card {
    background: var(--bg-white);
    padding: 35px;
    border-radius: var(--radius-md);
    transition: box-shadow 0.4s, border-top-color 0.4s;
    border-top: 3px solid transparent;
    will-change: transform;
    transform-style: preserve-3d;
}

.skill-card:hover {
    box-shadow: var(--shadow);
    border-top-color: var(--accent);
}

.skill-card h3 {
    margin-bottom: 16px;
    font-size: 18px;
}

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

/* ---- TECH BADGES ---- */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-warm-alt);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    transition: transform 0.2s, border-color 0.2s;
}

.tech-badge:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.tech-badge img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: inline-block;
}

/* ---- PROJECTS ---- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.4s;
    will-change: transform;
    transform-style: preserve-3d;
}

.project-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.project-img {
    overflow: hidden;
    height: 200px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-info {
    padding: 28px;
}

.project-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.project-info h3 {
    font-size: 20px;
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-links .btn-dark,
.project-links .btn-light {
    padding: 10px 20px;
    font-size: 13px;
}

/* ---- TIMELINE (Experience) ---- */
.timeline {
    position: relative;
    padding-left: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: -34px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-warm-alt);
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-content {
    background: var(--bg-white);
    padding: 28px 32px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateX(6px);
}

.timeline-date {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.timeline-content h4 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ---- EDUCATION ---- */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
}

.edu-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    will-change: transform;
    transform-style: preserve-3d;
}

.edu-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--bg-warm-alt);
    padding: 6px;
}

.edu-card h3 {
    font-size: 17px;
    margin-bottom: 4px;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.3;
}

.edu-card h4 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 8px;
}

.edu-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 10px;
}

/* ---- ACHIEVEMENTS ---- */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.achievement {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    font-weight: 500;
    font-size: 15px;
    cursor: default;
    transition: box-shadow 0.3s;
}

.achievement:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

/* ---- CONTACT ---- */
.contact {
    padding: 100px 8%;
    text-align: center;
    background-color: #f0ebe2;
    background-image: linear-gradient(45deg, rgba(184, 122, 70, 0.01) 25%, transparent 25%);
    background-size: 30px 30px;
}

.contact h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.contact p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
    font-size: 14px;
}

.contact input:focus,
.contact textarea:focus {
    border-color: var(--accent);
}

.contact button {
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s;
}

.contact button:hover {
    background: var(--accent-dark);
}

/* ---- TILT CARD WRAPPER ---- */
.tilt-card {
    will-change: transform;
    transform-style: preserve-3d;
}

/* ---- GSAP REVEAL INITIAL STATE ---- */
.gsap-reveal {
    transform: translateY(40px);
}

/* ---- MEDIA BREAKPOINTS ---- */
@media (max-width: 992px) {
    .hero,
    .about-grid,
    .achievement-grid {
        grid-template-columns: 1fr;
    }

    .about-info {
        grid-template-columns: 1fr 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-name {
        font-size: 4.5rem;
    }

    .navbar ul {
        display: none;
    }

    .section-title h2,
    .about-text h2 {
        font-size: 2.8rem;
    }

    .edu-card {
        flex-direction: column;
    }

    .timeline {
        padding-left: 28px;
    }
}

@media (max-width: 600px) {
    .hero-name {
        font-size: 3.2rem;
    }

    .contact h2 {
        font-size: 2.4rem;
    }

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

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
