/* ===================================================
   AMAL GEORGE - PORTFOLIO WEBSITE
   Complete CSS with Responsive Project Cards
   =================================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Professional Developer Color Scheme - Warm Orange/Gold */
    --primary-color: #f59e0b;
    --secondary-color: #d97706;
    --accent-color: #fbbf24;
    --highlight-color: #f97316;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --dark-card: #1a2332;
    --light: #f1f5f9;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --gradient: linear-gradient(135deg, #f59e0b, #d97706);
    --card-bg: rgba(26, 35, 50, 0.9);
    --border-color: rgba(245, 158, 11, 0.2);
    
    /* Professional accent colors */
    --ai-green: #0d9488;
    --ai-blue: #00b4d8;
    --gradient-ai: linear-gradient(135deg, #00b4d8 0%, #0d9488 100%);
    --gradient-alt: linear-gradient(135deg, #38bdf8 0%, #0d9488 100%);
    --glow-color: rgba(0, 180, 216, 0.4);
    --glow-secondary: rgba(13, 148, 136, 0.4);
    --font-mono: 'JetBrains Mono', 'Space Grotesk', monospace;
    --font-sans: 'Inter', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Creative Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.code-loader {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.loader-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    20% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(30deg);
    }
    40% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(60deg);
    }
    60% {
        transform: translate(2px, 2px);
        filter: hue-rotate(90deg);
    }
    80% {
        transform: translate(2px, -2px);
        filter: hue-rotate(120deg);
    }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--dark-lighter);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.loading-progress {
    height: 100%;
    background: var(--gradient);
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: white;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.1s ease;
}

.cursor-hover {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--dark-lighter);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.1s ease;
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    transform: translateY(-5px);
    background: var(--gradient);
    color: white;
}

/* Professional Theme Variations */
body.neon-theme {
    --primary-color: #22d3ee;
    --secondary-color: #06b6d4;
    --accent-color: #67e8f9;
    --gradient: linear-gradient(135deg, #22d3ee, #06b6d4);
}

body.neon-theme * {
    text-shadow: 0 0 5px rgba(34, 211, 238, 0.3);
}

/* Ocean Theme */
body.ocean-theme {
    --primary-color: #0891b2;
    --secondary-color: #0e7490;
    --accent-color: #06b6d4;
    --gradient: linear-gradient(135deg, #0891b2, #0e7490);
    --dark: #082f49;
    --dark-lighter: #0c4a6e;
}

/* Floating Tech Icons */
.floating-tech-icons {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.tech-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.1;
    animation: float-around var(--duration) infinite var(--delay);
}

.tech-icon img {
    width: 100%;
    height: 100%;
    filter: grayscale(1);
}

@keyframes float-around {
    0% {
        transform: translate(0, 100vh) rotate(0deg);
    }
    25% {
        transform: translate(30vw, 75vh) rotate(90deg);
    }
    50% {
        transform: translate(60vw, 50vh) rotate(180deg);
    }
    75% {
        transform: translate(90vw, 25vh) rotate(270deg);
    }
    100% {
        transform: translate(100vw, 0) rotate(360deg);
    }
}

/* Approach Selector */
.approach-selector {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 5px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 5px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
}

.approach-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.approach-btn.active {
    background: var(--gradient);
    color: white;
}

.approach-btn[data-mode="innovative"] i {
    font-size: 14px;
}

.approach-btn span {
    display: none;
}

.approach-btn:hover span {
    display: inline;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(15, 23, 42, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.theme-toggle-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.theme-toggle-btn i {
    transition: transform 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Space Grotesk', monospace;
}

.role-badge {
    background: var(--card-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0 50px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(14, 165, 233, 0.05) 30%, rgba(14, 165, 233, 0.05) 70%,
        transparent 70%);
    background-size: 60px 60px;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 60px 60px;
    }
}

.gradient-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(2, 132, 199, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    filter: blur(100px);
}

#particle-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.35;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-text {
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 10;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(245, 158, 11, 0.1),
        inset 0 0 20px rgba(245, 158, 11, 0.05);
}

.greeting {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 10px;
}

.hero-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    animation: text-glow-pulse 3s ease-in-out infinite;
}

.hero-name::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glitch-text 3s infinite;
    opacity: 0.8;
}

@keyframes text-glow-pulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(245, 158, 11, 0.6), 0 0 40px rgba(245, 158, 11, 0.4);
    }
}

@keyframes glitch-text {
    0%, 100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    25% {
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
        transform: translateX(5px);
    }
    50% {
        clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
        transform: translateX(-5px);
    }
    75% {
        clip-path: polygon(0 25%, 100% 25%, 100% 75%, 0 75%);
        transform: translateY(5px);
    }
}

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    align-items: center;
}

.role-item {
    background: var(--card-bg);
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.role-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.3);
}

.role-separator {
    color: var(--accent-color);
    font-weight: bold;
}

/* Hero Description Container */
.hero-description-container {
    min-height: 100px;
    position: relative;
}

.hero-description {
    display: none;
    animation: fadeIn 0.5s ease;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-description.active {
    display: block;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--dark-lighter);
    transform: translateY(-2px);
}

/* Code Window */
.code-window {
    background: var(--dark-lighter);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInRight 1s ease;
}

.window-header {
    background: var(--dark);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27c93f; }

.window-title {
    color: var(--text-secondary);
    font-size: 14px;
    font-family: 'Space Grotesk', monospace;
}

.code-content {
    padding: 20px;
    font-family: 'Space Grotesk', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.comment { color: #64748b; font-style: italic; }
.keyword { color: #06b6d4; }
.variable { color: #0ea5e9; }
.property { color: #10b981; }
.string { color: #22d3ee; }
.function { color: #0ea5e9; }
.tag { color: #0891b2; }

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(14, 165, 233, 0.03));
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 60px;
}

.title-accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Professional Cards */
.intro-card,
.competencies-card,
.achievements-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.intro-card h3,
.competencies-card h3,
.achievements-card h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.intro-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.competency-list {
    margin-top: 20px;
}

.competency {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.competency:last-child {
    border-bottom: none;
}

.competency i {
    color: #10b981;
    font-size: 20px;
    margin-top: 3px;
}

.competency strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.competency span {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.timeline-icon {
    width: 30px;
    height: 30px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -40px;
}

.timeline-icon i {
    color: white;
    font-size: 14px;
}

.timeline-content h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Development Philosophy Section */
.philosophy {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03), rgba(6, 182, 212, 0.03));
    position: relative;
}

.philosophy-content {
    max-width: 1200px;
    margin: 0 auto;
}

.philosophy-intro {
    text-align: center;
    margin-bottom: 60px;
}

.philosophy-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    margin-bottom: 20px;
    font-weight: 600;
}

.philosophy-badge i {
    font-size: 20px;
}

.philosophy-intro h3 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.philosophy-intro p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Philosophy Benefits */
.phil-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.benefit-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon i {
    color: white;
    font-size: 24px;
}

.benefit-card h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* AI Workflow */
.ai-workflow {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.ai-workflow h3 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
}

.workflow-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.workflow-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 10px;
}

.workflow-item h4 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 5px;
}

.workflow-item p {
    color: var(--text-secondary);
    font-size: 12px;
}

.workflow-arrow {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}

/* AI Tools Grid */
.ai-tools-section {
    text-align: center;
}

.ai-tools-section h3 {
    color: var(--text-primary);
    margin-bottom: 30px;
}

.tools-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    min-width: 120px;
}

.tool-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.tool-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--dark-lighter);
    color: var(--text-primary);
}

.tool-icon-wrapper.gpt {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: bold;
}

.tool-icon-wrapper.claude {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    font-weight: bold;
}

.tool-icon-wrapper.v0 {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    font-weight: bold;
}

.tool-icon-wrapper.cursor {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.tool-card span {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Skills Constellation */
.skills-constellation {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03), rgba(2, 132, 199, 0.03));
    overflow: hidden;
}

#constellation-canvas {
    width: 100%;
    height: 100%;
}

.constellation-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.constellation-title {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.constellation-subtitle {
    color: var(--text-secondary);
}

/* ===================================================
   PROJECTS SECTION - FULLY RESPONSIVE
   =================================================== */

.projects {
    padding: 100px 0;
}

/* Project Filters */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.filter-btn i {
    font-size: 16px;
}

/* Projects Showcase */
.projects-showcase {
    display: grid;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.5));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.2);
}

/* Project Image */
.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 10;
    background: rgba(15, 23, 42, 0.8);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Tech Badge */
.tech-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

/* AI Assisted Badge */
.ai-assisted-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-details {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.view-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

/* Project Content */
.project-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-content h3 {
    font-size: 28px;
    color: #e2e8f0;
    margin: 0;
    line-height: 1.3;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-content > p {
    color: #94a3b8;
    line-height: 1.7;
    margin: 0;
    font-size: 15px;
}

/* Project Highlights */
.project-highlights {
    margin: 10px 0;
}

.project-highlights h4 {
    color: #e2e8f0;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.project-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-highlights li {
    color: #94a3b8;
    font-size: 14px;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.project-highlights li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Project Impact */
.project-impact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 10px 0;
}

.impact-item {
    text-align: center;
    padding: 15px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
}

.impact-item:hover {
    background: rgba(14, 165, 233, 0.15);
    transform: translateY(-3px);
}

.impact-number {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.impact-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tech-stack .tech {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
}

.tech-stack .tech.ai-tech {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.tech-stack .tech:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Featured Project */
.project-card.featured {
    border: 2px solid rgba(14, 165, 233, 0.3);
    position: relative;
}

.project-card.featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    border-radius: 16px;
    z-index: -1;
    opacity: 0.1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

/* Fade in animation */
.project-card.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Loading/Empty States */
.loading-projects,
.no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.loading-projects i,
.no-projects i {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Modal Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.featured-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
}

.ai-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.category-badge {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* ===================================================
   RESPONSIVE BREAKPOINTS - PROJECTS
   =================================================== */

/* Tablets and smaller desktops (≤1024px) */
@media (max-width: 1024px) {
    .projects-showcase {
        gap: 30px;
        padding: 0 15px;
    }

    .project-card {
        gap: 25px;
    }

    .project-content h3 {
        font-size: 24px;
    }

    .project-content {
        padding: 25px;
    }

    .project-impact {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .impact-number {
        font-size: 18px;
    }
}

/* Tablets (≤768px) */
@media (max-width: 768px) {
    .projects-showcase {
        gap: 25px;
    }

    .project-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Reset any RTL direction on mobile */
    .project-card {
        direction: ltr !important;
    }

    .project-card > * {
        direction: ltr !important;
    }

    .project-image {
        border-radius: 0;
        aspect-ratio: 16 / 9;
    }

    .project-content {
        padding: 20px;
        gap: 15px;
    }

    .project-content h3 {
        font-size: 22px;
    }

    .project-content > p {
        font-size: 14px;
    }

    .project-highlights ul {
        gap: 6px;
    }

    .project-highlights li {
        font-size: 13px;
    }

    .project-impact {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .impact-item {
        padding: 12px;
    }

    .impact-number {
        font-size: 16px;
    }

    .impact-label {
        font-size: 10px;
    }

    .tech-stack {
        gap: 6px;
    }

    .tech-stack .tech {
        font-size: 11px;
        padding: 5px 12px;
    }

    .tech-badge,
    .ai-assisted-badge {
        font-size: 10px;
        padding: 5px 12px;
        top: 10px;
    }

    .tech-badge {
        left: 10px;
    }

    .ai-assisted-badge {
        right: 10px;
    }

    .view-details {
        padding: 10px 24px;
        font-size: 13px;
    }

    .project-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
}

/* Mobile devices (≤480px) */
@media (max-width: 480px) {
    .projects-showcase {
        gap: 20px;
        padding: 0 10px;
    }

    .project-card {
        border-radius: 12px;
    }

    .project-image {
        aspect-ratio: 4 / 3;
    }

    .project-content {
        padding: 15px;
        gap: 12px;
    }

    .project-content h3 {
        font-size: 20px;
    }

    .project-content > p {
        font-size: 13px;
        line-height: 1.6;
    }

    .project-highlights h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .project-highlights ul {
        gap: 5px;
    }

    .project-highlights li {
        font-size: 12px;
        padding-left: 20px;
    }

    .project-impact {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .impact-item {
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .impact-number {
        font-size: 18px;
        margin-bottom: 0;
    }

    .impact-label {
        font-size: 11px;
        text-align: right;
    }

    .tech-stack {
        gap: 5px;
    }

    .tech-stack .tech {
        font-size: 10px;
        padding: 4px 10px;
    }

    .tech-badge {
        font-size: 9px;
        padding: 4px 10px;
        top: 8px;
        left: 8px;
    }

    .ai-assisted-badge {
        font-size: 9px;
        padding: 4px 10px;
        top: 8px;
        right: 8px;
        gap: 4px;
    }

    .ai-assisted-badge i {
        font-size: 10px;
    }

    .view-details {
        padding: 8px 20px;
        font-size: 12px;
    }

    .project-overlay {
        padding: 15px;
    }
}

/* Extra small devices (≤360px) */
@media (max-width: 360px) {
    .project-content h3 {
        font-size: 18px;
    }

    .project-content > p {
        font-size: 12px;
    }

    .project-highlights li {
        font-size: 11px;
    }

    .tech-stack .tech {
        font-size: 9px;
        padding: 3px 8px;
    }

    .impact-number {
        font-size: 16px;
    }

    .impact-label {
        font-size: 10px;
    }
}

/* Landscape mode for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .project-image {
        aspect-ratio: 16 / 9;
    }

    .project-card {
        grid-template-columns: 45% 55%;
    }

    .project-content {
        padding: 15px;
    }

    .project-content h3 {
        font-size: 18px;
    }

    .project-highlights {
        margin: 5px 0;
    }

    .project-highlights ul {
        max-height: 150px;
        overflow-y: auto;
    }
}

/* ===================================================
   SKILLS SECTION - ENHANCED WITH ANIMATIONS
   =================================================== */

.skills {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(2, 132, 199, 0.03));
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Skills Timeline */
.skills-timeline-section {
    margin-top: 80px;
    padding: 40px 0;
}

.skills-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
}

.skills-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-marker {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--dark-card);
    z-index: 1;
}

.timeline-item:last-child .timeline-marker {
    background: var(--accent-color);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(245, 158, 11, 0.1);
}

.timeline-content h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.timeline-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.centered {
    text-align: center;
    margin-bottom: 40px;
}

.skill-category {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.category-header i {
    font-size: 24px;
    color: var(--primary-color);
}

.category-header h3 {
    color: var(--text-primary);
    font-size: 18px;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.skill-info span:first-child {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.skill-level {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 400;
    background: rgba(14, 165, 233, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.skill-bar {
    height: 6px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    border-radius: 3px;
    width: 0;
    position: relative;
    background: var(--gradient);
    transform-origin: left;
    will-change: width;
}

/* Animation for skill bars */
.skill-progress.animate {
    animation: fillBar 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }
    to {
        width: var(--target-width);
    }
}

/* Shimmer effect */
.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: translateX(-100%);
    opacity: 0;
}

.skill-progress.animate::after {
    animation: shimmer 1.5s ease-in-out 0.5s;
    opacity: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Different gradients for skill categories */
.skill-category:nth-child(1) .skill-progress {
    background: linear-gradient(90deg, #0ea5e9, #0284c7);
}

.skill-category:nth-child(2) .skill-progress {
    background: linear-gradient(90deg, #06b6d4, #0891b2);
}

.skill-category:nth-child(3) .skill-progress {
    background: linear-gradient(90deg, #10b981, #059669);
}

.skill-category:nth-child(4) .skill-progress {
    background: linear-gradient(90deg, #0284c7, #0ea5e9);
}

/* Hover effects */
.skill-item:hover .skill-progress {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

/* Percentage tooltip */
.skill-item::after {
    content: attr(data-skill-level) '%';
    position: absolute;
    right: 0;
    top: -25px;
    background: var(--gradient);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.skill-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive Timeline */
.journey-timeline {
    padding: 100px 0;
    background: var(--dark-lighter);
}

.timeline-interactive {
    position: relative;
    height: 400px;
    margin: 60px 0;
}

.timeline-svg {
    width: 100%;
    height: 100%;
}

.timeline-line {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 3;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: draw-line 3s ease forwards;
}

@keyframes draw-line {
    to {
        stroke-dashoffset: 0;
    }
}

.timeline-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.timeline-point {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.point-marker {
    width: 20px;
    height: 20px;
    background: var(--gradient);
    border-radius: 50%;
    position: relative;
    animation: pulse-marker 2s infinite;
}

.point-marker::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-marker {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.point-content {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 10;
}

.timeline-point:hover .point-content {
    opacity: 1;
    bottom: 50px;
}

.point-content h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.point-content p {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Workflow Section */
.workflow {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(14, 165, 233, 0.03));
}

/* Process Steps */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 60px 0;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    z-index: -1;
}

.process-step {
    flex: 1;
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    background: var(--gradient);
    border-color: transparent;
}

.step-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.process-step:hover .step-icon i {
    color: white;
}

.process-step h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 18px;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 14px;
}

.workflow-note {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(2, 132, 199, 0.05));
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.workflow-note i {
    color: var(--primary-color);
    font-size: 20px;
}

.workflow-note p {
    color: var(--text-secondary);
    margin: 0;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    color: var(--text-primary);
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Contact Methods */
.contact-methods {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.contact-method i {
    font-size: 24px;
    color: var(--primary-color);
}

.contact-method h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-method span {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Availability */
.availability {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--card-bg);
    border-radius: 25px;
    border: 1px solid var(--border-color);
    width: fit-content;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Contact Form - FIXED */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Fix for select dropdown */
.contact-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

/* Dropdown options styling */
.contact-form select option {
    background: var(--dark-lighter);
    color: var(--text-primary);
    padding: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

/* For browsers that support it */
.contact-form select option:hover,
.contact-form select option:focus,
.contact-form select option:checked {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(2, 132, 199, 0.2));
    color: var(--text-primary);
}

/* Placeholder/default option styling */
.contact-form select option[value=""] {
    color: var(--text-secondary);
}

/* Focus states */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: linear-gradient(135deg, 
        rgba(14, 165, 233, 0.03), 
        rgba(2, 132, 199, 0.03));
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

/* Textarea specific */
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Remove default select arrow in IE */
.contact-form select::-ms-expand {
    display: none;
}

/* Firefox specific fix */
@-moz-document url-prefix() {
    .contact-form select {
        text-indent: 0.01px;
        text-overflow: '';
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .contact-form select option {
        background: #1e293b;
        color: #e2e8f0;
    }
}
/* Footer */
.footer {
    background: var(--dark-lighter);
    padding: 50px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info h3 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.footer-info p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ===================================================
   GLOBAL ANIMATIONS
   =================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ripple Effect */
@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===================================================
   RESPONSIVE DESIGN - GENERAL
   =================================================== */

@media (max-width: 768px) {
    .floating-tech-icons {
        display: none;
    }
    
    .theme-switcher {
        bottom: 100px;
        right: 10px;
    }
    
    .approach-selector {
        bottom: 10px;
    }
    
    .approach-btn span {
        display: none !important;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .timeline-point .point-content {
        white-space: normal;
        width: 150px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .workflow-visual {
        flex-direction: column;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
    }
    
    .phil-benefits {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .tool-card {
        min-width: auto;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }
    
    .stat-item {
        flex: 1;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================================
   ACCESSIBILITY & PRINT STYLES
   =================================================== */

@media print {
    .loading-screen,
    .cursor-dot,
    .cursor-outline,
    .scroll-progress,
    .theme-switcher,
    .floating-tech-icons,
    .approach-selector,
    .hamburger,
    .project-overlay,
    .tech-badge,
    .ai-assisted-badge,
    .view-details {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .navbar {
        position: static;
        background: white;
        border-bottom: 1px solid #ccc;
    }
    
    .hero-background,
    .gradient-bg {
        display: none;
    }

    .project-card {
        page-break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
        background: white;
    }

    .project-content h3 {
        color: black;
        -webkit-text-fill-color: black;
    }

    .project-content p,
    .project-highlights li {
        color: #333;
    }
}

/* Accessibility improvements */
@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;
    }

    .project-card,
    .project-image img,
    .view-details,
    .impact-item,
    .tech-stack .tech {
        transition: none;
        animation: none;
    }

    .project-card:hover {
        transform: none;
    }

    .project-card:hover .project-image img {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0099ff;
        --secondary-color: #0077cc;
        --accent-color: #00ccff;
        --dark: #000000;
        --dark-lighter: #111111;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --border-color: #666666;
    }
    
    .btn-primary,
    .project-card {
        border: 2px solid white;
    }

    .project-content h3 {
        -webkit-text-fill-color: #fff;
    }

    .tech-badge,
    .ai-assisted-badge,
    .view-details {
        border: 1px solid #fff;
    }
}

/* Ensure all interactive elements have proper focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10001;
}

.skip-to-content:focus {
    top: 0;
}

/* Final touches for smooth experience */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Utility classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }








/* ===================================================
   ADVANCED FRAMER MOTION-STYLE ANIMATIONS
   =================================================== */

/* Smooth reveal animations */
.reveal-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-animation.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.stagger-container > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-container.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger-container.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-container.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-container.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-container.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-container.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-container.visible > *:nth-child(6) { transition-delay: 0.6s; }

/* Scale fade-in animation */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Slide from sides */
.slide-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Rotate in animation */
.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rotate-in.visible {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Advanced 3D flip animation */
.flip-card {
    perspective: 1000px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flip-card.flipped {
    transform: rotateY(180deg);
}

/* Morph background animation */
@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    50% {
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
    75% {
        border-radius: 70% 30% 50% 50% / 30% 70% 50% 50%;
    }
}

.morphing-blob {
    animation: morph 8s ease-in-out infinite;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Gradient text animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient-text {
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--accent-color),
        var(--secondary-color),
        var(--primary-color)
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

/* Shine effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::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.7s;
}

.shine-effect:hover::before {
    left: 100%;
}

/* Glow pulse animation */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(14, 165, 233, 0.6);
    }
}

.glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Text reveal letter by letter */
.text-reveal {
    display: inline-block;
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: letter-reveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes letter-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Elastic bounce */
@keyframes elastic-bounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    75% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.elastic-bounce {
    animation: elastic-bounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Page transition overlay */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-transition.active {
    transform: translateY(0);
}

/* Advanced card hover effects */
.advanced-card-hover {
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.advanced-card-hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(14, 165, 233, 0) 0%,
        rgba(14, 165, 233, 0.1) 50%,
        rgba(14, 165, 233, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
    z-index: -1;
}

.advanced-card-hover:hover::before {
    opacity: 1;
}

.advanced-card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(14, 165, 233, 0.3),
        0 0 100px rgba(14, 165, 233, 0.1);
}

/* Magnetic button effect */
.magnetic-button {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Text typing animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-color);
    }
}

.typing-text {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

/* Parallax layers */
.parallax-layer {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Blur reveal animation */
.blur-reveal {
    filter: blur(10px);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blur-reveal.visible {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
}

/* Counter animation */
@keyframes count-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-animate {
    animation: count-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Wave text effect */
.wave-text span {
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.wave-text span:nth-child(1) { animation-delay: 0s; }
.wave-text span:nth-child(2) { animation-delay: 0.1s; }
.wave-text span:nth-child(3) { animation-delay: 0.2s; }
.wave-text span:nth-child(4) { animation-delay: 0.3s; }
.wave-text span:nth-child(5) { animation-delay: 0.4s; }

/* Gradient border animation */
@keyframes gradient-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient-border {
    position: relative;
    background: var(--card-bg);
}

.animated-gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--accent-color),
        var(--secondary-color),
        var(--primary-color)
    );
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    animation: gradient-border 3s ease infinite;
}

/* Particle explosion effect */
@keyframes particle-explode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: particle-explode 1s ease-out forwards;
}

/* Image reveal with clip-path */
@keyframes image-reveal {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.image-reveal {
    animation: image-reveal 1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

/* Smooth section transitions */
section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced project card animations */
.project-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:nth-child(1) { transition-delay: 0.1s; }
.project-card:nth-child(2) { transition-delay: 0.2s; }
.project-card:nth-child(3) { transition-delay: 0.3s; }
.project-card:nth-child(4) { transition-delay: 0.4s; }
.project-card:nth-child(5) { transition-delay: 0.5s; }

/* Smooth hover scale with shadow */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px rgba(14, 165, 233, 0.25);
}

/* Text split and reveal */
.split-text {
    overflow: hidden;
}

.split-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-text.visible span {
    opacity: 1;
    transform: translateY(0);
}

/* Pulsing dot */
@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Scroll-triggered progress bar */
.scroll-progress-section {
    position: relative;
}

.scroll-progress-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0%;
    background: var(--gradient);
    transition: height 0.3s ease;
}

.scroll-progress-section.in-view::before {
    height: 100%;
}

/* Skeleton loading animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(30, 41, 59, 0.5) 25%,
        rgba(51, 65, 85, 0.5) 50%,
        rgba(30, 41, 59, 0.5) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Neon glow effect */
.neon-glow {
    text-shadow: 
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color),
        0 0 30px var(--primary-color),
        0 0 40px var(--accent-color);
    animation: neon-flicker 1.5s ease-in-out infinite alternate;
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 10px var(--primary-color),
            0 0 20px var(--primary-color),
            0 0 30px var(--primary-color),
            0 0 40px var(--accent-color);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* 3D card tilt effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(var(--rotateX, 0deg)) rotateY(var(--rotateY, 0deg));
}

/* Smooth section reveal from bottom */
@keyframes section-reveal {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-reveal {
    animation: section-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Typewriter cursor */
.typewriter-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Smooth color transition */
.color-morph {
    transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Expand from center animation */
@keyframes expand-center {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.expand-center {
    animation: expand-center 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Slide and fade combination */
.slide-fade {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-fade.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading spinner */
@keyframes spinner {
    to { transform: rotate(360deg); }
}

.spinner {
    border: 3px solid rgba(14, 165, 233, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spinner 0.8s linear infinite;
}

/* Ripple click effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

/* Mobile-friendly animations */
@media (max-width: 768px) {
    /* Reduce animation intensity on mobile */
    .reveal-animation,
    .scale-in,
    .slide-left,
    .slide-right,
    .rotate-in {
        transform: translateY(20px);
    }
    
    .reveal-animation.revealed,
    .scale-in.visible,
    .slide-left.visible,
    .slide-right.visible,
    .rotate-in.visible {
        transform: translateY(0);
    }
    
    .advanced-card-hover:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal-animation,
    .scale-in,
    .slide-left,
    .slide-right,
    .rotate-in,
    .blur-reveal {
        opacity: 1;
        transform: none;
    }
}



/* Disable custom cursor */
.cursor-dot,
.cursor-outline,
.cursor-follower {
    display: none !important;
}





/* ===================================================
   CONTINUOUS FLOATING TECH ICONS - NO CURSOR INTERACTION
   Smooth random movement, cursor passes through
   =================================================== */

.floating-tech-icons {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    pointer-events: none; /* Cursor passes through */
    z-index: 1;
    overflow: visible;
}

.tech-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    left: var(--x-start, 50%);
    top: var(--y-start, 50%);
    opacity: 0.12;
    pointer-events: none; /* No cursor interaction */
    cursor: default;
    filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.4));
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    transition: none; /* Smooth via JS animation */
}

.tech-icon img,
.tech-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Subtle pulse animation for depth */
@keyframes gentlePulse {
    0%, 100% {
        opacity: 0.12;
    }
    50% {
        opacity: 0.18;
    }
}

.tech-icon {
    animation: gentlePulse 8s ease-in-out infinite;
}

/* Stagger pulse for each icon */
.tech-icon:nth-child(1) { animation-delay: 0s; }
.tech-icon:nth-child(2) { animation-delay: 0.5s; }
.tech-icon:nth-child(3) { animation-delay: 1s; }
.tech-icon:nth-child(4) { animation-delay: 1.5s; }
.tech-icon:nth-child(5) { animation-delay: 2s; }
.tech-icon:nth-child(6) { animation-delay: 2.5s; }
.tech-icon:nth-child(7) { animation-delay: 3s; }
.tech-icon:nth-child(8) { animation-delay: 3.5s; }
.tech-icon:nth-child(9) { animation-delay: 4s; }
.tech-icon:nth-child(10) { animation-delay: 4.5s; }
.tech-icon:nth-child(11) { animation-delay: 5s; }
.tech-icon:nth-child(12) { animation-delay: 5.5s; }
.tech-icon:nth-child(13) { animation-delay: 6s; }
.tech-icon:nth-child(14) { animation-delay: 6.5s; }
.tech-icon:nth-child(15) { animation-delay: 7s; }
.tech-icon:nth-child(16) { animation-delay: 7.5s; }
.tech-icon:nth-child(17) { animation-delay: 8s; }
.tech-icon:nth-child(18) { animation-delay: 8.5s; }
.tech-icon:nth-child(19) { animation-delay: 9s; }
.tech-icon:nth-child(20) { animation-delay: 9.5s; }
.tech-icon:nth-child(21) { animation-delay: 10s; }
.tech-icon:nth-child(22) { animation-delay: 10.5s; }
.tech-icon:nth-child(23) { animation-delay: 11s; }
.tech-icon:nth-child(24) { animation-delay: 11.5s; }

/* CATEGORY COLORS */

/* Frontend - Blue Glow */
.tech-icon:nth-child(1),
.tech-icon:nth-child(2),
.tech-icon:nth-child(3),
.tech-icon:nth-child(4),
.tech-icon:nth-child(5),
.tech-icon:nth-child(6),
.tech-icon:nth-child(7) {
    filter: drop-shadow(0 4px 15px rgba(99, 102, 241, 0.5));
}

/* Backend - Green Glow */
.tech-icon:nth-child(8),
.tech-icon:nth-child(9),
.tech-icon:nth-child(10),
.tech-icon:nth-child(11),
.tech-icon:nth-child(12) {
    filter: drop-shadow(0 4px 15px rgba(16, 185, 129, 0.5));
}

/* Tools - Cyan Glow */
.tech-icon:nth-child(13),
.tech-icon:nth-child(14),
.tech-icon:nth-child(15),
.tech-icon:nth-child(16) {
    filter: drop-shadow(0 4px 15px rgba(6, 182, 212, 0.5));
}

/* Mobile - Purple Glow */
.tech-icon:nth-child(17),
.tech-icon:nth-child(18),
.tech-icon:nth-child(19) {
    filter: drop-shadow(0 4px 15px rgba(168, 85, 247, 0.5));
}

/* Cloud - Orange Glow */
.tech-icon:nth-child(20),
.tech-icon:nth-child(21),
.tech-icon:nth-child(22) {
    filter: drop-shadow(0 4px 15px rgba(245, 158, 11, 0.5));
}

/* AI - Pink Glow with Animated Border */
.tech-icon:nth-child(23),
.tech-icon:nth-child(24) {
    filter: drop-shadow(0 4px 20px rgba(236, 72, 153, 0.6));
}

/* AI Icons Special Animated Border */
.tech-icon-ai {
    position: relative;
}

.tech-icon-ai::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ec4899, #8b5cf6, #06b6d4, #10b981, #ec4899);
    background-size: 400% 400%;
    opacity: 0.6;
    z-index: -1;
    animation: gradientFlow 6s linear infinite;
    pointer-events: none;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* RESPONSIVE */
@media (max-width: 1440px) {
    .tech-icon {
        width: 48px;
        height: 48px;
        opacity: 0.11;
    }
}

@media (max-width: 1024px) {
    .tech-icon {
        width: 45px;
        height: 45px;
        opacity: 0.1;
    }
}

@media (max-width: 768px) {
    .tech-icon {
        width: 40px;
        height: 40px;
        opacity: 0.08;
    }
    
    /* Show only 12 icons on tablets */
    .tech-icon:nth-child(n+13) {
        display: none;
    }
}

@media (max-width: 480px) {
    .tech-icon {
        width: 35px;
        height: 35px;
        opacity: 0.06;
    }
    
    /* Show only 8 icons on mobile */
    .tech-icon:nth-child(n+9) {
        display: none;
    }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    .tech-icon {
        animation: gentlePulse 10s ease-in-out infinite !important;
    }
}

/* PERFORMANCE OPTIMIZATION */
.tech-icon {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Ensure cursor always passes through */
.floating-tech-icons,
.tech-icon,
.tech-icon *,
.tech-icon::before,
.tech-icon::after {
    pointer-events: none !important;
}

/* Remove any hover states */
.tech-icon:hover {
    /* No hover effects */
}

/* Hide custom cursor elements */
.cursor-dot,
.cursor-outline,
.cursor-follower {
    display: none !important;
}


/* ===================================================
   TECH LOGOS GRID SECTION
   =================================================== */

.tech-logos-section {
    margin-top: 80px;
    text-align: center;
}

.tech-logos-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.tech-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.tech-logo-item:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.2);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(6, 182, 212, 0.05));
}

.tech-logo-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tech-logo-item:hover img {
    transform: scale(1.15);
}

.tech-logo-item span {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.tech-logo-item:hover span {
    color: var(--primary-color);
}

/* Custom Icons for services without devicon */
.custom-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.tech-logo-item:hover .custom-icon {
    transform: scale(1.15);
}

.vercel-icon {
    background: linear-gradient(135deg, #000, #333);
    color: white;
    font-size: 28px;
}

.cloudflare-icon {
    background: linear-gradient(135deg, #f38020, #f9a825);
    color: white;
}

.supabase-icon {
    background: linear-gradient(135deg, #3ecf8e, #2bb573);
    color: white;
}

.expo-icon {
    background: linear-gradient(135deg, #000, #4630eb);
    color: white;
    font-family: 'Space Grotesk', monospace;
}

.n8n-icon {
    background: linear-gradient(135deg, #ea4b71, #ff6d5a);
    color: white;
    font-size: 14px;
    font-family: 'Space Grotesk', monospace;
}

.rag-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.api-icon {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
}

.cdn-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.cron-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tech-logos-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 15px;
    }
    
    .tech-logo-item {
        padding: 15px 10px;
    }
    
    .tech-logo-item img,
    .custom-icon {
        width: 35px;
        height: 35px;
    }
    
    .tech-logo-item span {
        font-size: 10px;
    }
    
    .tech-logos-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tech-logos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .tech-logo-item {
        padding: 12px 8px;
    }
    
    .tech-logo-item img,
    .custom-icon {
        width: 30px;
        height: 30px;
    }
    
    .tech-logo-item span {
        font-size: 9px;
    }
}

/* Animation for tech logos on scroll */
.tech-logo-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.tech-logo-item:nth-child(1) { animation-delay: 0.05s; }
.tech-logo-item:nth-child(2) { animation-delay: 0.1s; }
.tech-logo-item:nth-child(3) { animation-delay: 0.15s; }
.tech-logo-item:nth-child(4) { animation-delay: 0.2s; }
.tech-logo-item:nth-child(5) { animation-delay: 0.25s; }
.tech-logo-item:nth-child(6) { animation-delay: 0.3s; }
.tech-logo-item:nth-child(7) { animation-delay: 0.35s; }
.tech-logo-item:nth-child(8) { animation-delay: 0.4s; }
.tech-logo-item:nth-child(9) { animation-delay: 0.45s; }
.tech-logo-item:nth-child(10) { animation-delay: 0.5s; }
.tech-logo-item:nth-child(11) { animation-delay: 0.55s; }
.tech-logo-item:nth-child(12) { animation-delay: 0.6s; }
.tech-logo-item:nth-child(13) { animation-delay: 0.65s; }
.tech-logo-item:nth-child(14) { animation-delay: 0.7s; }
.tech-logo-item:nth-child(15) { animation-delay: 0.75s; }
.tech-logo-item:nth-child(16) { animation-delay: 0.8s; }
.tech-logo-item:nth-child(17) { animation-delay: 0.85s; }
.tech-logo-item:nth-child(18) { animation-delay: 0.9s; }
.tech-logo-item:nth-child(19) { animation-delay: 0.95s; }
.tech-logo-item:nth-child(20) { animation-delay: 1s; }
.tech-logo-item:nth-child(21) { animation-delay: 1.05s; }
.tech-logo-item:nth-child(22) { animation-delay: 1.1s; }
.tech-logo-item:nth-child(23) { animation-delay: 1.15s; }
.tech-logo-item:nth-child(24) { animation-delay: 1.2s; }
.tech-logo-item:nth-child(25) { animation-delay: 1.25s; }

/* Shine effect on hover */
.tech-logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
    border-radius: inherit;
}

.tech-logo-item:hover::before {
    left: 100%;
}

.tech-logo-item {
    position: relative;
    overflow: hidden;
}

/* ===================================================
   THREE.JS 3D EXPERIENCE STYLES
   Professional Developer Portfolio - Optimized & Responsive
   =================================================== */

/* Floating 3D Shapes Background */
.floating-shapes-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.floating-shapes-bg canvas {
    display: block;
}

/* Hero 3D Scene */
.hero-3d-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.hero-3d-scene canvas {
    display: block;
}

/* Ensure hero content is above 3D scene */
.hero-content {
    position: relative;
    z-index: 10;
}

/* Skills 3D Visualization */
.skills-3d-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
    margin-bottom: 50px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.03) 0%, rgba(13, 148, 136, 0.03) 100%);
    border: 1px solid rgba(0, 180, 216, 0.15);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 1px rgba(0, 180, 216, 0.2);
}

.skills-3d-scene {
    width: 100%;
    height: 100%;
}

.skills-3d-scene canvas {
    display: block;
    touch-action: pan-y;
}

/* 3D Scene Glow Effects */
.skills-3d-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 180, 216, 0.06) 0%, transparent 50%);
    animation: pulse3d 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pulse3d {
    0%, 100% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

/* Interactive 3D Logo */
#logo-3d-container {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    vertical-align: middle;
}

#logo-3d-container canvas {
    display: block;
}

/* 3D Text Labels */
.skills-3d-wrapper .skill-label {
    position: absolute;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 6px;
    border: 1px solid rgba(0, 180, 216, 0.25);
    pointer-events: none;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

/* Responsive 3D Styles - Tablet */
@media (max-width: 1024px) {
    .skills-3d-wrapper {
        height: 380px;
    }
}

/* Responsive 3D Styles - Mobile */
@media (max-width: 768px) {
    .skills-3d-wrapper {
        height: 320px;
        margin-bottom: 35px;
        border-radius: 16px;
    }
    
    .floating-shapes-bg {
        display: none;
    }
    
    .hero-3d-scene {
        opacity: 0.8;
    }
}

@media (max-width: 480px) {
    .skills-3d-wrapper {
        height: 280px;
        margin-bottom: 30px;
        border-radius: 12px;
    }
    
    .hero-3d-scene {
        opacity: 0.7;
    }
}

/* 3D Hover Enhancement for Cards */
.project-card,
.skill-category,
.benefit-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 20px rgba(0, 180, 216, 0.08);
}

/* Touch-friendly styles */
@media (hover: none) {
    .project-card:active {
        transform: scale(0.98);
    }
    
    .skills-3d-wrapper::after {
        content: 'Touch to interact';
    }
}

/* Floating Animation for 3D Elements */
@keyframes float3d {
    0%, 100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }
    25% {
        transform: translateY(-8px) rotateX(1deg) rotateY(1deg);
    }
    50% {
        transform: translateY(-15px) rotateX(0) rotateY(-1deg);
    }
    75% {
        transform: translateY(-8px) rotateX(-1deg) rotateY(0);
    }
}

/* Glow Effect for 3D Scenes */
.hero-3d-scene::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: glow3d 5s ease-in-out infinite;
}

.skills-3d-scene::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@keyframes glow3d {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.15); }
}

/* Premium Glass Effect for 3D Containers */
.skills-3d-wrapper {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* 3D Interactive Hint */
.skills-3d-wrapper::after {
    content: 'Move mouse to interact';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--primary-color);
    opacity: 0.5;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    animation: fadeInOut 3s ease-in-out infinite;
    z-index: 10;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Enhance particle canvas layering */
#particle-canvas {
    z-index: 0;
}

/* Hero section specific fixes for 3D */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Cyber Grid Lines Effect */
.cyber-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 180, 216, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 216, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Glow accent borders */
.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-border:hover::before {
    opacity: 0.4;
    filter: blur(8px);
}

/* Professional accent line */
.accent-line {
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
    box-shadow: 0 0 15px var(--glow-color);
}

/* Code-style highlight */
.code-highlight {
    color: var(--primary-color);
    font-family: var(--font-mono);
    background: rgba(0, 180, 216, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 180, 216, 0.15);
}

/* Terminal-style cursor blink */
.cursor-blink::after {
    content: '|';
    color: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ===================================================
   TEXT VISIBILITY IMPROVEMENTS
   =================================================== */

/* Ensure text is always readable */
.hero-name,
.section-title,
.hero-description,
h1, h2, h3, h4, h5, h6 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Better contrast for descriptions */
.hero-description,
.section-subtitle,
p {
    color: var(--text-primary);
    line-height: 1.7;
}

/* Improve card text visibility */
.project-card,
.skill-category,
.benefit-card {
    background: var(--card-bg);
}

.project-card h3,
.skill-category h3,
.benefit-card h3 {
    color: var(--text-primary);
    font-weight: 600;
}

.project-card p,
.benefit-card p {
    color: var(--text-secondary);
}

/* Mobile text improvements */
@media (max-width: 768px) {
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* ===================================================
   INTERACTIVE 3D SHOWCASES SECTION
   =================================================== */

.interactive-showcases {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-lighter) 50%, var(--dark) 100%);
}

.interactive-showcases .section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.showcases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.showcase-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.showcase-card:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 180, 216, 0.1);
}

.showcase-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(0, 180, 216, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.showcase-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.showcase-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
}

.showcase-canvas {
    width: 100%;
    height: 300px;
    position: relative;
    background: rgba(15, 23, 42, 0.5);
    cursor: pointer;
}

.showcase-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.showcase-hint {
    padding: 15px 20px;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 180, 216, 0.02);
}

/* Game UI elements */
.game-score {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-primary);
    z-index: 10;
}

.game-score strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.game-instructions {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
    z-index: 10;
    white-space: nowrap;
}

/* Responsive showcases */
@media (max-width: 1024px) {
    .showcases-grid {
        gap: 25px;
    }
    
    .showcase-canvas {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .showcases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .showcase-canvas {
        height: 260px;
    }
    
    .interactive-showcases {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .showcase-canvas {
        height: 220px;
    }
    
    .showcase-header {
        padding: 15px;
    }
    
    .showcase-header h3 {
        font-size: 1rem;
    }
    
    .showcase-hint {
        font-size: 0.75rem;
        padding: 12px 15px;
    }
}

/* ===================================================
   PROFESSIONAL POLISH & MICRO-INTERACTIONS
   =================================================== */

/* Page Load Animation */
.page-loaded {
    opacity: 1;
}

/* Reveal Animations */
.reveal-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Section Animations */
.section-animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-animate.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button Ripple Effect */
.btn, .magnetic-button {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Active Nav Link */
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

.nav-link {
    transition: transform 0.2s ease, color 0.3s ease;
}

/* Card Glow Effect */
.card-glow {
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 180, 216, 0.15),
        inset 0 0 20px rgba(0, 180, 216, 0.02);
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 20;
    transition: opacity 0.3s ease;
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
    font-weight: 500;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* Custom Cursor - Disabled for stability */
.custom-cursor,
.cursor-dot {
    display: none;
}

/* Showcase Loader */
.showcase-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 180, 216, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Card Transitions */
.project-card {
    transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99), 
                box-shadow 0.4s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Showcase Header Transition */
.showcase-header {
    transition: background 0.3s ease;
}

/* Professional Gradient Backgrounds */
.hero {
    background: radial-gradient(ellipse at top, var(--dark-lighter) 0%, var(--dark) 70%);
}

.interactive-showcases {
    background: radial-gradient(ellipse at bottom, var(--dark-lighter) 0%, var(--dark) 70%);
}

/* Subtle Noise Texture */
.hero::before,
.interactive-showcases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Improved Section Titles */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Stats Counter Animation */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Floating Animation Enhancement */
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-item:hover {
    animation: gentleFloat 2s ease-in-out infinite;
}

/* Smooth Focus States */
.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Better Link Underlines */
a:not(.btn):not(.nav-link) {
    text-decoration: none;
    background-image: linear-gradient(var(--primary-color), var(--primary-color));
    background-size: 0% 1px;
    background-position: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
}

a:not(.btn):not(.nav-link):hover {
    background-size: 100% 1px;
}

/* Professional Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-lighter);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection Color */
::selection {
    background: rgba(0, 180, 216, 0.3);
    color: var(--text-primary);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .scroll-down-indicator {
        bottom: 20px;
    }
    
    .scroll-line {
        height: 30px;
    }
    
    .reveal-item {
        transform: translateY(20px);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .custom-cursor,
    .cursor-dot {
        display: none;
    }
}

/* ===================================================
   INSIGHTS PAGE STYLES
   =================================================== */

/* Insights page sections - override the default section opacity:0 */
.insights-hero,
.insights-content,
.insights-footer {
    opacity: 1 !important;
    transform: none !important;
}

/* Insights Navigation */
.insights-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Insights Hero */
.insights-hero {
    padding: 120px 0 80px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
    text-align: center;
}

.insights-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.insights-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Insights Content */
.insights-content {
    padding: 80px 0;
    background: var(--dark);
}

.articles-grid {
    display: grid;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

/* Insight Article */
.insight-article {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.article-header {
    padding: 40px 40px 20px 40px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-category {
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 30px 0;
    line-height: 1.3;
}

.article-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insight-article:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 40px;
    color: var(--text-primary);
    line-height: 1.8;
}

.article-content h3 {
    font-size: 1.8rem;
    margin: 40px 0 20px 0;
    color: var(--primary-color);
}

.article-content h4 {
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
    color: var(--accent-color);
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.article-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.benefit-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(245, 158, 11, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.benefit-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 24px;
}

.benefit-item h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.benefit-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.architecture-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.option-card {
    padding: 25px;
    background: var(--dark-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.option-card h5 {
    color: var(--primary-color);
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}

.option-card p {
    margin: 10px 0;
    font-size: 0.95rem;
}

.pros {
    color: #10b981;
    font-weight: 500;
}

.cons {
    color: #ef4444;
    font-weight: 500;
}

.tools-list, .monitoring-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tool-item, .stack-item {
    padding: 20px;
    background: rgba(245, 158, 11, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.tool-item h4, .stack-item h4 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.tool-item p, .stack-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    text-align: center;
    padding: 25px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    border: 1px solid var(--primary-color);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.stat-card p {
    margin: 0;
    color: var(--text-secondary);
}

.article-conclusion {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
}

.article-conclusion p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Article Footer */
.article-footer {
    padding: 30px 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-card);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Insights Footer */
.insights-footer {
    background: var(--dark-lighter);
    padding: 60px 0 30px 0;
    border-top: 1px solid var(--border-color);
}

.insights-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.insights-footer .footer-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.insights-footer .footer-info p {
    margin: 0;
    color: var(--text-secondary);
}

.insights-footer .footer-links {
    display: flex;
    gap: 25px;
}

.insights-footer .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.insights-footer .footer-links a:hover {
    color: var(--primary-color);
}

/* ===================================================
   ENHANCED HERO READABILITY
   Semi-transparent backdrop for text over 3D background
   =================================================== */

.hero-visual {
    position: relative;
    z-index: 10;
}

/* Ensure 3D container stays in background */
.hero-3d-scene,
#hero-3d-container {
    z-index: 1;
}

/* ===================================================
   COMPREHENSIVE RESPONSIVE DESIGN
   =================================================== */

/* Large Desktop (≤1400px) */
@media (max-width: 1400px) {
    .container {
        max-width: 1100px;
        padding: 0 30px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (≤1200px) */
@media (max-width: 1200px) {
    .hero-content {
        gap: 30px;
    }
    
    .hero-name {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .showcases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (≤1024px) */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        padding: 30px;
    }
    
    .hero-roles {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .code-window {
        font-size: 13px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.3s ease;
        gap: 30px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-methods {
        justify-content: center;
    }
    
    .availability {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Tablets Portrait & Large Phones (≤768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    .hero-text {
        padding: 25px;
        margin: 0 10px;
    }
    
    .hero-name {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .hero-roles {
        flex-direction: column;
        gap: 8px;
    }
    
    .role-separator {
        display: none;
    }
    
    .role-item {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .hero-description {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-category {
        padding: 25px;
    }
    
    .showcases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .showcase-card {
        min-height: 300px;
    }
    
    .showcase-canvas {
        height: 250px;
    }
    
    .tech-logos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .tech-logo-item {
        padding: 15px 10px;
    }
    
    .tech-logo-item img,
    .custom-icon {
        width: 35px;
        height: 35px;
    }
    
    .tech-logo-item span {
        font-size: 10px;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-method {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Hide floating tech icons on mobile */
    .floating-tech-icons {
        display: none;
    }
    
    /* Hide 3D floating shapes on mobile */
    #floating-shapes-container {
        display: none;
    }
    
    .theme-switcher {
        right: 10px;
        top: 80px;
        flex-direction: column;
        gap: 8px;
    }
    
    .theme-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Small Phones (≤480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 70px 0 30px;
    }
    
    .hero-text {
        padding: 20px;
        margin: 0 5px;
        border-radius: 15px;
    }
    
    .hero-name {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .greeting {
        font-size: 14px;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .skill-category {
        padding: 20px;
    }
    
    .category-header h3 {
        font-size: 1rem;
    }
    
    .skill-info span:first-child {
        font-size: 13px;
    }
    
    .tech-logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .tech-logo-item {
        padding: 12px 8px;
    }
    
    .tech-logo-item img,
    .custom-icon {
        width: 30px;
        height: 30px;
    }
    
    .tech-logo-item span {
        font-size: 9px;
    }
    
    .showcase-canvas {
        height: 200px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 12px;
        font-size: 14px;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Extra Small Phones (≤360px) */
@media (max-width: 360px) {
    .hero-text {
        padding: 15px;
    }
    
    .hero-name {
        font-size: 1.4rem;
    }
    
    .role-item {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .hero-description {
        font-size: 13px;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .tech-logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}

/* Landscape Mode on Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 60px 0 30px;
    }
    
    .hero-text {
        padding: 20px;
    }
    
    .hero-stats {
        margin-bottom: 20px;
    }
    
    .hero-content {
        gap: 20px;
    }
}

/* ===================================================
   INTERACTIVE ELEMENTS & EFFECTS
   =================================================== */

/* Theme switching animation */
.theme-switching * {
    transition: all 1s ease !important;
}

/* Click ripple effect */
.click-ripple {
    position: fixed;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    animation: ripple-effect 0.6s ease-out;
}

@keyframes ripple-effect {
    0% {
        transform: scale(0);
        opacity: 0.7;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Navigation click ripple */
.nav-click-ripple {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    animation: nav-ripple 0.5s ease-out;
}

@keyframes nav-ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Skill burst effect */
.skill-burst {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.6) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    animation: burst-effect 0.8s ease-out;
}

@keyframes burst-effect {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Enhanced card interactions */
.project-card,
.skill-item,
.contact-method {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover,
.skill-item:hover,
.contact-method:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hero section interactive */
.hero-text {
    position: relative;
    z-index: 10;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(245, 158, 11, 0.1),
        inset 0 0 20px rgba(245, 158, 11, 0.05);
    cursor: pointer;
    transition: all 0.4s ease;
}

.hero-text:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(245, 158, 11, 0.2),
        inset 0 0 25px rgba(245, 158, 11, 0.08);
}

/* Navigation links interactive */
.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Skill items interactive */
.skill-item {
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

/* Project cards enhanced hover */
.project-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.keyboard-shortcuts {
    margin-top: 10px;
    opacity: 0.7;
    font-size: 12px;
    transition: opacity 0.3s ease;
}

.keyboard-shortcuts:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .insights-title {
        font-size: 2.2rem;
    }
    
    .insights-subtitle {
        font-size: 1rem;
    }
    
    .article-header {
        padding: 30px 20px 15px 20px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-image {
        height: 250px;
    }
    
    .article-content {
        padding: 30px 20px;
    }
    
    .article-content h3 {
        font-size: 1.5rem;
    }
    
    .article-content h4 {
        font-size: 1.2rem;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .article-footer {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .benefits-list, .architecture-options, .tools-list, .monitoring-stack {
        grid-template-columns: 1fr;
    }
    
    .insights-footer .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Simple Insights Page Styles */
.insights-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.insights-hero {
    padding: 120px 0 80px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
    text-align: center;
}

.insights-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.insights-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.insights-content {
    padding: 80px 0;
    background: var(--dark);
}

.articles-grid {
    display: grid;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.insight-article {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.article-header {
    padding: 40px 40px 20px 40px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-category {
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 30px 0;
    line-height: 1.3;
}

.article-content {
    padding: 40px;
    color: var(--text-primary);
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
}

.insights-footer {
    background: var(--dark-lighter);
    padding: 60px 0 30px 0;
    border-top: 1px solid var(--border-color);
}

.insights-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.insights-footer .footer-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.insights-footer .footer-info p {
    margin: 0;
    color: var(--text-secondary);
}

.insights-footer .footer-links {
    display: flex;
    gap: 25px;
}

.insights-footer .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.insights-footer .footer-links a:hover {
    color: var(--primary-color);
}