/* ============================================
   FURKAN YAMAN - Professional Portfolio
   Master Stylesheet with Dark Mode Support
   ============================================ */

/* ============================================
   CSS Variables & Theme System
   ============================================ */
:root {
    /* Light Theme Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #E3F2FD;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-hover: rgba(255, 255, 255, 0.9);
    
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    
    --accent: #1976D2;
    --accent-light: #42A5F5;
    --accent-dark: #1565C0;
    --accent-glow: rgba(25, 118, 210, 0.3);
    
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    
    --gradient-primary: linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%);
    --gradient-accent: linear-gradient(135deg, #1976D2 0%, #42A5F5 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --navbar-height: 80px;
    --container-max: 1200px;
    --section-padding: 120px;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #1E3A5F;
    --bg-glass: rgba(30, 41, 59, 0.8);
    --bg-glass-hover: rgba(30, 41, 59, 0.95);
    
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    --gradient-primary: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-glass: linear-gradient(135deg, rgba(30,41,59,0.9) 0%, rgba(30,41,59,0.6) 100%);
}

/* ============================================
   Base Styles & Reset
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .label {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin: 20px auto 0;
}

/* ============================================
   Glassmorphism Components
   ============================================ */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

.glass-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-glass-hover);
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px var(--shadow-color);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.navbar-link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    transition: color var(--transition-fast);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition-normal);
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--accent);
}

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

/* Dropdown Menu */
.nav-item {
    position: relative;
}

.nav-item .navbar-link {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item .navbar-link .dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.nav-item:hover .navbar-link .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--accent);
    transform: translateX(4px);
}

.dropdown-menu a i {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Dark Mode Toggle */
.theme-toggle {
    position: relative;
    width: 56px;
    height: 28px;
    background: var(--bg-secondary);
    border-radius: 50px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--gradient-accent);
    border-radius: 50%;
    transition: transform var(--transition-normal);
    box-shadow: 0 2px 10px var(--accent-glow);
}

[data-theme="dark"] .theme-toggle::before {
    transform: translateX(28px);
}

.theme-toggle .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    transition: opacity var(--transition-fast);
}

.theme-toggle .icon-sun {
    left: 6px;
    opacity: 1;
}

.theme-toggle .icon-moon {
    right: 6px;
    opacity: 0.5;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 0.5;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 1;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-primary);
    padding: 100px 24px 32px;
    transition: right var(--transition-normal);
    z-index: 999;
    box-shadow: -10px 0 30px var(--shadow-color);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-links > a,
.mobile-nav-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.mobile-menu-links > a:hover,
.mobile-nav-item > a:hover {
    background: var(--bg-secondary);
    color: var(--accent);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
}

.mobile-nav-item > a .chevron {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.mobile-nav-item.open > a .chevron {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    flex-direction: column;
    padding-left: 16px;
    margin-top: 4px;
    gap: 2px;
}

.mobile-nav-item.open .mobile-submenu {
    display: flex;
}

.mobile-submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    padding: 10px 16px;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.mobile-submenu a:hover {
    background: var(--bg-tertiary);
    color: var(--accent);
}

.mobile-submenu a i {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.mobile-menu-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.mobile-menu-footer .theme-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.mobile-menu-footer .theme-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mobile-overlay.active {
    opacity: 1;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

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

/* ============================================
   Hero Section
   ============================================ */
/* ============================================
   Hero Section - Advanced Animated Version
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Animated Gradient Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, 
        var(--bg-primary), 
        var(--bg-secondary), 
        rgba(25, 118, 210, 0.1), 
        var(--bg-tertiary));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

/* Floating Orbs */
.hero-bg .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.hero-bg .shape-1 {
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    animation: floatOrb1 20s infinite ease-in-out;
}

.hero-bg .shape-2 {
    bottom: -15%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    animation: floatOrb2 25s infinite ease-in-out;
}

.hero-bg .shape-3 {
    top: 40%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-light));
    animation: floatOrb3 18s infinite ease-in-out;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-50px, 80px) scale(1.1); }
    50% { transform: translate(30px, -40px) scale(0.9); }
    75% { transform: translate(-30px, -60px) scale(1.05); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -50px) scale(1.15); }
    66% { transform: translate(-40px, 40px) scale(0.85); }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    25% { transform: translate(-30%, -70%) scale(1.2); }
    50% { transform: translate(-70%, -40%) scale(0.8); }
    75% { transform: translate(-40%, -60%) scale(1.1); }
}

/* Animated Grid Lines */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(25, 118, 210, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25, 118, 210, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
    z-index: 1;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { top: 60%; left: 20%; animation-delay: -2s; animation-duration: 14s; width: 4px; height: 4px; }
.particle:nth-child(3) { top: 30%; left: 80%; animation-delay: -4s; animation-duration: 16s; width: 8px; height: 8px; }
.particle:nth-child(4) { top: 70%; left: 70%; animation-delay: -6s; animation-duration: 13s; }
.particle:nth-child(5) { top: 40%; left: 40%; animation-delay: -8s; animation-duration: 15s; width: 5px; height: 5px; }
.particle:nth-child(6) { top: 80%; left: 30%; animation-delay: -10s; animation-duration: 17s; width: 7px; height: 7px; }
.particle:nth-child(7) { top: 15%; left: 60%; animation-delay: -3s; animation-duration: 11s; width: 4px; height: 4px; }
.particle:nth-child(8) { top: 50%; left: 90%; animation-delay: -7s; animation-duration: 14s; }

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0) translateX(0) scale(1); 
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-100px) translateX(30px) scale(1.5); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-50px) translateX(-20px) scale(0.8); 
        opacity: 0.4;
    }
    75% { 
        transform: translateY(-150px) translateX(10px) scale(1.2); 
        opacity: 0.7;
    }
}

/* Glowing Ring */
.hero-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border: 2px solid rgba(25, 118, 210, 0.1);
    border-radius: 50%;
    animation: ringPulse 4s ease-in-out infinite;
    z-index: 1;
}

.hero-ring::before {
    content: '';
    position: absolute;
    inset: 30px;
    border: 2px solid rgba(25, 118, 210, 0.08);
    border-radius: 50%;
    animation: ringPulse 4s ease-in-out infinite 0.5s;
}

.hero-ring::after {
    content: '';
    position: absolute;
    inset: 60px;
    border: 2px solid rgba(25, 118, 210, 0.05);
    border-radius: 50%;
    animation: ringPulse 4s ease-in-out infinite 1s;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.6; }
}

/* Code Lines Decoration */
.hero-code-lines {
    position: absolute;
    left: 5%;
    top: 20%;
    z-index: 2;
    opacity: 0.15;
}

.code-line {
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 8px;
    animation: codeLine 3s ease-in-out infinite;
}

.code-line:nth-child(1) { width: 80px; animation-delay: 0s; }
.code-line:nth-child(2) { width: 120px; animation-delay: 0.2s; }
.code-line:nth-child(3) { width: 60px; animation-delay: 0.4s; }
.code-line:nth-child(4) { width: 100px; animation-delay: 0.6s; }
.code-line:nth-child(5) { width: 70px; animation-delay: 0.8s; }

@keyframes codeLine {
    0%, 100% { opacity: 0.15; transform: scaleX(1); }
    50% { opacity: 0.4; transform: scaleX(1.1); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 28px;
    animation: badgePulse 3s ease-in-out infinite;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: dot 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.2); }
    50% { box-shadow: 0 0 0 10px rgba(25, 118, 210, 0); }
}

@keyframes dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.hero-title {
    margin-bottom: 24px;
    position: relative;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, var(--accent-dark) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 5s ease infinite;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-subtitle strong {
    color: var(--accent);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Floating Tech Icons */
.hero-tech-icons {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.tech-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    animation: techFloat 6s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tech-icon:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.tech-icon:nth-child(2) { top: 25%; right: 12%; animation-delay: -1s; }
.tech-icon:nth-child(3) { bottom: 30%; left: 8%; animation-delay: -2s; }
.tech-icon:nth-child(4) { bottom: 20%; right: 10%; animation-delay: -3s; }
.tech-icon:nth-child(5) { top: 60%; left: 15%; animation-delay: -4s; }
.tech-icon:nth-child(6) { top: 40%; right: 8%; animation-delay: -5s; }

@keyframes techFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(5px) rotate(-3deg); }
    75% { transform: translateY(-10px) rotate(3deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: scrollBounce 2s infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    animation: scrollArrow 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scrollArrow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Mobile Responsive Hero */
@media (max-width: 1024px) {
    .hero-ring {
        width: 400px;
        height: 400px;
    }
    
    .tech-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .hero-code-lines {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100svh; /* Safe viewport height for mobile */
        padding: 100px 0 60px;
    }
    
    .hero-bg .shape-1 {
        width: 250px;
        height: 250px;
        top: -5%;
        right: -10%;
    }
    
    .hero-bg .shape-2 {
        width: 300px;
        height: 300px;
        bottom: -10%;
        left: -15%;
    }
    
    .hero-bg .shape-3 {
        width: 150px;
        height: 150px;
    }
    
    .hero-ring {
        width: 280px;
        height: 280px;
    }
    
    .hero-ring::before {
        inset: 20px;
    }
    
    .hero-ring::after {
        inset: 40px;
    }
    
    .hero-grid {
        background-size: 40px 40px;
    }
    
    .hero-particles .particle {
        width: 4px;
        height: 4px;
    }
    
    .hero-tech-icons {
        display: none;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-badge {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-bg .shape {
        filter: blur(40px);
        opacity: 0.4;
    }
    
    .hero-ring {
        width: 220px;
        height: 220px;
    }
}

/* ============================================
   Services Grid
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card .icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px var(--accent-glow);
}

.service-card .icon-wrapper svg {
    width: 28px;
    height: 28px;
    color: white;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
}

.service-card .arrow {
    position: absolute;
    bottom: 32px;
    right: 32px;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-normal);
}

.service-card:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Projects Grid
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
}

.project-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-secondary);
    transition: all var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.project-card .image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-card .image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-secondary) 0%, transparent 50%);
}

.project-card .badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    z-index: 1;
}

.project-card .content {
    padding: 24px;
}

.project-card h3 {
    margin-bottom: 8px;
}

.project-card p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.project-card .tech-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-card .tech-stack span {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image .main-image {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--gradient-accent);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
}

.about-image .floating-card {
    position: absolute;
    padding: 20px 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.about-image .floating-card.experience {
    bottom: -20px;
    right: -20px;
}

.about-image .floating-card .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.about-image .floating-card .label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.about-content .subtitle {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content .description {
    margin-bottom: 32px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.stat-item .icon {
    width: 40px;
    height: 40px;
    background: var(--accent-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.stat-item .icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.stat-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-item .value {
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info h3 {
    margin-bottom: 16px;
}

.contact-info > p {
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.contact-method:hover {
    border-color: var(--accent);
    transform: translateX(8px);
}

.contact-method .icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method .icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.contact-method .details .label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-method .details .value {
    font-weight: 600;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.social-link:hover svg {
    color: white;
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    resize: none;
    min-height: 140px;
}

/* ============================================
   Floating Action Buttons
   ============================================ */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 900;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-4px);
}

.floating-btn.whatsapp {
    background: #25D366;
    color: white;
}

.floating-btn.whatsapp:hover {
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4);
}

.floating-btn.email {
    background: var(--gradient-accent);
    color: white;
}

.floating-btn.email:hover {
    box-shadow: 0 12px 40px var(--accent-glow);
}

.floating-btn svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.875rem;
}

/* ============================================
   Page Header (for subpages)
   ============================================ */
.page-header {
    padding: 160px 0 80px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.page-header .breadcrumb a {
    color: var(--accent);
}

.page-header .breadcrumb svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Project Detail Page
   ============================================ */
.project-detail {
    padding: 80px 0;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.project-main-image {
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
}

.project-main-image img {
    width: 100%;
    height: auto;
}

.project-description h3 {
    margin-bottom: 16px;
}

.project-description p {
    margin-bottom: 24px;
}

.project-features {
    margin-top: 40px;
}

.project-features h4 {
    margin-bottom: 20px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.feature-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* Project Sidebar */
.project-sidebar {
    position: sticky;
    top: 120px;
}

.project-info-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
}

.project-info-card h4 {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.info-item .value {
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Parallax */
.parallax-layer {
    transition: transform 0.1s ease-out;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .about-grid,
    .contact-grid,
    .project-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --navbar-height: 70px;
    }
    
    /* Mobile Header Fix */
    .navbar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        height: var(--navbar-height);
    }
    
    .navbar-logo {
        font-size: 1.25rem;
        flex-shrink: 0;
    }
    
    .navbar-menu {
        display: none !important;
    }
    
    .navbar-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .navbar-actions .btn {
        display: none !important;
    }
    
    .navbar-actions .theme-toggle {
        width: 48px;
        height: 26px;
    }
    
    .navbar-actions .theme-toggle::before {
        width: 18px;
        height: 18px;
    }
    
    [data-theme="dark"] .navbar-actions .theme-toggle::before {
        transform: translateX(22px);
    }
    
    .mobile-menu-btn {
        display: flex;
        flex-shrink: 0;
        margin-left: 12px;
        background: none;
        border: none;
    }
    
    .mobile-menu,
    .mobile-overlay {
        display: block;
    }
    
    /* Full Screen Mobile Menu */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        padding: 80px 20px 40px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 998;
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        transform: translateX(0);
        right: 0;
    }
    
    .mobile-overlay {
        display: none !important;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .floating-actions {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    
    /* Mobile Menu Links */
    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .mobile-menu-links > a {
        display: block;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
        padding: 16px 20px;
        border-radius: 12px;
        background: var(--bg-secondary);
        margin-bottom: 8px;
        transition: all 0.2s ease;
    }
    
    .mobile-menu-links > a:hover {
        background: var(--accent);
        color: white;
    }
    
    .mobile-nav-item > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
        padding: 16px 20px;
        border-radius: 12px;
        background: var(--bg-secondary);
        margin-bottom: 8px;
    }
    
    .mobile-submenu {
        background: var(--bg-tertiary);
        border-radius: 12px;
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .mobile-submenu a {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .glass-card {
        padding: 24px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .project-info-card {
        padding: 24px;
    }
}

/* ============================================
   Global Mobile Overflow Fix
   ============================================ */
@media (max-width: 768px) {
    * {
        max-width: 100%;
    }
    
    .section,
    .container,
    .hero,
    .footer {
        overflow-x: hidden;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
}

/* ============================================
   Performance Optimizations
   ============================================ */
.hero-bg .shape,
.hero-ring,
.hero-particles .particle,
.tech-icon,
.hero-grid {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-bg .shape,
    .hero-particles,
    .hero-tech-icons,
    .hero-ring,
    .hero-grid {
        animation: none !important;
    }
}

/* Dark Mode Hero Adjustments */
[data-theme="dark"] .hero::before {
    background: linear-gradient(-45deg, 
        var(--bg-primary), 
        var(--bg-secondary), 
        rgba(66, 165, 245, 0.1), 
        var(--bg-tertiary));
}

[data-theme="dark"] .hero-grid {
    background-image: 
        linear-gradient(rgba(66, 165, 245, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 165, 245, 0.05) 1px, transparent 1px);
}

[data-theme="dark"] .hero-ring {
    border-color: rgba(66, 165, 245, 0.15);
}

[data-theme="dark"] .hero-ring::before {
    border-color: rgba(66, 165, 245, 0.1);
}

[data-theme="dark"] .hero-ring::after {
    border-color: rgba(66, 165, 245, 0.07);
}

[data-theme="dark"] .hero-bg .shape {
    opacity: 0.3;
}

[data-theme="dark"] .particle {
    background: var(--accent-light);
}

[data-theme="dark"] .code-line {
    background: var(--accent-light);
}

/* ============================================
   MODERN HERO SECTION - 2024 Design
   ============================================ */

.hero-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Aurora Background Effect */
.hero-aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    filter: blur(100px);
    opacity: 0.6;
}

.aurora {
    position: absolute;
    border-radius: 50%;
    animation: auroraFloat 15s ease-in-out infinite;
}

.aurora-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.aurora-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 50%;
    right: -150px;
    animation-delay: -5s;
}

.aurora-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: -100px;
    left: 30%;
    animation-delay: -10s;
}

@keyframes auroraFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 50px) scale(0.9); }
    75% { transform: translate(-50px, -20px) scale(1.05); }
}

/* Mesh Grid */
.hero-mesh {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: meshMove 20s linear infinite;
}

@keyframes meshMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Floating 3D Shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    opacity: 0.15;
}

.shape-cube {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    top: 15%;
    left: 10%;
    transform: rotate(45deg);
    animation: floatCube 8s ease-in-out infinite;
}

.shape-sphere {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, var(--accent-light), var(--accent));
    border-radius: 50%;
    top: 60%;
    right: 15%;
    animation: floatSphere 10s ease-in-out infinite;
}

.shape-ring {
    width: 100px;
    height: 100px;
    border: 4px solid var(--accent);
    border-radius: 50%;
    top: 20%;
    right: 20%;
    animation: floatRing 12s ease-in-out infinite;
}

.shape-pyramid {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid var(--accent);
    bottom: 20%;
    left: 15%;
    opacity: 0.1;
    animation: floatPyramid 9s ease-in-out infinite;
}

@keyframes floatCube {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-30px); }
}

@keyframes floatSphere {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-40px) scale(1.1); }
}

@keyframes floatRing {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(180deg) translateY(-20px); }
}

@keyframes floatPyramid {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(10deg); }
}

/* Glowing Orbs */
.hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(102, 126, 234, 0.4);
    top: 10%;
    left: 20%;
    animation: orbPulse 8s ease-in-out infinite;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(118, 75, 162, 0.3);
    bottom: 20%;
    right: 10%;
    animation: orbPulse 10s ease-in-out infinite reverse;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(79, 172, 254, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbPulse 6s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

/* Particle System */
.hero-particles-new {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-particles-new span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    animation: particleRise 10s linear infinite;
    opacity: 0;
}

.hero-particles-new span:nth-child(1) { left: 10%; animation-delay: 0s; }
.hero-particles-new span:nth-child(2) { left: 20%; animation-delay: 1s; }
.hero-particles-new span:nth-child(3) { left: 30%; animation-delay: 2s; }
.hero-particles-new span:nth-child(4) { left: 40%; animation-delay: 3s; }
.hero-particles-new span:nth-child(5) { left: 50%; animation-delay: 4s; }
.hero-particles-new span:nth-child(6) { left: 60%; animation-delay: 0.5s; }
.hero-particles-new span:nth-child(7) { left: 70%; animation-delay: 1.5s; }
.hero-particles-new span:nth-child(8) { left: 80%; animation-delay: 2.5s; }
.hero-particles-new span:nth-child(9) { left: 90%; animation-delay: 3.5s; }
.hero-particles-new span:nth-child(10) { left: 15%; animation-delay: 4.5s; }
.hero-particles-new span:nth-child(11) { left: 25%; animation-delay: 5s; }
.hero-particles-new span:nth-child(12) { left: 35%; animation-delay: 5.5s; }
.hero-particles-new span:nth-child(13) { left: 45%; animation-delay: 6s; }
.hero-particles-new span:nth-child(14) { left: 55%; animation-delay: 6.5s; }
.hero-particles-new span:nth-child(15) { left: 65%; animation-delay: 7s; }

@keyframes particleRise {
    0% { bottom: -10px; opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { bottom: 100%; opacity: 0; }
}

/* Hero Content */
.hero-modern .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
}

/* Animated Badge */
.hero-badge-wrapper {
    margin-bottom: 24px;
}

.hero-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.badge-icon {
    font-size: 1rem;
    animation: badgeIconPulse 2s ease-in-out infinite;
}

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

.badge-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Hero Title */
.hero-title-new {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-greeting {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-name-wrapper {
    display: block;
}

.hero-name-text {
    display: inline-block;
}

.gradient-text-animated {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #667eea 75%, #764ba2 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

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

/* Role Typing */
.hero-role {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.role-dynamic-wrapper {
    display: inline-flex;
    align-items: center;
}

.role-dynamic {
    color: var(--accent);
    font-weight: 600;
}

.typing-cursor {
    color: var(--accent);
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Hero Description */
.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-hero-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-hero-primary .btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.btn-hero-primary .btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-hero-primary:hover .btn-glow {
    transform: translateX(100%);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: var(--bg-glass-hover);
}

.btn-hero-secondary .btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border-color);
}

/* Tech Stack */
.hero-tech-stack {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    padding: 16px 32px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    z-index: 10;
}

.tech-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.tech-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.tech-item:hover img {
    transform: translateY(-5px) scale(1.1);
    filter: grayscale(0%);
}

.tech-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tech-item:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Scroll Indicator */
.scroll-indicator-new {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    z-index: 10;
}

.scroll-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

.scroll-icon {
    width: 20px;
    height: 20px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-tech-stack {
        bottom: 100px;
        padding: 12px 20px;
        gap: 12px;
    }
    
    .tech-item {
        width: 32px;
        height: 32px;
    }
    
    .tech-item img {
        width: 24px;
        height: 24px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-divider {
        height: 40px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .hero-aurora {
    opacity: 0.4;
}

[data-theme="dark"] .hero-badge-new {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .btn-hero-secondary {
    background: rgba(30, 41, 59, 0.8);
}

[data-theme="dark"] .hero-tech-stack {
    background: rgba(30, 41, 59, 0.8);
}

[data-theme="dark"] .tech-item img {
    filter: grayscale(20%) brightness(1.1);
}
