/* style.css - Professional Portfolio with Advanced UI Improvements */

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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --secondary-dark: #0284c7;
    --accent: #ec4899;
    --accent-light: #f472b6;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --lighter: #ffffff;
    --gray: #94a3b8;
    --gray-light: #cbd5e1;
    --gray-dark: #475569;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-light: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow: rgba(0, 0, 0, 0.25);
    --font-main: 'Poppins', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 18px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--darker) 0%, #0a0e1a 100%);
}

/* Animated Terminal Background - Enhanced */
.terminal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: linear-gradient(135deg, var(--darker) 0%, #111827 100%);
}

.terminal-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 60%);
    animation: gradientPulse 20s ease-in-out infinite alternate;
}

@keyframes gradientPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.terminal-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.07) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 40s linear infinite;
    transform-origin: center;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(-50px, -50px) rotate(0.5deg);
    }
}

/* Floating particles effect */
.terminal-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.1) 2px, transparent 3px),
        radial-gradient(circle at 40% 70%, rgba(14, 165, 233, 0.1) 2px, transparent 3px),
        radial-gradient(circle at 60% 20%, rgba(236, 72, 153, 0.1) 2px, transparent 3px),
        radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.1) 2px, transparent 3px);
    background-size: 300px 300px;
    animation: floatParticles 30s linear infinite;
}

@keyframes floatParticles {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-150px) translateX(150px);
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    border: 2px solid rgba(15, 23, 42, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-dark) 100%);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Selection style */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--lighter);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Container - Enhanced */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Typography - Enhanced */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 3.2rem;
    text-align: center;
    margin-bottom: 90px;
    position: relative;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.section-title span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title span::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.3;
    z-index: -1;
    border-radius: 4px;
    filter: blur(4px);
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.8s ease;
    border-radius: 2px;
}

.section-title:hover span::after {
    width: 100%;
}

/* Professional Glass Card - Enhanced */
.glass-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::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.7s ease;
    z-index: 0;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary), 
        var(--secondary), 
        transparent);
    opacity: 0.6;
    z-index: 1;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(99, 102, 241, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

/* Buttons - Professional Enhanced */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--primary-dark) 50%, 
        var(--secondary) 100%);
    color: white;
    background-size: 200% 100%;
    background-position: 0% 0%;
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    background-position: 100% 0%;
    box-shadow: 
        0 15px 35px rgba(99, 102, 241, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    border: 2px solid var(--primary);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.2) 0%,
        rgba(14, 165, 233, 0.1) 100%);
    transform: translateY(-4px);
    box-shadow: 
        0 15px 35px rgba(99, 102, 241, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--primary-light);
}

/* Navigation - Professional Enhanced */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.9) 0%,
        rgba(2, 6, 23, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(2, 6, 23, 0.98);
    border-bottom-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo span {
    color: var(--primary);
    animation: logoGlow 2s infinite alternate;
    text-shadow: 0 0 20px var(--primary);
}

@keyframes logoGlow {
    0%, 100% { 
        opacity: 1;
        text-shadow: 0 0 10px var(--primary),
                     0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% { 
        opacity: 0.8;
        text-shadow: 0 0 15px var(--primary-light),
                     0 0 30px rgba(129, 140, 248, 0.4);
    }
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--lighter);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 1px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px var(--primary);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.menu-btn {
    display: none;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%,
        rgba(14, 165, 233, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.menu-btn:hover {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.2) 0%,
        rgba(14, 165, 233, 0.1) 100%);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* Hero Section - Professional Enhanced */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, 
        rgba(99, 102, 241, 0.15) 0%, 
        rgba(14, 165, 233, 0.1) 30%, 
        transparent 70%);
    z-index: -1;
    animation: rotateGlow 30s linear infinite;
    filter: blur(40px);
}

@keyframes rotateGlow {
    0% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: rotate(180deg) scale(1.1);
        opacity: 1;
    }
    100% { 
        transform: rotate(360deg) scale(1);
        opacity: 0.8;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    width: 100%;
}

.hero-content {
    padding-right: 40px;
}

.hero-subtitle {
    color: var(--gray-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.hero-title {
    font-size: 4.5rem;
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--secondary) 50%, 
        var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    letter-spacing: -1px;
}

.hero-role {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--gray);
    height: 2.5rem;
    font-weight: 500;
}

.typed-text {
    color: var(--primary);
    font-weight: 600;
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.cursor {
    color: var(--primary);
    animation: blinkCursor 1s infinite;
    text-shadow: 0 0 15px var(--primary);
    font-weight: 300;
}

@keyframes blinkCursor {
    0%, 100% { 
        opacity: 1; 
        text-shadow: 0 0 15px var(--primary),
                     0 0 30px rgba(99, 102, 241, 0.5);
    }
    50% { 
        opacity: 0.3; 
        text-shadow: 0 0 5px var(--primary);
    }
}

.hero-description {
    color: var(--gray-light);
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 540px;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    padding-left: 20px;
    border-left: 3px solid var(--primary);
    padding-top: 5px;
    padding-bottom: 5px;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    margin-bottom: 70px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 50px;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.hero-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.stat {
    text-align: center;
    position: relative;
}

.stat::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    z-index: -1;
}

.stat h4 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    position: relative;
    display: inline-block;
}

.stat h4::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    position: absolute;
    top: -10px;
    right: -20px;
}

.stat p {
    color: var(--gray);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Hero Terminal - Professional Enhanced */
.hero-terminal {
    background: linear-gradient(135deg, 
        rgba(10, 14, 23, 0.8) 0%,
        rgba(2, 6, 23, 0.9) 100%);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 560px;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.hero-terminal:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: 
        0 35px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%,
        rgba(99, 102, 241, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-header h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.terminal-controls {
    display: flex;
    gap: 14px;
}

.term-btn {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.term-btn:hover {
    background: linear-gradient(135deg, 
        var(--primary) 0%,
        var(--primary-dark) 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    border-color: transparent;
}

.mobile-terminal-hide {
    display: none;
}

#terminalFrame {
    flex: 1;
    width: 100%;
    border: none;
    background: #0a0e17;
}

.terminal-footer {
    padding: 16px 28px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%,
        rgba(14, 165, 233, 0.1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
}

.terminal-footer code {
    background: rgba(0, 255, 157, 0.15);
    color: #00ff9d;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin: 0 6px;
    border: 1px solid rgba(0, 255, 157, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
    transition: var(--transition);
}

.terminal-footer code:hover {
    background: rgba(0, 255, 157, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}

/* Mobile Terminal Toggle Button - Enhanced */
.mobile-terminal-toggle {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--primary-dark) 50%, 
        var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 999;
    box-shadow: 
        0 12px 30px rgba(99, 102, 241, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 
            0 12px 30px rgba(99, 102, 241, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(99, 102, 241, 0.7),
            0 0 0 1px rgba(255, 255, 255, 0.25),
            0 0 30px rgba(99, 102, 241, 0.3);
    }
}

.mobile-terminal-toggle:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 18px 40px rgba(99, 102, 241, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 0 40px rgba(99, 102, 241, 0.4);
}

/* About Section - Professional Enhanced */
.about-content {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 70px;
    align-items: center;
    padding: 60px;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    width: 340px;
    height: 340px;
    border-radius: 25px;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.8s ease;
}

.about-image:hover .image-frame {
    transform: perspective(1000px) rotateY(0deg);
}

.profile-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--secondary) 50%, 
        var(--accent) 100%);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    font-weight: 700;
    animation: profileFloat 4s ease-in-out infinite;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes profileFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 
            inset 0 0 60px rgba(99, 102, 241, 0.4),
            0 0 40px rgba(99, 102, 241, 0.3);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 
            inset 0 0 80px rgba(14, 165, 233, 0.5),
            0 0 60px rgba(14, 165, 233, 0.4);
    }
}

.profile-img::before {
    content: 'H';
}

.glow-effect {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, 
        var(--primary), 
        var(--secondary), 
        var(--accent), 
        var(--primary));
    border-radius: 45px;
    filter: blur(30px);
    opacity: 0.5;
    z-index: 1;
    animation: rotateGlowEffect 10s linear infinite;
}

@keyframes rotateGlowEffect {
    0% {
        transform: rotate(0deg);
        opacity: 0.5;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.5;
    }
}

.about-text h3 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.about-text p {
    color: var(--gray-light);
    margin-bottom: 40px;
    font-size: 1.15rem;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 50px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

.info-item:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
}

.info-label {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.info-value {
    color: var(--light);
    font-weight: 500;
    font-size: 1.1rem;
}

/* Skills Section - Professional Enhanced */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.skill-card {
    padding: 36px;
    text-align: center;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.skill-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 28px;
    transition: var(--transition);
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.4));
    display: inline-block;
    transform: translateZ(20px);
}

.skill-card:hover .skill-icon {
    transform: translateZ(40px) rotateY(360deg) scale(1.2);
    color: var(--accent);
    filter: drop-shadow(0 0 25px rgba(236, 72, 153, 0.6));
}

.skill-card h3 {
    margin-bottom: 24px;
    font-size: 1.4rem;
    font-weight: 600;
    transform: translateZ(10px);
}

.skill-progress {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
    transform: translateZ(5px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.skill-progress .progress {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--primary) 0%, 
        var(--accent) 100%);
    border-radius: 5px;
    transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.skill-progress .progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: shimmer 3s infinite;
    border-radius: 5px;
}

.skill-level {
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Projects Section - Professional Enhanced */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px;
}

.project-card {
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(99, 102, 241, 0.1) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.project-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--secondary) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.project-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transform: rotate(45deg);
    transition: left 0.8s ease;
}

.project-card:hover .project-icon::before {
    left: 100%;
}

.project-card:hover .project-icon {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.6);
}

.project-links {
    display: flex;
    gap: 14px;
}

.project-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.project-link:hover {
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--primary-dark) 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    border-color: transparent;
}

.project-card h3 {
    margin-bottom: 24px;
    color: var(--light);
    font-size: 1.5rem;
    font-weight: 600;
}

.project-card p {
    color: var(--gray-light);
    margin-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-tags span {
    padding: 8px 20px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.15) 0%,
        rgba(99, 102, 241, 0.08) 100%);
    color: var(--primary);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: var(--transition);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.project-tags span:hover {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.25) 0%,
        rgba(99, 102, 241, 0.15) 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Experience Section - Professional Enhanced */
.timeline {
    max-width: 920px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent, 
        var(--primary), 
        var(--secondary), 
        transparent);
    opacity: 0.5;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.timeline-item {
    padding: 36px;
    margin-bottom: 48px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 20px var(--primary);
    z-index: 2;
}

.timeline-item:nth-child(odd) {
    margin-right: calc(50% + 36px);
    margin-left: 0;
}

.timeline-item:nth-child(odd)::before {
    right: -48px;
    top: 40px;
}

.timeline-item:nth-child(even) {
    margin-left: calc(50% + 36px);
    margin-right: 0;
}

.timeline-item:nth-child(even)::before {
    left: -48px;
    top: 40px;
}

.timeline-date {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--primary-dark) 100%);
    color: white;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 600;
}

.timeline-content h4 {
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.timeline-content ul {
    padding-left: 28px;
    color: var(--gray-light);
}

.timeline-content li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
    padding-left: 10px;
}

.timeline-content li::before {
    content: '▸';
    color: var(--primary);
    position: absolute;
    left: -20px;
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--primary);
}

/* Contact Section - Professional Enhanced */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.contact-info {
    padding: 60px;
}

.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 24px;
    color: var(--primary);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.contact-info p {
    color: var(--gray-light);
    margin-bottom: 48px;
    font-size: 1.15rem;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.contact-details {
    margin-bottom: 48px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 20px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.contact-item:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.03) 100%);
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
}

.contact-item i {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.15) 0%,
        rgba(99, 102, 241, 0.08) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-item:hover i {
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--primary-dark) 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--light);
    font-weight: 600;
}

.contact-item p {
    color: var(--gray);
    margin: 0;
    font-size: 1rem;
}

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

.social-link {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--primary-dark) 100%);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
    border-color: transparent;
}

.contact-form {
    padding: 60px;
}

.form-group {
    margin-bottom: 28px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: var(--light);
    font-family: var(--font-main);
    font-size: 1.05rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%);
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.15),
        0 0 25px rgba(99, 102, 241, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
}

/* Footer - Professional Enhanced */
.footer {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.5) 0%,
        rgba(2, 6, 23, 0.8) 100%);
    padding: 100px 0 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary), 
        var(--secondary), 
        transparent);
}

.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-content .logo {
    display: inline-block;
    margin-bottom: 36px;
    font-size: 2.5rem;
    animation: none;
}

.footer-content p {
    color: var(--gray);
    margin-bottom: 48px;
    font-size: 1.15rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    transition: width 0.4s ease;
}

.footer-links a:hover {
    color: var(--lighter);
    transform: translateY(-3px);
}

.footer-links a:hover::before {
    width: 100%;
}

.copyright {
    color: var(--gray);
    font-size: 0.95rem;
    opacity: 0.7;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: 1px;
}

/* Animation on scroll - Enhanced */
.fade-in {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Responsive Design - Enhanced */
@media (max-width: 1200px) {
    .hero-grid {
        gap: 60px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .about-content {
        grid-template-columns: 320px 1fr;
        gap: 60px;
        padding: 50px;
    }
    
    .image-frame {
        width: 320px;
        height: 320px;
    }
    
    .hero-terminal {
        height: 520px;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero-description {
        margin: 0 auto 50px;
        border-left: none;
        padding-left: 0;
        border-top: 3px solid var(--primary);
        border-bottom: 3px solid var(--primary);
        padding: 15px 0;
    }
    
    .hero-subtitle::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-terminal {
        display: none;
        height: 500px;
        margin-top: 50px;
        transform: none;
    }
    
    .hero-terminal:hover {
        transform: translateY(-10px);
    }
    
    .hero-terminal.visible {
        display: flex;
    }
    
    .mobile-terminal-hide {
        display: flex;
    }
    
    .mobile-terminal-toggle {
        display: flex;
    }
    
    .navbar .container {
        padding: 0 24px;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: linear-gradient(135deg, 
            rgba(15, 23, 42, 0.98) 0%,
            rgba(2, 6, 23, 0.99) 100%);
        backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 80px;
        gap: 36px;
        transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-btn {
        display: block;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
        padding: 50px;
    }
    
    .about-image {
        display: flex;
        justify-content: center;
    }
    
    .about-text h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        margin: 0 0 48px 80px !important;
    }
    
    .timeline-item::before {
        left: -45px !important;
        top: 40px;
        right: auto !important;
    }
    
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: -45px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.8rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-role {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 36px;
    }
    
    .hero-terminal {
        height: 450px;
    }
    
    .about-content,
    .contact-info,
    .contact-form,
    .project-card,
    .skill-card,
    .timeline-item {
        padding: 32px;
    }
    
    .image-frame {
        width: 280px;
        height: 280px;
    }
    
    .profile-img {
        font-size: 4.5rem;
    }
    
    .mobile-terminal-toggle span {
        display: none;
    }
    
    .mobile-terminal-toggle {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    .container {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2.4rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-role {
        font-size: 1.6rem;
    }
    
    .hero-terminal {
        height: 400px;
    }
    
    .mobile-terminal-toggle {
        bottom: 20px;
        right: 20px;
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .mobile-terminal-toggle span {
        display: none;
    }
    
    .about-content,
    .contact-info,
    .contact-form,
    .project-card,
    .skill-card,
    .timeline-item {
        padding: 28px;
    }
    
    .image-frame {
        width: 240px;
        height: 240px;
    }
    
    .profile-img {
        font-size: 3.5rem;
    }
    
    .container {
        padding: 0 20px;
    }
}

/* Loading animation for initial load */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(transparent, var(--primary), transparent);
    animation: spin 1s linear infinite;
    position: relative;
}

.loader::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: var(--darker);
    border-radius: 50%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth page transitions */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.8s ease;
}

body.page-transition::after {
    opacity: 0.1;
}

/* Enhanced hover effects for all interactive elements */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Improved focus states for accessibility */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}