:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Light Theme (Porcelain & Royal Blue) */
    --bg-light: #f8f9fc;
    --surface-light: rgba(255, 255, 255, 0.85);
    --surface-light-solid: #ffffff;
    --text-primary-light: #1a1f36; 
    --text-secondary-light: #4f566b;
    --accent-primary-light: #4338ca; /* Indigo 700 */
    --accent-secondary-light: #6366f1; /* Indigo 500 */
    --border-light: rgba(26, 31, 54, 0.08);
    --shadow-light: 0 20px 40px -10px rgba(0,0,0,0.06);
    --nav-bg-light: rgba(255, 255, 255, 0.7);

    /* Dark Theme (Cosmic Deep & Neon) */
    --bg-dark: #030014; /* Deepest Void */
    --surface-dark: rgba(17, 25, 40, 0.75);
    --surface-dark-solid: #111928;
    --text-primary-dark: #f1f5f9;
    --text-secondary-dark: #94a3b8;
    --accent-primary-dark: #818cf8; /* Indigo 400 */
    --accent-secondary-dark: #c084fc; /* Purple 400 */
    --border-dark: rgba(255, 255, 255, 0.1);
    --shadow-dark: 0 20px 40px -10px rgba(0,0,0,0.6);
    --nav-bg-dark: rgba(3, 0, 20, 0.6);

    /* Default (Light) */
    --bg-color: var(--bg-light);
    --surface-color: var(--surface-light);
    --surface-solid: var(--surface-light-solid);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --accent-primary: var(--accent-primary-light);
    --accent-secondary: var(--accent-secondary-light);
    --border-color: var(--border-light);
    --shadow: var(--shadow-light);
    --nav-bg: var(--nav-bg-light);

    --gradient-text: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-primary: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --glass-border: 1px solid var(--border-color);
}

body.dark-mode {
    --bg-color: var(--bg-dark);
    --surface-color: var(--surface-dark);
    --surface-solid: var(--surface-dark-solid);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --accent-primary: var(--accent-primary-dark);
    --accent-secondary: var(--accent-secondary-dark);
    --border-color: var(--border-dark);
    --shadow: var(--shadow-dark);
    --nav-bg: var(--nav-bg-dark);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

p {
    text-align: justify;
}

/* Top Bar (Logo & Theme) */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(var(--bg-rgb), 0.9), transparent);
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.logo span {
    color: var(--accent-primary);
}

/* Bottom Navigation Dock */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    gap: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem;
    border-radius: 12px;
}

.nav-item i {
    font-size: 1.4rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item span.nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Active State */
.nav-item.active {
    color: var(--accent-primary);
}

.nav-item.active i {
    transform: translateY(-2px);
}

.nav-item.active span.nav-label {
    opacity: 1;
    height: auto;
    margin-top: 2px;
}

.nav-item:hover {
    color: var(--accent-primary);
}

body.dark-mode .bottom-nav {
    background: rgba(17, 25, 40, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Theme Switcher (Compact) */
.theme-switcher {
    position: relative;
    width: 44px;
    height: 24px;
}

#theme-toggle {
    display: none;
}

#theme-toggle + label {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 24px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--border-color); /* Subtle track */
}

#theme-toggle + label::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

#theme-toggle:checked + label {
    background: var(--accent-primary); /* Active track */
}

#theme-toggle:checked + label::after {
    transform: translateX(20px);
}

/* Premium Buttons */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border-radius: 30px; /* Pill shape */
    padding: 0.8rem 2rem;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
    font-weight: 600;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.6);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
    padding: 0.7rem 1.8rem;
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--surface-color);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Section Refinements */
section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

h1 {
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-subtitle {
    display: inline-block;
    border: 1px solid var(--accent-primary);
    background: transparent;
    color: var(--accent-primary);
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-header.left-align { text-align: left; }

/* Gradient Text for Headings */
h1, h2 {
    background: linear-gradient(to right, var(--text-primary), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--text-primary);
}

/* Background Glare Effects */
.bg-gradient-orb { 
    position: fixed;
    border-radius: 50%;
    filter: blur(80px); /* Tighter blur */
    z-index: -1;
    opacity: 0.3 !important; 
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.orb-1 { 
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%); 
    top: -200px; right: -200px;
    animation: float-orb 20s infinite alternate;
}

.orb-2 { 
    width: 700px; height: 700px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%); 
    bottom: -200px; left: -200px;
    animation: float-orb 25s infinite alternate-reverse;
}

@keyframes float-orb {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.grid-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    opacity: 0.15; /* More subtle */
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%); /* Spotlight effect */
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

/* Hero Section */
#home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 6rem;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-links-hero {
    display: flex;
    gap: 1.5rem;
}

.social-links-hero a {
    color: var(--text-secondary);
    font-size: 1.4rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links-hero a:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.image-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.image-wrapper img {
    width: 100%;
    border-radius: 40px; /* Modern rounding */
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
    border: 4px solid var(--surface-solid); /* Frame effect */
}

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

.floating-badge {
    position: absolute;
    background: var(--surface-color);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    z-index: 10;
    backdrop-filter: blur(10px);
    animation: float 4s ease-in-out infinite;
}

.badge-1 { top: 30px; left: -30px; animation-delay: 0s; }
.badge-2 { bottom: 50px; right: -20px; animation-delay: 2s; }
.badge-1 i { color: #3b82f6; } 
.badge-2 i { color: #f43f5e; } 

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-down a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    gap: 0.5rem;
    text-decoration: none;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-primary); /* Higher contrast */
    border-radius: 13px;
    display: block;
    position: relative;
}

.wheel {
    width: 4px;
    height: 4px;
    background: var(--text-primary);
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-img-wrapper img {
    width: 100%;
    border-radius: 30px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    box-shadow: var(--shadow);
}

.about-img-wrapper:hover img { filter: grayscale(0%); }

.about-content h3 { color: var(--text-primary); margin-bottom: 1.5rem; font-size: 2rem; }
.about-text { margin-bottom: 2.5rem; }

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

.stat-item {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-item:hover { transform: translateY(-5px); border-color: var(--accent-primary); }

.stat-number { display: block; font-size: 2.5rem; font-weight: 700; color: var(--accent-primary); margin-bottom: 0.5rem; }
.stat-label { color: var(--text-secondary); font-size: 0.95rem; }

/* Skills Section */
.skills-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }

.skill-card {
    background: var(--surface-color);
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2); /* Custom glow */
}

.skill-icon { font-size: 2.5rem; margin-bottom: 1rem; color: var(--accent-primary); }
.skill-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.skill-card p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0; }

/* Hidden Skills Animation */
.hidden-skill {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

.hidden-skill.show {
    display: block;
    animation: fadeInScale 0.5s ease forwards;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#skills-btn-icon {
    transition: transform 0.3s ease;
}

/* Experience Section - Timeline */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 2px; background: var(--border-color); top: 0; bottom: 0; left: 50%; margin-left: -1px; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; box-sizing: border-box; }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

.timeline-item::after {
    content: ''; position: absolute; width: 16px; height: 16px; right: -8px; 
    background: var(--surface-solid); border: 2px solid var(--accent-primary); 
    top: 28px; border-radius: 50%; z-index: 1; transition: background 0.3s ease;
}
.timeline-item.right::after { left: -8px; }

.timeline-content {
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.timeline-content:hover { transform: translateY(-5px); border-color: var(--accent-primary); }
.timeline-item.left .timeline-content { margin-right: 0; }
.timeline-content h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.timeline-content .date { display: inline-block; color: var(--accent-primary); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; }
.organization { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); margin-bottom: 1rem; font-weight: 500; justify-content: flex-end; }
.timeline-item.right .organization { justify-content: flex-start; }

/* Mobile Truncation */
.exp-desc-desktop { display: block; }
.exp-desc-mobile { display: none; }

.see-more, .see-less {
    color: var(--accent-primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Projects Section */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3rem; }

.project-card {
    background: var(--surface-color);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    backdrop-filter: blur(10px);
}

.project-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px -5px rgba(0,0,0,0.2); }

.project-image { position: relative; height: 240px; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-image img { transform: scale(1.1); }

.project-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 0, 20, 0.5); /* Matching dark theme */
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}
.project-card:hover .project-overlay { opacity: 1; }

.project-links { display: flex; gap: 1rem; }
.project-links a {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--surface-light-solid); color: var(--text-primary-light);
    display: flex; justify-content: center; align-items: center;
    font-size: 1.2rem; transition: all 0.3s ease;
    border: none;
}
.project-links a:hover { background: var(--accent-primary); color: white; transform: scale(1.1); }

.project-info { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.project-info h3 { margin-bottom: 0.75rem; }
.project-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 1.5rem; }
.project-tags span {
    font-size: 0.8rem; padding: 0.3rem 0.8rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary); border-radius: 20px; font-weight: 500;
}

/* Contact Section */
.contact-container {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem;
    background: var(--surface-color);
    padding: 4rem; border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    margin-bottom: 50px; /* Space for dock */
}

.contact-methods { display: grid; gap: 2rem; margin-top: 3rem; }
.contact-method { display: flex; align-items: center; gap: 1.5rem; }

.contact-method .icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem;
}

.contact-method .details span { display: block; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.3rem; }
.contact-method .details a, .contact-method .details p { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); text-decoration: none; }

.form-group { position: relative; margin-bottom: 2rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 1rem 0; font-size: 1rem; color: var(--text-primary);
    background: transparent; border: none; border-bottom: 2px solid var(--border-color);
    outline: none; transition: all 0.3s ease; font-family: var(--font-body);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group label {
    position: absolute; top: 1rem; left: 0; font-size: 1rem; color: var(--text-secondary);
    pointer-events: none; transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group input:not(:placeholder-shown), .form-group textarea:not(:placeholder-shown) { border-color: var(--accent-primary); }
.form-group input:focus + label, .form-group textarea:focus + label, .form-group input:not(:placeholder-shown) + label, .form-group textarea:not(:placeholder-shown) + label { top: -1.2rem; font-size: 0.85rem; color: var(--accent-primary); }
.submit-btn { width: 100%; justify-content: center; margin-top: 1rem; }

/* Footer */
footer {
    background: var(--surface-color);
    padding: 3rem 2rem 5rem; /* Extra padding for bottom dock */
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
}
.footer-content { max-width: 1200px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer-logo { font-size: 1.8rem; font-weight: 700; font-family: var(--font-heading); }
.footer-logo span { color: var(--accent-primary); }
.footer-socials { display: flex; gap: 1.5rem; }
.footer-socials a { color: var(--text-secondary); font-size: 1.2rem; transition: color 0.3s ease; }
.footer-socials a:hover { color: var(--accent-primary); }

/* Animation Objects (Restored + Tweaked) */
.floating-skulls, .floating-elegance { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.floating-skulls { opacity: 0; transition: opacity 0.5s; }
body.dark-mode .floating-skulls { opacity: 1; }
body:not(.dark-mode) .floating-elegance { opacity: 1; }
.floating-elegance { opacity: 0; transition: opacity 0.5s; }

.skull, .butterfly, .sparkle { position: absolute; }
.skull { font-size: 2rem; color: rgba(129, 140, 248, 0.2); animation: float 6s ease-in-out infinite; } /* More tech-ghost color */
.butterfly { font-size: 1.5rem; color: rgba(67, 56, 202, 0.25); animation: flutter 8s ease-in-out infinite; filter: drop-shadow(0 0 12px rgba(67, 56, 202, 0.2)); }
.sparkle { font-size: 1rem; color: rgba(236, 72, 153, 0.6); animation: sparkle 4s ease-in-out infinite; }

@keyframes flutter {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); opacity: 0.4; }
    25% { transform: translateY(-15px) translateX(10px) rotate(5deg); opacity: 0.7; }
    50% { transform: translateY(-8px) translateX(-5px) rotate(-3deg); opacity: 0.4; }
}

@keyframes sparkle {
    0%, 100% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1); opacity: 0.8; }
}

/* Curtain Transitions */
.theme-transition { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.theme-transition.active { opacity: 1; }
.curtain-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9998; pointer-events: none; }
.curtain-left, .curtain-right { position: absolute; top: 0; width: 50%; height: 100%; background: #1e293b; transition: transform 0.8s cubic-bezier(0.8, 0, 0.2, 1); transform: scaleX(0); }
.curtain-left { left: 0; transform-origin: left; }
.curtain-right { right: 0; transform-origin: right; }
.curtain-container.active .curtain-left, .curtain-container.active .curtain-right { transform: scaleX(1); }
.curtain-container.closing .curtain-left { transform-origin: right; transform: scaleX(0); }
.curtain-container.closing .curtain-right { transform-origin: left; transform: scaleX(0); }
.curtain-content { position: absolute; top: 50%; transform: translateY(-50%); font-size: 5rem; opacity: 0; transition: opacity 0.3s 0.4s; }
.curtain-left .curtain-content { right: 20%; }
.curtain-right .curtain-content { left: 20%; }
.curtain-container.active .curtain-content { opacity: 1; }

.light-curtain { background: #f8f9fc !important; color: var(--accent-primary-light); }
.dark-curtain { background: #030014 !important; color: var(--accent-primary-dark); }

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-container .hero-actions { justify-content: center; }
    .hero-container .hero-description { margin: 0 auto 2.5rem; }
    .hero-container .social-links-hero { justify-content: center; }
    .hero-visual { margin-top: 3rem; }
    
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::after { left: 21px; }
    .timeline-item.left { left: 0; text-align: left; }
    .timeline-item.right { left: 0; }
    .timeline-item.left .timeline-content { margin-right: 0; }
    .organization { justify-content: flex-start; }
    
    .contact-container { grid-template-columns: 1fr; padding: 2rem; }
    h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .about-container { grid-template-columns: 1fr; text-align: center; }
    .about-content h3 { font-size: 1.5rem; }
    .stats-grid { gap: 1rem; }
    
    /* Toggle Mobile truncations */
    .exp-desc-desktop { display: none; }
    .exp-desc-mobile { display: block; }
}

/* Animation Position Restoration */
.skull:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; animation-duration: 8s; }
.skull:nth-child(2) { top: 20%; right: 15%; animation-delay: 2s; animation-duration: 10s; }
.skull:nth-child(3) { top: 60%; left: 5%; animation-delay: 4s; animation-duration: 7s; }
.skull:nth-child(4) { top: 40%; right: 10%; animation-delay: 1s; animation-duration: 9s; }
.skull:nth-child(5) { top: 80%; left: 20%; animation-delay: 3s; animation-duration: 6s; }
.skull:nth-child(6) { top: 15%; left: 50%; animation-delay: 5s; animation-duration: 11s; }
.skull:nth-child(7) { top: 70%; right: 25%; animation-delay: 2.5s; animation-duration: 8.5s; }
.skull:nth-child(8) { top: 90%; left: 60%; animation-delay: 1.5s; animation-duration: 7.5s; }

.butterfly:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; animation-duration: 12s; }
.butterfly:nth-child(2) { top: 25%; right: 12%; animation-delay: 3s; animation-duration: 10s; }
.butterfly:nth-child(3) { top: 65%; left: 3%; animation-delay: 6s; animation-duration: 14s; }
.butterfly:nth-child(4) { top: 45%; right: 8%; animation-delay: 2s; animation-duration: 11s; }
.butterfly:nth-child(5) { top: 85%; left: 15%; animation-delay: 4s; animation-duration: 9s; }

.sparkle:nth-child(6) { top: 20%; left: 45%; animation-delay: 1s; animation-duration: 6s; }
.sparkle:nth-child(7) { top: 75%; right: 20%; animation-delay: 3.5s; animation-duration: 5s; }
.sparkle:nth-child(8) { top: 35%; left: 70%; animation-delay: 2.5s; animation-duration: 7s; }
.sparkle:nth-child(9) { top: 90%; left: 55%; animation-delay: 1.5s; animation-duration: 8.5s; }
.sparkle:nth-child(10) { top: 10%; left: 80%; animation-delay: 4.5s; animation-duration: 6.5s; }
.sparkle:nth-child(11) { top: 60%; right: 35%; animation-delay: 0.5s; animation-duration: 9.5s; }
.sparkle:nth-child(12) { top: 80%; right: 5%; animation-delay: 5.5s; animation-duration: 7.5s; }
/* Blog Section */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.blog-card {
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.15);
    border-color: var(--accent-primary);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.blog-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-primary);
    padding: 8px 12px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-weight: 700;
}

body.dark-mode .blog-date-badge {
    background: rgba(30, 41, 59, 0.9);
    color: var(--accent-primary);
}

.blog-date-badge .day { font-size: 1.2rem; }
.blog-date-badge .month { font-size: 0.8rem; text-transform: uppercase; }

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 0.8rem;
}

.blog-content h3 {
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.blog-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: var(--accent-primary);
}

.blog-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more-btn {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more-btn:hover {
    gap: 0.8rem;
}

/* Contact Form Mobile Fixes */
@media (max-width: 600px) {
    .contact-container {
        padding: 1.5rem;
        gap: 3rem;
    }
    
    .contact-form-wrapper {
        width: 100%;
    }
    
    .form-group input, .form-group textarea {
        font-size: 16px; /* Prevent zooming on iOS */
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    /* Ensure content stacks properly without overflow */
    .contact-method {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .contact-method .icon {
        min-width: 50px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-method .details a, .contact-method .details p {
        font-size: 1rem;
        word-break: break-all; /* Prevent email/url overflow */
    }
    
    /* Bottom Navigation Mobile Optimization */
    .bottom-nav {
        padding: 0.6rem 1rem;
        max-width: 95%;
    }
    
    .nav-item {
        padding: 0.4rem 0.3rem;
        gap: 3px;
    }
    
    .nav-item i {
        font-size: 1.1rem;
    }
    
    .nav-item span.nav-label {
        font-size: 0.6rem;
    }
    
    .nav-item.active span.nav-label {
        margin-top: 1px;
    }
    
    /* Contact Section Text Size Optimization */
    #contact .section-header h2 {
        font-size: 1.8rem;
    }
    
    #contact .section-subtitle {
        font-size: 0.7rem;
        padding: 0.3rem 1rem;
    }
    
    #contact .contact-info p {
        font-size: 0.9rem;
    }
    
    .contact-methods {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .contact-method .details span {
        font-size: 0.75rem;
    }
    
    .contact-method .details a,
    .contact-method .details p {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.8rem 0;
    }
    
    .form-group label {
        font-size: 0.9rem;
        top: 0.8rem;
    }
    
    .form-group input:focus + label,
    .form-group textarea:focus + label,
    .form-group input:not(:placeholder-shown) + label,
    .form-group textarea:not(:placeholder-shown) + label {
        font-size: 0.75rem;
    }
    
    .submit-btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
    }
}
