:root {
    --bg-primary: #0A0A0B;
    --bg-secondary: #1A1A1D;
    --accent-red: #DC2626;
    --accent-yellow: #FCD34D;
    --accent-pink: #EC4899;
    --accent-purple: #8B5CF6;
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --success-green: #10B981;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(20, 20, 22, 0.6);
    --glass-border: rgba(255, 255, 255, 0.12);
    --spring-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --smooth-ease: cubic-bezier(0.4, 0.0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.02;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* Animated Blobs */
.blobs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Ensure proper viewport on iOS */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

.blobs-container svg {
    width: 150%;
    height: 150%;
    position: absolute;
    top: -25%;
    left: -25%;
}

.blob {
    filter: blur(40px);
    animation: blob-morph 20s ease-in-out infinite;
}

.blob-1 {
    animation-duration: 25s;
    animation-delay: 0s;
}

.blob-2 {
    animation-duration: 30s;
    animation-delay: 5s;
}

@keyframes blob-morph {
    0%, 100% {
        d: path("M400,300 Q500,100 600,300 T400,300");
        transform: rotate(0deg) scale(1);
    }
    25% {
        d: path("M450,350 Q550,150 650,350 T450,350");
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        d: path("M350,300 Q450,100 550,300 T350,300");
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        d: path("M400,250 Q500,50 600,250 T400,250");
        transform: rotate(270deg) scale(1.05);
    }
}

.blob-group {
    animation: blob-rotate 60s linear infinite;
}

@keyframes blob-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s var(--smooth-ease);
    padding: 24px 0;
}

.navbar.scrolled {
    background: rgba(10, 10, 11, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 18px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.nav-cta {
    background: linear-gradient(135deg, var(--accent-red), #B91C1C);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s var(--spring-bounce);
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-cta:hover::before {
    width: 300px;
    height: 300px;
}

.nav-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 0 20px rgba(220, 38, 38, 0.6),
        0 10px 40px rgba(220, 38, 38, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at top right, rgba(220, 38, 38, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at bottom left, rgba(252, 211, 77, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at center, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    padding-bottom: 40px;
    animation: gradient-shift 10s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-red);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    to {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-yellow) 50%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: fadeInUp 1s ease, gradient-animation 3s ease infinite;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Rotating Specializations */
.specializing-container {
    margin: 2rem 0 3rem;
    text-align: center;
    animation: fadeInUp 1s ease 0.4s both;
}

.specializing-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.rotating-text-wrapper {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    margin: 0 auto;
}

.rotating-text {
    position: relative;
    font-size: clamp(0.9rem, 3vw, 1.75rem);
    font-weight: 700;
    background: linear-gradient(135deg, #FCD34D 0%, #DC2626 50%, #FCD34D 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    display: inline-block;
    min-width: min(600px, 90vw);
    text-align: center;
    height: auto;
    line-height: 1.5;
    word-break: break-word;
}

.text-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    white-space: nowrap;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
}

.text-item.active {
    opacity: 1;
    transform: translateY(0);
}

.text-item.exit {
    opacity: 0;
    transform: translateY(-20px);
}

/* Ensure first item is visible on load */
.text-item:first-child {
    opacity: 1;
    transform: translateY(0);
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.75rem;
    background: linear-gradient(135deg, #FCD34D, #DC2626);
    margin-left: 4px;
    animation: blink 1s infinite;
    vertical-align: middle;
    border-radius: 1px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.hero-cta {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-pink));
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s var(--spring-bounce);
    animation: fadeInUp 1s ease 0.6s both, pulse-glow 2s ease infinite;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(220, 38, 38, 0.4),
        0 0 40px rgba(220, 38, 38, 0.2);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow:
            0 4px 15px rgba(220, 38, 38, 0.4),
            0 0 40px rgba(220, 38, 38, 0.2);
    }
    50% {
        box-shadow:
            0 4px 20px rgba(220, 38, 38, 0.6),
            0 0 60px rgba(220, 38, 38, 0.3);
    }
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-cta:hover::before {
    width: 300px;
    height: 300px;
}

.hero-cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 10px 30px rgba(220, 38, 38, 0.6),
        0 0 60px rgba(220, 38, 38, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-red), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-text 3s ease infinite;
}

@keyframes gradient-text {
    to { background-position: 200% center; }
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.services {
    padding: 60px 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    transition: all 0.4s var(--spring-bounce);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(220, 38, 38, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(220, 38, 38, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(220, 38, 38, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
    background: rgba(30, 30, 32, 0.7);
}

.service-icon {
    color: var(--accent-red);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    color: var(--text-secondary);
}

.service-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-yellow);
}

.projects {
    padding: 60px 0;
    background: var(--bg-secondary);
}

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

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    position: relative;
    transition: all 0.4s var(--spring-bounce);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(220, 38, 38, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    overflow: hidden;
    will-change: transform;
}

.project-card:hover {
    transform: perspective(1000px) rotateX(-1deg) rotateY(1deg) scale(1.02);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(220, 38, 38, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
}

.project-status {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-status.coming-soon {
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-red));
    color: white;
    animation: pulse-badge 2s infinite;
    box-shadow: 0 0 20px rgba(252, 211, 77, 0.5);
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(252, 211, 77, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(252, 211, 77, 0.7);
    }
}

.project-status.beta {
    background: linear-gradient(135deg, var(--success-green), #059669);
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.project-status.active {
    background: linear-gradient(135deg, var(--success-green), #059669);
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}


.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-badge {
    background: rgba(220, 38, 38, 0.1);
    color: var(--accent-red);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.project-cta {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-pink));
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.4s var(--spring-bounce);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.project-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.project-cta:hover::after {
    width: 300px;
    height: 300px;
}

.project-cta:hover {
    transform: scale(1.05) translateY(0);  /* Ensure no vertical movement */
    box-shadow:
        0 10px 30px rgba(220, 38, 38, 0.5),
        0 0 50px rgba(220, 38, 38, 0.3);
    position: relative;
    z-index: 10;
}

.custom-project {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(252, 211, 77, 0.1));
    border: 2px dashed var(--glass-border);
}

.commission {
    padding: 60px 0;
    overflow: visible;
    position: relative;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--glass-border);
    z-index: -1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.4s var(--spring-bounce);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-pink));
    border-color: var(--accent-red);
    box-shadow:
        0 0 20px rgba(220, 38, 38, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.3);
    animation: pulse-step 2s infinite;
}

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

.step-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.commission-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(220, 38, 38, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: visible;
}

.form-step {
    display: none;
    min-height: 300px;
    position: relative;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(20, 20, 22, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 18px;
    transition: all 0.4s var(--smooth-ease);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    background: rgba(30, 30, 32, 0.9);
    box-shadow:
        0 0 0 3px rgba(220, 38, 38, 0.2),
        0 0 20px rgba(220, 38, 38, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 12px;
    flex-wrap: wrap;
}

.form-nav-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 14px;
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.4s var(--spring-bounce);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 120px;
    max-width: 200px;
}

.prev-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.prev-btn:hover {
    background: var(--glass-bg);
}

/* Ensure submit button is always visible */
.submit-btn {
    z-index: 10;
    position: relative;
}

.next-btn,
.submit-btn {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-pink));
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.next-btn::before,
.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.next-btn:hover::before,
.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.next-btn:hover,
.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 30px rgba(220, 38, 38, 0.5),
        0 0 40px rgba(220, 38, 38, 0.3);
}

.review-section {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.review-section h3 {
    margin-bottom: 16px;
    color: var(--accent-yellow);
}

.review-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
}

.review-item:last-child {
    border-bottom: none;
}

.review-item strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.about {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(220, 38, 38, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s var(--spring-bounce);
}

.about-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(220, 38, 38, 0.1);
}

.ai-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.ai-logo {
    padding: 10px 20px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    font-weight: 600;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-red);
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer {
    padding: 40px 0 30px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-logo .logo {
    height: 60px;
    width: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-contact {
    margin-bottom: 30px;
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, transparent 40%, rgba(252, 211, 77, 0.05) 100%);
    opacity: 0.5;
    animation: aurora 10s ease infinite;
    pointer-events: none;
}

@keyframes aurora {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid var(--glass-border);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal h3 {
    margin-bottom: 16px;
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal form {
    display: flex;
    gap: 12px;
}

.modal input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 18px;
}

.modal button {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-pink));
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.4s var(--spring-bounce);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

/* Error Modal Styles */
.error-modal {
    border: 2px solid var(--accent-red);
    background: linear-gradient(135deg, var(--bg-secondary), rgba(220, 38, 38, 0.1));
}

.error-modal h3 {
    color: var(--accent-red);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.error-modal p {
    margin: 15px 0;
    color: var(--text-primary);
}

.error-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.resend-btn {
    background: linear-gradient(135deg, var(--success-green), #059669);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.resend-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.email-btn {
    background: linear-gradient(135deg, var(--accent-yellow), #F59E0B);
    color: var(--bg-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(252, 211, 77, 0.3);
}

.cancel-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 100px;
}

.cancel-btn:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
}

@media (max-width: 640px) {
    .error-options {
        flex-direction: column;
    }

    .error-options button {
        width: 100%;
        min-width: unset;
    }
}

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

/* Ripple Effect */
button {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Modern vignette effect */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 10, 11, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Enhanced smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-red), var(--accent-pink));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-pink), var(--accent-purple));
}

/* Loading skeleton animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--glass-bg) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        var(--glass-bg) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .rotating-text {
        font-size: 1.4rem;
        min-width: 500px;
    }
}

@media (max-width: 768px) {
    .specializing-container {
        margin: 1rem 0 1.5rem;
        padding: 0 10px;
    }

    .specializing-text {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .rotating-text-wrapper {
        height: 50px;
        overflow: visible;
    }

    .rotating-text {
        font-size: 1rem;
        min-width: auto;
        width: 100%;
        padding: 0 10px;
    }

    .cursor {
        height: 1.1rem;
        width: 2px;
        margin-left: 2px;
    }

    /* Form improvements for mobile */
    .commission-form {
        padding: 20px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .commission {
        padding: 40px 0 80px; /* Extra bottom padding for navigation */
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
    }

    .form-nav-btn {
        padding: 14px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

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

    .rotating-text-wrapper {
        height: 70px;
        margin: 0 -10px; /* Allow text to use full width */
    }

    .rotating-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .specializing-text {
        font-size: 0.85rem;
    }

    .cursor {
        height: 0.9rem;
        width: 2px;
    }

    /* Better card layout on mobile */
    .service-card,
    .project-card {
        padding: 25px;
        margin-bottom: 20px;
    }

    /* Form step indicators */
    .progress-indicator {
        padding: 0 10px;
    }

    .step-label {
        font-size: 0.65rem;
    }

    /* Ensure buttons don't get cut off */
    .hero-cta {
        font-size: 16px;
        padding: 14px 28px;
    }
}

/* Ultra-small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .rotating-text {
        font-size: 0.75rem;
    }

    .service-card h3,
    .project-card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding-bottom: 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .services,
    .projects,
    .commission,
    .about {
        padding: 40px 0;
    }

    .footer {
        padding: 30px 0 20px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

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

    .footer-links {
        flex-wrap: wrap;
    }

    .progress-indicator {
        justify-content: space-between;
    }

    .progress-step .step-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .form-nav {
        flex-direction: column;
        gap: 12px;
        position: relative; /* Changed from sticky to relative */
        background: var(--bg-primary);
        padding: 15px 0;
        margin: 20px 0 0;
        border-top: 1px solid var(--glass-border);
    }

    .form-nav-btn {
        width: 100%;
        max-width: none;
        padding: 16px 28px;
    }

    .commission-form {
        padding: 20px;
        padding-bottom: 80px; /* Space for sticky buttons */
    }

    .form-step {
        min-height: auto;
        padding-bottom: 20px;
    }

    /* Ensure form doesn't get cut off */
    .form-container {
        max-height: none;
        overflow: visible;
    }

    /* Review section scrollable on mobile */
    .review-section {
        max-height: 300px;
        overflow-y: auto;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Experience Highlight Section */
.experience-highlight {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(252, 211, 77, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    text-align: center;
}

.experience-highlight h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.experience-highlight p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* About Features Section */
.about-features {
    margin-top: 40px;
    text-align: center;
}

.about-features h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-item strong {
    display: block;
    color: var(--accent-red);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Notify Modal Styles */
.notify-modal h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.notify-modal p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.notify-modal .form-group {
    margin-bottom: 20px;
}

.notify-modal input[type="email"] {
    width: 100%;
    background: rgba(10, 10, 11, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.notify-modal input[type="email"]:focus {
    border-color: var(--accent-red);
    outline: none;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
}

.notify-submit-btn {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-pink));
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.notify-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5);
}

.privacy-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 15px;
    opacity: 0.8;
}

/* Performance Optimizations */
.btn, .project-cta, .nav-cta, .cta-btn {
    will-change: transform;
}

.service-card, .about-card {
    will-change: transform;
}

/* Decorative elements should not interfere */
.animated-blob, .aurora {
    pointer-events: none;
}

/* Modal animations */
.modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

/* Notify success message */
.notify-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--success-green), #059669);
    color: white;
    padding: 20px 30px;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    z-index: 10001;
    transform: translateX(400px);
    transition: transform 0.3s var(--spring-bounce);
}

.notify-success-message.show {
    transform: translateX(0);
}

.success-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.success-icon {
    font-size: 24px;
}

@media (max-width: 768px) {
    .notify-success-message {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
        transform: translateY(200px);
    }

    .notify-success-message.show {
        transform: translateY(0);
    }
}