/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Ensure all anchor links work properly */
a[href^="#"] {
    cursor: pointer;
    pointer-events: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--white);
    background: var(--gradient-dark);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Professional 3D Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: -1;
}

/* Flying Code Elements */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 98%, rgba(0, 212, 255, 0.1) 100%),
        linear-gradient(0deg, transparent 98%, rgba(0, 255, 136, 0.1) 100%);
    background-size: 50px 50px, 30px 30px;
    animation: codeMatrix 15s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes codeMatrix {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

/* Floating Code Elements */
.floating-code {
    position: fixed;
    color: var(--code-green);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
    animation: floatCode 8s linear infinite;
    text-shadow: 
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 30px currentColor;
    filter: blur(0.5px);
}

.floating-code:nth-child(odd) {
    color: var(--code-blue);
    animation-duration: 12s;
    animation-name: floatCodeBlue;
}

.floating-code:nth-child(3n) {
    color: var(--code-purple);
    animation-duration: 10s;
    animation-name: floatCodePurple;
}

.floating-code:nth-child(4n) {
    color: var(--code-orange);
    animation-duration: 14s;
    animation-name: floatCodeOrange;
}

@keyframes floatCode {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: translateY(90vh) rotate(36deg) scale(1);
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1.1);
    }
    90% {
        opacity: 0.6;
        transform: translateY(10vh) rotate(324deg) scale(1);
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes floatCodeBlue {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
        transform: translateY(90vh) rotate(45deg) scale(1);
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1.2);
    }
    90% {
        opacity: 0.7;
        transform: translateY(10vh) rotate(315deg) scale(1);
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes floatCodePurple {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: translateY(90vh) rotate(-30deg) scale(1);
    }
    50% {
        transform: translateY(50vh) rotate(-180deg) scale(1.1);
    }
    90% {
        opacity: 0.8;
        transform: translateY(10vh) rotate(-330deg) scale(1);
    }
    100% {
        transform: translateY(-100px) rotate(-360deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes floatCodeOrange {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
        transform: translateY(90vh) rotate(60deg) scale(1);
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1.3);
    }
    90% {
        opacity: 0.5;
        transform: translateY(10vh) rotate(300deg) scale(1);
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}


/* Color Variables */
:root {
    /* Professional 3D Programmer Theme Colors */
    --primary-color: #00d4ff;
    --primary-dark: #0099cc;
    --secondary-color: #1a1a2e;
    --accent-color: #7c3aed;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --dark-color: #0f0f23;
    --light-color: #f8fafc;
    --code-green: #00ff88;
    --code-blue: #00d4ff;
    --code-purple: #8b5cf6;
    --code-orange: #ff6b35;
    --terminal-green: #39ff14;
    --matrix-green: #00ff41;
    
    /* Gray Scale */
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
    --white: #ffffff;
    
    /* 3D Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.25);
    --shadow-gold: 0 8px 32px rgba(255, 215, 0, 0.3);
    --shadow-cyber: 0 8px 32px rgba(0, 212, 255, 0.3);
    
    /* Professional 3D Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 50%, #007acc 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    --gradient-cyber: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 50%, #7c3aed 100%);
    --gradient-code: linear-gradient(135deg, #00ff88 0%, #00d4ff 50%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    --gradient-terminal: linear-gradient(135deg, #00ff41 0%, #00ff88 50%, #00d4ff 100%);
    
    /* 3D Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Utility Classes */
.container {
    width: 100%;
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-size: 2.5rem;
    color: var(--white);
    text-shadow: 
        0 0 20px rgba(0, 212, 255, 0.5),
        0 0 40px rgba(0, 212, 255, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    transform: perspective(1000px) rotateX(2deg);
    z-index: 2;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    z-index: 11;
    user-select: none;
    pointer-events: auto;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: var(--white);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 16px rgba(102, 126, 234, 0.3),
        0 4px 8px rgba(118, 75, 162, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(5deg);
    z-index: 1;
}

.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.5s;
}

.btn-primary:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-3px);
    box-shadow: 
        0 12px 24px rgba(102, 126, 234, 0.4),
        0 6px 12px rgba(118, 75, 162, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: perspective(1000px) rotateX(0deg) translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(102, 126, 234, 0.3),
        0 2px 4px rgba(118, 75, 162, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}


.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: perspective(1000px) rotateX(0deg) translateY(-3px);
    box-shadow: 
        0 12px 24px rgba(102, 126, 234, 0.3),
        0 6px 12px rgba(118, 75, 162, 0.2);
}

.btn-outline:hover::before {
    left: 100%;
}

.btn-outline:active {
    transform: perspective(1000px) rotateX(0deg) translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(102, 126, 234, 0.2),
        0 2px 4px rgba(118, 75, 162, 0.1);
}

/* Get In Touch Button - Unique Styling */
.btn-get-in-touch {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 11;
    user-select: none;
    pointer-events: auto;
}

.btn-get-in-touch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s;
}

.btn-get-in-touch:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: perspective(1000px) rotateX(-8deg) translateY(-6px) scale(1.08);
    box-shadow: 
        0 20px 40px rgba(0, 212, 255, 0.4),
        0 10px 20px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.btn-get-in-touch:hover::before {
    left: 100%;
}

.btn-get-in-touch:active {
    transform: perspective(1000px) rotateX(-4deg) translateY(-3px) scale(1.04);
    box-shadow: 
        0 12px 24px rgba(0, 212, 255, 0.3),
        0 6px 12px rgba(0, 212, 255, 0.2);
    cursor: pointer;
}

.btn-secondary {
    background: var(--gray-600);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--gray-700);
}

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(0, 212, 255, 0.2);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    transform: perspective(1000px) rotateX(0deg);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-code);
    animation: codeShimmer 3s ease-in-out infinite;
}

@keyframes codeShimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.3rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    position: absolute;
    top: 50%;
    right: 0;
    height: auto;
    z-index: 10;
    padding: 0.5rem;
    transform: translateY(-50%);
}

/* Navigation links - Enhanced 3D Style */
.nav-link {
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    font-size: 0.7rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.1),
        0 1px 5px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

/* Sync Status Indicators */
.nav-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 1rem;
}

.sync-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    animation: pulse 2s infinite;
}

.sync-indicator i {
    font-size: 1rem;
}

.last-update {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-200);
    color: var(--gray-700);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.last-update i {
    color: var(--gray-500);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Enhanced 3D Hover effects */
.nav-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    transform: perspective(1000px) rotateX(-8deg) rotateY(5deg) translateY(-6px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.4),
        0 8px 20px rgba(118, 75, 162, 0.3),
        0 4px 10px rgba(240, 147, 251, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Shimmer effect on hover */
.nav-link::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.6s ease;
    z-index: 1;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #00d4ff 0%, #667eea 50%, #764ba2 100%);
    border-color: rgba(255, 255, 255, 0.6);
    transform: perspective(1000px) rotateX(-5deg) rotateY(2deg) translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 25px rgba(0, 212, 255, 0.5),
        0 6px 15px rgba(102, 126, 234, 0.4),
        0 3px 8px rgba(118, 75, 162, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: activeGlow 2s ease-in-out infinite;
}

@keyframes activeGlow {
    0%, 100% {
        box-shadow: 
            0 12px 25px rgba(0, 212, 255, 0.5),
            0 6px 15px rgba(102, 126, 234, 0.4),
            0 3px 8px rgba(118, 75, 162, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 15px 30px rgba(0, 212, 255, 0.6),
            0 8px 20px rgba(102, 126, 234, 0.5),
            0 4px 12px rgba(118, 75, 162, 0.4),
            inset 0 2px 0 rgba(255, 255, 255, 0.5);
    }
}

/* Dynamic navbar colors based on sections - Enhanced for black text */
.navbar[data-section="home"] .nav-link {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-color: rgba(102, 126, 234, 0.4);
    color: #4a5568;
}

.navbar[data-section="about"] .nav-link {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.15) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-color: rgba(118, 75, 162, 0.4);
    color: #553c9a;
}

.navbar[data-section="skills"] .nav-link {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.15) 0%, rgba(240, 147, 251, 0.05) 100%);
    border-color: rgba(240, 147, 251, 0.4);
    color: #b83280;
}

.navbar[data-section="experience"] .nav-link {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-color: rgba(0, 212, 255, 0.4);
    color: #0891b2;
}

.navbar[data-section="education"] .nav-link {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 107, 107, 0.05) 100%);
    border-color: rgba(255, 107, 107, 0.4);
    color: #dc2626;
}

.navbar[data-section="projects"] .nav-link {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.05) 100%);
    border-color: rgba(76, 175, 80, 0.4);
    color: #16a34a;
}

.navbar[data-section="blog"] .nav-link {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-color: rgba(255, 193, 7, 0.4);
    color: #d97706;
}

.navbar[data-section="contact"] .nav-link {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.15) 0%, rgba(156, 39, 176, 0.05) 100%);
    border-color: rgba(156, 39, 176, 0.4);
    color: #9333ea;
}

/* Underline animation */
.nav-link::after {
    content: '' !important;
    position: absolute !important;
    bottom: -5px !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: var(--gradient-primary) !important;
    transition: var(--transition) !important;
}

.nav-link:hover::after {
    width: 100% !important;
}

/* Hamburger menu */


/* Hero Section */
.hero {
    margin-top: 2%;
    min-height: 110vh;
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(0deg);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
    animation: heroFloat 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(1deg); }
    66% { transform: translateY(20px) rotate(-1deg); }
}

.hero-container {
    width: 100%;
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 
        0 0 20px rgba(0, 212, 255, 0.6),
        0 0 40px rgba(0, 212, 255, 0.4),
        0 0 60px rgba(0, 212, 255, 0.2),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    transform: perspective(1000px) rotateX(5deg);
    animation: titleGlow 3s ease-in-out infinite alternate;
    font-weight: 800;
    letter-spacing: 2px;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 212, 255, 0.4), 2px 2px 4px rgba(0, 0, 0, 0.8); }
    100% { text-shadow: 0 0 30px rgba(0, 212, 255, 0.9), 0 0 60px rgba(0, 212, 255, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.8); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 
        0 0 15px rgba(0, 212, 255, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    transform: perspective(1000px) rotateX(3deg);
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-200);
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.3),
        1px 1px 2px rgba(0, 0, 0, 0.6);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--white);
    color: var(--gray-600);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(0deg);
    border: 3px solid transparent;
    font-size: 1.2rem;
    cursor: pointer;
    user-select: none;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
    pointer-events: none;
}

.social-link::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-code);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -2;
    animation: borderPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes borderPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.05); }
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: perspective(1000px) rotateX(-12deg) rotateY(6deg) translateY(-12px) scale(1.15);
    box-shadow: 
        0 25px 50px rgba(0, 212, 255, 0.5),
        0 15px 30px rgba(0, 212, 255, 0.3),
        0 5px 15px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: var(--primary-color);
}

.social-link:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.social-link:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

.social-link:active {
    transform: perspective(1000px) rotateX(-6deg) rotateY(3deg) translateY(-6px) scale(1.08);
    box-shadow: 
        0 15px 30px rgba(0, 212, 255, 0.4),
        0 8px 16px rgba(0, 212, 255, 0.3),
        0 3px 8px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Hero Social Links - Unique Styling */
.hero-social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
}

.hero-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    user-select: none;
    z-index: 2;
}

.hero-social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.hero-social-link::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    pointer-events: none;
    animation: heroSocialGlow 3s ease-in-out infinite;
}

.hero-social-link:hover {
    transform: translateY(-8px) rotate(8deg) scale(1.15);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.5);
}

.hero-social-link:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.hero-social-link:hover::after {
    animation: none;
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 30px 8px rgba(102, 126, 234, 0.4);
}

.hero-social-link i {
    font-size: 1.4rem;
    z-index: 1;
    position: relative;
}

@keyframes heroSocialGlow {
    0%, 100% { 
        opacity: 0; 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% { 
        opacity: 0.3; 
        transform: scale(1.05); 
        box-shadow: 0 0 20px 5px rgba(102, 126, 234, 0.2);
    }
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 2000px;
}

/* Floating code elements around hero image */
.hero-image::before {
    content: '<div class="danisoftdev">';
    position: absolute;
    top: 20%;
    left: -10%;
    color: #00d4ff;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.7;
    z-index: 1;
    animation: floatCode1 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-image::after {
    content: 'const dev = {';
    position: absolute;
    top: 60%;
    right: -15%;
    color: #667eea;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    opacity: 0.6;
    z-index: 1;
    animation: floatCode2 10s ease-in-out infinite;
    pointer-events: none;
}

/* Additional floating code elements */
.hero-image .floating-code-1 {
    position: absolute;
    top: 10%;
    right: 10%;
    color: #f093fb;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0.5;
    z-index: 1;
    animation: floatCode3 12s ease-in-out infinite;
    pointer-events: none;
}

.hero-image .floating-code-2 {
    position: absolute;
    bottom: 20%;
    left: 5%;
    color: #764ba2;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    opacity: 0.6;
    z-index: 1;
    animation: floatCode4 9s ease-in-out infinite;
    pointer-events: none;
}

.hero-image .floating-code-3 {
    position: absolute;
    top: 40%;
    left: -20%;
    color: #00d4ff;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0.4;
    z-index: 1;
    animation: floatCode5 11s ease-in-out infinite;
    pointer-events: none;
}

.hero-image .floating-code-4 {
    position: absolute;
    bottom: 40%;
    right: -25%;
    color: #667eea;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0.5;
    z-index: 1;
    animation: floatCode6 13s ease-in-out infinite;
    pointer-events: none;
}

.hero-image .floating-code-5 {
    position: absolute;
    top: 70%;
    left: -15%;
    color: #f093fb;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: bold;
    opacity: 0.3;
    z-index: 1;
    animation: floatCode7 14s ease-in-out infinite;
    pointer-events: none;
}

.hero-image .floating-code-6 {
    position: absolute;
    top: 5%;
    left: 15%;
    color: #764ba2;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    opacity: 0.4;
    z-index: 1;
    animation: floatCode8 10s ease-in-out infinite;
    pointer-events: none;
}

/* Floating code animations */
@keyframes floatCode1 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.3;
    }
}

@keyframes floatCode2 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-15px) rotate(-3deg);
        opacity: 0.2;
    }
}

@keyframes floatCode3 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-25px) rotate(8deg);
        opacity: 0.1;
    }
}

@keyframes floatCode4 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-18px) rotate(-5deg);
        opacity: 0.2;
    }
}

@keyframes floatCode5 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-22px) rotate(6deg);
        opacity: 0.1;
    }
}

@keyframes floatCode6 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) rotate(-7deg);
        opacity: 0.1;
    }
}

@keyframes floatCode7 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-16px) rotate(4deg);
        opacity: 0.05;
    }
}

@keyframes floatCode8 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-24px) rotate(-6deg);
        opacity: 0.1;
    }
}

.profile-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid transparent;
    background: linear-gradient(45deg, #00d4ff, #667eea, #764ba2, #f093fb, #00d4ff);
    background-size: 300% 300%;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 15px 30px rgba(0, 212, 255, 0.4),
        0 8px 16px rgba(102, 126, 234, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    position: relative;
    transform: perspective(2000px) rotateY(-15deg) rotateX(8deg) translateZ(50px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    animation: profileFloat 6s ease-in-out infinite, gradientShift 4s ease-in-out infinite;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(45deg, #00d4ff, #667eea, #764ba2, #f093fb);
    background-size: 400% 400%;
    border-radius: 50%;
    z-index: -1;
    animation: borderRotate 8s linear infinite, gradientShift 3s ease-in-out infinite;
    opacity: 0.8;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -2;
    animation: pulseGlow 3s ease-in-out infinite;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

/* Hover effects for profile image */
.profile-image:hover {
    transform: perspective(2000px) rotateY(-5deg) rotateX(2deg) translateZ(80px) scale(1.05);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.4),
        0 20px 40px rgba(0, 212, 255, 0.6),
        0 12px 24px rgba(102, 126, 234, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation-play-state: paused;
}

.profile-image:hover::before {
    animation-duration: 2s;
    opacity: 1;
}

.profile-image:hover::after {
    animation-duration: 1.5s;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
}

/* Floating animation */
@keyframes profileFloat {
    0%, 100% {
        transform: perspective(2000px) rotateY(-15deg) rotateX(8deg) translateZ(50px) translateY(0px);
    }
    25% {
        transform: perspective(2000px) rotateY(-12deg) rotateX(6deg) translateZ(60px) translateY(-10px);
    }
    50% {
        transform: perspective(2000px) rotateY(-18deg) rotateX(10deg) translateZ(40px) translateY(-15px);
    }
    75% {
        transform: perspective(2000px) rotateY(-10deg) rotateX(4deg) translateZ(70px) translateY(-5px);
    }
}

/* Gradient shift animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Border rotation animation */
@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Pulse glow animation */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* 3D About Section */
.about {
    padding: 100px 0;
    background: var(--gradient-dark);
    position: relative;
    transform: perspective(1000px) rotateX(0deg);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

/* About section buttons */
.about-actions {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.about-actions .btn {
    min-width: 180px;
    text-align: center;
    position: relative;
}

.about-actions .btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

#about-content-dynamic {
    text-align: left;
}

#about-content-dynamic h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

#about-content-dynamic p {
    text-align: left;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

#about-headline {
    text-align: center;
    font-size: 1.8rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

#about-summary {
    text-align: left;
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

#about-bio {
    text-align: left;
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-profile-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.about-profile-image {
    position: relative;
    display: inline-block;
}

.about-profile-image::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
}

.about-profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--gray-50);
    border-radius: 15px;
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--gray-600);
    font-weight: 500;
    margin: 0;
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background: var(--gray-50);
    color: var(--gray-800);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    color: var(--gray-800);
}

.skills-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--gray-800);
}

.skills-loading p {
    color: var(--gray-800);
    margin-top: 1rem;
}

.skill-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: var(--gray-800);
    position: relative;
    transform: perspective(1000px) rotateX(0deg);
    border: 2px solid transparent;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-code);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
    border-radius: 20px;
}

.skill-category::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-terminal);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -2;
    border-radius: 22px;
    animation: skillGlow 5s ease-in-out infinite;
}

@keyframes skillGlow {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.1; transform: scale(1.02); }
}

.skill-category:hover {
    transform: perspective(1000px) rotateX(-4deg) rotateY(2deg) translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 255, 136, 0.3),
        0 10px 20px rgba(0, 255, 136, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--code-green);
}

.skill-category:hover::before {
    opacity: 0.05;
    transform: scale(1.05);
}

.skill-category:hover::after {
    opacity: 0.2;
    transform: scale(1.1);
}

.skill-category:active {
    transform: perspective(1000px) rotateX(-2deg) rotateY(1deg) translateY(-4px) scale(1.01);
    box-shadow: 
        0 12px 24px rgba(0, 255, 136, 0.2),
        0 6px 12px rgba(0, 255, 136, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.skill-category h3 {
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-item {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Projects Section */

.projects {
    padding: 100px 0;
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    transform: perspective(1000px) rotateX(0deg);
    border: 2px solid transparent;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
    border-radius: 20px;
}

.project-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-code);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -2;
    border-radius: 22px;
    animation: cardGlow 3s ease-in-out infinite;
}

@keyframes cardGlow {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.1; transform: scale(1.02); }
}

.project-card:hover {
    transform: perspective(1000px) rotateX(-5deg) rotateY(3deg) translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 212, 255, 0.3),
        0 15px 30px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--primary-color);
}

.project-card:hover::before {
    opacity: 0.05;
    transform: scale(1.05);
}

.project-card:hover::after {
    opacity: 0.2;
    transform: scale(1.1);
}

.project-card:active {
    transform: perspective(1000px) rotateX(-2deg) rotateY(1deg) translateY(-8px) scale(1.01);
    box-shadow: 
        0 15px 30px rgba(0, 212, 255, 0.2),
        0 8px 16px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-dark);
}

.projects-loading, .blog-loading {
    text-align: center;
    padding: 3rem 0;
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Blog Section */
.blog {
    padding: 100px 0;
    background: var(--gray-50);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    transform: perspective(1000px) rotateX(0deg);
    border: 2px solid transparent;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-cyber);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
    border-radius: 20px;
}

.blog-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-terminal);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -2;
    border-radius: 22px;
    animation: blogGlow 4s ease-in-out infinite;
}

@keyframes blogGlow {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.1; transform: scale(1.02); }
}

.blog-card:hover {
    transform: perspective(1000px) rotateX(-3deg) rotateY(2deg) translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(124, 58, 237, 0.3),
        0 10px 20px rgba(124, 58, 237, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--accent-color);
}

.blog-card:hover::before {
    opacity: 0.05;
    transform: scale(1.05);
}

.blog-card:hover::after {
    opacity: 0.2;
    transform: scale(1.1);
}

.blog-card:active {
    transform: perspective(1000px) rotateX(-1deg) rotateY(1deg) translateY(-5px) scale(1.01);
    box-shadow: 
        0 12px 24px rgba(124, 58, 237, 0.2),
        0 6px 12px rgba(124, 58, 237, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.blog-title {
    font-size: 1.3rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.blog-excerpt {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-600);
}

.contact-item i {
    width: 20px;
    color: var(--primary-color);
}

/* Contact Social Links */
.contact-social {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.contact-social h4 {
    color: var(--gray-800);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-social .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.contact-social .social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--gray-100);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(0deg);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    user-select: none;
}

.contact-social .social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    border-radius: 10px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
    pointer-events: none;
}

.contact-social .social-link::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-code);
    border-radius: 14px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -2;
    animation: borderPulse 2s ease-in-out infinite;
    pointer-events: none;
}

.contact-social .social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: perspective(1000px) rotateX(-8deg) rotateY(3deg) translateY(-6px) scale(1.05);
    box-shadow: 
        0 16px 32px rgba(0, 212, 255, 0.4),
        0 8px 16px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--primary-color);
}

.contact-social .social-link:hover::before {
    opacity: 1;
    transform: scale(1.05);
}

.contact-social .social-link:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

.contact-social .social-link:active {
    transform: perspective(1000px) rotateX(-4deg) rotateY(1deg) translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 16px rgba(0, 212, 255, 0.3),
        0 4px 8px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-social .social-link i {
    font-size: 1.2rem;
}

.contact-social .social-link span {
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 
        0 25px 50px rgba(102, 126, 234, 0.4),
        0 15px 30px rgba(118, 75, 162, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(3deg) rotateY(-2deg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: contactFormFloat 8s ease-in-out infinite;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.contact-form:hover {
    transform: perspective(1000px) rotateX(-2deg) rotateY(1deg) translateY(-8px) scale(1.02);
    box-shadow: 
        0 35px 70px rgba(102, 126, 234, 0.5),
        0 20px 40px rgba(118, 75, 162, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
    animation: none;
}

/* Enhanced floating animation for contact form */
@keyframes contactFormFloat {
    0%, 100% {
        transform: perspective(1000px) rotateX(3deg) rotateY(-2deg) translateY(0px);
    }
    25% {
        transform: perspective(1000px) rotateX(2deg) rotateY(-1deg) translateY(-5px);
    }
    50% {
        transform: perspective(1000px) rotateX(4deg) rotateY(-3deg) translateY(-8px);
    }
    75% {
        transform: perspective(1000px) rotateX(2deg) rotateY(-1deg) translateY(-3px);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-group input,
.form-group textarea {
    padding: 1.5rem 1.8rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.1),
        0 6px 12px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(102, 126, 234, 0.2);
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateX(0deg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 
        inset 0 4px 8px rgba(0, 0, 0, 0.1),
        0 12px 24px rgba(102, 126, 234, 0.4),
        0 6px 12px rgba(118, 75, 162, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.4);
    transform: perspective(1000px) rotateX(-2deg) translateY(-4px) scale(1.02);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(102, 126, 234, 0.8);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    color: rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

/* Contact Form Submit Button */
.contact-form .btn {
    margin-top: 1rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #00d4ff 0%, #667eea 50%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    box-shadow: 
        0 8px 20px rgba(0, 212, 255, 0.4),
        0 4px 10px rgba(102, 126, 234, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transform: perspective(1000px) rotateX(0deg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 3;
}

.contact-form .btn:hover {
    transform: perspective(1000px) rotateX(-5deg) translateY(-6px) scale(1.05);
    box-shadow: 
        0 15px 30px rgba(0, 212, 255, 0.5),
        0 8px 16px rgba(102, 126, 234, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.contact-form .btn:active {
    transform: perspective(1000px) rotateX(-2deg) translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 16px rgba(0, 212, 255, 0.4),
        0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

/* Footer Social Links */
.footer-section .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1rem;
    text-align: center;
    color: var(--gray-400);
}

/* Admin Styles */
.admin-body {
    background: var(--gray-100);
    min-height: 100vh;
}

/* Quick Actions Styles */
.quick-actions {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    max-width: 60%;
}

.quick-actions h3 {
    margin-bottom: 1.5rem;
    color: var(--gray-800);
    font-size: 1.25rem;
    font-weight: 600;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 100%;
    overflow: hidden;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-700);
    transition: var(--transition);
    cursor: pointer;
    min-height: 60px;
    box-shadow: var(--shadow-sm);
}

.quick-action-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action-btn i {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.quick-action-btn span {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
}

/* Responsive Quick Actions */
@media (max-width: 1200px) {
    .quick-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .quick-action-btn {
        padding: 0.5rem 0.25rem;
        min-height: 50px;
    }
    
    .quick-action-btn i {
        font-size: 0.9rem;
    }
    
    .quick-action-btn span {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--gray-600);
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.error-message {
    background: var(--error-color);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    animation: slideDown 0.3s ease-out;
    position: relative;
    z-index: 9999;
}

.success-message {
    background: var(--success-color);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    animation: slideDown 0.3s ease-out;
    position: relative;
    z-index: 9999;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile-specific message styles */
@media (max-width: 768px) {
    .error-message,
    .success-message {
        position: fixed;
        top: 80px;
        left: 1rem;
        right: 1rem;
        margin: 0;
        padding: 1rem;
        font-size: 1rem;
        z-index: 99999;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }
}

.admin-container {
    display: flex;
    min-height: 100vh;
    background: var(--gradient-dark);
    position: relative;
    overflow-x: hidden;
}

.admin-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    animation: adminBackgroundFloat 25s ease-in-out infinite;
    z-index: -1;
}

/* Floating code elements for admin background */
.admin-container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(0, 255, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    animation: adminCodeFloat 30s ease-in-out infinite;
}

/* Floating code snippets */
.admin-floating-code {
    position: fixed;
    color: rgba(0, 255, 255, 0.15);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 2;
    animation: floatCode 20s linear infinite;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.admin-floating-code:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; content: 'const admin = {'; }
.admin-floating-code:nth-child(2) { top: 20%; right: 15%; animation-delay: 3s; content: 'function addProject()'; }
.admin-floating-code:nth-child(3) { top: 40%; left: 5%; animation-delay: 6s; content: 'npm install'; }
.admin-floating-code:nth-child(4) { top: 60%; right: 10%; animation-delay: 9s; content: 'git commit -m'; }
.admin-floating-code:nth-child(5) { top: 80%; left: 20%; animation-delay: 12s; content: 'if (user) {'; }
.admin-floating-code:nth-child(6) { top: 30%; right: 5%; animation-delay: 15s; content: 'console.log()'; }
.admin-floating-code:nth-child(7) { top: 70%; left: 15%; animation-delay: 18s; content: 'import React from'; }
.admin-floating-code:nth-child(8) { top: 50%; right: 25%; animation-delay: 21s; content: 'export default'; }

@keyframes adminCodeFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(15px) rotate(-1deg); }
}

@keyframes floatCode {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.15; }
    25% { transform: translateY(-30px) rotate(2deg); opacity: 0.3; }
    50% { transform: translateY(-60px) rotate(0deg); opacity: 0.15; }
    75% { transform: translateY(-30px) rotate(-2deg); opacity: 0.3; }
    100% { transform: translateY(0px) rotate(0deg); opacity: 0.15; }
}

@keyframes adminBackgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(0.5deg); }
    66% { transform: translateY(10px) rotate(-0.5deg); }
}

.admin-sidebar {
    width: 250px;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.95) 0%, rgba(20, 20, 40, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-right: 2px solid var(--primary-color);
    box-shadow: 
        12px 0 40px rgba(0, 0, 0, 0.4),
        inset -1px 0 0 rgba(255, 215, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: perspective(1000px) rotateY(-2deg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    position: relative;
}

.admin-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    z-index: -1;
}

.admin-sidebar:hover {
    transform: perspective(1000px) rotateY(0deg) translateX(5px);
    box-shadow: 
        15px 0 50px rgba(0, 0, 0, 0.5),
        inset -1px 0 0 rgba(255, 215, 0, 0.4);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    transform: perspective(1000px) rotateX(5deg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-header:hover {
    transform: perspective(1000px) rotateX(0deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.sidebar-header h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.sidebar-header p {
    color: #ffffff;
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1.7rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    transform: perspective(1000px) rotateX(0deg);
    border-radius: 8px;
    margin: 0.25rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-item:hover {
    transform: perspective(1000px) rotateX(5deg) translateX(10px);
    background: rgba(255, 255, 255, 0.15);
    color: #00d4ff;
    box-shadow: 
        0 8px 25px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.3);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    color: #00d4ff;
    transform: perspective(1000px) rotateX(2deg) translateX(5px);
    box-shadow: 
        0 5px 15px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 212, 255, 0.5);
}

.sidebar-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 0;
}

.admin-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: transparent;
    position: relative;
    z-index: 2;
}

.admin-section {
    display: none;
    width: 250vh;
}

.admin-section.active {
    display: block;
    width: 230vh;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: var(--gray-800);
    margin: 0;
}

.section-header p {
    color: var(--gray-600);
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
    max-width: 50%;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: perspective(1000px) rotateX(2deg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.6s;
}

.stat-card:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-card:hover::before {
    left: 100%;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    font-size: 1.2rem;
    box-shadow: 
        0 4px 16px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: perspective(1000px) rotateX(5deg);
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: perspective(1000px) rotateX(0deg) scale(1.1);
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.stat-content h3 {
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    font-weight: 700;
}

.stat-content p {
    color: var(--primary-color);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table-container {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.admin-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}

.admin-table td {
    color: var(--gray-800);
}

.admin-table tr:hover {
    background: var(--gray-50);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: auto;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-new {
    background: var(--warning-color);
    color: var(--white);
}

.status-read {
    background: var(--primary-color);
    color: var(--white);
}

.status-replied {
    background: var(--success-color);
    color: var(--white);
}

.status-published {
    background: var(--success-color);
    color: var(--white);
}

.status-draft {
    background: var(--gray-500);
    color: var(--white);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    margin: 0;
    color: var(--gray-800);
}

.modal-close {
    font-size: 2rem;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--gray-700);
}

.modal-form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.95) 0%, rgba(20, 20, 40, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(2deg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #667eea, #764ba2, #f093fb, #00d4ff);
    background-size: 300% 100%;
    animation: codeShimmer 3s ease-in-out infinite;
}

.modal-form:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modal-form label {
    color: rgba(255, 255, 255, 0.95) !important;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
    color: #2d3748 !important;
    background: rgba(255, 255, 255, 0.95);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-spinner .spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
    margin: 0;
}

/* Responsive Design - Enhanced Media Mode System */

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Desktop Mode (Default) - 1200px and above */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .navbar-nav {
        display: flex;
        position: static;
        transform: none;
        background: none;
        box-shadow: none;
        flex-direction: row;
        gap: 0.3rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .profile-image {
        width: 400px;
        height: 400px;
    }
}

/* Tablet Mode - 768px to 1199px */
@media (max-width: 1199px) and (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        border-top: 2px solid var(--primary-color);
    }
    
    .navbar-nav.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.8rem 1rem;
        margin: 0.25rem 0;
        text-align: center;
        width: 100%;
        border-radius: 8px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .profile-image {
        width: 350px;
        height: 350px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
    
    /* Admin Dashboard - Tablet */
    .admin-container {
        flex-direction: row;
    }
    
    .admin-sidebar {
        width: 220px;
        min-width: 220px;
    }
    
    .admin-main {
        flex: 1;
        padding: 1.5rem;
        width: calc(100% - 220px);
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .admin-table {
        font-size: 0.85rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .modal-content {
        width: 85%;
        max-width: 600px;
    }
}

/* Mobile Mode - Below 768px */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        border-top: 2px solid var(--primary-color);
    }
    
    .navbar-nav.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem;
        margin: 0.25rem 0;
        text-align: center;
        width: 100%;
        border-radius: 8px;
    }
    
    .hero {
        padding-top: 100px;
        min-height: 100vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .profile-image {
        width: 280px;
        height: 280px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .hero-social-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-social-link {
        width: 50px;
        height: 50px;
    }
    
    .hero-social-link i {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .about-profile-image img {
        width: 150px;
        height: 150px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat {
        padding: 1.5rem 1rem;
    }
    
    .stat h3 {
        font-size: 2.5rem;
    }
    
    .about-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .skills {
        padding: 60px 0;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .experience {
        padding: 60px 0;
    }
    
    .experience-timeline::before {
        left: 20px;
    }
    
    .experience-item:nth-child(odd),
    .experience-item:nth-child(even) {
        margin-left: 40px;
        margin-right: 0;
    }
    
    .experience-item {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .education {
        padding: 60px 0;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .education-item {
        padding: 1.5rem;
    }
    
    .projects {
        padding: 60px 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 0;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .blog {
        padding: 60px 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card {
        padding: 0;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .contact {
        padding: 60px 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
    }
    
    .social-link i {
        font-size: 1.1rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* Admin Dashboard - Mobile */
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        order: 1;
        transform: none;
        border-right: none;
        border-bottom: 2px solid var(--primary-color);
        padding: 1rem;
    }
    
    .admin-brand {
        padding: 0.5rem 0;
        font-size: 1.25rem;
    }
    
    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .nav-item {
        min-width: 100px;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        text-align: center;
        white-space: nowrap;
    }
    
    .nav-item i {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .admin-main {
        order: 2;
        padding: 1rem;
        width: 100%;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .admin-section {
        width: 100% !important;
        padding: 1rem;
    }
    
    .admin-section.active {
        width: 100% !important;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 0.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-form {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .admin-table {
        min-width: 500px;
        font-size: 0.8rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .table-actions {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .quick-actions {
        max-width: 100%;
        margin-top: 1rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .quick-action-btn {
        padding: 0.5rem 0.25rem;
        min-height: 50px;
    }
    
    .quick-action-btn i {
        font-size: 0.9rem;
    }
    
    .quick-action-btn span {
        font-size: 0.65rem;
    }
}

/* Small Mobile Mode - Below 480px */
@media (max-width: 479px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-profile-image img {
        width: 120px;
        height: 120px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .about-profile-image img {
        width: 120px;
        height: 120px;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .modal-form {
        padding: 1.5rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
}

/* New Admin Section Styles */
.about-content {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.about-preview h3 {
    color: var(--gray-700);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.about-preview-content {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    min-height: 200px;
    color: var(--gray-800);
}

.about-preview-content h4,
.about-preview-content p,
.about-preview-content strong {
    color: var(--gray-800);
}

.about-preview-content .text-muted {
    color: var(--gray-600);
}

.about-preview-item {
    color: var(--gray-800);
}

.about-preview-item h4 {
    color: var(--gray-900);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-preview-item p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.about-preview-item strong {
    color: var(--gray-900);
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 1.1rem;
}

.skill-category {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.skill-level {
    margin: 0.5rem 0;
}

.level-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.level-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.skill-description {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
}

.skill-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.settings-content {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.settings-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-section h3 {
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.settings-form {
    max-width: 600px;
}

.settings-form .form-group {
    margin-bottom: 1.5rem;
}

.settings-form label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2d3748;
    text-shadow: none;
    position: relative;
}

.settings-form label::before {
    content: '⚡';
    margin-right: 0.5rem;
    color: #00d4ff;
    font-size: 1rem;
}

.settings-form input,
.settings-form select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    color: #2d3748;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateX(0deg);
}

.settings-form input:focus,
.settings-form select:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 212, 255, 0.3),
        0 0 0 4px rgba(0, 212, 255, 0.2);
    transform: perspective(1000px) rotateX(-2deg) translateY(-3px) scale(1.02);
}

.settings-form input::placeholder {
    color: rgba(45, 55, 72, 0.5);
    font-weight: 400;
}

.settings-form input[type="file"] {
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.settings-form input[type="file"]:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    transform: perspective(1000px) rotateX(-2deg) translateY(-2px);
}

.settings-form input[type="file"]:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 
        0 8px 16px rgba(0, 212, 255, 0.3),
        0 0 0 4px rgba(0, 212, 255, 0.2);
    transform: perspective(1000px) rotateX(-2deg) translateY(-3px) scale(1.02);
}

.settings-form small {
    display: block;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Status badges for different content types */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-published {
    background: var(--success-color);
    color: var(--white);
}

.status-draft {
    background: var(--gray-500);
    color: var(--white);
}

.status-new {
    background: var(--primary-color);
    color: var(--white);
}

.status-read {
    background: var(--gray-400);
    color: var(--gray-700);
}

.status-replied {
    background: var(--success-color);
    color: var(--white);
}

/* Enhanced table styles */
.admin-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.admin-table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

.admin-table tr:hover {
    background: var(--gray-50);
}

/* Form row for side-by-side inputs */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-form {
        max-width: 100%;
    }
}

/* Experience Section */
.experience {
    padding: 80px 0;
    background: var(--gray-100);
}

.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.experience-item {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.experience-item:nth-child(odd) {
    margin-left: 0;
    margin-right: 50%;
}

.experience-item:nth-child(even) {
    margin-left: 50%;
    margin-right: 0;
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.experience-company {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.experience-duration {
    display: block;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.experience-description {
    color: var(--gray-800);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.experience-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.current-badge {
    background: var(--success-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

/* Education Section */
.education {
    padding: 80px 0;
    background: var(--white);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.education-item {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.education-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.education-institution {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.education-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.education-years {
    color: var(--gray-600);
    font-weight: 500;
}

.education-description {
    color: var(--gray-800);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.education-gpa {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

/* Enhanced Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--gray-100);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.skill-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

.skill-name {
    font-weight: 500;
    color: var(--gray-800);
}

.skill-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 120px;
}

.skill-bar {
    width: 60px;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.skill-level {
    font-size: 0.8rem;
    color: var(--gray-600);
    min-width: 60px;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .experience-timeline::before {
        left: 20px;
    }
    
    .experience-item:nth-child(odd),
    .experience-item:nth-child(even) {
        margin-left: 40px;
        margin-right: 0;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Resume download button when no resume is available */
#resume-download[href="#"] {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ccc !important;
    transform: none !important;
    box-shadow: none !important;
}

#resume-download[href="#"]:hover {
    background: #ccc !important;
    color: #666 !important;
    transform: none !important;
    box-shadow: none !important;
}

#resume-download[href="#"]:hover::before {
    left: -100% !important;
}

/* Current resume display in admin panel */
#current-resume {
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    display: inline-block;
    margin-left: 8px;
}

/* Resume file input styling */
#resume-file {
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: rgba(102, 126, 234, 0.05);
    transition: all 0.3s ease;
}

#resume-file:hover {
    border-color: var(--secondary-color);
    background: rgba(102, 126, 234, 0.1);
}

#resume-file:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Throttle notification styling */
.throttle-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.throttle-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.throttle-content span {
    font-weight: 500;
}

.throttle-content button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.throttle-content button:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced Page Load Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px) rotateY(10deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(50px) rotateY(-10deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateZ(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateZ(0deg);
    }
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100px) rotateX(90deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* Staggered animation delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* Initial state for animated elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px) rotateX(10deg);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* Enhanced hover effects for all interactive elements */
.interactive-element {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: perspective(1000px) rotateX(0deg);
}

.interactive-element:hover {
    transform: perspective(1000px) rotateX(-2deg) translateY(-5px) scale(1.02);
}

/* Enhanced button animations */
.btn {
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(0deg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.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;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: perspective(1000px) rotateX(-3deg) translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn:active {
    transform: perspective(1000px) rotateX(-1deg) translateY(-1px) scale(1.02);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.15),
        0 3px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
/* ====================================================================
   PERFORMANCE OPTIMIZATIONS - Append to style.css
   ==================================================================== */

/* Performance Optimization - Reduce animations on mobile devices for better performance */
@media (max-width: 768px) {
    /* Disable heavy background animations on mobile */
    .floating-code,
    .admin-floating-code,
    .code-matrix,
    .profile-image-border,
    .hero-section::before,
    .about::before,
    .admin-container::before,
    .admin-container::after,
    .profile-image-glow {
        animation: none !important;
        opacity: 0.05 !important;
    }
    
    /* Simplify card animations */
    .hero-content h1,
    .skill-category::before,
    .project-card::before,
    .blog-card::before,
    .stat-card {
        animation: none !important;
    }
    
    /* Reduce 3D transforms for better mobile performance */
    .profile-image,
    .skill-category,
    .project-card,
    .blog-card,
    .admin-sidebar,
    .experience-content,
    .education-card {
        transform: none !important;
        will-change: auto !important;
        transition: opacity 0.2s ease, background-color 0.2s ease !important;
    }
    
    /* Simplify hover effects */
    .skill-category:hover,
    .project-card:hover,
    .blog-card:hover {
        transform: translateY(-2px) !important;
    }
    
    /* Disable gradient animations */
    .hero-section,
    .about-section,
    .skills-section {
        background-attachment: scroll !important;
    }
}

/* Prefer reduced motion for accessibility and overall performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Additional performance optimizations for all devices */
.profile-image,
.skill-card,
.project-card,
.blog-card {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

/* Optimize images for performance */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Smooth scrolling optimization */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

