    /* ----------------------------------------------
 * Generated by Animista on 2025-5-10 12:34:47
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation focus-in-expand-fwd
 * ----------------------------------------
 */
@-webkit-keyframes focus-in-expand-fwd {
  0% {
    letter-spacing: -0.5em;
    -webkit-transform: translateZ(-800px);
            transform: translateZ(-800px);
    -webkit-filter: blur(12px);
            filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    -webkit-filter: blur(0);
            filter: blur(0);
    opacity: 1;
  }
}
@keyframes focus-in-expand-fwd {
  0% {
    letter-spacing: -0.5em;
    -webkit-transform: translateZ(-800px);
            transform: translateZ(-800px);
    -webkit-filter: blur(12px);
            filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    -webkit-filter: blur(0);
            filter: blur(0);
    opacity: 1;
  }
}

.logo.focus-in-expand-fwd {
  -webkit-animation: focus-in-expand-fwd 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation: focus-in-expand-fwd 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* === GLOBAL STYLES === */
:root {
    --color-bg-dark: #0A0A0A;
    --color-bg-light: #111111;
    --color-accent-1: #6366F1;
    --color-accent-2: #8B5CF6;
    --color-text: #FFFFFF;
    --color-text-muted: #A1A1AA;
    --color-card-bg: rgba(255, 255, 255, 0.03);
    --color-card-border: rgba(255, 255, 255, 0.05);
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-radius: 16px;
    --section-padding: 80px 0;
    --section-padding-mobile: 40px 0;
}

/* === ANIMATIONS === */
@keyframes focus-in-expand-fwd {
  0% {
    letter-spacing: -0.5em;
    transform: translateZ(-800px);
    filter: blur(12px);
    opacity: 0;
  }
  100% {
    transform: translateZ(0);
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes slideIn {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

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

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

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

html, body {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-bg-light);
    color: var(--color-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-2));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent-1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

button {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* === HEADER & HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(to bottom, #3b3d54, var(--color-bg-light));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(35, 36, 58, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    padding: 0;
}

.nav-scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective-origin: 50% 50%;
    z-index: 1;
}

.svg {
    stroke: url(#gradient);
    position: absolute;
    bottom: -100vh;
    transform-style: preserve-3d;
    opacity: 0.6;
}

/* Animation for each SVG */
.svg:nth-child(1) {
    left: 10%;
    animation: raise1 15s linear infinite;
    animation-delay: -2s;
    transform: scale(0.3) rotate(45deg);
    z-index: -6;
    filter: blur(1px);
}

.svg:nth-child(2) {
    left: 30%;
    animation: raise2 18s linear infinite;
    animation-delay: -4s;
    transform: scale(0.4) rotate(120deg);
    z-index: -5;
    filter: blur(2px);
}

.svg:nth-child(3) {
    left: 50%;
    animation: raise3 20s linear infinite;
    animation-delay: -1s;
    transform: scale(0.5) rotate(200deg);
    z-index: -4;
    filter: blur(3px);
}

.svg:nth-child(4) {
    left: 70%;
    animation: raise4 16s linear infinite;
    animation-delay: -3s;
    transform: scale(0.6) rotate(300deg);
    z-index: -3;
    filter: blur(4px);
}

.svg:nth-child(5) {
    left: 90%;
    animation: raise5 19s linear infinite;
    animation-delay: -5s;
    transform: scale(0.7) rotate(60deg);
    z-index: -2;
    filter: blur(5px);
}

.svg:nth-child(6) {
    left: 20%;
    animation: raise6 17s linear infinite;
    animation-delay: -2s;
    transform: scale(0.8) rotate(150deg);
    z-index: -1;
    filter: blur(6px);
}

.svg:nth-child(7) {
    left: 40%;
    animation: raise7 21s linear infinite;
    animation-delay: -4s;
    transform: scale(0.9) rotate(240deg);
    z-index: 0;
    filter: blur(7px);
}

.svg:nth-child(8) {
    left: 60%;
    animation: raise8 14s linear infinite;
    animation-delay: -3s;
    transform: scale(1.0) rotate(330deg);
    z-index: 1;
    filter: blur(8px);
}

/* Keyframes for animations */
@keyframes raise1 {
    to {
        bottom: 150vh;
        transform: scale(0.3) rotate(405deg);
    }
}

@keyframes raise2 {
    to {
        bottom: 150vh;
        transform: scale(0.4) rotate(480deg);
    }
}

@keyframes raise3 {
    to {
        bottom: 150vh;
        transform: scale(0.5) rotate(560deg);
    }
}

@keyframes raise4 {
    to {
        bottom: 150vh;
        transform: scale(0.6) rotate(660deg);
    }
}

@keyframes raise5 {
    to {
        bottom: 150vh;
        transform: scale(0.7) rotate(420deg);
    }
}

@keyframes raise6 {
    to {
        bottom: 150vh;
        transform: scale(0.8) rotate(510deg);
    }
}

@keyframes raise7 {
    to {
        bottom: 150vh;
        transform: scale(0.9) rotate(600deg);
    }
}

@keyframes raise8 {
    to {
        bottom: 150vh;
        transform: scale(1.0) rotate(690deg);
    }
}

/* Ensure hero content stays above the animation */
.hero nav {
    position: relative;
    z-index: 2;
}

.logo {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-left: 5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    padding-right: 5px;
}

.nav-links a {
    font-family: var(--font-primary);
    font-weight: 500;
    position: relative;
    color: #ffffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-2));
    transition: var(--transition);
}

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

.hero-content {
    position: relative;
    z-index: 1;
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    padding-top: 100px; /* Add padding to account for fixed header */
}

.hero-content h1 {
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: var(--color-text);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-2));
    color: var(--color-text);
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

/* === ABOUT SECTION === */
.about {
    padding: var(--section-padding);
    background-color: var(--color-bg-light);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #181a23 0%, #23243a 100%);
    z-index: 1;
}

.about::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--color-bg-dark);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.about::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 60%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 50% 50%, #6366f1 0%, transparent 70%);
    opacity: 0.10;
    filter: blur(20px);
    z-index: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    max-width: 100vw;
    box-sizing: border-box;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-image {
    flex: 1;
}

.profile-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    object-fit: cover;
    aspect-ratio: 1/1;
    transition: transform 0.3s ease;
    margin: 0 auto;
    display: block;
}

.profile-image:hover {
    transform: scale(1.02);
}

.profile-image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    background: linear-gradient(45deg, var(--color-accent-1), var(--color-accent-2));
    opacity: 0.8;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
}

.about h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about h2::after {
    left: 0;
    transform: none;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

/* === SERVICES SECTION === */
.services {
    padding: 120px 0;
    background-color: var(--color-bg-dark);
    position: relative;
    background: linear-gradient(120deg, #181a23 0%, #23243a 100%);
    z-index: 1;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.15), transparent 50%);
    pointer-events: none;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 60% 40%, #8b5cf6 0%, transparent 70%);
    opacity: 0.12;
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
    max-width: 100vw;
    box-sizing: border-box;
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.services-category {
    margin-bottom: 100px;
}

.services-category h3 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.2rem;
    color: var(--color-text);
    font-weight: 600;
}

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

.service-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius);
    padding: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.04);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(99, 102, 241, 0.1), 
        rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 30px;
    color: var(--color-accent-1);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    color: var(--color-accent-2);
    transform: scale(1.1);
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-text);
    font-weight: 600;
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.service-features li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-accent-1);
    font-weight: bold;
    transition: var(--transition);
}

.service-card:hover .service-features li:before {
    color: var(--color-accent-2);
    transform: translateX(5px);
}

.services-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.services-cta p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--color-text);
}

/* === PORTFOLIO SECTION === */
.portfolio {
    padding: var(--section-padding);
    background-color: var(--color-bg-light);
    background: linear-gradient(120deg, #23243a 0%, #181a23 100%);
    position: relative;
    z-index: 1;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 30% 30%, #6366f1 0%, transparent 70%);
    opacity: 0.10;
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
    max-width: 100vw;
    box-sizing: border-box;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.portfolio-filter {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.95rem;
    transition: var(--transition);
}

.portfolio-filter:hover {
    transform: translateY(-2px);
    border-color: rgba(99,102,241,0.5);
}

.portfolio-filter.active {
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-2));
    border-color: transparent;
}

.portfolio-item {
    position: relative;
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item .website-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-item:hover .website-link {
    opacity: 1;
}

.portfolio-item .website-link:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
}

.portfolio-thumbnail {
    height: 200px;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.3), rgba(65, 105, 225, 0.3));
    position: relative;
    overflow: hidden;
}

.portfolio-thumbnail img {
    width: 100%;
    height: 300%;
    object-fit: cover;
    position: absolute;
    top: 0; 
    left: 0;
    animation: continuousScroll 15s ease-in-out infinite;
}

.portfolio-thumbnail img.scale-down {
    transform: scale(0.95);
    object-fit: contain;
    height: 200%;
    animation: continuousScrollSmall 15s ease-in-out infinite;
}

@keyframes continuousScroll {
    0% {
        top: 0;
    }
    50% {
        top: -200%;
    }
    100% {
        top: 0;
    }
}

@keyframes continuousScrollSmall {
    0% {
        top: 0;
    }
    50% {
        top: -100%;
    }
    100% {
        top: 0;
    }
}

.portfolio-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-thumbnail.video {
    aspect-ratio: 16/9;
    max-width: 100%;
    margin: 0 auto;
}

.portfolio-thumbnail.video.vertical {
    aspect-ratio: 9/16;
    max-width: 300px;
}

.portfolio-thumbnail.video.landscape {
    aspect-ratio: 16/9;
    max-width: 100%;
}

.website-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-thumbnail:hover .website-link {
    opacity: 1;
}

.visit-website-btn {
    padding: 10px 20px;
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-2));
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.visit-website-btn:hover {
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

.portfolio-thumbnail.video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-2));
    border-radius: 50%;
    z-index: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.play-button .pause-bar {
    width: 6px;
    height: 18px;
    background: #fff;
    border-radius: 2px;
    margin: 0 2px;
    display: none;
}

.play-button.paused .pause-bar {
    display: inline-block;
}

.play-button:not(.paused)::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 20px solid #fff;
    margin-left: 6px;
}

.play-button.paused::before {
    display: none;
}

.portfolio-thumbnail.video.playing .play-button {
    opacity: 0;
}

.portfolio-thumbnail.video.playing:hover .play-button {
    opacity: 1;
}

.portfolio-thumbnail.video.playing .play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.portfolio-thumbnail.video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.portfolio-thumbnail.video.playing::after {
    opacity: 0;
}

.portfolio-thumbnail.video.playing:hover::after {
    opacity: 1;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.more-projects {
    text-align: center;
    margin-top: 2rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* === PROCESS SECTION === */
.process {
    padding: var(--section-padding);
    background-color: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #181a23 0%, #23243a 100%);
    z-index: 1;
}

.process::after {
    content: '';
    position: absolute;
    top: 60%;
    right: 0;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle at 80% 20%, #6366f1 0%, transparent 70%);
    opacity: 0.10;
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
    max-width: 100vw;
    box-sizing: border-box;
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.process-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.process-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(145deg, #1a1a1a, #222);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transform: translateX(-50px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.process-item.visible {
    transform: translateX(0);
    opacity: 1;
}

.process-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateX(5px);
}

.process-icon {
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-item:hover .process-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.5);
}

.process-content {
    flex: 1;
}

.process-content h3 {
    color: var(--color-accent-1);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.process-item:hover .process-content h3 {
    color: var(--color-accent-2);
}

.process-content p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.process-connector {
    position: relative;
    height: 40px;
    margin-left: 30px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.process-connector::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-accent-1), var(--color-accent-2));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-connector.visible::before {
    transform: scaleY(1);
}

.process-connector.visible {
    opacity: 1;
}

/* Animation keyframes */
@keyframes slideIn {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(138, 43, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
    }
}

@keyframes highlightForm {
    0% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(138, 43, 226, 0.2);
        transform: scale(1.01);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.3);
        transform: scale(1);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .process-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .process-connector {
        margin-left: 0;
        height: 20px;
    }

    .process-connector::before {
        left: 50%;
        transform: translateX(-50%) scaleY(0);
    }

    .process-connector.visible::before {
        transform: translateX(-50%) scaleY(1);
    }

    .profile-image {
        max-width: 250px;
    }
}

/* === TESTIMONIALS SECTION === */
.testimonials {
    padding: var(--section-padding);
    background-color: var(--color-bg-light);
    position: relative;
    background: linear-gradient(120deg, #23243a 0%, #181a23 100%);
    z-index: 1;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}
.faq-item {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius);
    margin-bottom: 14px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    position: relative;
}
.faq-question::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-text);
    border-bottom: 2px solid var(--color-text);
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.8;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(-135deg);
    opacity: 1;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}
.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 20px 18px 20px;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 600px;
    height: 200px;
    background: repeating-linear-gradient(135deg, #6366f1 0 2px, transparent 2px 40px);
    opacity: 0.04;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    max-width: 100vw;
    box-sizing: border-box;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
    min-height: 300px;
}

.testimonial {
    padding: 2rem;
    border-radius: var(--border-radius);
    background: linear-gradient(145deg, #1a1a1a, #222);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: none;
    pointer-events: none;
}

.testimonial.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.testimonial.slide-in-right {
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.testimonial.slide-in-left {
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.testimonial.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.testimonial.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.testimonial-content {
    font-style: italic;
    position: relative;
    padding: 0 2rem;
    min-height: 120px;
    display: flex;
    align-items: center;
}

.testimonial-content p {
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
    min-height: 60px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-info h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.author-info p {
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-text-muted);
    opacity: 0.5;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active, .dot:hover {
    opacity: 1;
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-2));
}

.slider-arrow {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a1a1a, #222);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 2;
    transform: translateY(-50%);
    will-change: transform, background-color;
}

.slider-arrow:hover {
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-2));
    transform: translateY(-50%);
}

.slider-arrow-prev {
    left: -60px;
}

.slider-arrow-next {
    right: -60px;
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.testimonial-content::before,
.testimonial-content::after {
    content: '"';
    font-size: 3rem;
    color: var(--color-accent-1);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: 0;
    font-family: sans-serif;
}

.testimonial-content::after {
    content: '"';
    left: auto;
    right: 0;
}

/* === CONTACT SECTION === */
.contact {
    padding: var(--section-padding);
    background-color: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #181a23 0%, #23243a 100%);
    z-index: 1;
}

.contact::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-accent-1), transparent 70%);
    top: -200px;
    right: -200px;
    opacity: 0.1;
    border-radius: 50%;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 60%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 50% 50%, #8b5cf6 0%, transparent 70%);
    opacity: 0.10;
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
    max-width: 100vw;
    box-sizing: border-box;
}

.contact-container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: linear-gradient(145deg, #1a1a1a, #222);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
}

.contact-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--color-text);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-card-border);
    border-radius: 8px;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236366F1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.form-group select:focus {
    border-color: var(--color-accent-1);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group select option {
    background-color: var(--color-background);
    color: var(--color-text);
    padding: 1rem;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
    padding: 0 0.25rem;
    background: transparent;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:not([value=""]) ~ label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.85rem;
    background: linear-gradient(145deg, #1a1a1a, #222);
    padding: 0 0.5rem;
    color: var(--color-accent-1);
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-accent-1);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.submit-button {
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-2));
    color: var(--color-text);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--color-accent-2), var(--color-accent-1));
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: -1;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

.submit-button:hover::before {
    opacity: 1;
}

.contact-email {
    text-align: center;
    color: var(--color-text);
    font-size: 1rem;
}

.contact-email a {
    color: var(--color-accent-1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email a:hover {
    color: var(--color-accent-2);
}

@media (max-width: 768px) {
    .contact {
        padding: 3rem 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .contact-intro {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* === FOOTER === */
footer {
    background-color: var(--color-bg-dark);
    padding: 3rem 0 1rem;
    position: relative;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    opacity: 0.15;
    z-index: 2;
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a1a1a, #222);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-2));
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-2));
    color: var(--color-text);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 100;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.5);
}

.scroll-top.show {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-content {
        width: 100%;
        padding-top: 80px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-number {
        left: 30px;
    }
    
    .timeline-item {
        align-items: flex-start;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        margin-right: 0;
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }
    
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(17, 17, 17, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 80px 20px;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    }

    /* Testimonials Mobile Styles */
    .testimonials-slider {
        padding: 0 20px;
        overflow: hidden;
    }

    .testimonial {
        min-height: 340px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .testimonial-content {
        min-height: 120px;
        padding: 0 0.5rem;
    }

    .testimonial-content::before,
    .testimonial-content::after {
        display: none;
    }

    .testimonial-author {
        min-height: 70px;
    }

    .slider-arrow {
        display: none;
    }

    nav .container {
        width: 90%;
    }
    
    .logo {
        padding-left: 0;
    }
    
    .hero {
        min-height: 500px;
        height: auto;
        padding: 100px 0 60px;
    }
    
    .about::before {
        top: -30px;
        height: 60px;
    }
    
    .hero-content {
        width: 95%;
        padding-top: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 24px;
        margin-bottom: 24px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links, .social-icons {
        margin-top: 1rem;
    }
    
    .contact-container {
        flex-direction: column;
    }

    .profile-image {
        max-width: 250px;
    }

    .slider-dots {
        margin-top: 2rem;
        margin-bottom: 0.5rem;
        position: static;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 450px;
        padding: 90px 0 40px;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .container {
        width: 95%;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
    }

    .profile-image {
        max-width: 200px;
    }

    /* Additional Testimonials Mobile Styles */
    .testimonials-slider {
        min-height: 450px;
    }

    .testimonial {
        min-height: 380px;
    }

    .testimonial-content {
        min-height: 150px;
    }

    .testimonial-content::before,
    .testimonial-content::after {
        display: none;
    }

    .testimonial-author {
        min-height: 70px;
    }

    .slider-arrow {
        display: none;
    }
}

/* Enhanced Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1000;
    width: 24px;
    height: 20px;
}

.mobile-nav-toggle::before,
.mobile-nav-toggle::after,
.mobile-nav-toggle span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

.mobile-nav-toggle::before {
    top: 0;
}

.mobile-nav-toggle::after {
    bottom: 0;
}

.mobile-nav-toggle span {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-nav-toggle.active::before {
    transform: translateY(9px) rotate(45deg);
}

.mobile-nav-toggle.active::after {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav-toggle.active span {
    opacity: 0;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-bg-dark);
        padding: 80px 20px 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .nav-overlay.active {
        display: block;
    }
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    transition: var(--transition);
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(to bottom, #3b3d54, var(--color-bg-light));
}

.hero-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

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

/* Enhanced Service Cards */
.service-card {
    transform: translateY(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    transform: scale(1);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Enhanced Portfolio Items */
.portfolio-item {
    transform: scale(1);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: scale(1.02);
}

/* Enhanced Form Elements */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-card-border);
    border-radius: 8px;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236366F1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.form-group select:focus {
    border-color: var(--color-accent-1);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group select option {
    background-color: var(--color-background);
    color: var(--color-text);
    padding: 1rem;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
    padding: 0 0.25rem;
    background: transparent;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:not([value=""]) ~ label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.85rem;
    background: linear-gradient(145deg, #1a1a1a, #222);
    padding: 0 0.5rem;
    color: var(--color-accent-1);
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-accent-1);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* --- Select option background fix --- */
.form-group select option {
    background: #23243a !important;
    color: #fff !important;
}
@media (prefers-color-scheme: dark) {
    .form-group select option {
        background: #181a23 !important;
        color: #fff !important;
    }
}
@media (max-width: 768px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }

    .radio-group label {
        padding-left: 2.5rem;
    }

    .radio-group label::before {
        width: 1.4rem;
        height: 1.4rem;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .form-group select option {
        background-color: var(--color-background-dark);
    }

    .form-group input:focus ~ label,
    .form-group input:not(:placeholder-shown) ~ label,
    .form-group textarea:focus ~ label,
    .form-group textarea:not(:placeholder-shown) ~ label,
    .form-group select:focus ~ label,
    .form-group select:not([value=""]) ~ label {
        background-color: var(--color-background-dark);
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

.service-card {
    animation: float 3s ease-in-out infinite;
}

/* --- Modern Loader Spinner --- */
.loader-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}
.loader-modern .spinner {
  width: 64px;
  height: 64px;
  animation: rotate 1.2s linear infinite;
}
.loader-modern .path {
  stroke: url(#loader-gradient);
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

/* SVG Gradient for Loader */
.loader-modern .spinner {
  /* The gradient is defined inline in the SVG via JS or HTML */
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}
@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Remove old loader styles */
/* .loader { ... } */

/* --- TIMELINE MOBILE --- */
@media (max-width: 900px) {
    .timeline {
        padding: 0 10px;
    }
    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        align-items: flex-start;
        padding: 30px 0 30px 50px;
    }
    .timeline-number {
        left: 0;
        right: auto;
        top: 30px;
    }
    .timeline-content {
        max-width: 100%;
        margin-left: 0;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .portfolio-thumbnail.video.playing .play-button {
        display: none !important;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@-webkit-keyframes slide-in-left {
  0% {
    -webkit-transform: translateX(-1000px);
            transform: translateX(-1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slide-in-left {
  0% {
    -webkit-transform: translateX(-1000px);
            transform: translateX(-1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
}

.section-animate {
  opacity: 0;
}

.section-animate.slide-in-left {
  animation: slide-in-left 1s cubic-bezier(0.23, 1, 0.32, 1) both;
  opacity: 1;
}

@-webkit-keyframes wobble-hor-top {
  0%,
  100% {
    -webkit-transform: translateX(0%);
            transform: translateX(0%);
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
  }
  15% {
    -webkit-transform: translateX(-15px) rotate(3deg);
            transform: translateX(-15px) rotate(3deg);
  }
  30% {
    -webkit-transform: translateX(7.5px) rotate(-3deg);
            transform: translateX(7.5px) rotate(-3deg);
  }
  45% {
    -webkit-transform: translateX(-7.5px) rotate(1.8deg);
            transform: translateX(-7.5px) rotate(1.8deg);
  }
  60% {
    -webkit-transform: translateX(4.5px) rotate(-1.2deg);
            transform: translateX(4.5px) rotate(-1.2deg);
  }
  75% {
    -webkit-transform: translateX(-3px) rotate(0.6deg);
            transform: translateX(-3px) rotate(0.6deg);
  }
}
@keyframes wobble-hor-top {
  0%,
  100% {
    -webkit-transform: translateX(0%);
            transform: translateX(0%);
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
  }
  15% {
    -webkit-transform: translateX(-15px) rotate(3deg);
            transform: translateX(-15px) rotate(3deg);
  }
  30% {
    -webkit-transform: translateX(7.5px) rotate(-3deg);
            transform: translateX(7.5px) rotate(-3deg);
  }
  45% {
    -webkit-transform: translateX(-7.5px) rotate(1.8deg);
            transform: translateX(-7.5px) rotate(1.8deg);
  }
  60% {
    -webkit-transform: translateX(4.5px) rotate(-1.2deg);
            transform: translateX(4.5px) rotate(-1.2deg);
  }
  75% {
    -webkit-transform: translateX(-3px) rotate(0.6deg);
            transform: translateX(-3px) rotate(0.6deg);
  }
}

.wobble-hor-top {
  animation: wobble-hor-top 1.1s both;
}

.page-loader:not([style*='display: none']) ~ nav {
  display: none;
}

/* === ENSURE SECTION CONTENT IS ABOVE BACKGROUNDS === */
.about > *, .services > *, .portfolio > *, .process > *, .testimonials > *, .contact > *, footer > * {
    position: relative;
    z-index: 2;
}

/* === RESPONSIVE ADJUSTMENTS FOR BACKGROUNDS === */
@media (max-width: 900px) {
    .about::after, .services::after, .portfolio::before, .process::after, .contact::after {
        width: 220px;
        height: 220px;
    }
    .testimonials::before {
        width: 300px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 32px 0;
        background: #181a23 !important;
    }
    .services::before,
    .services::after {
        display: none !important;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 12px;
        margin-bottom: 12px;
        justify-items: center;
    }
    .service-card {
        max-width: 370px;
        width: 100%;
        padding: 32px 18px 28px 18px;
        border-radius: 28px;
        box-shadow: 0 8px 32px 0 rgba(99,102,241,0.13);
        background: linear-gradient(135deg, rgba(99,102,241,0.10) 0%, rgba(139,92,246,0.10) 100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        animation: none !important;
        border: 1.5px solid rgba(99,102,241,0.10);
    }
    .service-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        margin-bottom: 20px;
        margin-top: 4px;
    }
    .service-card h4 {
        font-size: 1.08rem;
        margin-bottom: 16px;
        text-align: center;
        font-weight: 700;
    }
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: center;
        margin-bottom: 0;
        color: var(--color-text-muted);
    }
}

@media (max-width: 480px) {
    .services {
        padding: 16px 0;
    }
    .service-card {
        max-width: 98vw;
        padding: 18px 6px 16px 6px;
        border-radius: 20px;
    }
    .service-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 10px;
        margin-top: 0;
    }
    .service-card h4 {
        font-size: 0.98rem;
        margin-bottom: 10px;
    }
    .service-card p {
        font-size: 0.91rem;
    }
}

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

.modal-content {
    background-color: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-card-border);
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.modal-content .submit-button {
    margin-top: 1rem;
}

.modal-content a {
    color: var(--color-accent-1);
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

#close-modal-btn, #close-error-modal-btn {
    margin-top: 1.5rem;
}