/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --color-bg: #000000;
    --color-primary: #00FF7F;
    --color-primary-glow: #3DDC84;
    --color-secondary: #007F5F;
    --color-text: #FFFFFF;
    --color-text-dim: rgba(255, 255, 255, 0.7);
    --color-text-faint: rgba(255, 255, 255, 0.5);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(0, 255, 127, 0.2);
    --glass-shadow: rgba(0, 255, 127, 0.1);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --container-max: 1400px;
    --section-padding: 120px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    background-image: 
        radial-gradient(at 20% 30%, rgba(0, 255, 127, 0.08) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(61, 220, 132, 0.08) 0px, transparent 50%),
        radial-gradient(at 40% 80%, rgba(0, 127, 95, 0.08) 0px, transparent 50%);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

/* ==========================================
   BACKGROUND EFFECTS
   ========================================== */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: float-drift 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -250px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    bottom: 10%;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float-drift {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(30px, -30px);
    }
    50% {
        transform: translate(-20px, 20px);
    }
    75% {
        transform: translate(20px, 30px);
    }
}

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

@keyframes grid-flow {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Particles Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float-shape 15s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    transform: rotate(45deg);
}

.shape-2 {
    width: 80px;
    height: 80px;
    border: 2px solid var(--color-primary-glow);
    border-radius: 50%;
    top: 60%;
    right: 15%;
    animation-delay: -3s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    border: 2px solid var(--color-secondary);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    top: 30%;
    right: 5%;
    animation-delay: -6s;
}

.shape-4 {
    width: 60px;
    height: 60px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    bottom: 20%;
    left: 20%;
    animation-delay: -9s;
}

.shape-5 {
    width: 90px;
    height: 90px;
    border: 2px solid var(--color-primary-glow);
    border-radius: 15px;
    bottom: 40%;
    right: 30%;
    animation-delay: -12s;
    transform: rotate(30deg);
}

.shape-6 {
    width: 70px;
    height: 70px;
    border: 2px solid var(--color-secondary);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 80%;
    left: 50%;
    animation-delay: -15s;
}

@keyframes float-shape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.1;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.08;
    }
}

/* Background Lines */
.background-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.bg-line {
    animation: line-pulse 4s ease-in-out infinite;
}

.line-1 {
    animation-delay: 0s;
}

.line-2 {
    animation-delay: -1.3s;
}

.line-3 {
    animation-delay: -2.6s;
}

@keyframes line-pulse {
    0%, 100% {
        opacity: 0.1;
        stroke-width: 1;
    }
    50% {
        opacity: 0.5;
        stroke-width: 2;
    }
}

/* Scanline Effect */
.background-effects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 0%,
        rgba(0, 255, 127, 0.02) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

/* Spotlight Effect */
.background-effects::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        transparent 30%,
        rgba(0, 255, 127, 0.05) 50%,
        rgba(0, 0, 0, 0.3) 80%
    );
    animation: rotate-spotlight 30s linear infinite;
    pointer-events: none;
}

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

/* ==========================================
   GLASSMORPHISM CARD
   ========================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, var(--color-primary), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px var(--glass-shadow), 
        0 0 30px rgba(0, 255, 127, 0.2),
        inset 0 0 60px rgba(0, 255, 127, 0.05);
    background: rgba(255, 255, 255, 0.08);
}

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

/* Add shimmer effect to glass cards */
.glass-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 255, 127, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shimmer 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0.3;
    }
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 2rem 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 3rem;
}

.nav-link {
    color: var(--color-text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

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

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

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-name {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

.cta-button:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 255, 127, 0.6);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 127, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 127, 0.5);
    }
}

/* ==========================================
   PHONE MOCKUPS - OPTIMIZED
   ========================================== */
.hero-visual {
    position: relative;
    height: 600px;
}

.phone-mockups {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1500px;
    perspective-origin: center center;
}

/* BASE PHONE STYLES */
.phone {
    position: absolute;
    width: 180px;
    height: 360px;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 30px;
    padding: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform;
    transition: top 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                right 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                margin-left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.3s ease;
}

/* Phone notch */
.phone::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    z-index: 1;
}

/* Phone glow */
.phone::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    box-shadow: 0 0 40px rgba(0, 255, 127, 0.4);
    opacity: 0.6;
    z-index: -1;
    transition: opacity 0.3s ease;
}

/* ACTIVE STATE */
.phone.active {
    filter: brightness(1.15);
    z-index: 10;
}

.phone.active::after {
    opacity: 1;
    box-shadow: 0 0 60px rgba(0, 255, 127, 0.8);
}

/* Simple pulse ring for active phone - no transform conflicts */
.phone.active::before {
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 127, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 255, 127, 0);
    }
}

/* NON-ACTIVE STATES */
.phone:not(.active) {
    filter: brightness(0.75);
    z-index: 8;
}

.phone:not(.active):hover {
    filter: brightness(1);
}

/* POSITIONS - With unique transforms to trigger re-layout */
.phone.position-1 {
    top: 50px;
    left: 50%;
    right: auto;
    margin-left: -90px;
}

.phone.position-2 {
    top: 80px;
    left: auto;
    right: 80px;
}

.phone.position-3 {
    top: 120px;
    left: 60px;
    right: auto;
}

/* Add intermediate transition hints for smoother arcs */
.phone.position-1.swapping {
    /* Moving to center - come from above */
    transform-origin: center top;
}

.phone.position-2.swapping {
    /* Moving to right - arc from center */
    transform-origin: center center;
}

.phone.position-3.swapping {
    /* Moving to left - arc from center */
    transform-origin: center center;
}

/* SWAPPING STATE - Keep position transitions with lift effect */
.phone.swapping {
    z-index: 11;
    /* Position transitions with bounce */
    transition: top 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                right 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                margin-left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.3s ease;
    /* Lift phones up during swap for better visibility */
    filter: brightness(1.1) drop-shadow(0 10px 30px rgba(0, 255, 127, 0.4));
}

/* Add motion trail effect during swap */
.phone.swapping::after {
    animation: trail-fade 0.8s ease-out forwards;
    box-shadow: 0 0 60px rgba(0, 255, 127, 0.8),
                0 0 90px rgba(0, 255, 127, 0.5);
}

@keyframes trail-fade {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.phone.moving-to-front {
    z-index: 11;
}

/* SWAP ANIMATIONS - Clean and simple */
.phone.position-1.swapping {
    animation: swap-to-front 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.phone.position-2.swapping {
    animation: swap-to-right 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.phone.position-3.swapping {
    animation: swap-to-left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes swap-to-front {
    0% {
        transform: rotateY(0deg) scale(1) translateY(0);
    }
    50% {
        transform: rotateY(180deg) scale(1.3) translateY(-30px);
    }
    100% {
        transform: rotateY(360deg) scale(1) translateY(0);
    }
}

@keyframes swap-to-right {
    0% {
        transform: rotateY(0deg) scale(1) translateY(0);
    }
    50% {
        transform: rotateY(-180deg) scale(1.2) translateY(-25px);
    }
    100% {
        transform: rotateY(-360deg) scale(1) translateY(0);
    }
}

@keyframes swap-to-left {
    0% {
        transform: rotateY(0deg) scale(1) translateY(0);
    }
    50% {
        transform: rotateY(180deg) scale(1.2) translateY(-25px);
    }
    100% {
        transform: rotateY(360deg) scale(1) translateY(0);
    }
}

/* PHONE CONTENT */
.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Initial z-index order */
.phone-1 {
    z-index: 10;
}

.phone-2 {
    z-index: 9;
}

.phone-3 {
    z-index: 8;
}

/* ==========================================
   STATS CARD
   ========================================== */
/* Stats Card with enhanced animations */
.stats-card {
    position: absolute;
    bottom: 50px;
    right: 20px;
    min-width: 220px;
    z-index: 4;
    animation: fade-slide-up 1s ease-out 0.5s both;
    transition: all 0.3s ease;
}

.stats-card.updating {
    animation: card-flip-update 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    transform: scale(0.95);
}

/* Add slight fade during phone swap for less distraction */
@keyframes card-flip-update {
    0% {
        transform: perspective(800px) rotateY(0deg) scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: perspective(800px) rotateY(90deg) scale(0.9);
        opacity: 0.5;
    }
    100% {
        transform: perspective(800px) rotateY(0deg) scale(1);
        opacity: 1;
    }
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-shadow: 0 0 20px rgba(0, 255, 127, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.stat-app-name {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.3);
}

.stat-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--color-primary);
    animation: bounce-arrow 2s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 0 8px rgba(0, 255, 127, 0.6));
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 8px rgba(0, 255, 127, 0.6));
    }
    50% {
        transform: translateY(-8px) scale(1.1);
        filter: drop-shadow(0 0 15px rgba(0, 255, 127, 0.9));
    }
}

@keyframes fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   SECTIONS
   ========================================== */
.portfolio-section,
.about-section,
.services-section,
.contact-section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

/* Add subtle glow to sections */
.portfolio-section::before,
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.3;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -1px;
    position: relative;
}

/* Add glow effect to section titles */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.5);
}
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   PORTFOLIO SECTION
   ========================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    cursor: pointer;
}

.project-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--color-text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.4rem 0.9rem;
    background: rgba(0, 255, 127, 0.1);
    border: 1px solid rgba(0, 255, 127, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 255, 127, 0.2);
    transform: translateY(-2px);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.highlight {
    color: var(--color-primary);
    font-weight: 700;
}

.about-description {
    color: var(--color-text-dim);
    line-height: 1.9;
    margin-bottom: 2.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 255, 127, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 127, 0.1);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(0, 255, 127, 0.1);
    transform: translateX(5px);
}

.skill-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 3rem 2rem;
}

.service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: block;
}

.service-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--color-text-dim);
    line-height: 1.7;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text);
    text-decoration: none;
    padding: 1rem;
    background: rgba(0, 255, 127, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 127, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(0, 255, 127, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 127, 0.2);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    min-width: 24px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--color-text-dim);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        height: 500px;
    }

    .phone {
        width: 150px;
        height: 300px;
    }

    .phone-1 {
        left: 40%;
    }

    .phone-2 {
        right: 60px;
    }

    .phone-3 {
        left: 40px;
    }

    .stats-card {
        bottom: 20px;
        right: 10px;
    }

    .nav-container {
        gap: 2rem;
    }
    
    /* Reduce background effects on tablet */
    .shape {
        opacity: 0.05;
    }
    
    .gradient-orb {
        filter: blur(100px);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .hero-section {
        padding-top: 120px;
    }

    .hero-visual {
        height: 400px;
    }

    .phone {
        width: 120px;
        height: 240px;
        padding: 8px;
    }

    .phone::before {
        width: 40px;
        height: 3px;
    }

    .phone-1 {
        left: 50%;
        transform: translateX(-50%) rotate(-8deg);
    }

    .phone-2 {
        right: 20px;
    }

    .phone-3 {
        left: 20px;
    }

    .stats-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 2rem;
    }

    .projects-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Further reduce background effects on mobile */
    .shape {
        display: none;
    }
    
    .background-lines {
        opacity: 0.1;
    }
    
    .grid-background {
        opacity: 0.5;
    }
    
    /* Disable some animations for performance */
    .background-effects::before,
    .background-effects::after {
        animation: none;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-visual {
        height: 350px;
    }

    .phone {
        width: 100px;
        height: 200px;
    }
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}
