/* X4Free Developer - Main Styles */

/* Custom Properties */
:root {
    /* Colors - Black theme with brighter, more visible accents */
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --dark-black:#090909;
    --tertiary-black: #2a2a2a;
    --accent-gold: #ffd700;
    --accent-blue: #00bfff;
    --accent-purple: #da70d6;
    --text-white: #ffffff;
    --text-gray: #e0e0e0;
    --text-light-gray: #f5f5f5;

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --accent-gradient: linear-gradient(135deg, #ffd700 0%, #00bfff 100%);
    --purple-gradient: linear-gradient(135deg, #da70d6 0%, #ff69b4 100%);

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --smooth-transition: 0.4s ease-in-out;

    /* Shadows */
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.5);
    --glow-accent: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Fixed gradient overlay - enhanced to avoid containing block issues */
.gradient-overlay {
    position: fixed !important;
    top: 0 ;
    left: 0 !important;
    right: 0 !important;
    bottom: 90 !important;
    width: 100vw !important;
    height: 100vh !important;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 191, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(218, 112, 214, 0.06) 0%, transparent 50%);
    z-index: 3 !important;
    pointer-events: none !important;
    /* Allow transform for parallax effect */
    will-change: transform;
    filter: none !important;
    backdrop-filter: none !important;
    /* Ensure it's always at the root stacking context */
    contain: layout style paint !important;
    /* Additional properties to force proper fixed positioning */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

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

html {
    scroll-behavior: smooth;
    overflow-y: auto;
    padding:0;
    margin:0;
    cursor: none;
    /* Remove position: relative to avoid creating containing block */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    background-attachment: fixed;
    color: var(--text-white);
    line-height: 1.6;
    height: fit-content;
    overflow: hidden;
    overflow-x: hidden;
    position: relative;
    /* Remove position: relative to avoid creating containing block */
}

/* Global background elements */



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Loading Screen */
.loader-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: var(--primary-black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: auto;
    /* Remove transform to avoid creating containing block */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Ensure loader stays fixed even with different scroll contexts */
html.loading .loader-wrapper,
body.loading .loader-wrapper {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.loader-line-wrap {
    animation: spin 2s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
}

.loader-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 2px;
    margin: -1px 0 0 -25px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transform-origin: 50% 50%;
}

.loader-line-wrap:nth-child(1) {
    animation-delay: -50ms;
}

.loader-line-wrap:nth-child(2) {
    animation-delay: -100ms;
}

.loader-line-wrap:nth-child(3) {
    animation-delay: -150ms;
}

.loader-line-wrap:nth-child(4) {
    animation-delay: -200ms;
}

.loader-line-wrap:nth-child(5) {
    animation-delay: -250ms;
}

.loader-text {
    margin-top: 30px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--text-gray);
    letter-spacing: 2px;
}

.loader-progress {
    margin-top: 20px;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.progress-bar-container {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-percentage {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 15px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    z-index: 1000;
    transition: var(--smooth-transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand .brand-link {
    text-decoration: none;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 400;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--smooth-transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--smooth-transition);
}

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

.nav-link:hover {
    color: var(--accent-gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.hamburger:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.08);
}

.hamburger:hover::before {
    opacity: 1;
}

.hamburger:active {
    transform: scale(0.98);
}

.bar {
    width: 20px;
    height: 1px;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform-origin: center;
}

.hamburger .bar:nth-child(1) {
    background: #ffd700; /* Gold - first color */
}

.hamburger .bar:nth-child(2) {
    background: linear-gradient(90deg, #ffd700, #00bfff); /* Gradient transition */
}

.hamburger .bar:nth-child(3) {
    background: #00bfff; /* Blue - last color */
}

/* Hero Section - Stunning Modern Design */
.hero {
    min-height: 85vh;
    /* Reduced from 100vh */
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.geometric-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 191, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(218, 112, 214, 0.06) 0%, transparent 50%);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    /* Reduced from 80px */
    align-items: start;
    /* Changed from center to start */
    min-height: 70vh;
    /* Ensure it fits well on smaller screens */
    position: relative;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* Reduced from 30px */
}

.hero-badge {
    position: relative;
    top: 25px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    width: fit-content;
    backdrop-filter: blur(10px);
    animation: badgePulse 3s ease-in-out infinite;
}

/* Badge always keeps its beaming animation */
.hero-badge.animate__animated {
    animation: badgePulse 3s ease-in-out infinite !important;
}

.badge-icon {
    font-size: 14px;
    animation: iconSpin 2s linear infinite;
}

.badge-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(1.1rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    opacity: 1;
    visibility: visible;
    margin-top: 50px;
    margin-bottom: 50px;
}

.title-name {
    font-size: 3em;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 0.95;
    margin-bottom: 8px;
}

.title-slogan {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-gray);
    letter-spacing: 0.3px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.highlight-word {
    font-size: 1.15em;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-block;
    position: relative;
}

.highlight-word.code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-weight: 900;
    background: linear-gradient(135deg, #87ceeb 0%, #add8e6 50%, #b0e0e6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    letter-spacing: 0.1em;
}

.highlight-word.design {
    font-family: 'Dancing Script', 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-weight: 700;
    font-style: normal;
    background: linear-gradient(135deg, #fff59d 0%, #ffecb3 50%, #ffe082 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    letter-spacing: 0.02em;
    transform: rotate(-2deg);
}

.title-subtitle {
    font-size: 0.65em;
    font-weight: 400;
    color: var(--text-gray);
    opacity: 0.8;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Hero Description and other elements */

.hero-description {
    font-size: 16px;
    /* Reduced from 18px */
    line-height: 1.7;
    color: var(--text-gray);
    max-width: 480px;
    /* Slightly reduced */
    font-weight: 400;
}

.animated-text {
    opacity: 0;
    animation: textReveal 1.5s ease-out 0.8s forwards;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: countUp 2s ease-out 1.5s forwards;
}

@keyframes countUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--smooth-transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-blue));
    color: var(--primary-black);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

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

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

.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4) !important;
    animation: none !important; /* Override any WOW animations on hover */
}

/* Ensure hover effects work even with WOW animations */
.btn-primary.wow:hover {
    transform: translateY(-3px) !important;
    animation: none !important;
}

/* Ensure the shimmer effect works regardless of other animations */
.btn-primary:hover::before {
    left: 100% !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.1);
}

.btn-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(5px) !important;
}

/* Ensure icon animation works with WOW elements */
.btn.wow:hover .btn-icon,
.btn.wow:hover i {
    transform: translateX(5px) !important;
}

/* Hero Visual - Modern Code Display */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: sticky;
    top: 50px;
    /* Stick to very top of parent container */
    height: fit-content;
    transition: var(--smooth-transition);
    z-index: 10;
    /* Ensure it stays on top when sticky */
}

.hero-visual:hover {
    transform: translateY(-5px);
}

/* Hero Animation System */
.hero-animate {
    opacity: 0;
    transform: translateY(30px) perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-animate.animate-in {
    opacity: 1;
    transform: translateY(0) perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

.main-card {
    width: min(400px, 90vw);
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

/* Smooth transition when floating animation starts */
.main-card.floating-active {
    animation: cardFloat 6s ease-in-out infinite;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-card:hover {
    /* Don't override the animation on hover, just enhance the shadow */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.visual-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(16, 16, 16, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #28ca42;
}

.header-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.header-actions {
    color: var(--accent-gold);
    font-size: 16px;
}

.card-content {
    padding: 24px;
    position: relative;
}

.code-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.line {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
    position: relative;
}

.line-num {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    min-width: 20px;
    text-align: right;
}

.code {
    flex: 1;
}

.keyword {
    color: #ff79c6;
}

.variable {
    color: #50fa7b;
}

.property {
    color: #8be9fd;
}

.string {
    color: #f1fa8c;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.icon-item {
    position: absolute;
    font-size: 20px;
    opacity: 0.6;
    animation: iconFloat 4s ease-in-out infinite;
    animation-delay: var(--delay);
}

.icon-item:nth-child(1) {
    top: 20%;
    right: 10%;
}

.icon-item:nth-child(2) {
    top: 60%;
    left: 15%;
}

.icon-item:nth-child(3) {
    bottom: 30%;
    right: 20%;
}

.icon-item:nth-child(4) {
    bottom: 15%;
    left: 25%;
}

.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mini-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(10px);
    min-width: 140px;
}

/* Only apply floating animation when floating-active class is added */
.mini-card.floating-active {
    animation: miniCardFloat 5s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    left: -25%;
}

.card-1.floating-active {
    animation-delay: 0s;
}

.card-2 {
    top: 60%;
    right: -10%;
}

.card-2.floating-active {
    animation-delay: 1s;
}

.card-3 {
    bottom: -25%;
    left: 10%;
}

.card-3.floating-active {
    animation-delay: 2s;
}

.mini-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 10px;
}

.mini-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: progressFill 2s ease-out;
}

/* Scroll Indicator - Modern Design */
.scroll-indicator {
    position: relative;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.7;
}

.scroll-text {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
    letter-spacing: 1px;
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: scrollDot 2s ease-in-out infinite;
}

/* Section Styles */
section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    background: linear-gradient(135deg, #0a0a0a9a 0%, #2a2a2a22 50%, #0f0f0f00 100%);
    z-index: 2; /* Ensure sections appear above gradient overlay */
}

/* Reverse gradient for specific odd sections (about, projects) */
section.about,
section.projects {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0a0a0a 100%);
    background: linear-gradient(to top, #0f0f0fcb 0%, #1a1a1ad2 50%, #0a0a0ace 100%);
}
section.contact {
    background: linear-gradient(to bottom, #0c0c0c 0%, #0c0c0c 50%, #000000 100%);
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}

/* Remove alternating section gradients - keep only grid */
section.about::after,
section.projects::after {
    background-image:
        linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

section .container {
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    width: 100px;
    height: 3px;
    background: var(--accent-gradient);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section - New Artistic Vertical Design */
.about {
    position: relative;
    overflow: hidden;
}

/* SVG Lightning Circuit Lines */
.tech-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.8;
}

.lightning-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: lightningBeam 6s ease-out infinite;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Sequential timing - faster with next starting as current is ending */
.lightning-path-1 { animation-delay: 0s; }
.lightning-path-2 { animation-delay: 1.1s; }
.lightning-path-3 { animation-delay: 2.2s; }
.lightning-path-4 { animation-delay: 3.3s; }
.lightning-path-5 { animation-delay: 4.4s; }

.about-intro {
    font-size: 22px;
    color: var(--text-white);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    line-height: 1.8;
    opacity: 0.9;
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Stage Layout */
.about-stage {
    margin-bottom: 120px;
    position: relative;
}

.stage-content {
    display: flex;
    align-items: center;
    gap: 80px;
    min-height: 500px;
}

/* Remove row-reverse since HTML structure is now properly ordered */

.stage-text,
.stage-symbol {
    flex: 1;
}

/* Stage Text Styling */
.stage-text {
    padding: 40px;
}

.stage-number {
    font-size: 72px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0.3;
}

.stage-title {
    font-size: 42px;
    color: var(--text-white);
    margin-bottom: 30px;
    font-weight: 700;
}

.stage-description {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.stage-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-gold);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* 3D Symbol Containers */
.symbol-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    position: relative;
}

.symbol-3d {
    position: relative;
    transform-style: preserve-3d;
}

/* Code Symbol (Stage 1) */
.symbol-code .code-brackets {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 150px;
}

.bracket {
    font-size: 120px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: codeFloat 3s ease-in-out infinite alternate;
}

.code-elements {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.code-line {
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin-bottom: 12px;
    animation: codeTyping 2s ease-in-out infinite;
}

.code-line.line-1 { width: 80px; animation-delay: 0s; }
.code-line.line-2 { width: 120px; animation-delay: 0.3s; }
.code-line.line-3 { width: 60px; animation-delay: 0.6s; }

/* Mobile Symbol (Stage 2) */
.symbol-mobile .mobile-frame {
    width: 200px;
    height: 300px;
    background: var(--secondary-black);
    border-radius: 35px;
    border: 4px solid var(--accent-gold);
    position: relative;
    animation: mobileFloat 4s ease-in-out infinite;
}

.mobile-screen {
    width: 165px;
    height: 240px;
    background: var(--primary-black);
    border-radius: 20px;
    margin: 18px auto;
    position: relative;
    overflow: hidden;
}

.screen-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.app-icon {
    width: 35px;
    height: 35px;
    background: var(--accent-gradient);
    border-radius: 8px;
    animation: appPulse 2s ease-in-out infinite;
}

.app-icon:nth-child(2) { animation-delay: 0.3s; }
.app-icon:nth-child(3) { animation-delay: 0.6s; }

.app-waves {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    height: 40px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    border-radius: 20px;
    animation: waveMove 3s ease-in-out infinite;
}

.mobile-button {
    width: 30px;
    height: 30px;
    background: var(--accent-gold);
    border-radius: 50%;
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
}

/* 3D Cube Symbol (Stage 3) */
.symbol-3d .cube-container {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: cubeRotate 8s linear infinite alternate;
}

.cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
}

.face.front  { transform: rotateY(0deg) translateZ(100px); }
.face.back   { transform: rotateY(180deg) translateZ(100px); }
.face.right  { transform: rotateY(90deg) translateZ(100px); }
.face.left   { transform: rotateY(-90deg) translateZ(100px); }
.face.top    { transform: rotateX(90deg) translateZ(100px); }
.face.bottom { transform: rotateX(-90deg) translateZ(100px); }

.wireframe {
    position: absolute;
    width: 100%;
    height: 100%;
}

.wire-line {
    position: absolute;
    background: var(--accent-blue);
    opacity: 0.6;
}

.wire-1 { width: 2px; height: 200px; left: 50px; top: 0; animation: wireGlow 3s ease-in-out infinite; }
.wire-2 { width: 200px; height: 2px; left: 0; top: 50px; animation: wireGlow 3s ease-in-out infinite 0.5s; }
.wire-3 { width: 2px; height: 200px; right: 50px; top: 0; animation: wireGlow 3s ease-in-out infinite 1s; }
.wire-4 { width: 200px; height: 2px; left: 0; bottom: 50px; animation: wireGlow 3s ease-in-out infinite 1.5s; }

/* Symbol Glow Effects */
.symbol-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
}

/* Animations */
@keyframes codeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes codeTyping {
    0%, 50% { opacity: 1; transform: scaleX(1); }
    75% { opacity: 0.5; transform: scaleX(0.8); }
    100% { opacity: 1; transform: scaleX(1); }
}

@keyframes mobileFloat {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    33% { transform: translateY(-15px) rotateY(5deg); }
    66% { transform: translateY(-10px) rotateY(-5deg); }
}

@keyframes appPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

@keyframes waveMove {
    0%, 100% { transform: translateX(-20px); opacity: 0.5; }
    50% { transform: translateX(20px); opacity: 1; }
}

@keyframes cubeRotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    25% { transform: rotateX(45deg) rotateY(90deg); }
    50% { transform: rotateX(90deg) rotateY(180deg); }
    75% { transform: rotateX(135deg) rotateY(270deg); }
    100% { transform: rotateX(180deg) rotateY(360deg); }
}

@keyframes wireGlow {
    0%, 100% { opacity: 0.3; box-shadow: 0 0 5px var(--accent-blue); }
    50% { opacity: 1; box-shadow: 0 0 20px var(--accent-blue); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* Skills Section - New Artistic Design */
.skills {
    position: relative;
    overflow: hidden;
    background: transparent !important;
}

/* Particle Network Canvas */
.particle-network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Behind all content */
    opacity: 0.7;
}

.skills-intro {
    font-size: 22px;
    color: var(--text-white);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    line-height: 1.8;
    opacity: 0.9;
}

.skills-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 12;
}

/* Skill Stage Layout */
.skill-stage {
    margin-bottom: 120px;
    position: relative;
}

.skill-stage .stage-content {
    display: flex;
    align-items: center;
    gap: 80px;
    min-height: 500px;
}

/* Stage 2 reverses the order */
.skill-stage.stage-2 .stage-content {
    flex-direction: row-reverse;
}

.skill-text,
.skill-visual {
    flex: 1;
}

/* Skill Text Styling */
.skill-text {
    padding: 40px;
}

.skill-category-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.category-number {
    font-size: 72px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    opacity: 0.3;
}

.skill-category-title h3 {
    font-size: 36px;
    color: var(--text-white);
    font-weight: 700;
}

.skill-item {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--smooth-transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateX(10px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.1);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name {
    color: var(--text-white);
    font-weight: 500;
    font-size: 16px;
}

.skill-level {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 16px;
}

.skill-bar {
    height: 8px;
    background: var(--tertiary-black);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    width: 0;
    transition: width 2s ease-in-out;
    position: relative;
}

/* Only animate when skill-animate class is added */
.skill-progress.skill-animate {
    transition: width 2s ease-in-out;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    animation: skillShine 2s ease-in-out infinite;
}

/* Visual Containers */
.visual-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    position: relative;
}

/* Web Technologies Visual */
.visual-web .symbol-orbit {
    position: relative;
    width: 300px;
    height: 300px;
}

.center-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    animation: centerSpin 8s linear infinite;
}

.orbit-item {
    position: absolute;
    width: 60px;
    height: 60px;
}

.orbit-item.item-1 {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: orbitRotate 8s linear infinite;
}

.orbit-item.item-2 {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    animation: orbitRotate 8s linear infinite 2s;
}

.orbit-item.item-3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: orbitRotate 8s linear infinite 4s;
}

.orbit-item.item-4 {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    animation: orbitRotate 8s linear infinite 6s;
}

.tech-symbol {
    width: 100%;
    height: 100%;
    background: var(--secondary-black);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--accent-gold);
    font-size: 12px;
}

/* Mobile Development Visual */
.visual-mobile .device-stack {
    position: relative;
    transform-style: preserve-3d;
}

.device {
    width: 100px;
    height: 180px;
    background: var(--secondary-black);
    border-radius: 20px;
    border: 2px solid var(--accent-gold);
    position: absolute;
    animation: deviceFloat 4s ease-in-out infinite;
}

.ios-device {
    transform: rotateY(-15deg) translateX(-30px);
    z-index: 2;
}

.android-device {
    transform: rotateY(15deg) translateX(30px);
    animation-delay: 1s;
    z-index: 1;
}

.device-screen {
    width: 85px;
    height: 150px;
    background: var(--primary-black);
    border-radius: 15px;
    margin: 15px auto;
    padding: 10px;
}

.ios-ui .status-bar {
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
    margin-bottom: 15px;
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.app-dot {
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 6px;
    animation: appBlink 3s ease-in-out infinite;
}

.app-dot:nth-child(2) { animation-delay: 0.5s; }
.app-dot:nth-child(3) { animation-delay: 1s; }
.app-dot:nth-child(4) { animation-delay: 1.5s; }

.android-ui .nav-bar {
    height: 6px;
    background: var(--accent-blue);
    border-radius: 3px;
    margin-bottom: 10px;
}

.android-element {
    height: 15px;
    background: rgba(0, 191, 255, 0.3);
    border-radius: 3px;
    margin-bottom: 8px;
}

.tech-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: var(--accent-gold);
    color: var(--primary-black);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: particleFloat 6s ease-in-out infinite;
}

.particle.p-1 { 
    top: -25%; 
    left: 0%; 
    transform: translateX(-50%);
    animation-delay: 0s; 
}
.particle.p-2 { 
    top: 55%; 
    right: 40%; 
    transform: translateY(-50%);
    animation-delay: 2s; 
}
.particle.p-3 { 
    top: 55%; 
    left: -50%; 
    animation-delay: 4s; 
}

/* 3D & Design Visual */
.visual-3d .design-workspace {
    position: relative;
    width: 300px;
    height: 300px;
}

.main-object {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.rotating-shape {
    width: 150px;
    height: 150px;
    transform-style: preserve-3d;
    animation: designRotate 10s linear infinite;
}

.shape-face {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(218, 112, 214, 0.2);
    border: 2px solid var(--accent-purple);
}

.shape-face.face-1 { transform: rotateY(0deg) translateZ(75px); }
.shape-face.face-2 { transform: rotateY(90deg) translateZ(75px); }
.shape-face.face-3 { transform: rotateY(180deg) translateZ(75px); }
.shape-face.face-4 { transform: rotateY(270deg) translateZ(75px); }

.design-tools {
    position: absolute;
    width: 100%;
    height: 100%;
}

.tool-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    animation: toolFloat 5s ease-in-out infinite;
}

.tool-icon.tool-1 { top: 10%; left: 10%; animation-delay: 0s; }
.tool-icon.tool-2 { top: 10%; right: 10%; animation-delay: 1.5s; }
.tool-icon.tool-3 { bottom: 10%; left: 50%; transform: translateX(-50%); animation-delay: 3s; }

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.grid-line {
    position: absolute;
    background: var(--accent-blue);
    opacity: 0.4;
}

.grid-line.h-1 { width: 100%; height: 1px; top: 25%; }
.grid-line.h-2 { width: 100%; height: 1px; bottom: 25%; }
.grid-line.v-1 { height: 100%; width: 1px; left: 25%; }
.grid-line.v-2 { height: 100%; width: 1px; right: 25%; }

/* Visual Glow Effects */
.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: visualGlow 6s ease-in-out infinite;
}

/* Skill Animations */
@keyframes skillShine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes centerSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitRotate {
    0% { transform: translateX(-50%) rotate(0deg) translateX(120px) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg) translateX(120px) rotate(-360deg); }
}

@keyframes deviceFloat {
    0%, 100% { transform: rotateY(-15deg) translateX(-30px) translateY(0); }
    50% { transform: rotateY(-15deg) translateX(-30px) translateY(-20px); }
}

@keyframes appBlink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(-10px) rotate(240deg); }
}

@keyframes designRotate {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    33% { transform: rotateX(120deg) rotateY(120deg) rotateZ(0deg); }
    66% { transform: rotateX(240deg) rotateY(240deg) rotateZ(120deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes toolFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}

@keyframes visualGlow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
}

/* Projects Section */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--tertiary-black);
    color: var(--text-gray);
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--smooth-transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-black);
    border-color: var(--accent-gold);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--primary-black);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--smooth-transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--slow-transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: var(--smooth-transition);
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    color: var(--primary-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: var(--smooth-transition);
}

.project-link:hover {
    transform: scale(1.1);
    background: var(--accent-blue);
}

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 22px;
    color: var(--text-white);
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-tag {
    background: var(--tertiary-black);
    color: var(--accent-gold);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h3 {
    font-size: 32px;
    color: var(--text-white);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-gray);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-methods {
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.method-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-black);
}

.method-info h4 {
    color: var(--text-white);
    font-size: 18px;
    margin-bottom: 5px;
}

.method-info p {
    color: var(--text-gray);
    margin: 0;
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: var(--tertiary-black);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: var(--smooth-transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--primary-black);
    transform: translateY(-3px);
    box-shadow: var(--glow-accent);
}

/* Contact Form */
.contact-form {
    background: var(--secondary-black);
    background: var(--dark-black);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0px 15px 39px -5px rgba(0, 0, 0, 0.7);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--tertiary-black);
    color: var(--text-white);
    font-size: 16px;
    transition: var(--smooth-transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-gold);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--text-gray);
    font-size: 16px;
    pointer-events: none;
    transition: var(--smooth-transition);
}

.form-group input:focus+label,
.form-group input:valid+label,
.form-group textarea:focus+label,
.form-group textarea:valid+label {
    top: -10px;
    font-size: 12px;
    color: var(--accent-gold);
}

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

/* Footer */
.footer {
    position: initial;
    bottom: 7.5px;
    left: 20px;
    right: 20px;
    background: rgb(0, 0, 0);
    border-radius: 0px;
    z-index: 1000;
    transition: var(--smooth-transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text p {
    color: var(--text-gray);
    font-size: 14px;
    margin: 0;
}

.footer-links a {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--smooth-transition);
}

.footer-links a:hover {
    color: var(--text-white);
}

/* Hamburger rotation animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Portfolio Preview Section */
.portfolio-preview {
    padding: 120px 20px;
    position: relative;
    background: transparent !important;
    overflow: hidden;
    /* Ensure proper stacking context for backdrop-filter */
    transform: translateZ(0);
}

.portfolio-preview .container {
    position: relative;
    z-index: 5;
}

@keyframes particles-float {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-5px); }
    75% { transform: translateY(-30px) translateX(15px); }
    100% { transform: translateY(0) translateX(0); }
}

@keyframes particles-beam {
    0%, 100% { 
        filter: brightness(1) blur(0px);
        background-size: 200px 200px, 300px 300px, 150px 150px, 250px 250px, 180px 180px, 220px 220px;
    }
    20% { 
        filter: brightness(1.5) blur(1px);
        background-size: 160px 160px, 240px 240px, 120px 120px, 200px 200px, 144px 144px, 176px 176px;
    }
    40% { 
        filter: brightness(2) blur(2px);
        background-size: 120px 120px, 180px 180px, 90px 90px, 150px 150px, 108px 108px, 132px 132px;
    }
    60% { 
        filter: brightness(1.8) blur(1.5px);
        background-size: 240px 240px, 360px 360px, 180px 180px, 300px 300px, 216px 216px, 264px 264px;
    }
    80% { 
        filter: brightness(1.2) blur(0.5px);
        background-size: 180px 180px, 270px 270px, 135px 135px, 225px 225px, 162px 162px, 198px 198px;
    }
}

.portfolio-showcase {
    width: 100%;
    padding: 80px 60px;
    margin: 0 auto;
    /* Enhanced glassmorphism styling for better blur */
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    position: relative;
    overflow: hidden;
    z-index: 20; /* Higher than particles (z-index: 1) */
    /* Force hardware acceleration and proper stacking */
    transform: translateZ(0);
    will-change: transform;
    isolation: isolate;
    animation: 
        showcase-float-y 6s ease-in-out infinite,
        showcase-float-x 8s ease-in-out infinite,
        showcase-scale 7s ease-in-out infinite;
    z-index: 2;
}

@keyframes showcase-float-y {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-25px);
    }
}

@keyframes showcase-float-x {
    0%, 100% { 
        transform: translateX(0px);
    }
    25% { 
        transform: translateX(10px);
    }
    75% { 
        transform: translateX(-10px);
    }
}

@keyframes showcase-scale {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.008);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.38);
    }
}

.portfolio-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 20, 147, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 500px;
    position: relative;
    z-index: 2;
}

.showcase-text {
    max-width: 500px;
}

.showcase-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -moz-background-clip: text;
    line-height: 1.2;
}

.showcase-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.showcase-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    /* Remove custom positioning and overflow to use standard btn-primary styles */
}

/* Remove custom showcase button effects - use standard btn-primary hover */

/* Simple Animated Creation */
.creation-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    height: 400px;
}

.creation-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    animation: step-pulse 3s ease-in-out infinite;
}

.code-step {
    animation-delay: 0s;
}

.art-step {
    animation-delay: 1.5s;
}

.step-icon {
    font-size: 6rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: var(--accent-gold);
    text-shadow: 0 0 30px var(--accent-gold);
    animation: icon-glow 2s ease-in-out infinite;
}

.art-step .step-icon {
    color: var(--accent-purple);
    text-shadow: 0 0 30px var(--accent-purple);
    font-family: inherit;
}

.step-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.9;
}

@keyframes step-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes icon-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 15px currentColor);
        transform: rotateY(0deg);
    }
    50% { 
        filter: drop-shadow(0 0 35px currentColor) drop-shadow(0 0 45px currentColor);
        transform: rotateY(8deg);
    }
}

/* Animated Flow Arrow */
.flow-arrow {
    position: relative;
    display: flex;
    align-items: center;
}

.arrow-body {
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple));
    border-radius: 3px;
    animation: arrow-pulse 2s ease-in-out infinite;
}

.arrow-tip {
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid var(--accent-purple);
    margin-left: -3px;
    animation: tip-bounce 2s ease-in-out infinite;
}

.flow-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: particle-flow 3s linear infinite;
    box-shadow: 0 0 10px var(--accent-gold);
}

.particle:nth-child(1) {
    animation-delay: 0s;
    top: -3px;
}

.particle:nth-child(2) {
    animation-delay: 1s;
    top: 50%;
    transform: translateY(-50%);
}

.particle:nth-child(3) {
    animation-delay: 2s;
    bottom: -3px;
}

@keyframes arrow-pulse {
    0%, 100% { opacity: 0.7; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.1); }
}

@keyframes tip-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

@keyframes particle-flow {
    0% { 
        left: 0; 
        opacity: 0; 
        transform: scale(0.5); 
    }
    10% { 
        opacity: 1; 
        transform: scale(1); 
    }
    90% { 
        opacity: 1; 
        transform: scale(1); 
    }
    100% { 
        left: 100%; 
        opacity: 0; 
        transform: scale(0.5); 
    }
}

/* Responsive Design for Portfolio Preview */
@media (max-width: 768px) {
    .portfolio-preview {
        padding: 80px 20px;
    }
    
    .portfolio-showcase {
        margin: 0 auto;
        padding: 60px 40px;
        border-radius: 15px;
    }
    
    .showcase-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
        min-height: auto;
    }
    
    .showcase-visual {
        margin-top: 30px;
    }
    
    .showcase-title {
        font-size: 2.8rem;
        margin-bottom: 25px;
    }
    
    .showcase-description {
        font-size: 1.1rem;
        margin-bottom: 35px;
    }
    
    .creation-flow {
        gap: 60px;
        height: 300px;
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        width: 60px;
        height: 40px;
    }
    
    .flow-particles .particle {
        width: 4px;
        height: 4px;
    }
    
    .creation-step {
        width: 120px;
        height: 120px;
    }
    
    .step-icon {
        font-size: 2.5rem;
    }
    
    .step-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .portfolio-preview {
        padding: 60px 15px;
    }
    
    .portfolio-showcase {
        border-radius: 12px;
        margin: 0 auto;
        padding: 40px 25px;
    }
    
    .showcase-content {
        gap: 40px;
    }
    
    .showcase-visual {
        margin-top: 30px;
    }
    
    .showcase-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .showcase-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .creation-flow {
        gap: 40px;
        height: 240px;
    }
    
    .flow-particles .particle {
        width: 3px;
        height: 3px;
    }
    
    .creation-step {
        width: 100px;
        height: 100px;
    }
    
    .step-icon {
        font-size: 2rem;
    }
    
    .step-label {
        font-size: 0.9rem;
    }
    
    .flow-arrow {
        width: 50px;
        height: 30px;
    }
}