/* ============================================
   KASHIWAVES - Professional Portfolio Styles
   Color Palette by Professional Colorist
   ============================================ */

/* CSS Variables for Theme Support */
:root {
    /* Dark Theme (Default) - Sophisticated & Premium */
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1f;
    --bg-tertiary: #141418;
    --bg-accent: #1f1f26;

    /* Primary Accent - Rose Gold/Coral (Warm & Creative) */
    --accent-primary: #ff6b6b;
    --accent-secondary: #ee5a5a;
    --accent-light: #ff8787;

    /* Secondary Accent - Teal/Cyan (Fresh & Modern) */
    --accent-teal: #4ecdc4;
    --accent-teal-light: #7ee8e1;

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 50%, #ff8787 100%);
    --gradient-secondary: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    --gradient-mixed: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Glow Effects */
    --glow-primary: rgba(255, 107, 107, 0.3);
    --glow-teal: rgba(78, 205, 196, 0.3);

    /* Page Backgrounds */
    --page-bg-1: linear-gradient(180deg, #0d0d0d 0%, #1a1a1f 50%, #0d0d0d 100%);
    --page-bg-2: linear-gradient(135deg, #0f0f14 0%, #1a1a1f 50%, #0f0f14 100%);
    --page-bg-3: linear-gradient(180deg, #0d0d0d 0%, #151520 50%, #0d0d0d 100%);
    --page-bg-4: linear-gradient(135deg, #0f0f14 0%, #1f1f2a 50%, #14141a 100%);
}

/* Light Theme - Clean & Elegant */
[data-theme="light"] {
    --bg-primary: #faf8f5;
    --bg-secondary: #f5f2ed;
    --bg-tertiary: #efe9e1;
    --bg-accent: #e8e2d9;

    /* Deeper accents for light mode visibility */
    --accent-primary: #e85555;
    --accent-secondary: #d64545;
    --accent-light: #ff7070;

    --accent-teal: #2db3a8;
    --accent-teal-light: #3ac9bd;

    --gradient-primary: linear-gradient(135deg, #e85555 0%, #d64545 50%, #ff7070 100%);
    --gradient-secondary: linear-gradient(135deg, #2db3a8 0%, #3a9d8f 100%);
    --gradient-mixed: linear-gradient(135deg, #e85555 0%, #2db3a8 100%);

    --text-primary: #1a1a1a;
    --text-secondary: rgba(26, 26, 26, 0.75);
    --text-muted: rgba(26, 26, 26, 0.5);

    --glow-primary: rgba(232, 85, 85, 0.2);
    --glow-teal: rgba(45, 179, 168, 0.2);

    --page-bg-1: linear-gradient(180deg, #faf8f5 0%, #f5f2ed 50%, #faf8f5 100%);
    --page-bg-2: linear-gradient(135deg, #f8f5f0 0%, #f0ebe3 50%, #f8f5f0 100%);
    --page-bg-3: linear-gradient(180deg, #faf8f5 0%, #efe9e1 50%, #faf8f5 100%);
    --page-bg-4: linear-gradient(135deg, #f5f0e8 0%, #e8e2d9 50%, #f0ebe3 100%);
}

/* ============================================
   Color Theme Variants
   ============================================ */

/* Violet Theme */
[data-color="violet"] {
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-light: #a78bfa;
    --accent-teal: #8b5cf6;
    --accent-teal-light: #a78bfa;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #a78bfa 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --gradient-mixed: linear-gradient(135deg, #667eea 0%, #8b5cf6 100%);
    --glow-primary: rgba(102, 126, 234, 0.3);
    --glow-teal: rgba(139, 92, 246, 0.3);
}

/* Emerald Theme */
[data-color="emerald"] {
    --accent-primary: #00c9a7;
    --accent-secondary: #00b894;
    --accent-light: #55efc4;
    --accent-teal: #00d9c0;
    --accent-teal-light: #81ecec;
    --gradient-primary: linear-gradient(135deg, #00c9a7 0%, #00b894 50%, #55efc4 100%);
    --gradient-secondary: linear-gradient(135deg, #00d9c0 0%, #00b894 100%);
    --gradient-mixed: linear-gradient(135deg, #00c9a7 0%, #55efc4 100%);
    --glow-primary: rgba(0, 201, 167, 0.3);
    --glow-teal: rgba(85, 239, 196, 0.3);
}

/* Gold Theme */
[data-color="gold"] {
    --accent-primary: #f7971e;
    --accent-secondary: #e67e22;
    --accent-light: #ffd200;
    --accent-teal: #fdcb6e;
    --accent-teal-light: #ffeaa7;
    --gradient-primary: linear-gradient(135deg, #f7971e 0%, #e67e22 50%, #ffd200 100%);
    --gradient-secondary: linear-gradient(135deg, #fdcb6e 0%, #f7971e 100%);
    --gradient-mixed: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    --glow-primary: rgba(247, 151, 30, 0.3);
    --glow-teal: rgba(253, 203, 110, 0.3);
}

/* Ocean Theme */
[data-color="ocean"] {
    --accent-primary: #4facfe;
    --accent-secondary: #00b4db;
    --accent-light: #00f2fe;
    --accent-teal: #00c6fb;
    --accent-teal-light: #7dd3fc;
    --gradient-primary: linear-gradient(135deg, #4facfe 0%, #00b4db 50%, #00f2fe 100%);
    --gradient-secondary: linear-gradient(135deg, #00c6fb 0%, #4facfe 100%);
    --gradient-mixed: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --glow-primary: rgba(79, 172, 254, 0.3);
    --glow-teal: rgba(0, 242, 254, 0.3);
}

* {
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html,
body {
    height: 100%;
    width: 100%;
    background-color: var(--bg-primary);
    transition: background-color 0.4s ease;
}

/* Custom Selection */
::selection {
    background: var(--gradient-primary);
    color: #fff;
}

#main {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
    transition: background-color 0.4s ease;
}

#page {
    position: relative;
    height: 100vh;
    width: 100vw;
    background: var(--page-bg-1);
    transition: background 0.4s ease;
}

#page1 {
    position: relative;
    height: 100vh;
    width: 100vw;
    background: var(--page-bg-2);
    transition: background 0.4s ease;
}

#page2 {
    position: relative;
    height: 100vh;
    width: 100vw;
    background: var(--page-bg-3);
    transition: background 0.4s ease;
}

#page3 {
    position: relative;
    height: 100vh;
    width: 100vw;
    background: var(--page-bg-4);
    transition: background 0.4s ease;
}

canvas {
    position: relative;
    z-index: 9;
    max-width: 100vw;
    max-height: 100vh;
    pointer-events: none;
}

/* Marquee Loop Animation */
#loop {
    display: flex;
    position: absolute;
    top: 28%;
    height: 25%;
    width: 100%;
    font-size: 80px;
    white-space: nowrap;
    z-index: 1;
}

#loop>h1 {
    font-weight: 300;
    animation-name: anim;
    animation-duration: 20s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    color: var(--text-primary);
    text-shadow: 0 0 40px var(--glow-primary);
    letter-spacing: 2px;
    transition: color 0.4s ease;
}

#loop>h1>b {
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#loop>h1>span {
    -webkit-text-stroke: 1.5px var(--text-secondary);
    color: transparent;
    font-weight: 500;
}

#loop>h1>span>i {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

@keyframes anim {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Navigation */
#nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    width: 100%;
    position: fixed;
    z-index: 99;
    padding: 0px 40px;
    background: transparent;
}

#nav>h3 {
    font-weight: 400;
    font-size: 24px;
    color: var(--text-primary);
    letter-spacing: 2px;
    transition: color 0.4s ease;
}

#nav h3 b {
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Color Palette Selector */
#color-palette {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] #color-palette {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.color-dot:hover {
    transform: scale(1.2);
}

.color-dot.active {
    border-color: var(--text-primary);
    transform: scale(1.15);
    box-shadow: 0 0 10px var(--glow-primary);
}

/* Theme Toggle Button */
#theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--text-muted);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

#theme-toggle:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 107, 107, 0.1);
    transform: rotate(15deg);
}

#theme-toggle .sun-icon {
    display: none;
}

#theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] #theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] #theme-toggle .moon-icon {
    display: none;
}

#hire-btn {
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--glow-primary);
}

#hire-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--glow-primary);
}

/* ============================================
   Hamburger Menu
   ============================================ */

#burger-menu {
    position: relative;
}

#burger-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--text-muted);
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    transition: all 0.3s ease;
}

#burger-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 107, 107, 0.1);
}

.burger-line {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

#burger-btn.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#burger-btn.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

#burger-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    min-width: 160px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    z-index: 100;
}

[data-theme="light"] #burger-dropdown {
    background: var(--bg-secondary);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

#burger-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.menu-link:hover {
    background: var(--gradient-primary);
    color: #fff;
}

/* Page Hero Text */
#page>h3 {
    position: absolute;
    top: 72%;
    font-weight: 400;
    color: var(--text-secondary);
    left: 5%;
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 1px;
    max-width: 600px;
    transition: color 0.4s ease;
}

#page>h4 {
    position: absolute;
    top: 85%;
    left: 5%;
    font-weight: 500;
    color: var(--accent-teal);
    font-size: 14px;
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
    transition: color 0.4s ease;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ============================================
   Hero Tagline - Professional Text Effects
   ============================================ */

.hero-tagline {
    position: absolute;
    top: 72%;
    left: 5%;
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 3px;
    max-width: 700px;
    transition: color 0.4s ease;
    text-transform: uppercase;
}

.hero-tagline .reveal-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-tagline .reveal-text:nth-child(3) {
    animation-delay: 0.7s;
}

.hero-tagline .reveal-text:nth-child(5) {
    animation-delay: 1.1s;
}

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

.gradient-word {
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
    opacity: 0;
    animation: revealGradient 1s ease forwards;
    animation-delay: 0.6s;
}

.gradient-word.highlight-word {
    font-size: 22px;
    animation-delay: 0.9s;
    text-shadow: 0 0 40px var(--glow-primary);
}

@keyframes revealGradient {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Shimmer effect on hover */
.gradient-word::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer 3s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes shimmer {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

/* ============================================
   Scroll Indicator - Enhanced Styling
   ============================================ */

.scroll-indicator {
    position: absolute;
    bottom: 3%;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--accent-primary);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.5s;
    transition: color 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: dotPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--glow-primary);
}

@keyframes dotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }
}

.scroll-text {
    position: relative;
}

.scroll-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-primary);
    animation: underlineExpand 2s ease forwards;
    animation-delay: 2s;
}

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

.scroll-arrow {
    display: inline-block;
    animation: bounceArrow 2s ease-in-out infinite;
    font-size: 16px;
}

@keyframes bounceArrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-tagline {
        font-size: 14px;
        left: 5%;
        right: 5%;
        line-height: 1.8;
        letter-spacing: 2px;
    }

    .gradient-word.highlight-word {
        font-size: 16px;
    }

    .scroll-indicator {
        font-size: 11px;
        gap: 8px;
    }

    .dot-pulse {
        width: 6px;
        height: 6px;
    }
}

/* Page 1 - Expertise Section */
#page1>#right-text {
    position: absolute;
    top: 25%;
    left: 10%;
}

#page1>#right-text>h3 {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    transition: color 0.4s ease;
}

#page1>#right-text>h1 {
    line-height: 1.3;
    font-size: 55px;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 0 60px var(--glow-primary);
    transition: color 0.4s ease;
}

#page1>#left-text {
    position: absolute;
    top: 55%;
    right: 10%;
    text-align: end;
}

#page1>#left-text>h1 {
    font-size: 55px;
    line-height: 1.3;
    font-weight: 600;
    background: var(--gradient-mixed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#page1>#left-text>h3 {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 20px;
    transition: color 0.4s ease;
}

/* Page 2 - Philosophy Section */
#page2>#text1 {
    position: absolute;
    top: 25%;
    left: 10%;
}

#page2>#text1>h3 {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    transition: color 0.4s ease;
}

#page2>#text1>h1 {
    font-size: 65px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.4s ease;
}

#page2>#text1>h1::first-line {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#page2>#text2 {
    position: absolute;
    top: 60%;
    right: 12%;
    text-align: left;
    max-width: 420px;
}

#page2>#text2>p {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.5px;
    transition: color 0.4s ease;
}

/* Page 3 - Contact Section */
#page3>#text3 {
    position: absolute;
    top: 30%;
    right: 10%;
    text-align: end;
    z-index: 20;
}

#page3>#text3>h3 {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    transition: color 0.4s ease;
}

#page3>#text3>h1 {
    font-size: 45px;
    font-weight: 700;
    background: var(--gradient-mixed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    text-shadow: 0 0 80px var(--glow-primary);
}

/* Contact Button */
.contact-btn {
    display: inline-block;
    margin-top: 35px;
    padding: 16px 40px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    color: #fff;
    background: var(--gradient-primary);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px var(--glow-primary);
    position: relative;
    overflow: hidden;
}

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

.contact-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px var(--glow-primary);
}

.contact-btn:hover::before {
    left: 100%;
}

#contact-info {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
}

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

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

#social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    padding: 12px 24px;
    border: 1px solid var(--text-muted);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .social-btn {
    background: rgba(0, 0, 0, 0.03);
}

.social-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--glow-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    #loop {
        font-size: 40px;
        top: 25%;
    }

    #nav {
        padding: 0 20px;
    }

    #nav-right {
        gap: 10px;
    }

    #theme-toggle {
        width: 38px;
        height: 38px;
    }

    #hire-btn {
        padding: 10px 16px;
        font-size: 10px;
    }

    #page>h3 {
        font-size: 14px;
        left: 5%;
        right: 5%;
    }

    #page1>#right-text>h1,
    #page1>#left-text>h1 {
        font-size: 35px;
    }

    #page2>#text1>h1 {
        font-size: 40px;
    }

    #page2>#text2>p {
        font-size: 13px;
    }

    #page3>#text3>h1 {
        font-size: 45px;
    }

    .social-btn {
        padding: 10px 18px;
        font-size: 10px;
    }
}

/* ============================================
   VISUAL ENHANCEMENTS - Eye-Catching Effects
   ============================================ */

/* Floating Gradient Orbs */
.floating-orbs {
    display: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    will-change: transform;
    transform: translateZ(0);
    animation: floatOrb 25s ease-in-out infinite;
    contain: layout style paint;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-primary);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-secondary);
    bottom: 20%;
    left: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--gradient-mixed);
    top: 50%;
    right: 20%;
    animation-delay: -14s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }

    75% {
        transform: translate(-50px, -20px) scale(1.05);
    }
}

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

/* Decorative Grid Pattern */
.deco-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

[data-theme="light"] .deco-grid {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Glowing Corner Accents */
.corner-accent {
    position: absolute;
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 2;
}

.corner-accent.top-left {
    top: 0;
    left: 0;
    background: radial-gradient(circle at top left, var(--glow-primary) 0%, transparent 70%);
    animation: cornerPulse 4s ease-in-out infinite;
}

.corner-accent.bottom-right {
    bottom: 0;
    right: 0;
    background: radial-gradient(circle at bottom right, var(--glow-teal) 0%, transparent 70%);
    animation: cornerPulse 4s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes cornerPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* Decorative Lines */
.deco-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.deco-lines::before,
.deco-lines::after {
    content: '';
    position: absolute;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.deco-lines::before {
    width: 1px;
    height: 40%;
    top: 30%;
    left: 20%;
    animation: lineGrow 3s ease-in-out infinite;
}

.deco-lines::after {
    width: 1px;
    height: 50%;
    top: 20%;
    right: 15%;
    animation: lineGrow 3s ease-in-out infinite;
    animation-delay: -1.5s;
}

@keyframes lineGrow {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.1;
    }

    50% {
        transform: scaleY(1.2);
        opacity: 0.3;
    }
}

/* Floating Geometric Shapes */
.floating-shape {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    opacity: 0.15;
}

.floating-shape.shape-1 {
    width: 100px;
    height: 100px;
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    top: 15%;
    right: 20%;
    transform: rotate(45deg);
    animation: floatShape 8s ease-in-out infinite;
}

.floating-shape.shape-2 {
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent-teal);
    border-radius: 50%;
    bottom: 20%;
    left: 15%;
    animation: floatShape 6s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    50% {
        transform: translateY(-20px) rotate(55deg);
    }
}

.floating-shape.shape-2 {
    animation-name: floatCircle;
}

@keyframes floatCircle {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.1);
    }
}

/* Animated Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--glow-primary);
    animation: particleFloat 15s linear infinite;
    opacity: 0;
}

.particles span:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particles span:nth-child(2) {
    left: 30%;
    animation-delay: -3s;
    width: 4px;
    height: 4px;
}

.particles span:nth-child(3) {
    left: 50%;
    animation-delay: -6s;
    width: 8px;
    height: 8px;
}

.particles span:nth-child(4) {
    left: 70%;
    animation-delay: -9s;
    width: 5px;
    height: 5px;
}

.particles span:nth-child(5) {
    left: 90%;
    animation-delay: -12s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Glow Ring */
.glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
    animation: ringPulse 4s ease-in-out infinite;
}

.glow-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 1px solid var(--accent-teal);
    border-radius: 50%;
    animation: ringPulse 4s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.2;
    }
}

/* Premium Blur Background */
.premium-blur {
    display: none;
}

@keyframes premiumPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.25;
    }
}

/* Star Sparkles */
.star-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--text-primary);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle::before,
.sparkle::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.sparkle::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sparkle::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sparkle:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 40%;
    right: 25%;
    left: auto;
    animation-delay: -0.7s;
}

.sparkle:nth-child(3) {
    bottom: 30%;
    left: 25%;
    top: auto;
    animation-delay: -1.4s;
}

@keyframes sparkle {

    0%,
    100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
}

/* Enhanced Text Glow Effects */
#page1>#right-text>h1,
#page1>#left-text>h1 {
    text-shadow: 0 0 60px var(--glow-primary);
}

#page2>#text1>h1 {
    position: relative;
}

#page2>#text1>h1::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: lineExpand 2s ease-in-out infinite;
}

@keyframes lineExpand {

    0%,
    100% {
        width: 80px;
    }

    50% {
        width: 120px;
    }
}

/* Nav Glass Effect Enhancement */
#nav {
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
}

[data-theme="light"] #nav {
    background: transparent;
    border-bottom: none;
}

/* Mobile Responsive for Effects */
@media (max-width: 768px) {
    .orb {
        filter: blur(60px);
    }

    .orb-1 {
        width: 300px;
        height: 300px;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
    }

    .orb-3 {
        width: 200px;
        height: 200px;
    }

    .floating-shape,
    .particles,
    .glow-ring {
        display: none;
    }

    .premium-blur {
        width: 300px;
        height: 300px;
        filter: blur(100px);
    }

    .corner-accent {
        width: 120px;
        height: 120px;
    }
}

/* ============================================
   PERFORMANCE: Reduced Motion Support
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .floating-orbs,
    .particles,
    .glow-ring,
    .star-sparkles,
    .premium-blur,
    .floating-shape,
    .deco-lines,
    .corner-accent {
        display: none !important;
    }
}

/* GPU Acceleration for Interactive Elements */
#theme-toggle,
#hire-btn,
.color-dot,
.contact-btn,
.social-link,
.menu-link {
    will-change: transform;
    transform: translateZ(0);
}

/* Reduce nav blur on mobile for performance */
@media (max-width: 768px) {
    #nav {
        backdrop-filter: none;
    }
}

/* Current Page Indicator */
.current-page {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-primary);
    padding: 8px 16px;
    border: 1px solid var(--accent-primary);
    border-radius: 20px;
    margin-right: 15px;
}