:root {
    --bg-main: #000000;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(212, 175, 55, 0.2);
    --border-glass-hover: rgba(212, 175, 55, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent: #d4af37;
    --accent-glow: rgba(212, 175, 55, 0.5);
    --accent-gradient: linear-gradient(135deg, #d4af37, #f4d03f);
    --nav-height: 90px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

/* Base Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════
   GLOBAL ENHANCEMENTS
   ═══════════════════════════════════════════ */

/* Custom Cursor */
@media (pointer: fine) {
    * { cursor: none !important; }
}

.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease;
}

.cursor-aura {
    position: fixed;
    top: 0; left: 0;
    width: 30px; height: 30px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.cursor-dot.hover {
    width: 12px; height: 12px;
}

.cursor-aura.hover {
    opacity: 0;
    width: 50px; height: 50px;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 99990;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #f4d03f, var(--accent));
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    z-index: 100001;
    transition: width 0.1s linear;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Active Navigation Indicator */
.active-nav {
    color: var(--accent) !important;
    position: relative;
}
.active-nav::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 100%; height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9999;
    backdrop-filter: blur(10px);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}



/* Scroll Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Page Transition */
.page-transition {
    animation: pageFadeIn 0.5s ease-out;
}

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

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

@keyframes gradientPan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Glassmorphism */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-left: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(212, 175, 55, 0.05);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.2) inset;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
}

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

/* Navigation - Floating Top Navbar */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 70px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 35px;
}

.logo {
    margin-right: auto;
}

.logo img {
    height: 90px;
    width: auto;
}

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #d4af37;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
    flex-shrink: 0;
}

.nav-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(212, 175, 55, 0.5);
    background: transparent;
    color: #d4af37;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    transform: translateY(-2px);
}

.nav-btn.primary {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #000000;
    border: none;
}

.nav-btn.primary:hover {
    background: linear-gradient(135deg, #f4d03f, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

#install-btn {
    display: none; /* Hidden by default, shown when PWA installable */
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    padding-top: var(--nav-height);
    position: relative;
}

/* Ambient glow behind text */
.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    flex: 1.2;
    max-width: 700px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.greeting {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-weight: 500;
}

.name {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 0.95;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.name .first-name {
    font-weight: 900;
    color: #ffffff;
}

.name .last-name {
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
    display: inline-block;
}

.title {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 200;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    min-height: 38px;
    text-transform: uppercase;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--accent);
    margin-left: 8px;
    animation: blink 0.75s step-end infinite;
    color: transparent;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.tagline {
    font-size: 1.15rem;
    color: #888;
    margin-bottom: 3rem;
    max-width: 500px;
    line-height: 1.8;
}

.tech-stack-hero {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.tech-badge {
    background: transparent;
    border-left: 2px solid var(--accent);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.tech-badge i {
    font-size: 1rem;
    color: #ffffff;
}

.tech-badge:hover {
    color: #ffffff;
    border-left-color: #ffffff;
    transform: translateX(5px);
}

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

.btn {
    padding: 1rem 2.5rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.primary-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-btn:hover {
    color: #000000;
    border-color: #ffffff;
}

.primary-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.secondary-btn {
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.secondary-btn:hover {
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* Scratch Effect Hero Image */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#scratch-container {
    position: relative;
    width: 450px; /* Slightly larger */
    height: 550px;
    overflow: hidden;
    cursor: crosshair;
}

#under-image, #scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section {
    padding: 120px 4% 80px; /* Reduced side padding slightly for more width */
    max-width: 1450px; /* Increased max width */
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    margin-bottom: 5rem;
    position: relative;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.8);
    display: inline-block;
}

.header-line {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin-top: 15px;
    box-shadow: 0 0 15px var(--accent);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 2000px;
    margin: 0 auto;
}

.about-grid h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

strong {
    color: #ffffff;
    font-weight: 600;
}

.highlight {
    font-weight: 500;
    animation: hackerGlow 6s infinite ease-in-out;
}

@keyframes hackerGlow {
    0%, 100% { color: #d4af37; text-shadow: 0 0 15px rgba(212, 175, 55, 0.6); } /* Gold */
    33% { color: #f4d03f; text-shadow: 0 0 15px rgba(244, 208, 63, 0.6); } /* Light Gold */
    66% { color: #c9a227; text-shadow: 0 0 15px rgba(201, 162, 39, 0.6); } /* Dark Gold */
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 300;
}

.philosophy {
    margin-top: 2rem;
    padding: 1.2rem 1.5rem;
    background: rgba(59, 130, 246, 0.03);
    border-left: 2px solid var(--accent);
    position: relative;
    border-radius: 0 12px 12px 0;
}

.philosophy i {
    display: none;
}

.philosophy blockquote {
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #ffffff;
}

.philosophy-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.leadership-item {
    margin-top: 1rem;
}

.leadership-item h4 {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.org {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
}

.impact-list li, .achievement-list li {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1rem;
    font-weight: 300;
    transition: all 0.3s ease;
}

.impact-list li:hover, .achievement-list li:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.impact-list i, .achievement-list i {
    font-size: 1rem;
    background: rgba(59,130,246,0.1);
    color: var(--accent);
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(59,130,246,0.2);
}

.text-green { color: #10b981 !important; }
.text-gold { color: #fbbf24 !important; }
.mt-4 { margin-top: 3rem; }

/* Half Circle Orbit Layout */
.layout-half-circle {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8% 8%;
    position: relative;
    overflow: hidden;
    background-color: transparent;
}

.skills-intro-left {
    width: 45%;
    z-index: 20;
    margin-top: 5rem;
}



.skills-intro-left p {
    color: #d1d5db;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    padding-left: 20px;
}

.skills-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-purple {
    background: #3b0764; /* deep purple */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-purple:hover {
    background: linear-gradient(135deg, #4c1d95, #6d28d9);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.4);
}

.see-more {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.see-more::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.see-more:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.see-more:hover i {
    transform: translateX(5px);
}

.see-more i {
    transition: transform 0.3s ease;
}

.see-more:hover::before {
    left: 100%;
}

.orbit-wrapper-half {
    position: absolute;
    bottom: -25%; 
    right: -10%;
    left: auto;
    transform: none;
    width: 700px;
    height: 700px;
    pointer-events: none; /* Let clicks pass through empty space */
    max-width: 90vw;
    max-height: 90vw;
    filter: drop-shadow(0 0 60px rgba(59, 130, 246, 0.15));
}

.orbit-ring-half {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    pointer-events: auto; /* Re-enable for the ring */
    box-shadow: 
        0 0 100px rgba(59, 130, 246, 0.08) inset,
        0 0 40px rgba(212, 175, 55, 0.05) inset;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: radial-gradient(circle, rgba(59, 130, 246, 0.02) 0%, transparent 70%);
}

/* Second inner dashed line with radar spin */
.orbit-ring-half::after {
    content: '';
    position: absolute;
    top: 30px; left: 30px; right: 30px; bottom: 30px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.1);
    pointer-events: none;
    animation: radarSpin 40s linear infinite;
}

.orbit-ring-half::before {
    content: '';
    position: absolute;
    top: 60px; left: 60px; right: 60px; bottom: 60px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.1);
    pointer-events: none;
    animation: radarSpin 60s linear infinite reverse;
}

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

.orbit-center-half {
    position: absolute;
    top: 20%; /* Positioned inside the top of the arc */
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    pointer-events: auto;
    max-width: 80vw;
    filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.5));
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.center-icon-half {
    font-size: 6rem;
    filter: drop-shadow(0 0 40px currentColor);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: pulseGlow 4s infinite alternate;
}

.center-icon-half.pop {
    animation: iconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes pulseGlow {
    from { filter: drop-shadow(0 0 20px currentColor) brightness(1); transform: scale(1); }
    to { filter: drop-shadow(0 0 50px currentColor) brightness(1.3); transform: scale(1.05); }
}

.center-text {
    text-align: center;
    background: radial-gradient(circle, rgba(0,0,0,0.7) 0%, transparent 80%);
    padding: 18px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.center-text h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.9);
    transition: all 0.5s ease;
    opacity: 1;
    transform: translateY(0);
    letter-spacing: -0.5px;
}

.center-text h3.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.center-text h3.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: textFadeIn 0.5s ease forwards;
}

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

.center-text p {
    font-size: 0.85rem;
    color: #d1d5db;
    line-height: 1.5;
    text-shadow: 0 1px 10px rgba(0,0,0,0.9);
    transition: all 0.5s ease;
    opacity: 1;
    font-weight: 400;
}

.center-text p.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.center-text p.fade-in {
    opacity: 0;
    transform: translateY(-10px);
    animation: textFadeIn 0.5s ease forwards;
}

.orbit-item-half {
    position: absolute;
    top: 0; left: 0;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hexagon-icon {
    width: 75px;
    height: 85px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* simulated border since clip-path cuts off borders */
    position: relative;
    max-width: 12vw;
    max-height: 14vw;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.hexagon-icon::before {
    content: '';
    position: absolute;
    top: 1px; left: 1px; right: 1px; bottom: 1px;
    background: rgba(20, 20, 20, 0.9);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: -1;
}

.orbit-item-half:hover .hexagon-icon {
    transform: scale(1.15);
    filter: brightness(1.4);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

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

/* Project Icon */
.project-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(244, 208, 63, 0.15));
    border: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.05) rotate(3deg);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(244, 208, 63, 0.25));
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

/* GitHub Link */
.github-link {
    color: #fff;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    margin-left: 0.8rem;
    transition: color 0.3s ease;
}

.github-link:hover {
    color: var(--accent);
}

/* View Toggle Buttons */
.view-btn {
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: rgba(59, 130, 246, 0.3) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
}

.view-btn.active {
    background: rgba(59, 130, 246, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
}

/* Carousel Styles */
.projects-carousel {
    width: 100%;
    margin-top: 2rem;
}

.carousel-3d-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 600px;
    perspective: 1000px;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-3d-stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-3d-item {
    position: absolute;
    width: 400px;
    height: 550px;
    left: 50%;
    top: 50%;
    margin-left: -200px;
    margin-top: -275px;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    opacity: 0;
}

.carousel-3d-item.active {
    opacity: 1;
    transform: translateX(0) translateZ(0) scale(1);
    z-index: 10;
}

.carousel-3d-item.prev {
    opacity: 0.7;
    transform: translateX(-350px) translateZ(-200px) rotateY(25deg) scale(0.85);
    z-index: 5;
}

.carousel-3d-item.next {
    opacity: 0.7;
    transform: translateX(350px) translateZ(-200px) rotateY(-25deg) scale(0.85);
    z-index: 5;
}

.carousel-3d-item.prev-2 {
    opacity: 0.4;
    transform: translateX(-550px) translateZ(-400px) rotateY(40deg) scale(0.7);
    z-index: 3;
}

.carousel-3d-item.next-2 {
    opacity: 0.4;
    transform: translateX(550px) translateZ(-400px) rotateY(-40deg) scale(0.7);
    z-index: 3;
}

.carousel-3d-item.hidden {
    opacity: 0;
    transform: translateX(0) translateZ(-600px) scale(0.5);
    z-index: 1;
}

.carousel-3d-item:hover {
    transform: translateX(0) translateZ(50px) scale(1.05) !important;
    z-index: 15 !important;
}

.carousel-3d-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.6);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.carousel-3d-nav:hover {
    background: rgba(212, 175, 55, 0.5);
    border-color: rgba(212, 175, 55, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.carousel-3d-nav.prev {
    left: 20px;
}

.carousel-3d-nav.next {
    right: 20px;
}

.project-video {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.project-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-video .video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
}

.project-video .video-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.project-video .video-overlay .project-tagline {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-icon-overlay {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(244, 208, 63, 0.3));
    border: 1px solid rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Hacker Glow Text Animation */
.hacker-text {
    animation: hackerColorCycle 4s infinite alternate;
    font-weight: 700;
}

@keyframes hackerColorCycle {
    0%   { color: #00ff41; text-shadow: 0 0 10px rgba(0, 255, 65, 0.8); } /* Matrix Green */
    50%  { color: #ff003c; text-shadow: 0 0 10px rgba(255, 0, 60, 0.8); } /* Cyberpunk Red */
    100% { color: #00e5ff; text-shadow: 0 0 10px rgba(0, 229, 255, 0.8); } /* Neon Blue */
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card .project-video {
    height: 140px;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.project-card .project-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card .project-video .video-overlay {
    padding: 15px;
}

.project-card .project-video .video-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.project-card .project-video .video-overlay .project-tagline {
    font-size: 0.75rem;
}

.project-card .project-video .project-icon-overlay {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(0, 255, 65, 0.4); /* subtle hacker green edge */
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 30px rgba(0,255,65,0.15), inset 0 0 20px rgba(0,255,65,0.05);
    z-index: 10;
}

@keyframes scanner {
    0% { top: -10px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.project-card::before {
    content: '';
    position: absolute;
    top: -10px; left: 0; right: 0;
    height: 2px;
    background: #00ff41;
    box-shadow: 0 0 15px #00ff41, 0 0 30px #00ff41;
    opacity: 0;
    z-index: 5;
    pointer-events: none;
}

.project-card:hover::before {
    animation: scanner 2s infinite linear;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.project-tagline {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

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

.project-tech span {
    font-size: 0.75rem;
    font-family: monospace;
    color: #888;
    background: rgba(0,0,0,0.4);
    padding: 3px 8px;
    border-radius: 5px;
}

.project-links {
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

.project-links a {
    color: #fff;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
}

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

.project-links a i {
    transition: transform 0.3s ease;
}

.project-links a:hover i {
    transform: translate(3px, -3px);
}

.private-link {
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.square-grid-bg {
    max-width: 100%;
    width: 100%;
    background-color: transparent;
}

/* Trusted Leaders Section */
.tl-section {
    position: relative;
    background-color: transparent;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    overflow: hidden;
    color: #fff;
}

.tl-bg-lines {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-evenly;
    pointer-events: none;
    z-index: 0;
}

.tl-line {
    width: 1px;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.04) 0,
        rgba(255,255,255,0.04) 4px,
        transparent 4px,
        transparent 8px
    );
}

.tl-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tl-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    background: radial-gradient(circle, rgba(0,0,0,1) 40%, rgba(0,0,0,0.7) 65%, rgba(0,0,0,0) 85%);
    padding: 3rem 2rem;
}

.tl-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.tl-title {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.tl-title-dark {
    color: #ffffff;
}

.tl-title-light {
    color: #aaaaaa;
}

.tl-desc {
    color: #cccccc;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-inline: auto;
    font-weight: 400;
}

.tl-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #d4af37;
    color: #000;
    padding: 1.2rem 2.5rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tl-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.25);
    color: #000;
}

/* Floating Word Badges */
.tl-word-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.tl-word {
    position: absolute;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: floatWord 7s ease-in-out infinite alternate;
    white-space: nowrap;
}

.tl-photo {
    padding: 0;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: transparent;
}

.tl-word.tl-w-1,
.tl-word.tl-w-5,
.tl-word.tl-w-12 {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.2);
    color: rgba(212, 175, 55, 0.5);
}

/* Top row — scattered */
.tl-w-1  { top: 8%;  left: 5%;  animation-delay: 0s; }
.tl-w-2  { top: 5%;  left: 28%; animation-delay: 0.8s; }
.tl-w-3  { top: 12%; right: 25%; animation-delay: 1.6s; }
.tl-w-4  { top: 6%;  right: 5%;  animation-delay: 0.4s; }

/* Middle-top row */
.tl-w-5  { top: 28%; left: 3%;  animation-delay: 1.2s; }
.tl-w-6  { top: 32%; left: 18%; animation-delay: 2s; }
.tl-w-7  { top: 26%; right: 15%; animation-delay: 0.6s; }
.tl-w-8  { top: 30%; right: 2%;  animation-delay: 1.8s; }

/* Middle-bottom row */
.tl-w-9  { top: 60%; left: 6%;  animation-delay: 1s; }
.tl-w-10 { top: 65%; left: 22%; animation-delay: 2.2s; }
.tl-w-11 { top: 58%; right: 20%; animation-delay: 0.2s; }
.tl-w-12 { top: 63%; right: 4%;  animation-delay: 1.4s; }

/* Bottom row */
.tl-w-13 { top: 85%; left: 12%; animation-delay: 2.5s; }
.tl-w-14 { top: 88%; right: 15%; animation-delay: 0.9s; }

@keyframes floatWord {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

@media (max-width: 1100px) {
    .tl-word-grid { opacity: 0.5; }
    .tl-title { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .tl-word-grid { display: none; }
    .tl-title { font-size: 2.8rem; letter-spacing: -1px; }
    .tl-desc { font-size: 1.15rem; }
    .tl-section { padding: 5rem 1.5rem; }
}

/* Testimonials Section - Customer Reviews layout */
:root {
    --cr-gold: #d4af37;
    --cr-gold-glow: rgba(212, 175, 55, 0.4);
    --cr-bg: transparent;
}

.cr-section {
    position: relative;
    min-height: 80vh;
    padding: 5rem 2rem;
    background: var(--cr-bg);
    overflow: hidden;
    color: #ffffff;
}

.cr-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* Header */
.cr-header {
    margin-bottom: 4rem;
}

.cr-header-line {
    width: 40px;
    height: 3px;
    background: var(--cr-gold);
    margin-bottom: 1rem;
    box-shadow: 0 0 10px var(--cr-gold-glow);
}

.cr-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

/* Layout */
.cr-layout {
    display: flex;
    align-items: center;
    gap: 5rem;
    min-height: 450px;
}

/* Left Side: Avatars */
.cr-left {
    position: relative;
    width: 350px;
    height: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Arc Curve */
.cr-arc {
    position: absolute;
    top: 0;
    left: 20px;
    width: 60px;
    height: 100%;
    border-right: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0 100% 100% 0 / 0 50% 50% 0;
    z-index: 1;
}

.cr-reviewers-list {
    position: relative;
    z-index: 2;
    height: 100%;
}

.cr-reviewer-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(0) scale(0.8);
    left: 45px;
    cursor: pointer;
}

.cr-reviewer-item.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(35px) scale(1);
    top: 50%;
    z-index: 10;
}

.cr-reviewer-item.prev {
    opacity: 0.6;
    pointer-events: auto;
    transform: translateY(-50%) translateX(10px) scale(0.85);
    top: 15%;
}

.cr-reviewer-item.next {
    opacity: 0.6;
    pointer-events: auto;
    transform: translateY(-50%) translateX(10px) scale(0.85);
    top: 85%;
}

.cr-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #111;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.cr-reviewer-item.active .cr-avatar {
    border-color: var(--cr-gold);
    width: 60px;
    height: 60px;
    box-shadow: 0 0 20px var(--cr-gold-glow);
}

.cr-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

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

.cr-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
}

.cr-reviewer-item.active .cr-name {
    font-size: 1.15rem;
}

.cr-rating {
    font-size: 0.8rem;
    color: #a0a0a0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cr-star {
    color: #22c55e;
    font-size: 0.9rem;
}

/* Right Side: Quote */
.cr-right {
    flex: 1;
    position: relative;
    padding-left: 2rem;
}

.cr-quote-wrapper {
    position: relative;
}

.cr-quote-mark {
    position: absolute;
    top: -40px;
    left: -40px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--cr-gold);
    line-height: 1;
    opacity: 0.8;
}

.cr-quote-text {
    font-size: 1.35rem;
    line-height: 1.7;
    font-style: italic;
    color: #e5e5e5;
    font-family: Georgia, serif;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cr-quote-text .drop-cap {
    font-size: 2.2rem;
    line-height: 1;
    color: #fff;
    margin-right: 2px;
}

/* Responsive */
@media (max-width: 900px) {
    .cr-layout {
        flex-direction: column;
        gap: 3rem;
        min-height: auto;
    }
    .cr-left {
        width: 100%;
        height: 250px;
        align-items: center;
    }
    .cr-arc {
        left: 50%;
        width: 100%;
        height: 40px;
        top: 30px;
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
        border-radius: 0 0 50% 50% / 0 0 100% 100%;
        transform: translateX(-50%);
    }
    .cr-reviewer-item {
        flex-direction: column;
        text-align: center;
        left: 50%;
        transform: translateX(-50%) translateY(0) scale(0.8);
    }
    .cr-reviewer-item.active {
        top: 55px;
        transform: translateX(-50%) translateY(20px) scale(1);
    }
    .cr-reviewer-item.prev {
        top: 10px;
        transform: translateX(-120px) translateY(0) scale(0.85);
    }
    .cr-reviewer-item.next {
        top: 10px;
        transform: translateX(20px) translateY(0) scale(0.85);
    }
    .cr-info {
        align-items: center;
    }
    .cr-right {
        padding-left: 0;
        text-align: center;
    }
    .cr-quote-mark {
        left: 50%;
        transform: translateX(-50%);
        top: -30px;
    }
    .cr-quote-text {
        font-size: 1.1rem;
    }
}

/* Old Split Styles - Remove */
.testimonials-split,
.split-container,
.split-left,
.split-title,
.names-list,
.name-item,
.name-number,
.name-text,
.name-company,
.split-right,
.content-display,
.content-item,
.quote-icon,
.content-text,
.content-author,
.content-rating {
    display: none !important;
}

/* Contact Section - Premium Redesign */
.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(auto, 480px) minmax(auto, 480px);
    justify-content: center;
    gap: 5rem;
    width: 100%;
    margin: 0 auto;
    align-items: center; /* Center vertically to avoid stretching the form container with empty space */
}

.contact-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.collab-text {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.contact-desc {
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-methods-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: center; /* Perfectly center the text block */
    position: relative;
    padding: 1.2rem;
    text-decoration: none;
    color: white;
    border-radius: 14px;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.contact-card:hover {
    transform: translateX(8px);
    border-color: rgba(212, 175, 55, 0.3);
}

.gradient-text-blue-purple {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.icon-wrapper {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.contact-card .icon-wrapper {
    position: absolute;
    left: 1.5rem;
}

.contact-card h4 {
    color: #9ca3af;
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card span {
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-right {
    padding: 2rem;
    border-radius: 20px;
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 0;
    font-size: 1.1rem;
    color: white;
    font-family: inherit;
    resize: none;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #6b7280;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s ease all;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.85rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.input-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
    transition: 0.4s ease all;
}

.input-group input:focus ~ .input-line::after,
.input-group textarea:focus ~ .input-line::after {
    width: 100%;
}

.btn-submit {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: white;
    border: none;
    padding: 14px 0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #f4d03f, #d4af37);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 50px;
    background: rgba(0,0,0,0.5);
}

/* Draggable Canvas Section */
#drag-container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1; /* Below nav which should be higher */
    background-color: #000000;
}

#drag-canvas {
    width: 4000px;
    height: 3000px;
    position: relative;
}

.canvas-center {
    display: none;
}

.drag-card {
    position: absolute;
    width: 220px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.drag-card:hover {
    transform: scale(1.05) rotate(0deg) !important; /* overrides inline rotation */
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.card-img-wrapper {
    width: 100%;
    height: auto;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

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

.card-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none; /* prevent ghost dragging */
}

.card-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.card-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    filter: grayscale(100%);
}

.card-text {
    flex-grow: 1;
}

.card-text h4 {
    color: #e5e7eb;
    font-family: 'Georgia', serif;
    font-size: 1.15rem;
    line-height: 1.2;
    font-weight: 400;
    margin: 4px 0;
    text-align: center;
    letter-spacing: 0.2px;
}

.card-text p, .mobile-gallery-item .overlay p {
    display: none !important;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

#lightbox-caption {
    margin-top: 20px;
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: #d4af37;
}

/* Responsive */
@media (max-width: 1024px) {
    .name { font-size: 5rem; }
    #scratch-container { width: 400px; height: 500px; }
    nav { width: 90% !important; min-width: auto !important; }
}

@media (max-width: 992px) {
    #hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
        gap: 4rem;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .tagline { margin: 0 auto 3rem auto; }
    .hero-bg-glow { top: 50%; left: 50%; transform: translate(-50%, -50%); }
    .about-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .collab-text { font-size: 3.5rem; text-align: center; }
    .contact-desc { text-align: center; margin: 0 auto 3rem auto; }
    .projects-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@media (max-width: 768px) {
    /* Navigation */
    nav {
        width: 95%;
        padding: 0 15px;
        height: 55px;
        border-radius: 25px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        padding: 2rem;
    }
    
    .nav-links.active {
        right: 0;
        display: flex;
    }
    
    .nav-links a {
        font-size: 1.3rem;
        color: #ffffff;
        padding: 10px 0;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .hamburger {
        display: flex;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1001;
        cursor: pointer;
    }
    
    .hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: #d4af37;
        margin: 4px 0;
        transition: all 0.3s ease;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    
    /* Hero Section */
    #hero {
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 120px 4% 40px 4%;
    }
    .hero-content {
        width: 100%;
        text-align: center;
        order: 2;
    }
    .hero-image {
        order: 1;
        width: 100%;
    }
    .name { font-size: 2.5rem; }
    .title { font-size: 1.2rem; }
    .aka-name { font-size: 0.9rem; letter-spacing: 8px; }
    .hero-cta { flex-direction: column; width: 100%; max-width: 280px; gap: 1rem; }
    .hero-cta a { padding: 12px 24px; font-size: 0.9rem; }
    #scratch-container { width: 100%; max-width: 300px; height: 380px; }
    .section { padding: 80px 4% 50px 4%; }
    .section-header h2 { font-size: 2rem; }
    .contact-methods { flex-direction: column; align-items: center; gap: 1.5rem; }
    
    /* About Section Mobile - Hide horizontal scroll, show vertical */
    .scroll-jack-wrapper {
        display: none !important;
    }
    
    .mobile-about {
        display: block !important;
        padding: 60px 4% 40px 4%;
    }
    
    .mobile-about-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .mobile-about-header h2 {
        font-size: 2.5rem;
        font-weight: 800;
        letter-spacing: -1px;
        text-transform: uppercase;
        color: transparent;
        -webkit-text-stroke: 1px rgba(255,255,255,0.8);
        margin-bottom: 0.5rem;
    }
    
    .mobile-about-header .header-line {
        width: 60px;
        height: 2px;
        background: var(--accent);
        margin: 15px auto 0;
        box-shadow: 0 0 15px var(--accent);
    }
    
    .mobile-about-section {
        margin-bottom: 2rem;
    }
    
    .mobile-about-section h3 {
        font-size: 1.2rem;
        color: var(--accent);
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 1rem;
        font-weight: 600;
    }
    
    .mobile-about-card {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 1.5rem;
        backdrop-filter: blur(10px);
    }
    
    .mobile-about-card p {
        color: var(--text-secondary);
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .mobile-philosophy {
        background: rgba(59, 130, 246, 0.08);
        border-left: 3px solid var(--accent);
        padding: 1rem 1.2rem;
        border-radius: 0 12px 12px 0;
        margin-top: 1rem;
    }
    
    .mobile-philosophy blockquote {
        font-size: 1rem;
        font-style: italic;
        color: #fff;
        margin-bottom: 0.5rem;
    }
    
    .mobile-philosophy p {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
    .mobile-achievement-item {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .mobile-achievement-item:last-child {
        border-bottom: none;
    }
    
    .mobile-achievement-item i {
        font-size: 1.2rem;
        color: var(--accent);
    }
    
    .mobile-achievement-item span {
        color: #fff;
        font-size: 0.9rem;
    }
    
    .mobile-video-section {
        margin-top: 2rem;
    }
    
    .mobile-video-container {
        width: 100%;
        height: 250px;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        margin-bottom: 1.5rem;
    }
    
    .mobile-video-container video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .mobile-video-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1rem;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    }
    
    .mobile-video-overlay h4 {
        font-size: 1.1rem;
        color: #fff;
        margin-bottom: 0.3rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .mobile-video-overlay p {
        font-size: 0.85rem;
        color: #ddd;
        line-height: 1.4;
    }
    
    /* Mobile Gallery - Hide draggable, show grid */
    #drag-container {
        display: none !important;
    }
    
    .mobile-gallery {
        display: block !important;
        padding: 60px 4% 40px 4%;
    }
    
    .mobile-gallery-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .mobile-gallery-header h1 {
        font-size: 2.5rem;
        font-weight: 800;
        color: #fff;
        font-family: 'Georgia', serif;
        margin-bottom: 0.5rem;
    }
    
    .mobile-gallery-header p {
        color: #9ca3af;
        font-size: 1rem;
    }
    
    .mobile-gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .mobile-gallery-item {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        aspect-ratio: 3/4;
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    
    .mobile-gallery-item:hover {
        transform: scale(1.05);
    }
    
    .mobile-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(100%);
        transition: filter 0.3s ease;
    }
    
    .mobile-gallery-item:hover img {
        filter: grayscale(0%);
    }
    
    .mobile-gallery-item .overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem;
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-gallery-item:hover .overlay {
        opacity: 1;
    }
    
    .mobile-gallery-item h3 {
        color: #fff;
        font-size: 0.9rem;
        font-weight: 600;
        margin: 0;
    }
    
    /* Ensure content visibility */
    main {
        padding-top: 100px;
        position: relative;
        z-index: 1;
    }
    
    .glass-card {
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
    }
    
    /* Projects */
    .projects-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .project-card .project-video { height: 160px; }
    .project-card h3 { font-size: 1.1rem; }
    .project-tagline { font-size: 0.75rem; }
    .project-card p { font-size: 0.85rem; }
    .project-tech { font-size: 0.8rem; }
    .view-btn { padding: 6px 12px; font-size: 0.8rem; }
    
    /* Carousel */
    .carousel-3d-nav { width: 40px; height: 40px; font-size: 1rem; }
    .carousel-3d-nav.prev { left: 10px; }
    .carousel-3d-nav.next { right: 10px; }
    
    /* Gallery */
    .canvas-center h2 { font-size: 2.5rem; }
    .canvas-center p { font-size: 1rem; }
    .gallery-card { width: 120px; height: 160px; }
    .gallery-card img { width: 100%; height: 100%; object-fit: cover; }
    
    /* Skills */
    .layout-half-circle { flex-direction: column; padding: 10% 4%; }
    .skills-intro-left { width: 100%; margin-top: 0; margin-bottom: 1.5rem; }
    .skills-intro-left p { font-size: 0.9rem; }
    .orbit-container { width: 100%; height: 400px; position: relative; }
    .orbit-wrapper-half {
        width: 350px;
        height: 350px;
        bottom: 0;
        right: 50%;
        transform: translateX(50%);
        position: absolute;
    }
    .orbit-center-half {
        width: 200px;
        top: 15%;
    }
    .hexagon-icon {
        width: 40px;
        height: 48px;
        font-size: 1.2rem;
    }
    .center-content h3 {
        font-size: 1rem;
    }
    .center-content p {
        font-size: 0.8rem;
    }
    .see-more { font-size: 0.85rem; padding: 8px 16px; }
    
    /* Projects Section Mobile - Hide grid/carousel, show simple cards */
    .section-header .view-toggle {
        display: none !important;
    }
    
    .projects-grid {
        display: none !important;
    }
    
    .carousel-3d-container {
        display: none !important;
    }
    
    .mobile-projects {
        display: block !important;
        padding: 60px 4% 40px 4%;
    }
    
    .mobile-projects-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .mobile-projects-header h2 {
        font-size: 2.5rem;
        font-weight: 800;
        letter-spacing: -1px;
        text-transform: uppercase;
        color: transparent;
        -webkit-text-stroke: 1px rgba(255,255,255,0.8);
        margin-bottom: 0.5rem;
    }
    
    .mobile-projects-header .header-line {
        width: 60px;
        height: 2px;
        background: var(--accent);
        margin: 15px auto 0;
        box-shadow: 0 0 15px var(--accent);
    }
    
    .mobile-projects-list {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .mobile-project-card {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        overflow: hidden;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }
    
    .mobile-project-card:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(212, 175, 55, 0.3);
        transform: translateY(-5px);
    }
    
    .mobile-project-video {
        width: 100%;
        height: 200px;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-project-video video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .mobile-project-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1rem;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    }
    
    .mobile-project-overlay h3 {
        color: #fff;
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 0.3rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .mobile-project-overlay p {
        color: var(--accent);
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .mobile-project-content {
        padding: 1.2rem;
    }
    
    .mobile-project-content p {
        color: var(--text-secondary);
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .mobile-project-tech {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .mobile-project-tech span {
        background: rgba(212, 175, 55, 0.15);
        border: 1px solid rgba(212, 175, 55, 0.3);
        color: #fff;
        padding: 0.3rem 0.8rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    /* Developer Guide */
    .guide-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 4%;
    }
    
    .guide-intro {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .guide-description {
        font-size: 1.1rem;
        color: var(--text-secondary);
        line-height: 1.8;
        max-width: 800px;
        margin: 0 auto;
    }
    
    /* Mindmap Tree Styles */
    .mindmap-tree {
        padding: 3rem;
        border-radius: 24px;
        overflow-x: auto;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(20, 20, 20, 0.6));
    }
    
    .tree-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: fit-content;
    }
    
    .tree-node {
        position: relative;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(20, 20, 20, 0.95));
        border: 2px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.05) inset;
        transition: all 0.3s ease;
        margin: 0.5rem 0;
    }
    
    .tree-node:hover {
        transform: translateY(-3px);
        border-color: var(--accent);
        box-shadow: 
            0 15px 50px rgba(212, 175, 55, 0.3),
            0 0 0 1px rgba(212, 175, 55, 0.2) inset;
    }
    
    .root-node {
        background: linear-gradient(145deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.15));
        border-color: var(--accent);
        box-shadow: 
            0 0 60px rgba(212, 175, 55, 0.4),
            0 0 0 1px rgba(212, 175, 55, 0.2) inset;
        padding: 1.5rem 2.5rem;
    }
    
    .level-1 {
        background: linear-gradient(145deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
        border-color: rgba(59, 130, 246, 0.4);
    }
    
    .level-1:hover {
        border-color: #60a5fa;
        box-shadow: 
            0 15px 50px rgba(59, 130, 246, 0.3),
            0 0 0 1px rgba(59, 130, 246, 0.2) inset;
    }
    
    .level-2 {
        background: linear-gradient(145deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
        border-color: rgba(168, 85, 247, 0.4);
    }
    
    .level-2:hover {
        border-color: #a78bfa;
        box-shadow: 
            0 15px 50px rgba(168, 85, 247, 0.3),
            0 0 0 1px rgba(168, 85, 247, 0.2) inset;
    }
    
    .level-3 {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.15);
        padding: 0.8rem 1.2rem;
    }
    
    .node-content {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 1rem;
        font-weight: 600;
        color: #fff;
    }
    
    .node-content i {
        font-size: 1.3rem;
        color: var(--accent);
        filter: drop-shadow(0 0 10px var(--accent));
    }
    
    .level-1 .node-content i {
        color: #60a5fa;
        filter: drop-shadow(0 0 10px #60a5fa);
    }
    
    .level-2 .node-content i {
        color: #a78bfa;
        filter: drop-shadow(0 0 10px #a78bfa);
    }
    
    .tree-level {
        display: flex;
        gap: 1.5rem;
        position: relative;
        padding: 0.5rem 0;
    }
    
    .tree-branch {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }
    
    .branch-line {
        width: 2px;
        height: 30px;
        background: linear-gradient(to bottom, var(--accent), rgba(212, 175, 55, 0.2));
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
    }
    
    /* Horizontal connector for siblings */
    .tree-level::before {
        content: '';
        position: absolute;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 3rem);
        height: 2px;
        background: linear-gradient(to right, transparent, var(--accent), transparent);
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
    }
    
    /* Mobile Tree */
    @media (max-width: 768px) {
        .mindmap-tree {
            padding: 1.5rem;
        }
        
        .tree-level {
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .tree-level::before {
            display: none;
        }
        
        .tree-node {
            padding: 0.8rem 1.2rem;
        }
        
        .root-node {
            padding: 1.2rem 2rem;
        }
        
        .node-content {
            font-size: 0.9rem;
        }
        
        .node-content i {
            font-size: 1.1rem;
        }
        
        .branch-line {
            height: 20px;
        }
    }
    
    /* Mindmap Canvas Styles */
    .mindmap-canvas-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 0;
        border-radius: 0;
        overflow: hidden;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(20, 20, 20, 0.6));
        z-index: 1000;
    }
    
    #mindmapCanvas {
        width: 100%;
        height: 100vh;
        display: block;
    }
    
    /* Tips Section */
    .guide-tips {
        margin-bottom: 2.5rem;
        padding: 2rem;
        border-radius: 20px;
    }
    
    .guide-tips h3 {
        font-size: 1.8rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 2rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .guide-tips h3 i {
        color: var(--accent);
    }
    
    .tips-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .tip-item {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding: 1.5rem;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .tip-item:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(212, 175, 55, 0.3);
        transform: translateY(-5px);
    }
    
    .tip-item i {
        font-size: 2rem;
        color: var(--accent);
        margin-bottom: 1rem;
    }
    
    .tip-item h4 {
        font-size: 1.2rem;
        font-weight: 600;
        color: #fff;
        margin-bottom: 0.5rem;
    }
    
    .tip-item p {
        color: var(--text-secondary);
        line-height: 1.6;
        font-size: 0.95rem;
    }
    
    /* Resources Section */
    .guide-resources {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .guide-resources h3 {
        font-size: 1.8rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 2rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .guide-resources h3 i {
        color: var(--accent);
    }
    
    .resources-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .resource-category h4 {
        font-size: 1.3rem;
        font-weight: 600;
        color: #fff;
        margin-bottom: 1rem;
    }
    
    .resource-category ul {
        list-style: none;
        padding: 0;
    }
    
    .resource-category li {
        margin-bottom: 0.75rem;
    }
    
    .resource-category a {
        color: #60a5fa;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .resource-category a:hover {
        color: var(--accent);
    }
    
    /* Mobile Mindmap */
    @media (max-width: 768px) {
        .mindmap-wrapper {
            padding: 1.5rem;
        }
        
        .mindmap {
            min-height: 500px;
        }
        
        .center-node {
            width: 150px;
            padding: 1.5rem;
        }
        
        .center-node i {
            font-size: 2rem;
        }
        
        .center-node h3 {
            font-size: 1rem;
        }
        
        .center-node p {
            font-size: 0.7rem;
        }
        
        .mindmap-branch {
            width: 220px;
            height: 220px;
        }
        
        .branch-line {
            width: 80px;
        }
        
        .branch-node {
            left: 80px;
            min-width: 140px;
            padding: 1rem;
        }
        
        .node-icon {
            font-size: 1.4rem;
        }
        
        .branch-node h4 {
            font-size: 0.9rem;
        }
        
        .sub-node {
            font-size: 0.7rem;
        }
        
        .journey-path {
            flex-direction: column;
            gap: 0.3rem;
        }
        
        .path-arrow {
            transform: rotate(90deg);
        }
    }
    
    /* Contact */
    .contact-wrapper { padding: 0 4%; gap: 2rem; }
    .collab-text { font-size: 2.5rem; }
    .contact-desc { font-size: 0.9rem; }
    .contact-left { padding: 1.5rem; }
    .contact-right { padding: 1.5rem; }
    .contact-methods a { padding: 12px 20px; font-size: 0.85rem; }
    .contact-form input, .contact-form textarea { padding: 12px; font-size: 0.9rem; }
    .contact-form button { padding: 12px 24px; font-size: 0.9rem; }
    
    /* General visibility fixes */
    h1, h2, h3, h4, p, span, div {
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Smooth transitions for mobile */
    * {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    /* Better touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Smooth page transitions */
    .page-transition {
        animation: fadeIn 0.5s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 480px) {
    .name { font-size: 2.5rem; }
    .title { font-size: 1.4rem; }
    .section { padding: 60px 4%; }
    .glass-card { padding: 1.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
}

/* New Dark Mode styles for Trusted Leaders */
.tl-dark-mode {
    background-color: #000;
    position: relative;
    overflow: hidden;
    min-height: auto;
    padding: 120px 0 80px 0;
}

.tl-line-dark {
    width: 1px;
    height: 100%;
    background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 4px, transparent 4px, transparent 8px);
}

.tl-floating-words {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.tl-word {
    position: absolute;
    width: max-content;
    white-space: nowrap;
    padding: 10px 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    animation: floatWord 10s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes floatWord {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-30px) rotate(3deg); }
}

.tl-w-1 { top: 15%; left: 5%; right: auto; animation-delay: 0s; }
.tl-w-2 { top: 60%; left: 10%; right: auto; animation-delay: 2s; }
.tl-w-3 { top: 35%; left: 22%; right: auto; animation-delay: 1s; }
.tl-w-4 { top: 12%; right: 18%; left: auto !important; animation-delay: 3s; }
.tl-w-5 { top: 45%; right: 8%; left: auto !important; animation-delay: 1.5s; }
.tl-w-6 { top: 70%; right: 15%; left: auto !important; animation-delay: 4s; }
.tl-w-7 { top: 80%; left: 18%; right: auto; animation-delay: 2.5s; }
.tl-w-8 { top: 30%; right: 35%; left: auto !important; animation-delay: 0.8s; }
.tl-w-9 { top: 85%; right: 28%; left: auto !important; animation-delay: 3.5s; }
.tl-w-10 { top: 25%; right: 5%; left: auto !important; animation-delay: 1.8s; }

.tl-avatar-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 30px auto;
}

.tl-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #000;
    margin-left: -15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.tl-avatar:first-child {
    margin-left: 0;
}

.tl-avatar:hover {
    transform: translateY(-8px) scale(1.15);
    z-index: 10;
    border-color: rgba(255,255,255,0.2);
}

.tl-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(40%);
    transition: filter 0.3s ease;
}

.tl-avatar:hover img {
    filter: grayscale(0%);
}

.tl-avatar-text {
    margin-left: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Central Glowing Orb */
.tl-dark-mode::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.tl-content-dark {
    position: relative;
    z-index: 2;
    background: transparent;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.tl-badge-dark {
    background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1));
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tl-title {
    margin: 0 0 25px 0;
    line-height: 1.1;
}

.tl-title-white-text {
    background: linear-gradient(135deg, #ffffff 0%, #aaaaaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -1.5px;
}
.tl-title-grey-text {
    color: rgba(255,255,255,0.3);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.tl-desc-dark {
    color: rgba(255,255,255,0.6);
    font-size: 1.25rem;
    max-width: 520px;
    margin: 30px auto 40px;
    line-height: 1.6;
    font-weight: 400;
}

.tl-button-light {
    background: #fff;
    color: #000;
    padding: 16px 36px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}
.tl-button-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

/* Mobile Responsiveness for Testimonials Hero */
@media (max-width: 768px) {
    .tl-title-white-text {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
    .tl-title-grey-text {
        font-size: 2rem;
        letter-spacing: -1px;
    }
    .tl-avatar {
        width: 45px;
        height: 45px;
        margin-left: -12px;
    }
    .tl-avatar-text {
        font-size: 0.9rem;
        margin-left: 15px;
    }
    .tl-desc-dark {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    .tl-word {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    /* Hide some floating words on very small screens to avoid clutter */
    .tl-w-1, .tl-w-2, .tl-w-7, .tl-w-9 {
        display: none;
    }
}

@media (max-width: 480px) {
    .tl-dark-mode {
        padding: 80px 0 60px 0;
    }
    .collab-text {
        white-space: normal;
        font-size: 1.1rem;
    }
    .tl-title-white-text {
        font-size: 1.7rem;
        letter-spacing: -0.5px;
    }
    .tl-title-grey-text {
        font-size: 1.5rem;
        letter-spacing: -0.5px;
    }
    .tl-avatar {
        width: 38px;
        height: 38px;
        margin-left: -10px;
    }
    .tl-avatar-text {
        font-size: 0.8rem;
        margin-left: 10px;
    }
    .tl-desc-dark {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    .tl-button-light {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    /* Hide all floating words on extra-small screens */
    .tl-floating-words {
        display: none;
    }
    .cr-section {
        padding: 3rem 1rem;
    }
    .cr-title {
        font-size: 1.6rem;
    }
    .cr-quote-text {
        font-size: 1rem;
    }
}
