/* ========================================
   CYBERMAX ACADEMY THEME - Portfolio Website
   Based on Red-Theme Documentation
   ======================================== */

/* CSS Variables - Theme Configuration */
:root {
    /* Primary Colors (Maroon Theme) */
    --color-maroon-dark: #800000;
    --color-maroon-medium: #990000;
    --color-maroon-light: #B22222;
    --color-black: #000000;
    
    /* Secondary Colors (Red Spectrum) */
    --color-red-500: #FF4C4C;
    --color-red-600: #E63946;
    --color-red-700: #D62828;
    
    /* Neutral Colors - Light Theme */
    --color-white: #FFFFFF;
    --color-light-gray: #F5F5F5;
    --color-gray-100: #F3F4F6;
    --color-gray-300: #D1D5DB;
    --color-gray-600: #4B5563;
    --color-gray-900: #111111;
    
    /* Gradient Colors */
    --gradient-primary: linear-gradient(to right, #800000, #990000);
    --gradient-accent: linear-gradient(to right, #B22222, #990000, #800000);
    --gradient-light: linear-gradient(to bottom right, #FFE5E5, #FFCCCC);
    --gradient-hero: linear-gradient(135deg, #800000, #990000, #B22222);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Theme Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F5;
    --bg-tertiary: #FAFAFA;
    --text-primary: #111111;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-primary: #111111;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #222222;
    --text-primary: #FFFFFF;
    --text-secondary: #D1D5DB;
    --text-muted: #9CA3AF;
    --border-color: #374151;
    --color-gray-100: #1F2937;
}

/* ========================================
   Base Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

button {
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition-base);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Section Styles */
section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-maroon-dark);
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    position: relative;
}

[data-theme="dark"] .section-title {
    color: var(--color-white);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: var(--spacing-md) auto 0;
    border-radius: var(--radius-full);
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all var(--transition-base);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo-image {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-maroon-dark);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

[data-theme="dark"] .nav-logo-image {
    border-color: var(--color-maroon-light);
}

.nav-logo-image:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-weight: 800;
}

.brand-text {
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-maroon-dark);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--color-maroon-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Developer Icon Button */
.dev-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.dev-icon {
    width: 20px;
    height: 20px;
}

.dev-icon-btn:hover {
    background: linear-gradient(135deg, #FF1744, #FF5252);
    color: var(--color-white);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.4);
}

.dev-icon-btn:active {
    transform: scale(0.95);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

.theme-toggle:hover {
    background-color: var(--color-maroon-dark);
    color: var(--color-white);
    transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Futuristic Background Animation */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1428 0%, #0d2847 25%, #1a3a52 50%, #0e5a8c 75%, #0a1428 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease-in-out infinite;
    z-index: 1;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Canvas for particle effects */
#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Holographic Grid */
.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(100, 200, 255, 0.08) 25%, rgba(100, 200, 255, 0.08) 26%, transparent 27%, transparent 74%, rgba(100, 200, 255, 0.08) 75%, rgba(100, 200, 255, 0.08) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(100, 200, 255, 0.08) 25%, rgba(100, 200, 255, 0.08) 26%, transparent 27%, transparent 74%, rgba(100, 200, 255, 0.08) 75%, rgba(100, 200, 255, 0.08) 76%, transparent 77%, transparent);
    background-size: 80px 80px, 80px 80px;
    background-position: 0 0, 40px 40px;
    animation: gridPerspective 20s linear infinite;
    z-index: 2;
    opacity: 0.4;
}

@keyframes gridPerspective {
    0% {
        background-position: 0 0, 40px 40px;
        transform: perspective(1000px) rotateX(85deg) translateZ(0);
    }
    50% {
        transform: perspective(1000px) rotateX(80deg) translateZ(20px);
    }
    100% {
        background-position: 0 -800px, 40px -760px;
        transform: perspective(1000px) rotateX(85deg) translateZ(0);
    }
}

/* Glowing Orbs */
.hero-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 2;
    mix-blend-mode: screen;
}

.hero-glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #00d9ff 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation: float 12s ease-in-out infinite, glow1 6s ease-in-out infinite;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    bottom: -250px;
    right: -250px;
    animation: float 15s ease-in-out infinite reverse, glow2 7s ease-in-out infinite;
}

.hero-glow-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #00ffff 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation: float 18s ease-in-out infinite, glow3 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(30px, -30px);
    }
    50% {
        transform: translate(-20px, 20px);
    }
    75% {
        transform: translate(20px, 30px);
    }
}

@keyframes glow1 {
    0%, 100% {
        opacity: 0.2;
        filter: blur(80px);
    }
    50% {
        opacity: 0.4;
        filter: blur(100px);
    }
}

@keyframes glow2 {
    0%, 100% {
        opacity: 0.15;
        filter: blur(80px);
    }
    50% {
        opacity: 0.35;
        filter: blur(100px);
    }
}

@keyframes glow3 {
    0%, 100% {
        opacity: 0.25;
        filter: blur(80px);
    }
    50% {
        opacity: 0.45;
        filter: blur(100px);
    }
}

/* Energy Waves */
.hero-energy-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.energy-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 200"><defs><linearGradient id="waveGrad" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%25" style="stop-color:%2300d9ff;stop-opacity:0.3"/><stop offset="100%25" style="stop-color:%2300d9ff;stop-opacity:0"/></linearGradient></defs><path d="M0,50 Q480,0 960,50 T1920,50 L1920,200 L0,200 Z" fill="url(%23waveGrad)"/></svg>') repeat-x;
    background-size: 1920px 200px;
    animation: waveFlow 15s linear infinite;
    opacity: 0.4;
}

.wave-2 {
    bottom: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 200"><defs><linearGradient id="waveGrad2" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%25" style="stop-color:%236366f1;stop-opacity:0.2"/><stop offset="100%25" style="stop-color:%236366f1;stop-opacity:0"/></linearGradient></defs><path d="M0,100 Q480,50 960,100 T1920,100 L1920,200 L0,200 Z" fill="url(%23waveGrad2)"/></svg>') repeat-x;
    animation: waveFlow 20s linear infinite reverse;
    opacity: 0.25;
}

.wave-3 {
    bottom: 40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 200"><defs><linearGradient id="waveGrad3" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%25" style="stop-color:%2300ffff;stop-opacity:0.15"/><stop offset="100%25" style="stop-color:%2300ffff;stop-opacity:0"/></linearGradient></defs><path d="M0,75 Q480,25 960,75 T1920,75 L1920,200 L0,200 Z" fill="url(%23waveGrad3)"/></svg>') repeat-x;
    animation: waveFlow 25s linear infinite;
    opacity: 0.2;
}

@keyframes waveFlow {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1920px 0;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 10;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title-wrapper {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.4), 0 0 40px rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.typing-prefix {
    color: #FFFFFF;
    margin-right: 0.1em;
}

#typingText {
    min-height: 1.2em;
    display: inline-block;
}

.typing-cursor {
    width: 3px;
    height: 1em;
    background: linear-gradient(135deg, #FF1744, #FF5252);
    margin-left: 0.1em;
    margin-top: 0.15em;
    display: inline-block;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
        background: linear-gradient(135deg, #FF1744, #FF5252);
    }
    51%, 100% {
        opacity: 0;
        background: linear-gradient(135deg, #FF1744, #FF5252);
    }
}

.gradient-text {
    background: linear-gradient(135deg, #FF1744, #FF5252);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FF5252;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 0 10px rgba(255, 82, 82, 0.3);
}

.hero-tagline {
    font-size: 1.125rem;
    color: #D0D0D0;
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

/* Profile Image with Pulse Animation */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pulse-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-maroon-light);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 3s ease-out infinite;
}

.pulse-delay-1 {
    animation-delay: 1s;
}

.pulse-delay-2 {
    animation-delay: 2s;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

.profile-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--color-white);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.6), 
                0 0 60px rgba(99, 102, 241, 0.3),
                var(--shadow-xl);
    position: relative;
    z-index: 2;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #FF1744 0%, #FF5252 100%);
    color: var(--color-white);
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.4), var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.6), var(--shadow-lg);
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: #00D9FF;
    border: 2px solid #00D9FF;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    color: #00FFFF;
    border-color: #00FFFF;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.4);
}

/* ========================================
   About Section
   ======================================== */

.about {
    background-color: var(--bg-primary);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    text-align: left;
}

.about-intro {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-maroon-medium);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.about-mission {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--gradient-light);
    border-left: 4px solid var(--color-maroon-dark);
    border-radius: var(--radius-md);
}

[data-theme="dark"] .about-mission {
    background: rgba(128, 0, 0, 0.1);
    border-left-color: var(--color-maroon-light);
}

.about-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    width: 24px;
    height: 24px;
    color: var(--color-maroon-dark);
    flex-shrink: 0;
}

[data-theme="dark"] .info-icon {
    color: var(--color-maroon-light);
}

.info-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

/* ========================================
   Skills Section
   ======================================== */

.skills {
    background-color: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.skill-category {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.category-icon {
    width: 32px;
    height: 32px;
    color: var(--color-maroon-dark);
}

[data-theme="dark"] .category-icon {
    color: var(--color-maroon-light);
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Skill Card with Progress Bar */
.skill-card {
    margin-bottom: var(--spacing-md);
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1s ease-out;
}

/* Skill Tags */
.skill-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-light);
    color: var(--color-maroon-dark);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.25rem;
    transition: all var(--transition-base);
}

[data-theme="dark"] .skill-tag {
    background: rgba(178, 34, 34, 0.2);
    color: var(--color-maroon-light);
}

.skill-tag:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Experience Section (Timeline)
   ======================================== */

.experience {
    background-color: var(--bg-primary);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: var(--spacing-3xl);
    animation: fadeInUp 0.8s ease-out;
}

.timeline-marker {
    position: absolute;
    left: 18px;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.timeline-content {
    background: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.timeline-date {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-maroon-dark);
    margin-bottom: var(--spacing-sm);
}

[data-theme="dark"] .timeline-title {
    color: var(--color-maroon-light);
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   Education Section
   ======================================== */

.education {
    background-color: var(--bg-secondary);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.education-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border-top: 4px solid var(--color-maroon-dark);
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.education-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

[data-theme="dark"] .education-icon {
    background: rgba(178, 34, 34, 0.2);
}

.education-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-maroon-dark);
}

[data-theme="dark"] .education-icon svg {
    color: var(--color-maroon-light);
}

.education-degree {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.education-institution {
    font-size: 1rem;
    color: var(--color-maroon-medium);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.education-year,
.education-gpa,
.education-thesis {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.education-thesis {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

/* ========================================
   Projects Section
   ======================================== */

.projects {
    background-color: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.project-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-header {
    background: var(--gradient-primary);
    padding: var(--spacing-xl);
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-icon {
    width: 60px;
    height: 60px;
    color: var(--color-white);
}

.project-content {
    padding: var(--spacing-xl);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-lg);
}

.tech-tag {
    padding: 0.375rem 0.875rem;
    background: var(--gradient-light);
    color: var(--color-maroon-dark);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

[data-theme="dark"] .tech-tag {
    background: rgba(178, 34, 34, 0.2);
    color: var(--color-maroon-light);
}

.project-role,
.project-outcome {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   Contact Section
   ======================================== */

.contact {
    background-color: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.contact-item {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 40px;
    height: 40px;
    color: var(--color-maroon-dark);
    flex-shrink: 0;
}

[data-theme="dark"] .contact-icon {
    color: var(--color-maroon-light);
}

.contact-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--color-maroon-medium);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--color-maroon-dark);
    text-decoration: underline;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Contact Form */
.contact-form {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-maroon-dark);
    box-shadow: 0 0 0 4px rgba(128, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    margin-top: var(--spacing-md);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-maroon-light);
}

.footer-social h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.social-icons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-white);
}

.social-icon:hover {
    background-color: var(--color-maroon-light);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--color-maroon-light);
}

/* ========================================
   Developer Promotion Modal
   ======================================== */

.dev-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(5px);
}

.dev-modal.active {
    opacity: 1;
    visibility: visible;
}

.dev-modal-content {
    background: var(--bg-primary);
    max-width: 500px;
    width: 90%;
    border-radius: var(--radius-xl);
    padding: var(--spacing-3xl);
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: scale(0.7);
    transition: transform var(--transition-base);
}

.dev-modal.active .dev-modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-close:hover {
    background: var(--color-red-500);
    color: var(--color-white);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    color: var(--color-maroon-dark);
}

[data-theme="dark"] .modal-icon {
    color: var(--color-maroon-light);
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.modal-body {
    text-align: center;
}

.dev-name {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.dev-company {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.dev-tagline {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.dev-contact {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.125rem;
    transition: all var(--transition-base);
}

.dev-contact:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.phone-pulse-container {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-pulse-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    opacity: 0;
    animation: phonePulse 2s ease-out infinite;
}

.phone-pulse-delay-1 {
    animation-delay: 0.7s;
}

.phone-pulse-delay-2 {
    animation-delay: 1.4s;
}

@keyframes phonePulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.phone-icon {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 2;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .pulse-container {
        width: 300px;
        height: 300px;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        flex-direction: column;
        padding: var(--spacing-xl);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform var(--transition-base);
        gap: var(--spacing-lg);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-marker {
        left: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .pulse-container {
        width: 250px;
        height: 250px;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .skills-grid,
    .education-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .dev-modal-content {
        padding: var(--spacing-xl);
    }
    
    .dev-name {
        font-size: 1.5rem;
    }
    
    .dev-company {
        font-size: 1.25rem;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}