/* ==========================================
   CSS VARIABLE CORE DESIGN SYSTEM
========================================== */
:root {
    --bg-main: #fef8fa;
    --surface-card: #ffffff;
    --surface-terminal: #1c1417;
    
    /* Sleek Tech Pink Accent Tones */
    --pink-primary: #f2a6c2;
    --pink-dark: #b84a75;
    --pink-accent-bg: #fff0f5;
    
    --text-main: #2b2226;
    --text-muted: #615259;
    --text-light: #ffffff;
    
    --border-color: #f0dae3;
    --shadow-smooth: 0 10px 30px rgba(184, 74, 117, 0.06);
    --shadow-hover: 0 20px 40px rgba(184, 74, 117, 0.12);
    
    --transition-quick: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* TYPOGRAPHY UNIQUE INJECTIONS */
.decorative-font {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--pink-dark);
}

h1, h2, h3 { font-weight: 700; }

/* GLOBAL NAVIGATION ACCENT STRIP */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(254, 248, 250, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}
.header-container {
    max-width: 1200px; margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    text-decoration: none; color: var(--text-main);
    font-weight: 600; font-size: 0.9rem; transition: var(--transition-quick);
}
.nav-links a:hover { color: var(--pink-dark); }

/* HERO DESIGN FRAMEWORK */
.hero-section {
    padding: 6rem 2rem; max-width: 1200px; margin: 0 auto;
}
.hero-container {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center;
}

.hero-section h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
.hero-subtitle { font-size: 1rem; margin: 1rem 0; color: var(--pink-primary); font-weight: 600; }
.hero-description { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; }

.hero-buttons { display: flex; gap: 1rem; margin-top: 2rem; }
.btn {
    padding: 0.8rem 2rem; border-radius: 12px; font-weight: 600; text-decoration: none;
    transition: var(--transition-quick); font-size: 0.95rem;
}
.primary-btn { background: var(--pink-dark); color: var(--text-light); }
.primary-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.secondary-btn { border: 2px solid var(--pink-dark); color: var(--pink-dark); }
.secondary-btn:hover { background: var(--pink-accent-bg); }

.image-wrapper {
    background: #fff; 
    padding: 12px; 
    border-radius: 24px;
    box-shadow: var(--shadow-smooth); 
    transform: rotate(2deg);
    transition: var(--transition-quick);

    /* 1. CONTROL TOTAL CARD WIDTH HERE */
    width: 320px; /* Decrease this (e.g., 280px) to make it smaller, increase to make it bigger */
}

.profile-pic {
    width: 100%; 
    
    /* 2. CONTROL THE ASPECT RATIO & HEIGHT */
    aspect-ratio: 4 / 5; /* This keeps a classic vertical portrait ratio automatically */
    object-fit: cover;   /* This ensures your face won't look squished or stretched */
    border-radius: 16px; 
    display: block; 
}

.image-wrapper:hover { transform: rotate(0deg) scale(1.02); }

/* THE RECRUITER TECH TERMINAL SCHEMA */
.section-title { text-align: center; font-size: 2rem; margin-bottom: 3rem; }
.skills-section { padding: 4rem 2rem; max-width: 1000px; margin: 0 auto; }

.terminal-container {
    background: var(--surface-terminal); border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); overflow: hidden;
}
.terminal-header {
    background: #261d21; padding: 1rem; display: flex; align-items: center; position: relative;
}

.terminal-heading-tag {
    color: var(--border-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.terminal-dots { display: flex; gap: 0.5rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-title {
    color: #fff0f5; font-family: 'Fira Code', monospace; font-size: 0.85rem;
    position: absolute; left: 50%; transform: translateX(-50%);
}

.terminal-tabs { display: flex; background: #21181c; border-bottom: 1px solid #33252a; }
.tab-btn {
    background: transparent; border: none; color: #8c7681; padding: 0.8rem 1.5rem;
    font-family: 'Fira Code', monospace; cursor: pointer; font-size: 0.85rem;
    transition: var(--transition-quick);
}
.tab-btn.active { background: var(--surface-terminal); color: var(--pink-primary); border-top: 2px solid var(--pink-dark); }

.terminal-body { padding: 2rem; font-family: 'Fira Code', monospace; min-height: 250px; }
.tab-content { padding: 2rem; display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease-out; }

.cmd { color: #b5e8b0; margin-bottom: 0.8rem; }
.prompt { color: var(--pink-primary); }
.output-text { color: #e6dfdf; margin-bottom: 0.5rem; padding-left: 1.2rem; font-size: 0.95rem; }

.tech-tags-grid { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 1.5rem; }
.tech-tags-grid span {
    background: #2d2227; color: var(--pink-primary); border: 1px solid #4a373f;
    padding: 0.3rem 0.8rem; border-radius: 6px; font-size: 0.8rem;
}

/* ==========================================
   MINIMALIST 3-CONTAINER PROJECT GRID
========================================== */
.projects-intro {
    text-align: center;
    margin-bottom: 3rem;
}
.projects-intro .subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pink-primary);
    font-weight: 700;
}

.projects-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forces exactly 3 equal containers */
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.minimal-project-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.minimal-project-card:hover {
    transform: translateY(-5px);
    border-color: var(--pink-primary);
    box-shadow: var(--shadow-hover);
}

/* CARD IMAGE ZONE */
.card-visual {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--pink-accent-bg);
}

/* CARD STATUS PILLS */
.status-pill {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.status-pill.completed {
    background: rgba(230, 247, 235, 0.9);
    color: #1a7f37;
    border: 1px solid rgba(42, 163, 76, 0.2);
}

.status-pill.ongoing {
    background: #FFF9E6; 
    color: #8A6500;     
    border: 1px solid rgba(138, 101, 0, 0.25);
}

.project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.minimal-project-card:hover .project-thumb {
    transform: scale(1.05);
}
.project-num {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pink-dark);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

/* CARD CONTENT INFRASTRUCTURE */
.card-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes links neatly to the exact bottom line */
}
.project-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* COMPACT TECH TAG PILLS */
.tech-moodboard-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.8rem;
    margin-top: auto; /* Aligns tag row across card variations */
}
.tech-moodboard-mini .pill {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--pink-accent-bg);
    color: var(--pink-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* MINIMAL LINK HOVER ACTIONS */
.github-cta-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    text-transform: lowercase;
    transition: color 0.2s ease;
    width: max-content;
}
.github-cta-link:hover {
    color: var(--pink-primary);
}

/* RESPONSIVE RESPONSIVENESS MATRIX */
@media (max-width: 968px) {
    .projects-grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 items on standard tablet view */
    }
}
@media (max-width: 640px) {
    .projects-grid-container {
        grid-template-columns: 1fr; /* Stack vertically on small phone views */
        gap: 2rem;
    }
}

/* ==========================================
   CREATIVE "BEYOND THE CODE" GRID
========================================== */
.beyond-code-section {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
}

.creative-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    align-items: stretc;
}

.creative-images-stack {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.creative-masonry-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 220px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.creative-visual {
    width: 100%;
    height: 100%;
    position: relative;
}

.creative-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.creative-masonry-card:hover {
    transform: translateY(-4px);
    border-color: var(--pink-primary);
    box-shadow: var(--shadow-hover);
}

.creative-masonry-card:hover img {
    transform: scale(1.02);
}

.creative-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 2rem 1.5rem 1.2rem 1.5rem;
}

.creative-overlay span {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* FULL HEIGHT PHILOSOPHY PANEL */
.creative-text-card-split {
    background: var(--pink-accent-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.creative-text-card-split .decorative-font-heading {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.creative-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--pink-dark);
    font-style: italic;
    font-weight: 500;
    margin-bottom: 2rem;
}

.creative-subtext {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
    padding-bottom: 10px;
}

/* ==========================================
   MINIMAL LIGHTBOX GLASSMORPHISM MODAL
========================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(26, 21, 23, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-target {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-modal.active .lightbox-target {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* RESPONSIVE LAYOUT CONSTRAINTS */
@media (max-width: 968px) {
    .creative-split-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .creative-text-card-split {
        padding: 3rem 2rem;
        order: -1;
    }
    .creative-images-stack {
        gap: 2rem;
    }
    .creative-masonry-card {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .lightbox-target {
        max-width: 95%;
        max-height: 75vh;
    }
    .lightbox-close {
        top: 1rem;
        right: 1.5rem;
    }
}

/* ==========================================
   GET IN TOUCH / CONTACT SECTION
========================================== */
.contact-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(to bottom, transparent, var(--pink-accent-bg));
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.contact-section .subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pink-dark);
    font-weight: 700;
    margin-bottom: 0.1rem;
    padding-bottom: 10px;
}

/* 3-COLUMN EXTERNAL LINK CARD GRID */
.contact-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-card-cta {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-align: left;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-card-icon {
    font-size: 1.8rem;
    background: var(--pink-accent-bg);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-card-info h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.contact-card-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: lowercase;
    transition: color 0.2s ease;
}

/* INTERACTION HOVER MECHANICS */
.contact-card-cta:hover {
    transform: translateY(-3px);
    border-color: var(--pink-primary);
    box-shadow: var(--shadow-hover);
}

.contact-card-cta:hover .contact-card-info span {
    color: var(--pink-dark);
}

/* Distinct subtle look for your primary resume file asset */
.contact-card-cta.resume-highlight {
    background: var(--surface-card);
}

/* MOBILE RESPONSIVE CONSTRAINTS */
@media (max-width: 768px) {
    .contact-links-grid {
        grid-template-columns: 1fr; /* Stack into a vertical list on smaller screens */
        gap: 1rem;
    }
}

/* SIMPLE SCANNABLE FOOTER */
footer { padding: 4rem 2rem; text-align: center; background: #fff; margin-top: 4rem; border-top: 1px solid var(--border-color); }
.footer-line { width: 60px; height: 2px; background: var(--pink-primary); margin: 0 auto 1.5rem; }
.closing-text { font-size: 1.2rem; margin-bottom: 0.5rem; }
.footer-subtext { font-size: 0.85rem; color: var(--text-muted); }

/* SIMPLE KEYFRAME ANIMATION PACKAGES */
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVE MEDIA BREAKPOINTS */
@media(max-width: 900px) {
    .hero-container, .bento-gallery { grid-template-columns: 1fr; }
    .hero-visual-block { order: -1; max-width: 320px; margin: 0 auto; }
    .hero-section { text-align: center; }
    .hero-description, .hero-buttons { margin-left: auto; margin-right: auto; justify-content: center; }
}