/* =========================================
   VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
    /* Colors */
    --color-bg-main: #FDFBF7; /* Creamy off-white */
    --color-bg-darker: #F3EFE6;
    --color-bg-card: rgba(0, 0, 0, 0.03);
    
    /* Pastel Baby Green Accent */
    --color-accent: #9BE59B; 
    --color-accent-light: #B2F0B2;
    --color-accent-glow: rgba(155, 229, 155, 0.4);
    --color-accent-text: #1B3C22;

    /* Text Colors */
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-text-light: #111111;

    /* Typography */
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Inter', Arial, Helvetica, sans-serif;

    /* Transitions & Layout */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius: 12px;
    --border-radius-lg: 24px;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Restored default cursor */
    cursor: auto; 
}

/* Restored default cursor */
a, button, .btn {
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: 1450px;
}

.section {
    padding: 6rem 0;
}

.bg-darker {
    background-color: var(--color-bg-darker);
}

.accent-text {
    color: var(--color-accent-light);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

/* =========================================
   CUSTOM CURSOR
   ========================================= */
.cursor-dot {
    display: none;
}

.cursor-outline {
    display: none;
    transition: left 0.15s ease-out, top 0.15s ease-out, width 0.2s, height 0.2s, background-color 0.2s;
    will-change: left, top;
}

/* Cursor hover states */
.cursor-hover .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
    background-color: #111;
}
.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent-glow);
    border-color: transparent;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color var(--transition-medium), padding var(--transition-medium);
    background-color: transparent;
    border-bottom: none;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background-color: rgba(253, 251, 247, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-light);
    letter-spacing: 1px;
}

.nav-brand span {
    color: var(--color-accent-light);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
    background-color: rgba(155, 229, 155, 0.85); /* Pastel green transparent */
    color: var(--color-accent-text); /* Dark baby green font */
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-light);
    transition: width var(--transition-medium);
}

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

.btn-nav {
    background-color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    color: var(--color-accent-text);
    transition: all var(--transition-medium);
}

.btn-nav::after {
    display: none; /* remove underline effect */
}

.btn-nav:hover {
    background-color: var(--color-accent-light);
    border-color: var(--color-accent-light);
    color: var(--color-accent-text);
    box-shadow: 0 0 15px var(--color-accent-glow);
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-light);
    transition: all 0.3s ease;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all var(--transition-medium);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-accent-text);
    box-shadow: 0 4px 15px var(--color-accent-glow);
}

.btn-primary:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-accent-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    border-color: var(--color-accent-light);
    color: var(--color-accent-light);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    gap: 0.35rem;
}

/* =========================================
   HERO SECTION & COLLAGE
   ========================================= */
.hero-section {
    position: relative;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.collage-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    z-index: 1;
    opacity: 1; /* Images shown in normal color */
    background-color: var(--color-bg-darker);
}

.collage-item {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background-color: #e0e0e0;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    will-change: transform;
}

.collage-item:hover img {
    transform: scale(1.05);
}

.collage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
}

/* Placeholders for when images are empty */
.placeholder-img {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    padding: 0 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 3.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: normal;
    background-color: rgba(155, 229, 155, 0.85); /* Pastel green transparent */
    color: var(--color-accent-text); /* Dark baby green font */
    padding: 1rem 2rem;
    border-radius: 12px;
    display: inline-block;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-title a {
    color: var(--color-accent-text);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.hero-title a:hover {
    color: #111111;
}

.typing-active::after, .typing-done::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--color-accent-light);
    margin-left: 5px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.scroll-indicator:hover {
    color: var(--color-accent-light);
    transform: translateX(-50%) translateY(-3px);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-accent-light);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}



/* =========================================
   IMAGE TRAIL EFFECT
   ========================================= */
.trail-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Below hero content, above background */
    overflow: hidden;
}

.trail-img-container {
    position: absolute;
    width: 380px; 
    height: 260px;
    top: 0;
    left: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    pointer-events: none;
    opacity: 0; /* JS handles all transitions */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.trail-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
    padding: 3rem 0;
}

.about-section .section-title {
    margin-bottom: 1.5rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto;
}

.about-intro p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.about-intro p:last-child {
    margin-bottom: 0;
}

.about-focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.focus-card {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: left;
    transition: all var(--transition-medium);
}

.focus-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-glow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.focus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(155, 229, 155, 0.1);
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.focus-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-light);
}

.focus-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .about-focus-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   3x2 GRID CONTAINER (EXPERIENCE & PROJECTS)
   ========================================= */
.grid-3x2-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

.grid-row {
    display: flex;
    flex-direction: column;
}

.row-subtitle {
    font-size: 1.75rem;
    font-family: var(--font-heading);
    color: var(--color-text-light);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.row-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--color-accent-light);
    border-radius: 2px;
}

.grid-cards-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-cards-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

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


.timeline-item {
    width: 100%;
}

.timeline-content {
    padding: 1.25rem;
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-glow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.timeline-date {
    color: var(--color-accent-light);
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.timeline-role {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.timeline-company {
    color: var(--color-text-muted);
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .grid-cards-2, .grid-cards-3, .grid-cards-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .grid-3x2-container {
        gap: 3rem;
    }
}

/* =========================================
   PROJECTS SECTION (3-COLUMN CARDS)
   ========================================= */
.project-card {
    width: 100%;
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-glow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.project-img-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: rgba(0, 0, 0, 0.02);
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
}

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

.project-info {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-desc-list {
    margin-bottom: 0;
    padding-left: 1.2rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* =========================================
   PORTFOLIO SECTION
   ========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 300px;
    background-color: var(--color-bg-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* =========================================
   RESUME SECTION
   ========================================= */
.resume-section {
    text-align: center;
}

.resume-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.resume-text {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--color-bg-darker);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--color-text-muted);
    font-weight: 500;
}

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

.footer-bottom {
    text-align: center;
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    

}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background-color: rgba(253, 251, 247, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        padding: 0;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .nav-links.active {
        right: 0;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .hamburger {
        display: flex;
        cursor: pointer;
        z-index: 1001;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Disable custom cursor on touch devices */
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    body, a, button, .btn {
        cursor: auto !important;
    }
}
