:root {
    /* Exact Palette from reference */
    --bg-main: #050505;
    --text-main: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a8a8a8;
    
    /* Heritage Glows - Exact Hex Codes */
    --glow-left: #ff0080;  /* Magenta */
    --glow-right: #00bfff; /* Electric Blue */
    
    /* Glass Tokens */
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.15);
    --nav-bg: rgba(5, 5, 5, 0.85);
    
    /* Layout */
    --container-max: 1300px;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
    opacity: 0.5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 14.5px; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Glows from Reference */
.bg-glow {
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(160px);
    z-index: -1;
    opacity: 0.15; /* Subtler for deep premium feel */
    pointer-events: none;
}
.glow-purple {
    top: -20%;
    left: -10%;
    background: var(--glow-left);
}
.glow-teal {
    bottom: -20%;
    right: -10%;
    background: var(--glow-right);
}

/* Premium Typography System */
h1, h2, h3, h4, h5, h6 { 
    font-weight: 700; 
    letter-spacing: -0.04em; 
    color: var(--text-main); 
    line-height: 1.1; 
    text-transform: uppercase;
}

.section-title { 
    font-size: 3.5rem; 
    margin-bottom: 3rem; 
    position: relative; 
    display: inline-block; 
}

.section-title span {
    font-style: italic;
    font-weight: 300;
    color: var(--text-muted);
}

/* Scrollable Timeline Box */
.timeline-scroll-container {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 1.5rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
}
.timeline-scroll-container::-webkit-scrollbar { width: 4px; }
.timeline-scroll-container::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 10px; }
.timeline-scroll-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
.timeline-scroll-container::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; font-weight: 400; }

/* Layout Grid */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 4rem 0; }
.section-divider {
    width: 100%;
    height: 100px;
    margin: 2rem 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    pointer-events: none;
}

.section-divider::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    /* The Glow + Grid Layers */
    background: 
        /* The dual-color glow */
        linear-gradient(90deg, rgba(255, 0, 128, 0.08) 0%, rgba(0, 191, 255, 0.08) 100%),
        /* The horizontal grid lines */
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        /* The vertical grid lines */
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 40px, 40px 100%;
    /* Soft fade at the edges */
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 45%, black 55%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 45%, black 55%, transparent);
}

.section-divider::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    /* Ultra-clean central line with soft ends */
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 0, 128, 0.4) 20%, 
        rgba(0, 191, 255, 0.4) 80%, 
        transparent 100%
    );
    z-index: 2;
}
.flex-center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.text-center { text-align: center; }

/* Bento Box Architecture */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-glow:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08); /* Lift and illuminate */
}

.glass-nav {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-container { 
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 3rem; /* Slightly more spacious */
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3.5rem; /* Increased gap */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu a { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-size: 1rem; 
    font-weight: 500; 
    letter-spacing: 0.02em; /* Subtle letter spacing */
    transition: all 0.3s ease; 
}

.nav-menu a:hover { 
    color: var(--text-main); 
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-icon-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.nav-icon-link:hover {
    color: var(--text-main);
}

.logo { 
    font-size: 1.6rem; 
    font-weight: 700; 
    letter-spacing: -0.01em; 
    text-decoration: none;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    animation: etherealGlow 4s infinite ease-in-out;
}

@keyframes etherealGlow {
    0%, 100% { text-shadow: 0 0 0 transparent; }
    50% { text-shadow: 0 0 15px rgba(255, 255, 255, 0.4); }
}

.logo span {
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
}

/* Nav Button Specifics */
.btn-nav { font-size: 0.75rem; padding: 0.5rem 1.2rem; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.1em; }

/* Clean UI Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(25, 25, 25, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 8px; /* Standard SaaS radius */
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn-primary { background: #fff; color: #000; border: 1px solid #fff; font-weight: 600; }
.btn-primary:hover { background: #e0e0e0; border-color: #e0e0e0; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.15); }
.btn-secondary:hover { background: #fff; color: #000; border-color: #fff; transform: translateY(-1px); }
.btn-nav { padding: 0.5rem 1rem !important; border-radius: 6px; }

/* Hero Section Updates */
/* Centered Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 0 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
}

.hero-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-intro {
    font-size: clamp(3.5rem, 10vw, 6.5rem); /* Swapped to massive size */
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: #fff;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem; /* Increased size for better impact */
    font-weight: 500;
    margin-bottom: 2.5rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    width: 100%;
}

#typing-text {
    color: #fff;
    border-right: 3px solid rgba(255,255,255,0.3);
    padding-right: 8px;
    animation: blink 0.7s infinite;
}

@keyframes blink { 50% { border-color: transparent; } }

.hero .subtitle {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto 4rem auto;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0 auto 2.5rem auto; /* Center badge horizontally */
    backdrop-filter: blur(10px);
    text-align: center;
}

/* Profile Avatar / Mockup */
.hero-visual { position: relative; display: flex; justify-content: flex-end; perspective: 1000px; }
.profile-image-container {
    width: 380px; height: 380px;
    border-radius: 24px; /* Soft Apple radius */
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

/* Specific Button from Screenshot */
.btn-primary {
    background: #ffffff;
    color: #000000;
    border: none;
}

.btn-primary:hover {
    background: #eeeeee;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    display: inline-block;
}

@media (max-width: 992px) {
    .hero-title { font-size: 4.5rem; }
    .typing-container { font-size: 1.6rem; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 3.2rem; }
    .hero .subtitle { font-size: 1.1rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
}

/* Split-Pane Typography Layout */
.split-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
.split-left { position: sticky; top: 120px; }
.split-left .section-title { text-align: left; margin-bottom: 0; line-height: 1.1; font-size: 3rem; }

.timeline { display: flex; flex-direction: column; gap: 3rem; position: relative; }

/* The left side track line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.05) 100%);
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

/* Option C: Hover-Glow Glass Cards */
.timeline-item { position: relative; margin-bottom: 0; padding-left: 3rem; border: none; cursor: default; }

.timeline-dot {
    position: absolute;
    top: 40px; /* Align with the header roughly */
    left: -6px; /* center the 14px dot on the 2px line */
    width: 14px; height: 14px;
    background: #000;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    box-shadow: 0 0 0 4px #000, 0 0 10px rgba(255,255,255,0.5);
    z-index: 2;
}

.timeline-content { 
    position: relative;
    padding: 2.5rem; 
    background: var(--glass-bg); 
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border); 
    border-radius: 24px; 
    transition: all 0.5s ease;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Simulated 3D Spotlight Glow */
.timeline-content::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.06), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.timeline-content:hover { 
    border-color: rgba(255, 255, 255, 0.2); 
    transform: translateY(-4px); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.timeline-content:hover::after { opacity: 1; }

.timeline-header { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-bottom: 2rem; position: relative; z-index: 2; }

.role { font-size: 1.8rem; color: #fff; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.company { color: var(--text-main); font-size: 1.1rem; font-weight: 500; }
.date { font-size: 0.85rem; color: #fff; background: rgba(255,255,255,0.1); padding: 0.3rem 0.8rem; border-radius: 20px; font-weight: 500; margin-bottom: 0.5rem; }

.achievements { list-style: none; margin-bottom: 2rem; position: relative; z-index: 2; }
.achievements li { position: relative; padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text-main); font-size: 1.05rem; line-height: 1.7; }
.achievements li::before { content: '—'; position: absolute; left: 0; color: var(--text-main); font-weight: 500; }

.tags { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tag { 
    display: inline-block; 
    padding: 0.6rem 1.2rem; 
    background: rgba(255, 255, 255, 0.04); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 100px; 
    font-size: 0.9rem; 
    font-weight: 500; 
    color: var(--text-main); 
    transition: all 0.3s ease;
}
.tag:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Case Studies Grid */
.case-studies-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.case-card { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 2rem; border-radius: 16px; min-height: 250px; }
.case-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; font-weight: 500; }
.case-card p { font-size: 0.95rem; color: var(--text-secondary); }

/* Education Setup */
.education-row { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.edu-title { font-size: 1.25rem; font-weight: 500; margin-bottom: 0.25rem; }
.edu-degree { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }
.edu-right { text-align: right; }
.edu-date { display: block; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.4rem; }
.edu-grade { display: inline-block; padding: 0.2rem 0.6rem; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; font-size: 0.8rem; color: #fff; background: rgba(255,255,255,0.05); }

/* Skills & Toolkit Grid */
.skills-grid { 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 3rem;
}

.skill-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.skills-grid.appear .skill-column {
    opacity: 1;
    transform: translateY(0);
}

.skills-grid.appear .skill-column:nth-child(1) { transition-delay: 0.1s; }
.skills-grid.appear .skill-column:nth-child(2) { transition-delay: 0.2s; }
.skills-grid.appear .skill-column:nth-child(3) { transition-delay: 0.3s; }
.skills-grid.appear .skill-column:nth-child(4) { transition-delay: 0.4s; }
.skills-grid.appear .skill-column:nth-child(5) { transition-delay: 0.5s; }

.column-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.column-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 992px) {
    .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}

@media (max-width: 600px) {
    .skills-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Responsive Mixin */
@media (max-width: 992px) {
    .group-label { flex: 0 0 220px; }
}

@media (max-width: 768px) {
    .skill-group { flex-direction: column; gap: 1.5rem; padding: 2rem 0; }
    .group-label { flex: none; width: 100%; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 1rem; }
}

/* Modified Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
    margin-top: 4rem;
}

/* Removed duplicate hero styles to avoid conflicts */

.contact-left {
    text-align: left;
}

.contact-left h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.contact-desc { 
    max-width: 480px; 
    margin-bottom: 3.5rem; 
    color: var(--text-secondary); 
    font-size: 1.15rem;
    line-height: 1.7;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.4rem;
}

.info-value {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
}

/* Form Styles */
.contact-form-container {
    background: rgba(25, 25, 25, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 3.5rem;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-left: 0.2rem;
}

.form-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.1rem 1.4rem;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

textarea.form-input {
    min-height: 200px;
    resize: none;
    line-height: 1.6;
}

.btn-submit {
    margin-top: 1.5rem;
    padding: 1.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 16px;
    background: #666; /* Greyish like the reference */
    color: #fff;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #777;
    transform: translateY(-2px);
}

@media (max-width: 1100px) {
    .contact-grid { gap: 4rem; }
}

@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; gap: 5rem; }
    .contact-left { text-align: center; }
    .contact-desc { margin-left: auto; margin-right: auto; }
    .contact-info-list { align-items: center; }
    .contact-info-item { text-align: left; }
}

@media (max-width: 600px) {
    .contact-left h2 { font-size: 2.8rem; }
    .contact-form-container { padding: 2.5rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
}
/* Redesigned Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4rem;
}

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

.footer-left {
    text-align: left;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.footer-credits {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

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

.social-icon-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon-link:hover {
    color: var(--text-main);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-content { flex-direction: column; text-align: center; }
    .footer-left, .footer-right { text-align: center; align-items: center; }
}

/* Silky Animations */
.fade-in { opacity: 0; transform: translateY(15px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-in.appear { opacity: 1; transform: translateY(0); }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .nav-menu { gap: 1.5rem; }
    .hero-content, .resume-grid, .case-studies-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-title { font-size: 4rem; }
    .hero { padding-top: 8rem; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; } /* Hide center menu on mobile */
    .nav-container { padding: 0 1.5rem; }
    .hero-title { font-size: 3.2rem; }
    .typing-container { font-size: 1.5rem; }
    /* Split-Pane Mobile Adjustments */
    .split-layout { grid-template-columns: 1fr; gap: 2rem; }
    .split-left { position: relative; top: 0; margin-bottom: 2rem; }
    .split-left .section-title { font-size: 2.8rem; }
    .timeline-item { padding-left: 1.5rem; }
    .section { padding: 4rem 0; }
    .education-row { flex-direction: column; text-align: left; align-items: flex-start; gap: 1rem; }
    .edu-right { text-align: left; }
    
    .resume-capsule { flex-direction: column; text-align: center; gap: 1.5rem; padding: 1.5rem; border-radius: 30px; }
    .capsule-left { flex-direction: column; gap: 1rem; }
    
    /* Tech Specs Mobile Collapse */
    .spec-row { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
    .spec-left { flex: none; width: 100%; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 0.75rem; padding-right: 0; }
    .spec-right { width: 100%; }
}
