:root {
    /* Default Dark Mode */
    --bg-color: #0a0a0a;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);

    --accent-tech: #00ffc8;
    --accent-art: #ff9e64;

    --font-heading: "Cormorant Garamond", serif;
    --font-body: "Outfit", sans-serif;
    --transition-slow: .6s cubic-bezier(.22, 1, .36, 1);
    --transition-fast: .3s ease;
}

/* Light Mode Overrides */
body.light-mode {
    --bg-color: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --card-bg: #ffffff;
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-bg: #ffffff;

    /* Light mode specific accent adjustments */
    --accent-tech-light: #0891b2;
    /* Darker cyan for better contrast */
    --accent-art-light: #ea580c;
    /* Darker orange for better contrast */

    background-color: var(--bg-color);
    color: var(--text-primary);
}

/* Enhanced Text Readability in Light Mode */
body.light-mode .hero-title {
    color: #0f172a;
    font-weight: 400;
}

body.light-mode .hero-subtitle {
    color: #475569;
    font-weight: 500;
}

body.light-mode .role-desc,
body.light-mode .network-label,
body.light-mode .cmd {
    color: #1e293b;
}

body.light-mode .section-subtitle,
body.light-mode .overlay-content p {
    color: #64748b;
}

/* Improved Card Contrast */
body.light-mode .about-card,
body.light-mode .project-item,
body.light-mode .edu-card,
body.light-mode .network-card,
body.light-mode .skill-category {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

body.light-mode .about-card:hover,
body.light-mode .project-item:hover,
body.light-mode .skill-category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Enhanced Button Styles */
body.light-mode .terminal-command,
body.light-mode .cta-button {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.light-mode .terminal-command:hover,
body.light-mode .cta-button:hover {
    border-color: #0891b2;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.15);
}

/* Navbar in Light Mode */
body.light-mode .nav-links a {
    color: #1e293b;
    font-weight: 500;
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
    color: #0891b2;
}

body.light-mode .nav-links a.active::after {
    background: #0891b2;
}

body.light-mode .logo {
    color: #0f172a;
    font-weight: 600;
}

/* Hero Section Light Mode */
body.light-mode .hero-bg-gradient {
    background: radial-gradient(circle at 10% 20%, rgba(8, 145, 178, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(234, 88, 12, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #ffffff, #f8fafc);
}

/* Skill Chips Light Mode */
body.light-mode .skill-list li {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

body.light-mode .skill-list li:hover {
    background: #0891b2;
    border-color: #0891b2;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
}

/* Achievement List Light Mode */
body.light-mode .achievements-list li {
    color: #475569;
}

body.light-mode .achievements-list li::before {
    color: #0891b2;
}

body.light-mode .achievements-list li strong {
    color: #0f172a;
}

/* Gallery Light Mode */
body.light-mode .gallery-item {
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.light-mode .gallery-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Section Headers Light Mode */
body.light-mode .section-header h2 {
    color: #0f172a;
}

body.light-mode .line-accent {
    background: linear-gradient(90deg, #0891b2, #ea580c);
}

/* Date Badge Light Mode */
body.light-mode .date-badge {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

/* Company Name Light Mode */
body.light-mode .company-name {
    color: #0891b2;
}

/* Tech/Art Card Headings */
body.light-mode .tech-card h3 {
    color: #0891b2;
}

body.light-mode .art-card h3 {
    color: #ea580c;
}

/* Footer Light Mode */
body.light-mode footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

body.light-mode .footer-small {
    color: #94a3b8;
}

/* Contact Section Light Mode */
body.light-mode .contact-section h2 {
    color: #0f172a;
}

body.light-mode .contact-section p {
    color: #475569;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Add smooth transitions to all theme-dependent elements */
.navbar,
.about-card,
.project-item,
.skill-category,
.gallery-item,
.terminal-command,
.network-card,
.cta-button {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-tech), var(--accent-art));
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0, 255, 200, 0.5);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-tech);
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 255, 200, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 255, 200, 0.5);
}

body.light-mode .scroll-to-top {
    background: #0891b2;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
}

body.light-mode .scroll-to-top:hover {
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
}

/* Light Mode Scroll Progress */
body.light-mode .scroll-progress {
    background: linear-gradient(90deg, #0891b2, #ea580c);
    box-shadow: 0 0 10px rgba(8, 145, 178, 0.3);
}

/* Light Mode Toast */
body.light-mode .toast {
    background: rgba(8, 145, 178, 0.95);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.3);
}

body.light-mode .toast.toast-error {
    background: rgba(220, 38, 38, 0.95);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

/* Light Mode Theme Toggle */
body.light-mode .theme-btn {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.light-mode .theme-btn:hover {
    background: #f8fafc;
}

/* Navigation */
.toast {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: rgba(0, 255, 200, 0.95);
    color: #000;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 255, 200, 0.4);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.toast-error {
    background: rgba(255, 70, 70, 0.95);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 70, 70, 0.4);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 70vh;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 70, 70, 0.8);
    transform: rotate(90deg);
}

.lightbox-info {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 8px;
    width: 100%;
}

.lightbox-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.lightbox-info p {
    color: var(--accent-art);
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.7);
    /* Default transparent dark */
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Scrolled State (Dark Mode) */
.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Light Mode Scrolled State Override */
body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.85);
    /* Default transparent light */
}

body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* Theme Toggle */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    padding: 0;
}

.theme-btn:hover {
    background: var(--card-bg);
    transform: rotate(15deg);
}

/* Theme Icon Styles */
.theme-icon {
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.sun-icon {
    color: #f59e0b;
    animation: rotate 20s linear infinite;
}

.moon-icon {
    color: #60a5fa;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

body.light-mode .theme-btn {
    border-color: var(--border-color);
    color: #f59e0b;
}

/* Section Icons */
.section-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.tech-card .section-icon {
    color: var(--accent-tech);
}

.art-card .section-icon {
    color: var(--accent-art);
}

body.light-mode .tech-card .section-icon {
    color: #0891b2;
}

body.light-mode .art-card .section-icon {
    color: #ea580c;
}

.about-card:hover .section-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Button Icons */
.btn-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    color: var(--accent-art);
    transition: transform 0.3s ease;
}

.cta-button:hover .btn-icon {
    transform: translateY(2px);
}

body.light-mode .btn-icon {
    color: #ea580c;
}

/* Copy Icon */
.copy-icon {
    transition: all 0.3s ease;
    opacity: 0.6;
    color: var(--text-secondary);
}

.terminal-command:hover .copy-icon {
    opacity: 1;
    transform: scale(1.1);
    color: var(--accent-tech);
}

body.light-mode .copy-icon {
    color: #475569;
}

body.light-mode .terminal-command:hover .copy-icon {
    color: #0891b2;
}

/* Scroll to Top Button */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-tech);
}

.nav-links a.active {
    color: var(--accent-tech);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-tech);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, .15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 158, 100, .1) 0%, transparent 40%),
        linear-gradient(135deg, #0a0a0a, #0f172a);
    animation: bgPulse 10s ease-in-out infinite alternate;
}

.hero-bg-gradient:after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0%, rgba(37, 99, 235, .03) 25%, transparent 50%, rgba(255, 158, 100, .03) 75%, transparent 100%);
    animation: slowRotate 30s linear infinite;
    pointer-events: none;
}

@keyframes bgPulse {
    0% {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

@keyframes slowRotate {
    0% {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-content {
    z-index: 1;
    padding: 0 2rem;
    max-width: 900px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-title .line {
    display: block;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.typing-cursor {
    animation: blink 1s infinite;
    color: var(--accent-tech);
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

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

/* Global Button Styles (Terminal/Card Aesthetic) */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: #1a1a1a;
    border: 1px solid #333;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: none;
    /* Removed uppercase to match terminal look */
    font-family: monospace;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 160px;
    /* Consistent width feel */
}

.cta-button:hover {
    border-color: var(--accent-tech);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.1);
    transform: translateY(-2px);
}

/* Secondary Button Variant (Slightly different border/color preference if needed, or keep identical) */
.cta-button.secondary {
    border-color: #333;
    color: var(--text-secondary);
}

.cta-button.secondary:hover {
    border-color: var(--text-primary);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

/* Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s cubic-bezier(.2, .8, .2, 1) forwards;
}

.delay-1 {
    animation-delay: .2s;
}

.delay-2 {
    animation-delay: .4s;
}

.delay-3 {
    animation-delay: .6s;
}

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

/* Sections General */
/* Sections General */
section {
    padding: 8rem 5%;
}

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

.section-header {
    margin-bottom: 2.5rem;
    /* Reduced from 5rem */
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.line-accent {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-tech), var(--accent-art));
    margin: 0 auto;
}

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

.about-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 2px;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
}

.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-tech), var(--accent-art));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 255, 200, 0.1);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.tech-card h3 {
    color: var(--accent-tech);
}

.art-card h3 {
    color: var(--accent-art);
}

.skill-list {
    list-style: none;
    margin-top: 1.2rem;
    /* Reduced from 2rem */
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-start;
    /* Ensure left alignment */
}

.skill-list li {
    font-size: .8rem;
    padding: .5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    /* distinct chip background */
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* visible border */
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .05em;
    border-radius: 4px;
    /* Slight rounding for chip look */
    transition: all .2s;
}

.skill-list li:hover {
    background: var(--accent-tech);
    border-color: var(--accent-tech);
    color: #000;
    /* Dark text on bright hover */
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 255, 200, 0.4);
}

/* Experience Section */
.work-section {
    /* background: #0d0d0d; Removed for consistency */
    padding-top: 5rem;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Reduced from 2rem */
}

.project-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Drastically reduced from 1rem/0.8rem */
    transition: background var(--transition-fast), transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-radius: 4px;
}

.project-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-tech), transparent, var(--accent-art));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover {
    background: #ffffff0f;
    transform: translateX(5px);
    box-shadow: -5px 0 20px rgba(0, 255, 200, 0.1);
}

.project-item:hover::before {
    opacity: 1;
}

.project-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    /* Reduced horizontal gap */
    margin-bottom: 0rem;
    /* Removed bottom margin completely */
}

.project-main h4 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
    /* Tighter line height to reduce perceived vertical space */
}

.company-name {
    color: var(--accent-tech);
    font-family: monospace;
    font-size: 1rem;
    margin-left: 0.8rem;
    /* Slightly closer */
    line-height: 1.2;
}

.date-badge {
    font-size: .8rem;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: .3rem .8rem;
    border-radius: 20px;
}

.role-desc {
    color: #b0b0b0;
    font-size: 1rem;
    max-width: 800px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    height: 350px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
    border: 1px solid var(--glass-border);
    /* Added consistent border */
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.gallery-item:hover {
    transform: scale(.98);
}

.pattern-1 {
    background-color: #000;
    background-image: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
}

.pattern-2 {
    background-color: #111;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.pattern-3 {
    background: linear-gradient(45deg, #1a2a6c, #b21f1f, #fdbb2d);
    filter: saturate(.6) brightness(.7);
}

.pattern-4 {
    background: repeating-linear-gradient(45deg, #111, #111 10px, #1a1a1a 10px 20px);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0006;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-slow);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay span {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.8rem;
    transform: translateY(15px);
    transition: transform var(--transition-slow);
    color: #fff;
}


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

.skill-category {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 2px;
    transition: background var(--transition-fast);
}

.skill-category:hover {
    background: #ffffff0f;
}

.skill-category h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Experience Updates */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    /* Drastically reduced from 1.5rem */
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    /* Reduced padding */
}

.achievements-list {
    list-style: none;
    margin-top: 1rem;
    padding-left: 0;
}

.achievements-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.achievements-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-tech);
}

.overlay-content p {
    font-size: 0.8rem;
    color: var(--accent-art);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* Footer small text */
/* Footer */
.footer {
    background: #0d0d0d;
    border-top: 1px solid var(--border-color);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent-tech);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    border-color: var(--accent-tech);
    color: var(--accent-tech);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 255, 200, 0.2);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-tech);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.footer-small {
    font-size: 0.8rem;
    color: #555;
    margin-top: 0.5rem;
}

/* Light Mode Footer */
body.light-mode .footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

body.light-mode .footer-logo {
    color: #0891b2;
}

body.light-mode .footer-social a {
    border-color: #cbd5e1;
    color: #475569;
}

body.light-mode .footer-social a:hover {
    border-color: #0891b2;
    color: #0891b2;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.2);
}

body.light-mode .footer-links a {
    color: #475569;
}

body.light-mode .footer-links a:hover {
    color: #0891b2;
}

body.light-mode .footer-bottom {
    border-top-color: #e2e8f0;
}

body.light-mode .footer-small {
    color: #94a3b8;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:first-child {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    /* Ensure theme toggle is visible on mobile */
    .theme-btn {
        position: relative;
        z-index: 1002;
        width: 36px;
        height: 36px;
    }

    .nav-controls {
        position: relative;
        z-index: 1002;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 1002;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 1000;
        border-left: 1px solid var(--border-color);
    }

    body.light-mode .nav-links {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }

    .project-main {
        flex-direction: column;
        align-items: flex-start;
        gap: .2rem;
    }

    .company-name {
        margin-left: 0;
    }

    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        padding: 3rem 5% 1.5rem;
    }
}