/* ===== CSS Variables & Base ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #a855f7;
    --accent: #06b6d4;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --radius: 12px;
    --radius-lg: 20px;
}

/* Light Mode Theme */
body.light-mode {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
}

body.light-mode .bg-animation {
    opacity: 0.5;
}

body.light-mode .gradient-sphere {
    opacity: 0.2;
}

body.light-mode .grid-overlay {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

body.light-mode .navbar.scrolled {
    background: rgba(248, 250, 252, 0.9);
}

body.light-mode .mockup-frame {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body.light-mode .mockup-header {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .mockup-url {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .floating-card {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.light-mode .service-card,
body.light-mode .testimonial-content,
body.light-mode .contact-form-wrapper,
body.light-mode .step-content {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .portfolio-overlay {
    background: rgba(255, 255, 255, 0.95);
}

body.light-mode .portfolio-overlay .project-title,
body.light-mode .portfolio-overlay .project-description {
    color: #0f172a;
}

body.light-mode .cta-gradient {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
}

body.light-mode .footer {
    background: #f1f5f9;
}

body.light-mode .btn-secondary {
    background: #f1f5f9;
}

body.light-mode .btn-secondary svg {
    color: #0f172a;
}

body.light-mode .mobile-menu-btn span {
    background: #0f172a;
}

body.light-mode .nav-links {
    background: #ffffff;
}

body.light-mode .text-stroke {
    -webkit-text-stroke-color: #0f172a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== Loader ===== */
.loader-wrapper {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

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

.loader {
    text-align: center;
}

.loader-inner {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto 20px;
}

/* PDL Grid Loader */
.pdl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 100%;
    gap: 8px;
    transition: gap 0.3s ease, transform 0.3s ease;
}

.pdl-cell {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    animation: pdl-pulse 1.2s infinite ease-in-out both;
}

.pdl-cell.cell-1 {
    background: #8B5CF6;
    animation-delay: 0s;
}

.pdl-cell.cell-2 {
    background: #7C3AED;
    animation-delay: 0.15s;
}

.pdl-cell.cell-3 {
    background: #6D28D9;
    animation-delay: 0.45s;
}

.pdl-cell.cell-4 {
    background: #A78BFA;
    animation-delay: 0.3s;
}

@keyframes pdl-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0px transparent;
    }

    50% {
        opacity: 0.4;
        transform: scale(0.85);
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    }
}

.loader-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    animation: pdl-fadeText 2s infinite ease-in-out;
}

@keyframes pdl-fadeText {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

.loader-progress {
    width: 200px;
    height: 3px;
    background: var(--border);
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
}

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

@keyframes spin {
    0% {
        transform: rotate(0);
    }

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

/* ===== Background Animation ===== */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.sphere-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite reverse;
}

.sphere-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.logo-text .highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-secondary svg {
    width: 20px;
    height: 20px;
    color: var(--text);
}

.btn-secondary .icon-moon {
    display: none;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.3s, background 0.3s;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.cta-glow {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.play-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon svg {
    width: 14px;
    height: 14px;
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 100px 40px;
        gap: 1.5rem;
        transition: right 0.3s;
    }

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

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

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

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

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

    .nav-actions .btn-primary {
        display: none;
    }
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 2rem 60px;
    position: relative;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typewriter Effect */
.typewriter {
    min-height: 1.2em;
    display: inline-block;
    position: relative;
}

.typewriter::after {
    content: '|';
    position: absolute;
    right: -5px;
    color: var(--primary);
    animation: blink-cursor 0.8s infinite;
}

@keyframes blink-cursor {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.text-stroke {
    -webkit-text-stroke: 2px var(--text);
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-suffix {
    font-size: 1.5rem;
    color: var(--primary);
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ===== Hero Visual ===== */
.hero-visual {
    position: relative;
}

.hero-mockup {
    position: relative;
    perspective: 1000px;
}

.mockup-frame {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s;
    box-shadow: var(--shadow-glow);
}

.mockup-frame:hover {
    transform: rotateY(0) rotateX(0);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-dots span:nth-child(1) {
    background: #ff5f57;
}

.mockup-dots span:nth-child(2) {
    background: #febc2e;
}

.mockup-dots span:nth-child(3) {
    background: #28c840;
}

.mockup-url {
    flex: 1;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mockup-content {
    padding: 20px;
}

.mockup-nav {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 20px;
}

.mockup-hero {
    margin-bottom: 20px;
}

.mockup-block {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
    border-radius: 8px;
    margin-bottom: 10px;
}

.mockup-block.large {
    height: 60px;
}

.mockup-block.medium {
    height: 20px;
    width: 60%;
}

.mockup-block-group {
    display: flex;
    gap: 10px;
}

.mockup-block.small {
    height: 35px;
    flex: 1;
}

.mockup-cards {
    display: flex;
    gap: 10px;
}

.mockup-card {
    flex: 1;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* ===== Floating Cards ===== */
.floating-elements {
    position: absolute;
    inset: -40px;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: floatCard 5s ease-in-out infinite;
}

.floating-card svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.floating-card span {
    font-size: 0.875rem;
    font-weight: 500;
}

.card-1 {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.card-2 {
    top: 40%;
    right: -30px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 15px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 24px;
    }
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }
}

/* ===== Section Styles ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

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

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

.service-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, var(--bg-card) 50%);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    background: var(--gradient);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-icon {
    width: 70px;
    height: 70px;
    position: relative;
    margin-bottom: 25px;
}

.icon-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient);
    border-radius: 16px;
    opacity: 0.15;
}

.service-icon svg {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 18px;
    color: var(--primary);
}

.service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

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

.service-features {
    list-style: none;
    margin-bottom: 25px;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 12px;
}

.service-link svg {
    width: 18px;
    height: 18px;
}

/* ===== Portfolio ===== */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.portfolio-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.portfolio-image {
    position: relative;
    height: 100%;
    min-height: 300px;
}

.image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.gradient-1 {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

.gradient-2 {
    background: linear-gradient(135deg, #ec4899, #f97316);
}

.gradient-3 {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.gradient-4 {
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

.gradient-5 {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.gradient-6 {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.9);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s;
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.project-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.project-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.project-link svg {
    width: 16px;
    height: 16px;
}

.portfolio-cta {
    text-align: center;
    margin-top: 50px;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item.large {
        grid-column: span 1;
    }
}

/* ===== Process ===== */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    z-index: 1;
}

.step-content {
    width: calc(50% - 60px);
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.3s, box-shadow 0.3s;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.step-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.step-description {
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }

    .process-step,
    .process-step:nth-child(even) {
        flex-direction: row;
    }

    .step-number {
        left: 30px;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .step-content {
        width: calc(100% - 80px);
        margin-left: 80px;
    }
}

/* ===== Testimonials ===== */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    display: none;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s, transform 0.5s;
}

.testimonial-card.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.testimonial-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 50px;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 60px;
    height: 60px;
    opacity: 0.1;
}

.quote-icon svg {
    width: 100%;
    height: 100%;
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.author-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

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

.testimonial-rating {
    margin-left: auto;
    color: #fbbf24;
    font-size: 1.25rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    background: var(--border);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.nav-dot:hover {
    transform: scale(1.2);
}

.nav-dot.active {
    background: var(--primary);
}

/* ===== CTA Section ===== */
.cta-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
}

.cta-content {
    position: relative;
    text-align: center;
}

.cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-input {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.cta-input:focus {
    border-color: var(--primary);
}

.cta-features {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cta-feature svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* ===== Contact ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-description {
    color: var(--text-muted);
    margin: 1.5rem 0;
    line-height: 1.7;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

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

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

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

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

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

.form-group select {
    cursor: pointer;
}

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

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.form-group input:focus~.input-focus-line,
.form-group select:focus~.input-focus-line,
.form-group textarea:focus~.input-focus-line {
    transform: scaleX(1);
}

.submit-btn {
    grid-column: span 2;
    justify-self: start;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group.full-width,
    .submit-btn {
        grid-column: span 1;
    }
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-description {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 350px;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    box-shadow: var(--shadow-glow);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* ===== Cursor ===== */
.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s, width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .cursor-follower {
        display: none;
    }
}

/* ===== Animations ===== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PDL Animated Logo ===== */
.pdl-logo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    width: 32px;
    height: 32px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), gap 0.3s ease;
}

.logo:hover .pdl-logo {
    transform: translateY(-2px);
    gap: 4px;
}

.pdl-sq {
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.pdl-sq.sq-1 {
    background: #8B5CF6;
}

.pdl-sq.sq-2 {
    background: #7C3AED;
    opacity: 0.8;
}

.pdl-sq.sq-3 {
    background: #6D28D9;
    opacity: 0.8;
}

.pdl-sq.sq-4 {
    background: #A78BFA;
}

.logo:hover .pdl-sq.sq-1 {
    transform: translate(-1px, -1px);
}

.logo:hover .pdl-sq.sq-2 {
    transform: translate(1px, -1px);
}

.logo:hover .pdl-sq.sq-3 {
    transform: translate(-1px, 1px);
}

.logo:hover .pdl-sq.sq-4 {
    transform: translate(1px, 1px);
}

/* ===== Deployment CTA Button ===== */
.deployment-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.9), rgba(15, 17, 26, 1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text);
    text-decoration: none;
}

.deployment-cta:hover {
    transform: translateY(-3px);
    border-color: #8B5CF6;
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.5);
}

.deployment-cta:active {
    transform: translateY(1px);
}

/* CTA Grid Background */
.cta-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.15;
    z-index: 1;
    animation: ctaGridScroll 3s linear infinite;
}

@keyframes ctaGridScroll {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 20px 20px;
    }
}

/* CTA Content */
.cta-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* CTA Icon Grid */
.cta-icon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    width: 20px;
    height: 20px;
    transition: gap 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s ease;
}

.cta-sq {
    background-color: #8B5CF6;
    border-radius: 2px;
    opacity: 0.9;
    transition: transform 0.4s ease, background-color 0.4s ease, border-radius 0.4s ease;
}

.cta-sq:nth-child(2) {
    background-color: #7C3AED;
}

.cta-sq:nth-child(3) {
    background-color: #6D28D9;
}

.cta-sq:nth-child(4) {
    background-color: #A78BFA;
}

.deployment-cta:hover .cta-icon-grid {
    gap: 5px;
    transform: rotate(90deg);
}

.deployment-cta:hover .cta-sq {
    border-radius: 50%;
    transform: scale(0.85);
}

.deployment-cta:hover .cta-sq:nth-child(1) {
    transform: translate(-2px, -2px) scale(0.85);
}

.deployment-cta:hover .cta-sq:nth-child(2) {
    transform: translate(2px, -2px) scale(0.85);
}

.deployment-cta:hover .cta-sq:nth-child(3) {
    transform: translate(-2px, 2px) scale(0.85);
}

.deployment-cta:hover .cta-sq:nth-child(4) {
    transform: translate(2px, 2px) scale(0.85);
}

/* CTA Label */
.cta-label {
    z-index: 2;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.cta-label strong {
    color: #8B5CF6;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.deployment-cta:hover .cta-label strong {
    color: #fff;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

/* CTA Spotlight */
.cta-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(139, 92, 246, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    mix-blend-mode: screen;
}

.deployment-cta:hover .cta-spotlight {
    opacity: 1;
}

/* Light mode adjustments for PDL components */
body.light-mode .pdl-logo,
body.light-mode .cta-icon-grid {
    filter: brightness(0.9);
}

body.light-mode .deployment-cta {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 1));
    border-color: rgba(139, 92, 246, 0.2);
}

body.light-mode .deployment-cta:hover {
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.3);
}

body.light-mode .cta-label {
    color: #0f172a;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .pdl-cell,
    .pdl-sq,
    .cta-sq,
    .cta-icon-grid,
    .cta-grid-overlay {
        animation: none !important;
        transition: none !important;
    }

    .deployment-cta:hover .cta-icon-grid {
        transform: none;
    }
}