/* --- CSS Variables --- */
:root {
    --bg-color: #F8F9FA;
    --text-primary: #111111;
    --text-secondary: #555555;
    --accent-color: #FF4D6D; /* Coder girl pink/red accent */
    --accent-secondary: #7B2CBF; /* Purple gradient */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body.dark-mode {
    --bg-color: #050505;
    --text-primary: #F5F5F0;
    --text-secondary: #A0A0A0;
    --accent-color: #FF758F; 
    --accent-secondary: #9D4EDD;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* --- Reset & Global --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background-color 0.4s, color 0.4s;
    overflow-x: hidden;
    position: relative;
}
a { text-decoration: none; color: inherit; }

/* --- Tech Grid & Orbs Background --- */
.grid-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2; mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
}
.glow-orb { position: fixed; border-radius: 50%; filter: blur(120px); z-index: -1; opacity: 0.5; animation: float 10s infinite alternate; }
.orb-1 { width: 500px; height: 500px; background: var(--accent-color); top: -100px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: var(--accent-secondary); bottom: -100px; right: -100px; animation-delay: -5s; }
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

/* --- Glassmorphism Utility --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    border-radius: 16px;
}

/* --- Header & Tech Logo --- */
.header {
    position: fixed; top: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 48px; z-index: 100;
}
.code-logo {
    display: flex; align-items: center; gap: 12px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    padding: 8px 16px; border-radius: 8px; backdrop-filter: blur(10px);
}
.code-logo .dots { display: flex; gap: 6px; }
.code-logo .dots span { width: 10px; height: 10px; border-radius: 50%; background: #FF5F56; }
.code-logo .dots span:nth-child(2) { background: #FFBD2E; }
.code-logo .dots span:nth-child(3) { background: #27C93F; }
.code-text { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }

.nav { display: flex; align-items: center; gap: 32px; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; }
.nav-link { color: var(--text-secondary); transition: color 0.3s; position: relative; }
.nav-link:hover { color: var(--accent-color); }
.theme-toggle { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 50px; width: 60px; height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; cursor: pointer; color: var(--text-secondary); }

/* --- Layout --- */
.container { display: flex; max-width: 1400px; margin: 0 auto; padding-top: 100px; min-height: 100vh; position: relative; }
.content-wrapper { margin-left: 100px; padding-right: 48px; width: 100%; max-width: 1100px; }
.timeline-rail { width: 60px; display: flex; justify-content: center; position: fixed; height: 100vh; left: 20px; z-index: 10; }
.rail-line { width: 2px; background: linear-gradient(to bottom, transparent, var(--accent-color), transparent); }

/* --- Section Headers --- */
.section-header { 
    display: flex; 
    align-items: center; 
    gap: 24px; 
    margin-bottom: 50px; 
    margin-top: 160px; /* Increased from 100px to prevent header overlap */
}
.section-num { font-family: var(--font-mono); color: var(--accent-color); font-size: 1rem; }
.section-title { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; }
.section-line { flex: 1; height: 1px; background: var(--glass-border); }

/* --- Hero Section --- */
.hero { display: flex; flex-direction: row; align-items: center; justify-content: space-between; min-height: 85vh; gap: 40px; }
.hero-content { flex: 1; }
.hero-label { font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent-color); display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.hero-label .line { width: 40px; height: 2px; background-color: var(--accent-color); }
.hero-title { font-size: 4.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 24px; }
.hero-title .dot { color: var(--accent-color); }
.text-outline { color: transparent; -webkit-text-stroke: 1px var(--text-primary); }
.hero-subtitle { font-size: 1.2rem; color: var(--text-secondary); max-width: 500px; margin-bottom: 40px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn { padding: 16px 32px; font-size: 1rem; font-weight: 600; border-radius: 8px; transition: all 0.3s; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary { background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary)); color: white; border: none; box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 77, 109, 0.6); }
.btn-glass { background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); color: var(--text-primary); }
.btn-glass:hover { border-color: var(--accent-color); transform: translateY(-3px); }

/* Hero Terminal Card */
.hero-visuals { flex: 1; display: flex; justify-content: flex-end; }
.terminal-card {
    background: var(--glass-bg); backdrop-filter: blur(16px); border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 0; width: 100%; max-width: 450px; box-shadow: var(--card-shadow);
    font-family: var(--font-mono); font-size: 0.9rem; position: relative;
}
.terminal-header { padding: 12px 16px; border-bottom: 1px solid var(--glass-border); color: var(--text-secondary); display: flex; gap: 8px; align-items: center; }
.terminal-header::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-color); }
.terminal-body { padding: 24px; line-height: 1.8; color: var(--text-secondary); }
.terminal-body .keyword { color: #C678DD; }
.terminal-body .string { color: #98C379; }
.terminal-body .function { color: #61AFEF; }
.terminal-body .indent { padding-left: 20px; }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent-color); animation: blink 1s step-end infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0; } }
.status-card {
    position: absolute; bottom: -20px; right: -20px; background: var(--glass-bg); border: 1px solid var(--glass-border);
    padding: 12px 20px; border-radius: 8px; display: flex; align-items: center; gap: 12px;
    box-shadow: var(--card-shadow); font-size: 0.85rem; font-weight: 600; backdrop-filter: blur(10px);
}

/* --- About Section --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-left-col { display: flex; flex-direction: column; gap: 32px; }
/* --- Professional Profile Picture --- */
.unique-profile-wrapper { 
    width: 240px; 
    height: 240px; 
    position: relative; 
    border-radius: 50%; 
    padding: 5px; 
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary)); 
    /* Added a subtle shadow to make it pop off the background */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.profile-image { 
    width: 100%; 
    height: 100%; 
    /* This is the magic fix: it covers the circle without stretching */
    object-fit: cover; 
    /* This focuses the crop on the upper-middle (your face) */
    object-position: center 20%; 
    border-radius: 50%; 
    border: 4px solid var(--bg-color); 
    position: relative; 
    z-index: 2; 
    transition: transform 0.4s ease; 
}

.unique-profile-wrapper:hover .profile-image { 
    transform: scale(1.08); 
}
.unique-profile-wrapper:hover .profile-image { transform: scale(1.05); }
.about-lead { font-size: 1.8rem; font-weight: 700; line-height: 1.3; margin-bottom: 16px; letter-spacing: -0.02em; }
.about-text p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; }
.about-facts { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.fact-row {      display: flex;      align-items: flex-start; /* This fixes the top alignment */     border-bottom: 1px solid var(--glass-border);      padding-bottom: 16px;  }
.fact-row:last-child { border-bottom: none; padding-bottom: 0; }
.fact-label {      width: 150px; /* Increased from 130px */     flex-shrink: 0; /* Prevents the label from getting squished */     font-family: var(--font-mono);      font-size: 0.75rem;      color: var(--accent-color);      margin-top: 4px; /* Aligns the small label perfectly with the big text */ }
.fact-value { font-weight: 500; font-size: 1rem; }
.green-dot-small { display: inline-block; width: 8px; height: 8px; background-color: #22C55E; border-radius: 50%; margin-right: 6px; }

/*  Skills Section  */
.skills-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.skill-category-card { padding: 32px; transition: transform 0.3s; }
.skill-category-card:hover { transform: translateY(-5px); border-color: var(--accent-color); }
.skill-category-card h4 { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 20px; letter-spacing: 1px; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-pills span {
    font-size: 0.9rem; font-weight: 500; padding: 8px 16px; border-radius: 8px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border);
    transition: all 0.3s;
}
.skill-pills span:hover { background: var(--accent-color); color: white; border-color: var(--accent-color); }

/* --- Projects Section (Professional Layout & Clickable Cards) --- */
.projects-subhead { 
    display: flex; 
    justify-content: space-between; 
    color: var(--text-secondary); 
    margin-bottom: 40px; 
    font-family: var(--font-mono); 
    font-size: 0.9rem;
}

.bento-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 24px; 
}

.project-card { 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    position: relative; /* Crucial for the clickable overlay */
    cursor: pointer;
}

/* The Magic Clickable Overlay */
.project-card .btn-arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10; /* Makes the whole card clickable */
}

/* Hover Effects */
.project-card:hover { 
    border-color: var(--accent-color); 
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 77, 109, 0.15);
}

/* Large Card Layout */
.project-card.large { 
    grid-column: 1 / -1; 
    flex-direction: row; 
}
/* Medium Card (Spans 2 columns like the large one, but is shorter) */
.project-card.medium {
    grid-column: 1 / -1; 
    flex-direction: column;
}

/* Fix Image Alignment */
.card-image { 
    position: relative; 
    flex: 1; 
    min-height: 300px; 
    overflow: hidden; 
    /* Fix for rounded corners on the left side */
    border-radius: 16px 0 0 16px; 
}

.card-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    position: absolute; 
    top: 0; 
    left: 0; 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
}

.project-card:hover .card-image img { 
    transform: scale(1.05); 
}

.badge { 
    position: absolute; 
    top: 20px; 
    left: 20px; 
    background: rgba(0,0,0,0.7); 
    backdrop-filter: blur(5px); 
    color: white; 
    font-family: var(--font-mono); 
    font-size: 0.7rem; 
    padding: 6px 12px; 
    border-radius: 6px; 
    z-index: 2; 
}

.badge.live { color: #22C55E; }

.card-content { 
    padding: 40px; /* More breathing room */
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}

.card-top { 
    display: flex; 
    justify-content: space-between; 
    font-family: var(--font-mono); 
    font-size: 0.75rem; 
    color: var(--text-secondary); 
    margin-bottom: 24px; 
}

.card-content h3 { 
    font-size: 2rem; 
    margin-bottom: 16px; 
    font-weight: 700; 
    letter-spacing: -0.02em;
}

.card-content p { 
    color: var(--text-secondary); 
    font-size: 1.05rem; 
    margin-bottom: 40px; 
    line-height: 1.6; 
    flex-grow: 1; 
}

.card-bottom { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: auto; 
}

.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { 
    font-family: var(--font-mono); 
    font-size: 0.7rem; 
    border: 1px solid var(--glass-border); 
    padding: 6px 12px; 
    border-radius: 6px; 
    color: var(--text-secondary); 
}

.btn-arrow { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 50px; 
    height: 50px; 
    border: 1px solid var(--glass-border); 
    border-radius: 50%; 
    font-size: 1.2rem; 
    transition: all 0.4s ease; 
    background: transparent;
    z-index: 11; /* Keeps arrow above the clickable overlay */
}

.project-card:hover .btn-arrow { 
    background: var(--accent-color); 
    color: white; 
    border-color: var(--accent-color); 
    transform: rotate(45deg); 
}

/* Responsive adjustments for projects */
@media (max-width: 1024px) {
    .project-card.large { 
        flex-direction: column; 
    }
    .card-image { 
        border-radius: 16px 16px 0 0; 
        min-height: 250px; 
    }
}
/* --- Contact Section (Terminal Style) --- */
.contact { margin-top: 120px; margin-bottom: 80px; }
.contact-title { font-size: 5rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin-bottom: 50px; }
.terminal-contact { padding: 0; overflow: hidden; max-width: 800px; }
.terminal-bar { background: rgba(0,0,0,0.2); padding: 12px 20px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); border-bottom: 1px solid var(--glass-border); display: flex; gap: 8px; align-items: center; }
.terminal-bar::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: #FF5F56; }
.terminal-content { padding: 32px; display: flex; flex-direction: column; gap: 20px; font-family: var(--font-mono); font-size: 1.1rem; }
.term-link { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); transition: all 0.3s; padding: 8px 0; }
.term-link .prompt { color: var(--accent-color); font-weight: 700; }
.term-link .string { color: #98C379; }
.term-link .arrow { margin-left: auto; opacity: 0; transition: all 0.3s; color: var(--accent-color); }
.term-link:hover { color: var(--text-primary); transform: translateX(10px); }
.term-link:hover .arrow { opacity: 1; }
.term-link.disabled { cursor: default; }
.term-link.disabled:hover { transform: none; color: var(--text-secondary); }

.contact-footer { margin-top: 50px; text-align: center; }
.btn-text { font-weight: 600; color: var(--text-secondary); transition: color 0.3s; }
.btn-text:hover { color: var(--accent-color); }
.footer { border-top: 1px solid var(--glass-border); padding: 40px 0; margin-top: 80px; text-align: center; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); }

/* --- Animations --- */
.section-reveal { opacity: 0; transform: translateY(40px); filter: blur(5px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.section-reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.green-dot { display: inline-block; width: 10px; height: 10px; background-color: #22C55E; border-radius: 50%; animation: pulse 2s infinite; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .content-wrapper { margin-left: 60px; padding-right: 24px; }
    .hero { flex-direction: column; text-align: center; padding-top: 40px; }
    .hero-visuals { margin-top: 40px; }
    .hero-buttons { justify-content: center; }
    .hero-label { justify-content: center; }
    .hero-label .line { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .unique-profile-wrapper { margin: 0 auto; }
    .about-text { text-align: center; }
    .skills-container { grid-template-columns: 1fr; }
    .project-card.large { flex-direction: column; }
    .contact-title { font-size: 3.5rem; }
}
@media (max-width: 768px) {
    .header { padding: 16px 24px; }
    .nav { display: none; }
    .content-wrapper { margin-left: 0; padding: 0 20px; }
    .timeline-rail { display: none; }
    .hero-title { font-size: 3rem; }
    .terminal-card { max-width: 100%; }
    .hero-visuals { display: none; }
    .bento-grid { grid-template-columns: 1fr; }
    .contact-title { font-size: 2.5rem; }
    .terminal-content { font-size: 0.9rem; }
    .term-link { flex-wrap: wrap; }
}
/* --- EVC Mockup Box Styling --- */
.evc-mockup-box {
    /* Gives the left side a beautiful dark gradient background */
    background: linear-gradient(135deg, #1f0b16 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px; /* Leaves space around the image */
    border-right: 1px solid var(--glass-border);
}

.evc-mockup-box img {
    /* Forces the image to fit nicely inside without stretching or massive cropping */
    position: static !important; 
    object-fit: contain !important; 
    width: 100%;
    height: 100%;
    max-height: 300px; /* Prevents it from getting too tall */
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6); /* Makes it look like a floating screen */
    transition: transform 0.4s ease;
}

/* Hover zoom effect */
.project-card:hover .evc-mockup-box img {
    transform: scale(1.05) translateY(-5px);
}

/* Clean bullet list */
.project-details-list {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
    padding-left: 18px;
    line-height: 1.6;
}

.project-details-list li::marker {
    color: var(--accent-color);
}
