/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #00d4ff;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    
    /* Dark Theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-padding: 0 20px;
    
    /* Animations */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
    
    /* Shadows */
    --shadow-light: 0 4px 20px rgba(0, 212, 255, 0.1);
    --shadow-medium: 0 8px 40px rgba(0, 212, 255, 0.2);
    --shadow-heavy: 0 20px 60px rgba(0, 212, 255, 0.3);
    
    /* Border Radius */
    --radius-small: 8px;
    --radius-medium: 16px;
    --radius-large: 24px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo .logo-text {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: loading 2s ease-in-out;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
    opacity: 0.5;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    padding: 0.8rem 0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    border-bottom-color: rgba(0, 212, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Section */
.nav-brand {
    z-index: 1001;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transition: all 0.4s ease;
    overflow: hidden;
}

.logo-icon:hover {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.logo-letters {
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
    font-family: 'Inter', sans-serif;
    z-index: 2;
    position: relative;
}

.logo-glow {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #4ecdc4;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    transition: color 0.3s ease;
}

.brand-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.brand-logo:hover .brand-role {
    color: var(--primary-color);
    opacity: 1;
}

/* Desktop Navigation */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-item {
    position: relative;
}

.nav-link {
    position: relative;
    display: block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    white-space: nowrap;
}

.link-text {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.link-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    transform: scale(0);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.nav-link:hover .link-bg,
.nav-link.active .link-bg {
    transform: scale(1);
    opacity: 1;
}

.nav-link:hover .link-text,
.nav-link.active .link-text {
    color: white;
    transform: translateY(-1px);
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.nav-link:active {
    transform: translateY(0);
}

/* Magnetic effect */
.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 0;
}

.nav-link:hover::before {
    width: 200%;
    height: 200%;
}

/* Right Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
}

/* Theme Toggle */
.theme-btn {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.theme-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.theme-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    transition: all 0.4s ease;
}

.sun-icon {
    left: 6px;
    color: #ffd700;
    opacity: 0;
    transform: translateY(-50%) rotate(180deg);
}

.moon-icon {
    right: 6px;
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
}

.theme-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .theme-slider {
    transform: translateX(22px);
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: translateY(-50%) rotate(-180deg);
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    gap: 4px;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.menu-line {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 0 auto;
}

.menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(30px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transform: translateY(-30px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu.active .mobile-menu-content {
    transform: translateY(0);
}

.mobile-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
}

.mobile-info {
    display: flex;
    flex-direction: column;
}

.mobile-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mobile-role {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mobile-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.mobile-link:hover {
    color: white;
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(8px);
}

.mobile-link-icon {
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.mobile-link-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
}

.mobile-link-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.mobile-link:hover .mobile-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

.mobile-link:hover .mobile-link-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.mobile-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mobile-social {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-social:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-center {
        display: none;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .brand-info {
        display: none;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    
    .logo-letters {
        font-size: 1.1rem;
    }
    
    .theme-btn {
        width: 45px;
        height: 24px;
    }
    
    .theme-slider {
        width: 18px;
        height: 18px;
    }
    
    [data-theme="light"] .theme-slider {
        transform: translateX(19px);
    }
    
    .mobile-menu-content {
        padding: 1.5rem;
    }
    
    .mobile-link {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 100px 1rem 2rem 1rem;
    }
    
    .experience-card {
        padding: 2rem;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .experience-period {
        align-items: flex-start;
    }
    
    .experience-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.8rem;
    }
    
    .logo-circle {
        width: 38px;
        height: 38px;
    }
    
    .logo-initials {
        font-size: 0.9rem;
    }
    
    .theme-toggle-btn {
        width: 45px;
        height: 24px;
    }
    
    .toggle-thumb {
        width: 18px;
        height: 18px;
    }
    
    [data-theme="light"] .toggle-thumb {
        transform: translateX(19px);
    }
    
    .mobile-menu-content {
        padding: 1rem;
    }
    
    .mobile-menu-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .mobile-nav-link {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }
    
    .mobile-social-link {
        width: 45px;
        height: 45px;
    }
    
    .hero-container {
        padding: 80px 0.8rem 1rem 0.8rem;
    }
    
    .experience-card {
        padding: 1.5rem;
    }
    
    .experience-title h3 {
        font-size: 1.5rem;
    }
    
    .experience-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .experience-stats {
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.2rem;
        gap: 1rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-form {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form .btn-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .whatsapp-contact-btn {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .whatsapp-btn-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .whatsapp-btn-text {
        font-size: 1rem;
    }
    
    .whatsapp-btn-subtext {
        font-size: 0.8rem;
    }
    
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-btn i {
        font-size: 1.6rem;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* Light Theme Adjustments */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-menu {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .toggle-track {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .mobile-menu-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-menu-overlay {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .mobile-nav-link {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .mobile-nav-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}

[data-theme="light"] .mobile-social-link {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Mobile Device Optimizations */
.mobile-device {
    /* Improve scrolling performance */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.mobile-device * {
    /* Reduce animations for better performance */
    animation-duration: 0.3s !important;
    transition-duration: 0.3s !important;
}

.mobile-device .hero-container {
    /* Optimize hero section for mobile */
    padding-top: 100px;
    padding-bottom: 2rem;
}

.mobile-device .floating-elements,
.mobile-device .shape {
    /* Hide decorative elements on mobile */
    display: none !important;
}

/* Mobile Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .nav-link:hover,
    .mobile-link:hover,
    .btn:hover,
    .contact-item:hover,
    .project-card:hover {
        transform: none;
    }
    
    /* Improve touch targets */
    .mobile-link {
        min-height: 48px;
    }
    
    .btn {
        min-height: 48px;
    }
    
    .contact-item {
        min-height: 60px;
    }
    
    /* Better button spacing */
    .hero-buttons .btn {
        margin-bottom: 0.5rem;
    }
    
    /* Optimize form for touch */
    .form-group input,
    .form-group textarea {
        min-height: 48px;
        padding: 1rem;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .hero-container {
        min-height: calc(100vh - 80px);
    }
    
    .mobile-menu {
        height: -webkit-fill-available;
    }
    
    /* Fix iOS input zoom */
    .form-group input,
    .form-group textarea {
        font-size: 16px !important;
    }
}

/* Performance Optimizations */
.navbar {
    will-change: transform, background-color;
}

.nav-link {
    will-change: transform, color;
}

.mobile-menu {
    will-change: opacity, visibility;
}

.theme-slider {
    will-change: transform, background;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
.nav-link:focus,
.mobile-nav-link:focus,
.theme-toggle-btn:focus,
.mobile-menu-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.3);
}

.theme-toggle-btn:focus,
.mobile-menu-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar {
        border-bottom-width: 2px;
    }
    
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border-color: var(--primary-color);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
    padding: 100px 2rem 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-greeting {
    margin-bottom: 1rem;
}

.greeting-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
    overflow: hidden;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 600;
    min-height: 2rem;
}

.typing-text {
    font-family: 'JetBrains Mono', monospace;
}

.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-medium);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

.profile-container {
    position: relative;
}

.profile-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-large);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: transform var(--transition-medium);
}

.profile-card:hover {
    transform: translateY(-10px);
}

.profile-image {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-medium);
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.profile-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.profile-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.tech-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-medium);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    animation: floatAround 8s ease-in-out infinite;
    animation-delay: var(--delay);
}

.tech-badge:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.tech-badge:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.tech-badge:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.tech-badge:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

@keyframes floatAround {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -10px) rotate(90deg); }
    50% { transform: translate(-10px, -10px) rotate(180deg); }
    75% { transform: translate(-10px, 10px) rotate(270deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.scroll-arrow {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section Styles */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    flex: 1;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}/* About 
Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-block {
    margin-bottom: 2rem;
}

.text-block h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.text-block p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.code-window {
    background: var(--bg-tertiary);
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 100%;
}

.window-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close { background: #ff5f57; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #28ca42; }

.window-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.code-content {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-line {
    display: flex;
    margin-bottom: 0.5rem;
}

.line-number {
    color: var(--text-muted);
    margin-right: 1rem;
    min-width: 20px;
    text-align: right;
}

.keyword { color: #ff79c6; }
.variable { color: #8be9fd; }
.property { color: #50fa7b; }
.string { color: #f1fa8c; }

/* Experience Section */
.experience {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.experience-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 4rem;
}

.experience-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.experience-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
}

.experience-card.current {
    border-color: rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.02);
}

.experience-card.current:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 25px 80px rgba(0, 212, 255, 0.2);
}

.experience-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.experience-card:hover .experience-glow {
    opacity: 1;
}

.experience-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.experience-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
    transition: transform 0.3s ease;
}

.experience-card:hover .experience-icon {
    transform: scale(1.1) rotate(5deg);
}

.experience-period {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.period-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.current-badge {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
    border-color: rgba(0, 212, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.period-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.experience-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.experience-title h3 {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.experience-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.experience-achievements {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.achievement-item i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-pill {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-pill.primary {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.skill-pill.secondary {
    background: rgba(118, 75, 162, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(118, 75, 162, 0.3);
}

.skill-pill.accent {
    background: rgba(78, 205, 196, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.skill-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Experience Stats */
.experience-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.3rem;
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-large);
    overflow: hidden;
    transition: all var(--transition-medium);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.project-image {
    position: relative;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.project-link:hover {
    transform: scale(1.1);
}

.project-icon {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

.project-content {
    padding: 2rem;
}

.project-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-small);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-stats {
    display: flex;
    gap: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat i {
    color: var(--primary-color);
}

/* Skills Section */
.skills {
    background: var(--bg-primary);
}

.skills-content {
    max-width: 1000px;
    margin: 0 auto;
}

.skills-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.skill-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.skill-category:hover,
.skill-category.active {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

.skills-grid {
    position: relative;
    min-height: 400px;
}

.skills-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skills-group.active {
    opacity: 1;
    visibility: visible;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-medium);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: transform var(--transition-medium);
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.skill-info {
    flex: 1;
}

.skill-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.skill-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.skill-level {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0%;
    transition: width 1s ease-in-out;
}

.skill-percentage {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 40px;
}

/* Education Section */
.education {
    background: var(--bg-secondary);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.education-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-large);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: transform var(--transition-medium);
}

.education-item:hover {
    transform: translateY(-5px);
}

.education-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.education-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.education-info h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.education-institution {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.education-year {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.education-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.certification-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.certification-link:hover {
    color: var(--text-primary);
}

/* Contact Section */
.contact {
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-medium);
    transition: transform var(--transition-fast);
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.contact-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-details a:hover {
    color: var(--primary-color);
}

/* Contact Content Layout */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 12px 40px rgba(0, 212, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Clean & Modern Form Design */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Floating Labels */
.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group.focused label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0 0.4rem;
    background: var(--bg-primary);
    border-radius: 4px;
}

/* Color-coded Focus Effects */
.form-group:nth-child(1) input:focus {
    border-color: #00d4ff;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.form-group:nth-child(1) input:focus + label,
.form-group:nth-child(1) input:not(:placeholder-shown) + label,
.form-group:nth-child(1).focused label {
    color: #00d4ff;
}

.form-group:nth-child(2) input:focus,
.form-group:nth-child(3) input:focus,
.form-group:nth-child(4) textarea:focus {
    border-color: #ff6b6b;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.2);
}

.form-group:nth-child(2) input:focus + label,
.form-group:nth-child(2) input:not(:placeholder-shown) + label,
.form-group:nth-child(2).focused label,
.form-group:nth-child(3) input:focus + label,
.form-group:nth-child(3) input:not(:placeholder-shown) + label,
.form-group:nth-child(3).focused label,
.form-group:nth-child(4) textarea:focus + label,
.form-group:nth-child(4) textarea:not(:placeholder-shown) + label,
.form-group:nth-child(4).focused label {
    color: #ff6b6b;
}

/* Bottom Line Animation */
.form-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.form-group:nth-child(1) input:focus ~ .form-line {
    background: #00d4ff;
}

.form-group:nth-child(2) input:focus ~ .form-line,
.form-group:nth-child(3) input:focus ~ .form-line,
.form-group:nth-child(4) textarea:focus ~ .form-line {
    background: #ff6b6b;
}

/* Error States */
.form-group.error input,
.form-group.error textarea {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    animation: shake 0.5s ease;
}

.form-group.error label {
    color: #ff4757;
}

/* Success States */
.form-group.success input,
.form-group.success textarea {
    border-color: #2ed573;
    background: rgba(46, 213, 115, 0.1);
}

.form-group.success label {
    color: #2ed573;
}

/* Hover Effects */
.form-group:hover input,
.form-group:hover textarea {
    border-color: rgba(255, 255, 255, 0.2);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Light Theme */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .form-group label {
    color: var(--text-secondary);
}

[data-theme="light"] .form-group input:focus + label,
[data-theme="light"] .form-group textarea:focus + label,
[data-theme="light"] .form-group input:not(:placeholder-shown) + label,
[data-theme="light"] .form-group textarea:not(:placeholder-shown) + label,
[data-theme="light"] .form-group.focused label {
    background: var(--bg-primary);
}

/* Advanced Form Animations */
@keyframes labelFloat {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

@keyframes inputGlow {
    0% {
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.1);
    }
    100% {
        box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.5), 0 0 30px rgba(0, 212, 255, 0.2);
    }
}

/* Particle Effect for Form Focus */
.form-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(0, 212, 255, 0.05) 0%, 
                transparent 50%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.form-group:hover::before {
    opacity: 1;
}

/* Ripple Effect on Focus */
.form-group::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.form-group input:focus ~ .form-group::after,
.form-group textarea:focus ~ .form-group::after {
    width: 200px;
    height: 200px;
    opacity: 1;
}

/* Clean Button Styling */
.form .btn-primary {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.form .btn-primary:active {
    transform: translateY(0);
}

.form .btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
}

.form .btn-primary .btn-text,
.form .btn-primary .btn-icon {
    transition: opacity 0.3s ease;
}

.form .btn-primary:hover .btn-icon {
    transform: translateX(2px);
}

.form .btn-primary.loading .btn-text,
.form .btn-primary.loading .btn-icon {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form .btn-primary.loading .btn-loader {
    opacity: 1;
}

/* Enhanced Form Button */
.form .btn-primary {
    position: relative;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    box-shadow: 
        0 8px 30px rgba(102, 126, 234, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.form .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.3);
}

.form .btn-primary:hover::before {
    left: 100%;
}

.form .btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.form .btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
}

.form .btn-primary .btn-text {
    transition: opacity 0.3s ease;
}

.form .btn-primary .btn-icon {
    transition: all 0.3s ease;
}

.form .btn-primary:hover .btn-icon {
    transform: translateX(3px);
}

.form .btn-primary.loading .btn-text,
.form .btn-primary.loading .btn-icon {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form .btn-primary.loading .btn-loader {
    opacity: 1;
}

/* Form Divider */
.form-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0 1.5rem 0;
    position: relative;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.form-divider span {
    padding: 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* WhatsApp Contact Button */
.whatsapp-contact-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 30px rgba(37, 211, 102, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.whatsapp-contact-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(37, 211, 102, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-contact-btn:hover::before {
    left: 100%;
}

.whatsapp-btn-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.whatsapp-contact-btn:hover .whatsapp-btn-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
}

.whatsapp-btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.whatsapp-btn-text {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

.whatsapp-btn-subtext {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

.whatsapp-btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.whatsapp-contact-btn:hover .whatsapp-btn-arrow {
    transform: translateX(5px);
    opacity: 1;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-btn {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsappFloat 3s ease-in-out infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn i {
    font-size: 1.8rem;
    color: white;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover i {
    transform: scale(1.1);
}

.whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #25d366;
    border-radius: 50%;
    animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}



/* Form Status and Loading States */
.form-status {
    margin-top: 1.5rem;
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-medium);
    text-align: center;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-status.success {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
    color: #4caf50;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.2);
}

.form-status.error {
    background: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.4);
    color: #f44336;
    box-shadow: 0 4px 20px rgba(244, 67, 54, 0.2);
}

.form-status.info {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.form-status::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.6s ease;
}

.form-status.success::before,
.form-status.error::before {
    left: 100%;
}

/* Hidden honeypot field */
.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Enhanced form styling */
.form-group.focused label {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.form-group.success input,
.form-group.success textarea {
    border-color: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.form-group.success .form-line {
    background: #4caf50;
    width: 100%;
}

.btn-loader {
    display: none;
}

.btn.loading .btn-text,
.btn.loading .btn-icon {
    opacity: 0;
}

.btn.loading .btn-loader {
    display: inline-block;
}

.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Form Animation States */
.form-group.error input,
.form-group.error textarea {
    border-color: #f44336;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group.success input,
.form-group.success textarea {
    border-color: #4caf50;
}

/* Status Message Icons */
.status-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.status-message::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.form-status.success .status-message::before {
    content: '\f00c'; /* check icon */
}

.form-status.error .status-message::before {
    content: '\f00d'; /* times icon */
}

.form-status.info .status-message::before {
    content: '\f05a'; /* info icon */
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-text .fas.fa-heart {
    color: var(--secondary-color);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --primary-color: #0066cc;
    --secondary-color: #dc3545;
    --accent-color: #20c997;
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    --gradient-secondary: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    --gradient-accent: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    --shadow-light: 0 4px 20px rgba(0, 102, 204, 0.1);
    --shadow-medium: 0 8px 40px rgba(0, 102, 204, 0.15);
    --shadow-heavy: 0 20px 60px rgba(0, 102, 204, 0.2);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .monogram-accent {
    border-color: var(--bg-primary);
}

[data-theme="light"] .grid-overlay {
    background-image: 
        linear-gradient(rgba(0, 102, 204, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 204, 0.1) 1px, transparent 1px);
}

[data-theme="light"] .cursor {
    mix-blend-mode: multiply;
}

[data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .shape {
    opacity: 0.05;
}

[data-theme="light"] .profile-photo {
    border-color: var(--primary-color);
    box-shadow: 0 8px 40px rgba(0, 102, 204, 0.15);
}

[data-theme="light"] .profile-photo:hover {
    box-shadow: 0 20px 60px rgba(0, 102, 204, 0.2);
}

[data-theme="light"] .project-card,
[data-theme="light"] .skill-item,
[data-theme="light"] .education-item,
[data-theme="light"] .timeline-content,
[data-theme="light"] .contact-item,
[data-theme="light"] .profile-card,
[data-theme="light"] .code-window {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .tech-tag,
[data-theme="light"] .skill-tag,
[data-theme="light"] .blog-tag {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .contact-form,
[data-theme="light"] .skill-category {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .skill-category:hover,
[data-theme="light"] .skill-category.active {
    background: var(--gradient-primary);
    color: white;
}

[data-theme="light"] .skill-bar {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(0, 0, 0, 0.03);
    border: 2px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

[data-theme="light"] .form-group input:focus + label,
[data-theme="light"] .form-group textarea:focus + label,
[data-theme="light"] .form-group input:not(:placeholder-shown) + label,
[data-theme="light"] .form-group textarea:not(:placeholder-shown) + label,
[data-theme="light"] .form-group.focused label {
    background: transparent;
}

[data-theme="light"] .form-group:nth-child(1) input:focus + label,
[data-theme="light"] .form-group:nth-child(1) input:not(:placeholder-shown) + label,
[data-theme="light"] .form-group:nth-child(1).focused label {
    color: #0066cc !important;
    text-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
}

[data-theme="light"] .form-group:nth-child(2) input:focus + label,
[data-theme="light"] .form-group:nth-child(2) input:not(:placeholder-shown) + label,
[data-theme="light"] .form-group:nth-child(2).focused label {
    color: #dc3545 !important;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

[data-theme="light"] .form-group:nth-child(3) input:focus + label,
[data-theme="light"] .form-group:nth-child(3) input:not(:placeholder-shown) + label,
[data-theme="light"] .form-group:nth-child(3).focused label {
    color: #dc3545 !important;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

[data-theme="light"] .form-group:nth-child(4) textarea:focus + label,
[data-theme="light"] .form-group:nth-child(4) textarea:not(:placeholder-shown) + label,
[data-theme="light"] .form-group:nth-child(4).focused label {
    color: #dc3545 !important;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

[data-theme="light"] .contact-form {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .contact-form::before {
    background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
}

[data-theme="light"] .form-divider::before,
[data-theme="light"] .form-divider::after {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

[data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .loading-screen {
    background: var(--bg-primary);
}

/* Light mode code window fix */
[data-theme="light"] .code-window {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .window-header {
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .window-title {
    color: var(--text-secondary);
}

[data-theme="light"] .line-number {
    color: var(--text-muted);
}

[data-theme="light"] .keyword {
    color: #d73a49;
}

[data-theme="light"] .variable {
    color: #6f42c1;
}

[data-theme="light"] .property {
    color: #005cc5;
}

[data-theme="light"] .string {
    color: #032f62;
}

/* Fix navigation z-index */
.navbar {
    z-index: 1000;
}

.nav-menu {
    z-index: 999;
}

/* Ensure skills section works properly */
.skills-group {
    z-index: 1;
}

.skills-group.active {
    z-index: 2;
}

/* Theme transition for all elements */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.8rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .brand-info {
        display: none;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    
    .logo-letters {
        font-size: 1.1rem;
    }
    
    .theme-btn {
        width: 45px;
        height: 24px;
    }
    
    .theme-slider {
        width: 18px;
        height: 18px;
    }
    
    [data-theme="light"] .theme-slider {
        transform: translateX(19px);
    }
    
    .mobile-menu-content {
        padding: 1.5rem;
    }
    
    .mobile-link {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 100px 1rem 2rem 1rem;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .profile-container {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .floating-elements {
        display: none;
    }
    
    /* Sections */
    .section-header {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-number {
        font-size: 3rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .code-window {
        max-width: 100%;
        overflow-x: auto;
    }
    
    /* Experience Section */
    .experience-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .experience-period {
        align-items: flex-start;
    }
    
    .experience-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-card {
        margin-bottom: 1rem;
    }
    
    /* Skills Section */
    .skills-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .skill-category {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .skills-group {
        grid-template-columns: 1fr;
    }
    
    /* Education Section */
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form .btn-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .whatsapp-contact-btn {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .whatsapp-btn-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .whatsapp-btn-text {
        font-size: 1rem;
    }
    
    .whatsapp-btn-subtext {
        font-size: 0.8rem;
    }
    
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-btn i {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 50px 0;
        --container-padding: 0 0.8rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 0.8rem;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
    }
    
    .logo-letters {
        font-size: 0.9rem;
    }
    
    .theme-btn {
        width: 40px;
        height: 22px;
    }
    
    .theme-slider {
        width: 16px;
        height: 16px;
    }
    
    [data-theme="light"] .theme-slider {
        transform: translateX(16px);
    }
    
    .mobile-menu-content {
        padding: 1rem;
    }
    
    .mobile-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .mobile-link {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }
    
    .mobile-social {
        width: 45px;
        height: 45px;
    }
    
    /* Hero Section */
    .hero-container {
        padding: 80px 0.8rem 1rem 0.8rem;
        min-height: 85vh;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-buttons {
        gap: 0.8rem;
    }
    
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .profile-container {
        max-width: 240px;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-number {
        font-size: 2.5rem;
    }
    
    /* Experience Section */
    .experience-card {
        padding: 1.5rem;
    }
    
    .experience-title h3 {
        font-size: 1.3rem;
    }
    
    .experience-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .experience-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.2rem;
        gap: 1rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Projects Section */
    .project-card {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    /* Skills Section */
    .skills-categories {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .skill-category {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .skill-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .skill-icon {
        margin-bottom: 0.5rem;
    }
    
    /* Education Section */
    .education-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .education-icon {
        margin-bottom: 1rem;
    }
    
    /* Contact Section */
    .contact-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-form {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form .btn-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .whatsapp-contact-btn {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .whatsapp-btn-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .whatsapp-btn-text {
        font-size: 1rem;
    }
    
    .whatsapp-btn-subtext {
        font-size: 0.8rem;
    }
    
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-btn i {
        font-size: 1.6rem;
    }
    
    /* Success Popup Mobile Optimization */
    .popup-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .popup-icon {
        font-size: 3rem;
    }
    
    .popup-content h3 {
        font-size: 1.3rem;
    }
    
    .popup-content p {
        font-size: 0.9rem;
    }
}