@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

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

:root {
    --base-font-size: 16px;
    --primary: #0a0a0a;
    --secondary: #1a1a1a;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #666666;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.15);
    
    /* Theme specific variables */
    --navbar-bg: rgba(10, 10, 10, 0.95);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --btn-secondary-border: rgba(255, 255, 255, 0.2);
    --hero-title-gradient: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%);
    --section-highlight-bg: rgba(255, 255, 255, 0.02);
    --accent-bg: rgba(59, 130, 246, 0.1);
    --purple-bg: rgba(168, 85, 247, 0.1);
    --purple-text: #a855f7;
}

[data-theme="light"] {
    --primary: #ffffff;
    --secondary: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.98);
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --btn-secondary-border: #e5e7eb;
    --hero-title-gradient: linear-gradient(135deg, #111827 0%, #4b5563 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --section-highlight-bg: #f9fafb;
    --accent-bg: rgba(59, 130, 246, 0.1);
    --purple-bg: rgba(168, 85, 247, 0.1);
    --purple-text: #a855f7;
}

/* Theme Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.theme-switch {
    display: inline-block;
    height: 40px;
    position: relative;
    width: 80px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #1a1a1a; /* Night Sky */
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border: 2px solid var(--card-border);
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.slider.round {
    border-radius: 40px;
}

/* The Knob */
.knob {
    background-color: #fff;
    bottom: 3px;
    height: 30px;
    left: 4px;
    position: absolute;
    transition: .4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy effect */
    width: 30px;
    z-index: 2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Icons inside the knob */
.knob i {
    position: absolute;
    font-size: 18px;
    transition: all 0.4s ease;
}

/* Default State (Dark/Moon) */
.knob .fa-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
    color: #f39c12;
}

.knob .fa-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #34495e;
}

/* Checked State (Light/Sun) */
input:checked + .slider {
    background-color: #87CEEB; /* Day Sky */
    border-color: #87CEEB;
}

input:checked + .slider .knob {
    transform: translateX(40px);
    background-color: #FFD700; /* Sun Yellow */
    box-shadow: 0 0 15px #FFD700;
}

input:checked + .slider .knob .fa-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #fff;
}

input:checked + .slider .knob .fa-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

/* Decorative Background Elements (Stars/Clouds) could be added here */
/* For now, just the dramatic color/icon shift */

@media (max-width: 768px) {
    .theme-switch-wrapper {
        margin-left: auto;
        margin-right: 1rem;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: var(--base-font-size);
    background: var(--primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--navbar-bg-scrolled);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    margin-right: auto;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.page-section {
    /* display: none; Removed because we are doing separate pages */
    min-height: calc(100vh - 80px);
    padding: 2rem;
    display: block; /* Force block for separate pages */
    animation: fadeIn 0.5s ease;
}

/* .page-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
} */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2; /* Ensure content stays on top */
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual .card {
    position: absolute;
    width: 280px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05); /* Ensure transparency for glass effect */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

[data-theme="light"] .hero-visual .card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Card 1: Top Right */
.hero-visual .card:nth-child(1) {
    top: 5%;
    right: 5%;
    animation-delay: 0s;
}

/* Card 2: Center Left */
.hero-visual .card:nth-child(2) {
    top: 35%;
    left: 5%;
    animation-delay: 1.5s;
    z-index: 2;
}

/* Card 3: Bottom Right */
.hero-visual .card:nth-child(3) {
    bottom: 5%;
    right: 15%;
    animation-delay: 3s;
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-1);
    color: var(--primary);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border: 2px solid var(--btn-secondary-border);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

/* Cards */
/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); /* Elegant easing */
    filter: blur(5px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Staggered delays for grids */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Enhanced Hover Effects */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy elegant feel */
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

/* Card Glow Effect */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    box-shadow: 0 0 20px var(--accent-bg);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.card:hover::after {
    opacity: 1;
}

/* Hero Title Animation */
.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Pulse Effect on Hover */
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.card-expandable {
    position: relative;
}

.card-preview {
    transition: all 0.3s ease;
}

.card-expanded {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
}

.card-expandable.expanded .card-expanded {
    max-height: 1000px; /* Increased max-height to ensure content fits */
    opacity: 1;
    padding-top: 1rem;
}

/* Grids */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Section Titles */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-1);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--card-border);
    width: 45%;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 3px solid var(--primary);
}

/* Project/Blog/Knowledge Cards */
.item-header {
    height: 180px;
    background: var(--gradient-1);
    position: relative;
    margin: -1rem -1rem 1rem -1rem;
    border-radius: 15px 15px 0 0;
}

.item-content {
    padding: 1.5rem;
}

.item-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.item-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.item-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.p-4 { padding: 2rem; }

/* Section Containers */
.section-container {
    padding: 4rem 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.section-container.highlight {
    background: var(--section-highlight-bg);
    border-radius: 30px;
    margin: 2rem auto;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating { animation: float 6s ease-in-out infinite; }

/* Responsive */
@media (max-width: 768px) {
    /* Navigation */
    .menu-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--navbar-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-container { padding: 1rem; }

    /* Typography */
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; margin-bottom: 2rem; }
    
    /* Layout & Spacing */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        min-height: auto; /* Allow height to adjust */
        padding-top: 6rem; /* Account for fixed header */
    }

    .hero-visual {
        height: auto;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        margin-top: 3rem;
    }

    .hero-visual .card {
        position: static;
        width: 100%;
        max-width: 350px;
    }

    .hero-visual .card:nth-child(n) {
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }

    .section-container {
        padding: 2rem 1rem !important;
    }

    .section-container.highlight {
        margin: 1rem 0;
        border-radius: 20px;
    }

    .page-section {
        padding: 2rem 1rem;
    }

    .grid { grid-template-columns: 1fr; }
    
    /* Timeline Fixes */
    .timeline::before { left: 15px; }
    .timeline-item { flex-direction: column !important; align-items: flex-start; }
    
    .timeline-content { 
        width: calc(100% - 40px); 
        margin-left: 40px; 
        padding: 1.5rem; /* Reduce padding inside card */
    }
    
    .timeline-dot { left: 15px; }

    /* Card adjustments */
    .card { padding: 1.5rem !important; }
}

/* Particle styles */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    animation: twinkle 4s infinite ease-in-out;
}
@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* Mobile Horizontal Scroll Utilities */
@media (max-width: 768px) {
    .mobile-scroll-x {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE */
        grid-template-columns: none !important; /* Override grid */
        flex-wrap: nowrap !important; /* Prevent wrapping */
    }
    
    .mobile-scroll-x::-webkit-scrollbar {
        display: none;
    }

    .mobile-scroll-x > * {
        flex: 0 0 85%;
        width: 85%;
        min-width: 280px;
        scroll-snap-align: center;
        margin-bottom: 0 !important; /* Remove bottom margin if any */
    }

    /* Smaller items variant (e.g., Skills) */
    .mobile-scroll-x.small-items > * {
        flex: 0 0 200px;
        width: 200px;
        min-width: auto;
    }
    
    /* Spacer for end of list to allow scrolling past last item */
    .mobile-scroll-x::after {
        content: '';
        flex: 0 0 1rem; 
        min-width: 1rem;
    }
}

/* Elegant Google Translate Dropdown */
.translate-container {
    margin-top: 0.5rem;
}

.goog-te-gadget-simple {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    color: var(--text-primary) !important;
}

.goog-te-gadget-simple:hover {
    border-color: var(--accent) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.goog-te-gadget-simple span {
    color: var(--text-primary) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
}

.goog-te-gadget-simple img {
    display: none !important; /* Hide Google icon for cleaner look */
}

.goog-te-gadget-simple a {
    text-decoration: none !important;
}

/* Ensure Google Translate Dropdown is Visible */
/* MOVED TO translate_styles.css */


/* Hide duplicate/unwanted Google elements */
.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
}

.goog-tooltip,
.goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
}

body {
    top: 0 !important;
}

.resume-builder-hero {
    min-height: auto;
    padding: 3rem 2rem 1rem;
}

.resume-builder-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.resume-builder-panel {
    position: sticky;
    top: 110px;
    cursor: default;
}

.resume-builder-panel:hover {
    transform: none;
}

.resume-builder-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.resume-builder-note {
    margin-bottom: 1rem;
    cursor: default;
}

.resume-builder-note:hover {
    transform: none;
}

.resume-builder-status {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.resume-preview-shell {
    min-width: 0;
}

.resume-preview-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.resume-preview-stage {
    display: flex;
    justify-content: center;
}

.resume-document {
    width: 100%;
    max-width: 850px;
    min-height: 1100px;
    background: #ffffff;
    color: #111827;
    border-radius: 0;
    padding: 1.4rem 2rem 1.6rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    border: 1px solid #3f3f46;
    cursor: text;
    line-height: 1.25;
    font-family: Georgia, "Times New Roman", serif;
}

.resume-document:focus {
    outline: 3px solid rgba(59, 130, 246, 0.18);
}

.resume-header {
    border-bottom: 1px solid #3f3f46;
    padding-bottom: 0.3rem;
    margin-bottom: 0.7rem;
    text-align: center;
}

.resume-header h1 {
    font-size: 2.1rem;
    line-height: 1;
    margin-bottom: 0.1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.resume-role {
    font-weight: 600;
    margin-bottom: 0.12rem;
    line-height: 1.2;
    font-size: 0.88rem;
    font-family: Arial, Helvetica, sans-serif;
}

.resume-contact {
    font-size: 0.82rem;
    color: #111827;
    margin: 0;
    line-height: 1.15;
    font-family: Arial, Helvetica, sans-serif;
}

.resume-contact a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.resume-section {
    margin-bottom: 0.65rem;
}

.resume-section h2 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #3f3f46;
    padding-bottom: 0.08rem;
    margin-bottom: 0.18rem;
    font-variant: small-caps;
    font-weight: 500;
}

.resume-section p {
    margin-bottom: 0.08rem;
}

.resume-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}

.resume-row h3 {
    font-size: 0.98rem;
    margin: 0;
    font-weight: 700;
}

.resume-row span {
    font-size: 0.92rem;
    color: #111827;
    white-space: nowrap;
}

.resume-subrow p {
    color: #111827;
    font-size: 0.9rem;
    font-style: italic;
}

.resume-job,
.resume-project,
.resume-education {
    margin-bottom: 0.42rem;
}

.resume-education-list {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.resume-education {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.22rem;
}

.resume-education-main {
    flex: 1;
    min-width: 0;
}

.resume-education p {
    margin: 0;
}

.resume-education p + p {
    margin-top: 0;
}

.resume-education-meta {
    color: #111827;
    font-size: 0.84rem;
    text-align: right;
    flex-shrink: 0;
    line-height: 1.05;
    font-style: italic;
}

.education-entry {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.education-entry:last-child {
    margin-bottom: 0;
}

.education-entry-main {
    flex: 1;
    min-width: 0;
}

.education-entry-main p,
.education-entry-meta p {
    margin: 0;
}

.education-entry-main p + p,
.education-entry-meta p + p {
    margin-top: 0.2rem;
}

.education-entry-main p:last-child,
.education-entry-meta p:last-child {
    color: var(--text-secondary);
}

.education-entry-meta {
    text-align: right;
    flex-shrink: 0;
}

.resume-job-summary,
.resume-project-tech {
    margin-top: 0.08rem;
}

.resume-list {
    list-style: none;
    padding-left: 1.05rem;
    margin: 0.08rem 0 0;
}

.resume-list li {
    margin-bottom: 0.12rem;
    position: relative;
}

.resume-section:last-child .resume-list {
    margin-top: 0.02rem;
}

.resume-section:last-child .resume-list li {
    margin-bottom: 0.05rem;
    line-height: 1.08;
}

.resume-list li::before {
    content: "-";
    position: absolute;
    left: -0.8rem;
}

.resume-list.compact li {
    margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
    .resume-builder-layout {
        grid-template-columns: 1fr;
    }

    .resume-builder-panel {
        position: static;
    }

    .resume-education,
    .education-entry {
        flex-direction: column;
    }

    .resume-education-meta,
    .education-entry-meta {
        text-align: left;
    }

    .resume-preview-toolbar {
        flex-direction: column;
    }

    .resume-document {
        padding: 1.5rem;
        min-height: auto;
    }

    .resume-row {
        flex-direction: column;
        gap: 0.2rem;
    }

    .resume-row span {
        white-space: normal;
    }
}

@media print {
    @page {
        size: A4;
        margin: 12mm;
    }

    html,
    body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .navbar,
    #footer-placeholder,
    .no-print,
    .skip-link,
    .resume-builder-hero,
    .theme-switch-wrapper,
    .particle {
        display: none !important;
    }

    .main-content,
    .page-section,
    .section-container,
    .resume-preview-stage {
        margin: 0 !important;
        padding: 0 !important;
        min-height: auto !important;
        max-width: none !important;
    }

    .resume-preview-shell {
        width: 100% !important;
    }

    .resume-preview-stage {
        display: block !important;
    }

    .resume-document {
        width: 100% !important;
        max-width: 186mm !important;
        min-height: auto;
        margin: 0 auto !important;
        border: 1px solid #d1d5db !important;
        border-radius: 20px !important;
        box-shadow: none !important;
        padding: 12mm !important;
        background: #ffffff !important;
        color: #111827 !important;
        page-break-inside: auto;
    }

    .resume-section,
    .resume-job,
    .resume-project {
        break-inside: auto;
    }

    .resume-header,
    .resume-section h2,
    .resume-contact,
    .resume-row span,
    .resume-subrow p {
        color: inherit !important;
    }
}


/* Accessibility Panel */

.a11y-toggle {

    background: transparent;

    border: none;

    color: var(--text-primary);

    cursor: pointer;

    font-size: 1.2rem;

    margin-left: 1rem;

    padding: 0.5rem;

    border-radius: 50%;

    transition: all 0.3s ease;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 40px;

    height: 40px;

}



.a11y-toggle:hover, .a11y-toggle:focus {

    background: rgba(128, 128, 128, 0.1);

    color: var(--accent);

}



.a11y-panel {

    position: absolute;

    top: 70px;

    right: 2rem;

    background: var(--navbar-bg);

    backdrop-filter: blur(20px);

    border: 1px solid var(--card-border);

    border-radius: 15px;

    padding: 1.5rem;

    width: 300px;

    box-shadow: var(--shadow-hover);

    opacity: 0;

    visibility: hidden;

    transform: translateY(-10px);

    transition: all 0.3s ease;

    z-index: 1001;

}



.a11y-panel.active {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}



.a11y-panel h3 {

    font-size: 1.1rem;

    margin-bottom: 1rem;

    border-bottom: 1px solid var(--card-border);

    padding-bottom: 0.5rem;

    color: var(--text-primary);

}



.a11y-controls {

    display: flex;

    flex-direction: column;

    gap: 1.5rem;

}



.font-controls {

    display: flex;

    gap: 0.5rem;

    justify-content: space-between;

}



.font-btn {

    flex: 1;

    padding: 0.5rem;

    background: var(--card-bg);

    border: 1px solid var(--card-border);

    color: var(--text-primary);

    border-radius: 8px;

    cursor: pointer;

    transition: all 0.2s ease;

    font-weight: 600;

}



.font-btn:hover, .font-btn:focus {

    border-color: var(--accent);

    color: var(--accent);

}



.font-btn.active {

    background: var(--accent);

    color: white;

    border-color: var(--accent);

}



/* Google Translate Styling */

.goog-te-gadget-simple {

    background-color: var(--card-bg) !important;

    border: 1px solid var(--card-border) !important;

    padding: 0.5rem !important;

    border-radius: 8px !important;

    font-size: 0.9rem !important;

    line-height: 2rem !important;

    display: block !important;

    width: 100% !important;

    color: var(--text-primary) !important;

}



.goog-te-gadget-simple a {

    color: var(--text-primary) !important;

    text-decoration: none !important;

}



.goog-te-gadget-simple img {

    display: none !important; /* Hide Google Logo if possible for cleaner look, or just style around it */

}



/* WCAG Focus Indicators */

:focus-visible {

    outline: 2px solid var(--accent);

    outline-offset: 2px;

}



/* Skip Link */
.skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0 0 10px 10px;
    font-weight: 600;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    outline: none;
    backdrop-filter: blur(10px);
}

.skip-link:focus {
    top: 0;
    outline: 2px solid white;
    outline-offset: -4px;
}



@media (max-width: 768px) {

    .a11y-toggle {

        margin-left: 0.5rem;

    }

    

    .a11y-panel {

        right: 1rem;

        left: 1rem;

        width: auto;

    }

}



/* ==================== ACCESSIBILITY FEATURES ==================== */



/* Trigger Button */

.a11y-btn {

    background: transparent;

    border: none;

    color: var(--text-primary);

    font-size: 1.2rem;

    cursor: pointer;

    width: 40px;

    height: 40px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.3s ease;

    margin-left: 0.5rem;

    position: relative;

    z-index: 1002;

}



.a11y-btn:hover, .a11y-btn.active {

    background: var(--card-bg);

    color: var(--accent);

    box-shadow: 0 0 15px var(--accent-bg);

}



/* Glassmorphism Panel */

.a11y-panel {

    position: absolute;

    top: 70px;

    right: 2rem;

    width: 300px;

    background: rgba(10, 10, 10, 0.85); /* Darker base for better readability */

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border: 1px solid var(--card-border);

    border-radius: 16px;

    padding: 1.5rem;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);

    z-index: 1001;

    opacity: 0;

    visibility: hidden;

    transform: translateY(-10px);

    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

}



[data-theme="light"] .a11y-panel {

    background: rgba(255, 255, 255, 0.85);

}



.a11y-panel.open {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}



.a11y-panel h3 {

    font-size: 0.9rem;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: var(--text-muted);

    margin-bottom: 1rem;

    font-weight: 600;

}



/* Font Controls */

.font-controls {

    display: flex;

    gap: 0.5rem;

    margin-bottom: 1.5rem;

    background: var(--card-bg);

    padding: 0.5rem;

    border-radius: 12px;

    border: 1px solid var(--card-border);

}



.font-btn {

    flex: 1;

    background: transparent;

    border: none;

    color: var(--text-primary);

    padding: 0.5rem;

    border-radius: 8px;

    cursor: pointer;

    font-weight: 600;

    transition: all 0.2s ease;

    display: flex;

    align-items: center;

    justify-content: center;

}



.font-btn:hover {

    background: var(--accent-bg);

    color: var(--accent);

}



.font-btn:active {

    transform: scale(0.95);

}



/* Google Translate Overrides - Making it Elegant */

.translate-container {

    background: var(--card-bg);

    padding: 0.5rem;

    border-radius: 12px;

    border: 1px solid var(--card-border);

    overflow: hidden;

}



/* Hide Google's ugly top banner */

body > .skiptranslate {

    display: none !important;

}

body {

    top: 0 !important;

}



/* Style the Google dropdown */

.goog-te-gadget {

    font-family: 'Inter', sans-serif !important;

    color: var(--text-secondary) !important;

}



.goog-te-gadget-simple {

    background-color: transparent !important;

    border: none !important;

    padding: 0 !important;

    font-size: 0.9rem !important;

    display: flex !important;

    align-items: center !important;

    width: 100% !important;

}



.goog-te-gadget-simple img {

    display: none !important; /* Hide Google icon */

}



.goog-te-gadget-simple span {

    color: var(--text-primary) !important;

}



/* WCAG Focus Indicators - Elegant Glow */

:focus-visible {

    outline: none;

    box-shadow: 0 0 0 2px var(--accent), 0 0 15px var(--accent-bg);

    border-radius: 4px;

}



/* Screen Reader Only */

.sr-only {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;

}






/* ====================
   Accessibility Styles
   ==================== */

.a11y-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    position: relative;
    z-index: 1002;
}

.a11y-toggle:hover, .a11y-toggle:focus {
    background: rgba(128, 128, 128, 0.1);
    color: var(--accent);
}

.a11y-panel {
    position: absolute;
    top: 70px;
    right: 2rem;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    width: 300px;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

[data-theme="light"] .a11y-panel {
    background: rgba(255, 255, 255, 0.9);
}

.a11y-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.a11y-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
    color: var(--text-primary);
}

.a11y-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Elegant Segmented Control for Fonts */
.font-controls {
    display: flex;
    background: var(--card-bg);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    gap: 0;
}

.font-btn {
    flex: 1;
    padding: 0.6rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.font-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

/* Elegant Google Translate Dropdown */
.translate-container {
    margin-top: 0.5rem;
    position: relative;
    z-index: 1002;
}

.goog-te-gadget-simple {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
}

.goog-te-gadget-simple:hover {
    border-color: var(--accent) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.goog-te-gadget-simple span {
    color: var(--text-primary) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
}

.goog-te-gadget-simple img {
    display: none !important;
}

.goog-te-gadget-simple a {
    text-decoration: none !important;
    color: var(--text-primary) !important;
}

/* Ensure Google Translate Menu is visible and on top */
.goog-te-menu-frame {
    z-index: 10000 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    border-radius: 12px !important;
}

.goog-te-menu2 {
    background: var(--navbar-bg) !important;
    border: 1px solid var(--card-border) !important;
}

.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}
