/* Ultra Premium Liquid Glass Portfolio - Best UX in the World */

/* CSS Variables */
:root {
    /* Glass Colors */
    --glass-white: rgba(255, 255, 255, 0.05);
    --glass-white-heavy: rgba(255, 255, 255, 0.1);
    --glass-dark: rgba(0, 0, 0, 0.3);
    --glass-dark-heavy: rgba(0, 0, 0, 0.6);

    /* Premium Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.9);
    --color-text-tertiary: rgba(255, 255, 255, 0.7);
    --color-accent: #00d4ff;
    --color-accent-secondary: #7928ca;
    --color-accent-tertiary: #ff0080;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;
    --spacing-xxl: 80px;
    --spacing-xxxl: 120px;

    /* Glass Effects */
    --glass-blur: 16px;
    --glass-blur-heavy: 24px;
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    --shadow-glass-hover: 0 8px 32px 0 rgba(31, 38, 135, 0.4);

    /* Layout */
    --container-width: 1200px;
    --nav-height: 64px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Dark Mode Background */
    --bg-gradient-dark: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    --bg-mesh-dark: radial-gradient(at 40% 20%, hsla(220, 80%, 30%, 0.3) 0px, transparent 50%),
                    radial-gradient(at 80% 0%, hsla(189, 70%, 30%, 0.3) 0px, transparent 50%),
                    radial-gradient(at 0% 50%, hsla(260, 70%, 25%, 0.3) 0px, transparent 50%);
}

/* Light Theme */
[data-theme="light"] {
    --glass-white: rgba(255, 255, 255, 0.7);
    --glass-white-heavy: rgba(255, 255, 255, 0.9);
    --glass-dark: rgba(0, 0, 0, 0.05);
    --glass-dark-heavy: rgba(0, 0, 0, 0.1);

    --color-text-primary: #1d1d1f;
    --color-text-secondary: rgba(0, 0, 0, 0.8);
    --color-text-tertiary: rgba(0, 0, 0, 0.6);
    --color-accent: #0071e3;
    --color-accent-secondary: #5856d6;
    --color-accent-tertiary: #ff2d55;

    --border-glass: 1px solid rgba(0, 0, 0, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --shadow-glass-hover: 0 8px 32px 0 rgba(0, 0, 0, 0.2);

    --bg-gradient-dark: linear-gradient(135deg, #e0e5ec 0%, #ffffff 50%, #e0e5ec 100%);
    --bg-mesh-dark: radial-gradient(at 40% 20%, hsla(220, 80%, 80%, 0.3) 0px, transparent 50%),
                    radial-gradient(at 80% 0%, hsla(189, 70%, 80%, 0.3) 0px, transparent 50%),
                    radial-gradient(at 0% 50%, hsla(260, 70%, 85%, 0.3) 0px, transparent 50%);
}

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

/* Animated Background */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes liquidMorph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.4; }
}

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

/* Base */
html {
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    color: var(--color-text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: var(--bg-gradient-dark);
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
    transition: background 0.5s ease, color 0.5s ease;
}

/* Mesh Gradient Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-mesh-dark);
    opacity: 1;
    z-index: -2;
    animation: pulse 15s ease infinite;
}

/* Noise Texture */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgbnVtT2N0YXZlcz0iMTAiLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEgMCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNhKSIgb3BhY2l0eT0iMSIvPjwvc3ZnPg==');
}

/* Floating Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-secondary) 100%);
    top: -300px;
    left: -300px;
    animation-duration: 25s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(180deg, var(--color-accent-tertiary) 0%, var(--color-accent-secondary) 100%);
    bottom: -200px;
    right: -200px;
    animation-duration: 20s;
    animation-delay: 5s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: linear-gradient(180deg, var(--color-accent-secondary) 0%, var(--color-accent) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 30s;
    animation-delay: 10s;
}

[data-theme="light"] .orb {
    opacity: 0.2;
    filter: blur(80px);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* Navigation */
.nav-global {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--container-width);
    height: var(--nav-height);
    background: var(--glass-dark);
    backdrop-filter: blur(var(--glass-blur-heavy)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(180%);
    border-radius: var(--radius-xl);
    border: var(--border-glass);
    box-shadow: var(--shadow-glass);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="light"] .nav-global {
    background: var(--glass-white-heavy);
}

.nav-content {
    height: 100%;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: var(--radius-md);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-white);
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    opacity: 1;
}

.nav-menu a:hover,
.nav-menu a.active {
    transform: translateY(-2px);
}

.theme-toggle {
    width: 44px;
    height: 44px;
    background: var(--glass-white);
    border: var(--border-glass);
    color: var(--color-text-primary);
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--glass-white-heavy);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--nav-height) + var(--spacing-xxxl));
    padding-bottom: var(--spacing-xxxl);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    background: var(--glass-dark);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-xl);
    border: var(--border-glass);
    box-shadow: var(--shadow-glass);
    animation: float 6s ease-in-out infinite;
}

[data-theme="light"] .hero-content {
    background: var(--glass-white);
}

.hero-profile {
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 120px rgba(120, 119, 198, 0.3);
    position: relative;
    z-index: 2;
    transition: border-radius 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s ease;
    will-change: border-radius, transform;
}

[data-theme="light"] .profile-image {
    border: 4px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.hero-profile::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary), var(--color-accent-tertiary));
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(30px);
    animation: liquidMorph 8s ease-in-out infinite;
}

.hero-headline {
    font-size: 72px;
    line-height: 1;
    font-weight: var(--font-weight-bold);
    letter-spacing: -2px;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.hero-subheadline {
    font-size: 28px;
    line-height: 1.2;
    font-weight: var(--font-weight-light);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

.hero-tagline {
    font-size: 20px;
    color: var(--color-text-tertiary);
    margin-bottom: var(--spacing-xl);
    font-weight: var(--font-weight-light);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    border-radius: var(--radius-xl);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
    color: white;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: var(--glass-white);
    backdrop-filter: blur(var(--glass-blur));
    color: var(--color-text-primary);
    border: var(--border-glass);
    box-shadow: var(--shadow-glass);
}

.btn-secondary:hover {
    background: var(--glass-white-heavy);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glass-hover);
}

/* Section Base */
section {
    padding: var(--spacing-xxl) 0;
    position: relative;
    z-index: 1;
}

.section-eyebrow {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
}

.section-headline {
    font-size: 48px;
    line-height: 1.1;
    font-weight: var(--font-weight-bold);
    letter-spacing: -1px;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
}

.section-body {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.section-body p {
    margin-bottom: var(--spacing-md);
}

/* About Section */
.section-about .container {
    padding: var(--spacing-xl);
    background: var(--glass-dark);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-xl);
    border: var(--border-glass);
    box-shadow: var(--shadow-glass);
}

[data-theme="light"] .section-about .container {
    background: var(--glass-white);
}

/* Experience Section */
.experience-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.experience-item {
    padding: var(--spacing-lg);
    background: var(--glass-dark);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    border: var(--border-glass);
    box-shadow: var(--shadow-glass);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .experience-item {
    background: var(--glass-white);
}

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

.experience-item:hover::before {
    left: 100%;
}

.experience-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-glass-hover);
}

.experience-year {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.experience-content h4 {
    font-size: 28px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

.experience-role {
    font-size: 18px;
    color: var(--color-accent);
    margin-bottom: 4px;
    font-weight: var(--font-weight-medium);
}

.experience-location {
    font-size: 14px;
    color: var(--color-text-tertiary);
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.experience-content p:last-child {
    color: var(--color-text-secondary);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.skill-card {
    padding: var(--spacing-lg);
    background: var(--glass-dark);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    border: var(--border-glass);
    box-shadow: var(--shadow-glass);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    perspective: 1000px;
}

[data-theme="light"] .skill-card {
    background: var(--glass-white);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.skill-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
    color: white;
    border-radius: var(--radius-lg);
    font-size: 32px;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.skill-card h4 {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.skill-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* Education Section */
.education-content {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    background: var(--glass-dark);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-xl);
    border: var(--border-glass);
    box-shadow: var(--shadow-glass);
    text-align: center;
    position: relative;
}

[data-theme="light"] .education-content {
    background: var(--glass-white);
}

.education-content::before {
    content: '🎓';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 60px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.education-content h3 {
    font-size: 36px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.education-field {
    font-size: 24px;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-medium);
}

.education-school {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

.education-details {
    font-size: 16px;
    color: var(--color-text-tertiary);
    font-style: italic;
}

/* Connect Section */
.connect-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.connect-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--glass-dark);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    border: var(--border-glass);
    min-width: 120px;
}

[data-theme="light"] .connect-link {
    background: var(--glass-white);
}

.connect-link i {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
    color: white;
    border-radius: var(--radius-md);
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.connect-link span {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
}

.connect-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-glass-hover);
}

.connect-link:hover i {
    transform: rotateY(360deg);
    box-shadow: 0 12px 32px rgba(0, 212, 255, 0.5);
}

/* Footer */
.footer {
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
}

.footer .container {
    padding: var(--spacing-lg);
    background: var(--glass-dark);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    border: var(--border-glass);
}

[data-theme="light"] .footer .container {
    background: var(--glass-white);
}

.footer p {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 48px;
    }

    .hero-subheadline {
        font-size: 24px;
    }

    .section-headline {
        font-size: 36px;
    }

    .nav-menu {
        display: none;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .nav-global {
        width: 95%;
        top: 10px;
    }
}

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

.hero-content,
section {
    animation: fadeInUp 1s ease;
}

/* Focus States */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

/* Selection */
::selection {
    background: var(--color-accent);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--color-accent-secondary), var(--color-accent));
}

/* Premium Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-container.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    margin-bottom: 40px;
    animation: float 2s ease-in-out infinite;
}

/* Hexagon animations */
.hexagon-outer {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawHexagon 1.5s ease-out forwards;
    transform-origin: center;
}

.hexagon-inner {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: drawHexagon 1.5s ease-out 0.3s forwards;
    transform-origin: center;
}

.hexagon-group {
    animation: rotateHex 20s linear infinite;
    transform-origin: 60px 60px;
}

.logo-letter path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLetter 1.5s ease-out 0.5s forwards;
}

@keyframes drawHexagon {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawLetter {
    to {
        stroke-dashoffset: 0;
    }
}

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

.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
    width: 0;
    animation: loadProgress 2.5s ease forwards;
}

@keyframes loadProgress {
    to {
        width: 100%;
    }
}

.loader-status {
    color: white;
    font-size: 14px;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.8s forwards;
}

/* Custom Cursor */
.custom-cursor {
    width: 40px;
    height: 40px;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: screen;
    transition: none;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: cursor-glow 2s ease-in-out infinite;
}

.custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow:
        0 0 10px rgba(0, 212, 255, 0.8),
        0 0 20px rgba(0, 212, 255, 0.4),
        0 0 30px rgba(0, 212, 255, 0.2);
}

@keyframes cursor-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.3; }
}

.custom-cursor.clicking {
    transform: scale(0.8);
}

.custom-cursor.clicking::after {
    background: rgba(255, 255, 255, 1);
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(0, 212, 255, 0.6);
}

.custom-cursor.hovering::before {
    animation-duration: 0.5s;
    width: 60px;
    height: 60px;
}

.custom-cursor.hovering::after {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow:
        0 0 15px rgba(124, 58, 237, 0.8),
        0 0 30px rgba(124, 58, 237, 0.4);
}

.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 30px;
    height: 30px;
}

.cursor-trail::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 50%);
    border-radius: 50%;
    filter: blur(3px);
    animation: trail-fade 0.8s ease-out forwards;
}

@keyframes trail-fade {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Command Palette */
.command-palette {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    background: var(--glass-dark-heavy);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: var(--border-glass);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 5000;
}

.command-palette.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.command-input-wrapper {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.command-input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    outline: none;
}

.command-results {
    max-height: 400px;
    overflow-y: auto;
}

.command-item {
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.command-item:hover,
.command-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 30px;
}

/* Floating Navigation Dots */
.nav-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.nav-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.5);
}

.nav-dot.active {
    background: var(--color-accent);
    transform: scale(1.5);
}

.nav-dot.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 2s infinite;
}

/* Rotating Text */
.rotating-text {
    display: inline-block;
    position: relative;
    width: 140px;
    height: 40px;
    vertical-align: middle;
}

.rotating-word {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    animation: rotateWord 12s linear infinite;
}

.rotating-word.active {
    opacity: 1;
}

@keyframes rotateWord {
    0%, 25% {
        opacity: 1;
        transform: translateY(-50%) translateZ(0);
    }
    30%, 100% {
        opacity: 0;
        transform: translateY(-150%) translateZ(0);
    }
}

.rotating-word:nth-child(2) {
    animation-delay: 3s;
}

.rotating-word:nth-child(3) {
    animation-delay: 6s;
}

.rotating-word:nth-child(4) {
    animation-delay: 9s;
}

/* Hide cursor on touch devices */
@media (hover: none) {
    .custom-cursor,
    .cursor-trail {
        display: none;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .nav-dots {
        display: none;
    }

    .command-palette {
        width: 95%;
    }
}