:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-tech: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 55%),
        radial-gradient(circle at bottom left, rgba(129, 140, 248, 0.14), transparent 55%),
        #f8fafc;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(120deg,
            rgba(148, 163, 184, 0.18) 1px,
            transparent 1px);
    background-size: 22px 22px;
    mix-blend-mode: soft-light;
    opacity: 0.3;
    pointer-events: none;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light-gray);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-brand i {
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.35), transparent 55%),
        radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.5), transparent 55%),
        linear-gradient(135deg, #0f172a 0%, #312e81 40%, #4c1d95 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 10% 0%, rgba(244, 244, 245, 0.12), transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(196, 181, 253, 0.25), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-tech);
    opacity: 0.9;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 720px;
    margin: 0 auto 3rem;
    padding: 2rem 1.25rem;
    text-shadow: 0 1px 4px rgba(15, 23, 42, 0.9);
}

.hero-monolith-container {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 400px;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
    mix-blend-mode: screen;
}

.hero-monolith-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.4));
    animation: floatElement 20s ease-in-out infinite;
}

@media (max-width: 1200px) {
    .hero-monolith-container {
        width: 300px;
        right: 0;
        opacity: 0.4;
    }
}

@media (max-width: 768px) {
    .hero-monolith-container {
        display: none;
    }
}

.morphing-shape {
    position: absolute;
    width: 260px;
    height: 260px;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.65), rgba(236, 72, 153, 0.55));
    filter: blur(1px);
    opacity: 0.4;
    border-radius: 40% 60% 65% 35% / 45% 35% 65% 55%;
    max-width: 100%;
    /* Prevent shape overflow */
    animation: morphShape 18s ease-in-out infinite alternate;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    color: rgba(248, 250, 252, 0.9);
    animation: floatElement 16s ease-in-out infinite;
    pointer-events: none;
}

@keyframes morphShape {
    0% {
        border-radius: 40% 60% 65% 35% / 45% 35% 65% 55%;
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }

    50% {
        border-radius: 60% 40% 35% 65% / 55% 65% 35% 45%;
        transform: translate3d(10px, -25px, 0) rotate(8deg) scale(1.05);
    }

    100% {
        border-radius: 55% 45% 60% 40% / 40% 60% 40% 60%;
        transform: translate3d(-15px, 15px, 0) rotate(-6deg) scale(1.02);
    }
}

@keyframes floatElement {
    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-8px, -14px, 0);
    }

    100% {
        transform: translate3d(6px, 10px, 0);
    }
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 12px rgba(15, 23, 42, 0.9);
}

.gradient-text {
    color: #f9fafb;
    -webkit-text-fill-color: #f9fafb;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #e5e7eb;
    opacity: 0.98;
    text-shadow: 0 1px 6px rgba(15, 23, 42, 0.75);
}

.nav-link-portal {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.nav-link-portal:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.23);
    background: var(--primary-dark);
    color: var(--white);
}

.nav-link-portal::after {
    display: none;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    white-space: nowrap;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: #f8fafc;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Section Styling */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background:
        radial-gradient(circle at top left, rgba(129, 140, 248, 0.12), transparent 55%),
        radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.12), transparent 55%),
        var(--light-gray);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

.feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--gray);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 400px;
    height: 300px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.image-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Portfolio Section */
.portfolio {
    background:
        radial-gradient(circle at top center, rgba(56, 189, 248, 0.14), transparent 55%),
        radial-gradient(circle at bottom center, rgba(129, 140, 248, 0.16), transparent 55%),
        var(--light-gray);
}

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

.portfolio-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.portfolio-image i {
    font-size: 3rem;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.portfolio-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

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

.portfolio-tech span {
    background: var(--light-gray);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

.contact-method h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-method p {
    color: var(--gray);
}

.contact-form {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

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

/* Footer */
.footer {
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.22), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.24), transparent 55%),
        var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    margin: 1rem 0;
    color: var(--light-gray);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--dark-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

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

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-column a {
    display: block;
    color: var(--light-gray);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--dark-light);
    padding-top: 2rem;
    text-align: center;
    color: var(--light-gray);
}

/* Responsive Design */
@media (min-width: 1100px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 2rem;
    }

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

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

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

    .container {
        padding: 0 15px;
    }
}

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

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

    .service-card {
        padding: 2rem;
    }

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.service-card,
.portfolio-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Advanced Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Parallax Effects */
.parallax-element {
    will-change: transform;
}

/* Enhanced Hero Particles */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.3)"><animate attributeName="opacity" values="0;1;0" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.2)"><animate attributeName="opacity" values="0;1;0" dur="4s" repeatCount="indefinite" begin="1s"/></circle><circle cx="60" cy="70" r="1" fill="rgba(255,255,255,0.4)"><animate attributeName="opacity" values="0;1;0" dur="2s" repeatCount="indefinite" begin="2s"/></circle></svg>');
    animation: twinkle 6s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Floating Animation for Service Cards */
.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(102, 102, 238, 0.25);
    border-color: var(--primary);
}

.service-card:nth-child(even):hover {
    transform: translateY(-15px) scale(1.02) rotate(1deg);
}

.service-card:nth-child(odd):hover {
    transform: translateY(-15px) scale(1.02) rotate(-1deg);
}

/* Glowing Service Icons */
.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.4s ease;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-icon::before {
    opacity: 0.7;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

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

    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.2) rotate(10deg);
}

/* Smooth Page Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Enhanced Micro-interactions */
.service-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.2);
}

.service-card:active {
    transform: translateY(-10px) scale(0.98);
}

/* Portfolio Item Enhancements */
.portfolio-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(59, 130, 246, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 15px;
}

.portfolio-overlay h4 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

/* Enhanced Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

/* Navbar Enhanced Animations */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Form Field Enhancements */
.form-group input,
.form-group textarea {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Enhanced Loading States */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Stagger Animation for Lists */
.service-grid .service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-grid .service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-grid .service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-grid .service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-grid .service-card:nth-child(5) {
    animation-delay: 0.5s;
}

.service-grid .service-card:nth-child(6) {
    animation-delay: 0.6s;
}

.portfolio-grid .portfolio-item:nth-child(1) {
    animation-delay: 0.1s;
}

.portfolio-grid .portfolio-item:nth-child(2) {
    animation-delay: 0.2s;
}

.portfolio-grid .portfolio-item:nth-child(3) {
    animation-delay: 0.3s;
}

.portfolio-grid .portfolio-item:nth-child(4) {
    animation-delay: 0.4s;
}

.portfolio-grid .portfolio-item:nth-child(5) {
    animation-delay: 0.5s;
}

.portfolio-grid .portfolio-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* Text Selection Styling */
::selection {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary);
}

::-moz-selection {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary);
}

/* Enhanced Focus States */
*:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}

/* Page Load Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease;
}

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

.loader-content {
    text-align: center;
    color: white;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.loader-text {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Intersection Observer Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Modal
/* Generator Modal - Enterprise Grade */
.generator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.generator-modal.active {
    opacity: 1;
    pointer-events: all;
}

.generator-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1;
    /* Explicit z-index */
}

.generator-content {
    position: relative;
    background: #0f1115;
    background: linear-gradient(145deg, #13161c, #0b0d10);
    width: 90%;
    max-width: 900px;
    height: auto;
    /* Allow growth */
    min-height: 600px;
    max-height: 90vh;
    /* Prevent screen overflow */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    z-index: 10;
    /* Higher than overlay */
    overflow-y: auto;
    /* Allow scrolling if content is tall */
    overflow-x: hidden;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    color: #fff;
}

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

.generator-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 20;
    transition: color 0.3s;
}

.generator-close:hover {
    color: #fff;
}

/* Steps Common */
.generator-step {
    display: none;
    flex-direction: column;
    height: 100%;
    padding: 3rem;
    animation: slideUpFade 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.generator-step.active {
    display: flex;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.step-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Step 1: Path Selection */
.path-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: auto;
    margin-bottom: auto;
}

.path-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.path-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

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

.path-card i {
    font-size: 2.5rem;
    color: #3b82f6;
    /* Enterprise Blue */
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
}

.path-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #fff;
}

.path-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Step 2: Form */
#generatorForm {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#generatorForm .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#generatorForm label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
    margin-left: 0.25rem;
}

#generatorForm input,
#generatorForm select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    color: #fff;
    transition: all 0.2s;
    outline: none;
}

#generatorForm input:focus,
#generatorForm select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: rgba(0, 0, 0, 0.4);
}

#generatorForm button.btn-primary {
    margin-top: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    font-weight: 600;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

#generatorForm button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Step 3: Terminal */
.terminal-window {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.terminal-header {
    background: #161b22;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30363d;
}

.terminal-header .dot {
    width: 10px;
    height: 10px;
}

.terminal-header .title {
    color: #8b949e;
    font-size: 0.85rem;
    font-weight: 500;
}

.terminal-body {
    padding: 1.5rem;
    color: #fff;
    overflow-y: auto;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.7;
}

.terminal-body .line {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: flex-start;
}

.terminal-body .line::before {
    content: '→';
    margin-right: 0.75rem;
    color: #3b82f6;
    font-weight: bold;
}

/* Step 4: Preview */
.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-header h2 {
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preview-header h2 i {
    color: #10b981;
}

.preview-actions .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 6px;
}

.preview-frame-container {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .path-selection {
        grid-template-columns: 1fr;
    }

    .generator-content {
        height: 100vh;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
}

/* Enhanced Modal Animations */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    transform: rotate(90deg);
}

/* Booking Modal Styles */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.booking-modal.active {
    opacity: 1;
    visibility: visible;
}

.booking-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    cursor: pointer;
}

.booking-modal-content {
    background: var(--white);
    border-radius: 24px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    position: relative;
    z-index: 10002;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

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

.booking-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.booking-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.booking-modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.booking-modal-header h2::before {
    content: '📅';
    font-size: 1.5rem;
}

.booking-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.booking-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.booking-modal-body {
    padding: 0;
    background: var(--white);
}

.booking-form-container {
    width: 100%;
    min-height: 600px;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.booking-form-container iframe {
    border-radius: 0 0 24px 24px;
    background: var(--white);
}

/* Navigation Booking Button */
.nav-booking-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.nav-booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.nav-booking-btn:active {
    transform: translateY(0);
}

/* Booking Trigger Buttons */
.booking-trigger {
    position: relative;
    overflow: hidden;
}

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

.booking-trigger:hover::after {
    width: 300px;
    height: 300px;
}

.booking-trigger i {
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.booking-trigger:hover i {
    transform: scale(1.1);
}

/* Responsive Design for Booking Modal */
@media (max-width: 768px) {
    .booking-modal-content {
        width: 98%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .booking-modal-header {
        padding: 1.5rem;
    }

    .booking-modal-header h2 {
        font-size: 1.5rem;
    }

    .booking-form-container {
        min-height: 500px;
    }

    .booking-form-container iframe {
        height: 500px !important;
        border-radius: 0 0 16px 16px;
    }

    .nav-booking-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .nav-booking-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .booking-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: 100vh;
    }

    .booking-form-container iframe {
        border-radius: 0;
    }
}

.modal-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: modalIconFloat 3s ease-in-out infinite;
}

@keyframes modalIconFloat {

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

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

.modal-icon i {
    font-size: 3rem;
    color: var(--white);
}

/* Tech Stack Styling */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

/* Disney-Style Animated Intro */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: introFadeOut 1s ease-in-out 8s forwards;
}

.intro-overlay.hidden {
    display: none;
}

.intro-background {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Animated Stars Background */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    animation: starTwinkle 2s ease-in-out var(--delay) infinite alternate,
        starGlow 3s ease-in-out var(--delay) infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes starTwinkle {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }

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

@keyframes starGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 30px rgba(138, 43, 226, 0.5);
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
}

/* Main Intro Content */
.intro-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 800px;
}

/* Light Beam Effect */
.light-beam {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 400px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.8) 30%,
            rgba(138, 43, 226, 0.6) 70%,
            rgba(255, 255, 255, 0) 100%);
    animation: lightBeamGlow 3s ease-in-out 1s infinite alternate;
    filter: blur(1px);
}

@keyframes lightBeamGlow {
    0% {
        opacity: 0.3;
        width: 2px;
    }

    100% {
        opacity: 1;
        width: 8px;
    }
}

/* Digital Castle Structure */
.digital-castle {
    position: relative;
    margin: 0 auto 60px;
    width: 200px;
    height: 150px;
    animation: castleRise 2s ease-out 0.5s both;
}

.castle-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 40px;
    background: linear-gradient(45deg, #4a90e2, #7b68ee);
    border-radius: 5px;
    animation: castleGlow 3s ease-in-out 2s infinite alternate;
}

.castle-tower {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 80px;
    background: linear-gradient(45deg, #6a5acd, #8a2be2);
    border-radius: 5px 5px 0 0;
    animation: castleGlow 3s ease-in-out 2.5s infinite alternate;
}

.castle-peak {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 30px solid #9370db;
    animation: castleGlow 3s ease-in-out 3s infinite alternate;
}

.castle-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 200px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
    animation: castleAura 4s ease-in-out 2s infinite alternate;
    border-radius: 50%;
}

@keyframes castleRise {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.5);
    }

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

@keyframes castleGlow {
    0% {
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
    }

    100% {
        box-shadow: 0 0 40px rgba(138, 43, 226, 1), 0 0 60px rgba(74, 144, 226, 0.5);
    }
}

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

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

/* Particle Trail Effects */
.particle-trail {
    position: absolute;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(138, 43, 226, 0.8) 50%,
            transparent 100%);
    border-radius: 2px;
    animation: particleTrail 3s ease-in-out infinite;
}

.trail-1 {
    top: 30%;
    left: 10%;
    animation-delay: 2s;
    transform: rotate(15deg);
}

.trail-2 {
    top: 60%;
    right: 10%;
    animation-delay: 2.5s;
    transform: rotate(-15deg);
}

.trail-3 {
    top: 45%;
    left: 20%;
    animation-delay: 3s;
    transform: rotate(45deg);
}

@keyframes particleTrail {
    0% {
        opacity: 0;
        transform: translateX(-100px) scale(0.5);
    }

    50% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(100px) scale(0.5);
    }
}

/* Main Logo Text */
.intro-logo {
    margin: 40px 0;
    font-family: 'Inter', sans-serif;
}

.logo-line {
    display: block;
    margin: 10px 0;
}

.logo-line-1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.logo-line-2 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(90deg);
    background: linear-gradient(45deg, #fff, #8a2be2, #4a90e2);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: letterReveal 0.8s ease-out var(--delay) both,
        textShimmer 3s ease-in-out var(--delay) infinite alternate;
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(90deg) scale(0.5);
    }

    50% {
        opacity: 0.7;
        transform: translateY(-10px) rotateX(45deg) scale(1.1);
    }

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

@keyframes textShimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* Tagline */
.intro-tagline {
    margin-top: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
    opacity: 0;
    animation: taglineReveal 1s ease-out 6s both;
}

@keyframes taglineReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Magic Sparkles */
.sparkles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    left: var(--x);
    top: var(--y);
    opacity: 0;
    animation: sparkleEffect 2s ease-in-out var(--delay) both;
}

.sparkle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    border-radius: 2px;
}

.sparkle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    width: 8px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    border-radius: 2px;
}

@keyframes sparkleEffect {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }

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

/* Intro Fade Out */
@keyframes introFadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Responsive Design for Intro */
@media (max-width: 768px) {
    .logo-line-1 {
        font-size: 2.5rem;
    }

    .logo-line-2 {
        font-size: 2rem;
    }

    .intro-tagline {
        font-size: 1rem;
        padding: 0 20px;
    }

    .digital-castle {
        width: 150px;
        height: 120px;
    }

    .castle-base {
        width: 90px;
        height: 30px;
    }

    .castle-tower {
        width: 45px;
        height: 60px;
        bottom: 25px;
    }

    .castle-peak {
        bottom: 80px;
        border-left-width: 15px;
        border-right-width: 15px;
        border-bottom-width: 20px;
    }
}

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

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

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

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

    .container {
        padding: 0 15px;
    }
}

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

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

    .service-card {
        padding: 2rem;
    }

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.service-card,
.portfolio-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Advanced Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Parallax Effects */
.parallax-element {
    will-change: transform;
}

/* Enhanced Hero Particles */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.3)"><animate attributeName="opacity" values="0;1;0" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.2)"><animate attributeName="opacity" values="0;1;0" dur="4s" repeatCount="indefinite" begin="1s"/></circle><circle cx="60" cy="70" r="1" fill="rgba(255,255,255,0.4)"><animate attributeName="opacity" values="0;1;0" dur="2s" repeatCount="indefinite" begin="2s"/></circle></svg>');
    animation: twinkle 6s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Floating Animation for Service Cards */
.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(102, 102, 238, 0.25);
    border-color: var(--primary);
}

.service-card:nth-child(even):hover {
    transform: translateY(-15px) scale(1.02) rotate(1deg);
}

.service-card:nth-child(odd):hover {
    transform: translateY(-15px) scale(1.02) rotate(-1deg);
}

/* Glowing Service Icons */
.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.4s ease;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-icon::before {
    opacity: 0.7;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

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

    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.2) rotate(10deg);
}

/* Smooth Page Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Enhanced Micro-interactions */
.service-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.2);
}

.service-card:active {
    transform: translateY(-10px) scale(0.98);
}

/* Portfolio Item Enhancements */
.portfolio-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(59, 130, 246, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 15px;
}

.portfolio-overlay h4 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

/* Enhanced Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

/* Navbar Enhanced Animations */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Form Field Enhancements */
.form-group input,
.form-group textarea {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Enhanced Loading States */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Stagger Animation for Lists */
.service-grid .service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-grid .service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-grid .service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-grid .service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-grid .service-card:nth-child(5) {
    animation-delay: 0.5s;
}

.service-grid .service-card:nth-child(6) {
    animation-delay: 0.6s;
}

.portfolio-grid .portfolio-item:nth-child(1) {
    animation-delay: 0.1s;
}

.portfolio-grid .portfolio-item:nth-child(2) {
    animation-delay: 0.2s;
}

.portfolio-grid .portfolio-item:nth-child(3) {
    animation-delay: 0.3s;
}

.portfolio-grid .portfolio-item:nth-child(4) {
    animation-delay: 0.4s;
}

.portfolio-grid .portfolio-item:nth-child(5) {
    animation-delay: 0.5s;
}

.portfolio-grid .portfolio-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* Text Selection Styling */
::selection {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary);
}

::-moz-selection {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary);
}

/* Enhanced Focus States */
*:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}

/* Page Load Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease;
}

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

.loader-content {
    text-align: center;
    color: white;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.loader-text {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Intersection Observer Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Modal Animations */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    transform: rotate(90deg);
}

/* Engine Room Section */
.engine-room {
    background: var(--dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.engine-feature {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    transition: var(--transition);
}

.engine-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.engine-feature h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.engine-feature .feature-subtitle {
    display: block;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.engine-feature p {
    color: var(--light-gray);
    margin-bottom: 1rem;
}

.engine-result {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: var(--secondary);
}

/* Comparison Section */
.comparison {
    background: var(--white);
}

.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

@media (max-width: 768px) {
    .comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        margin: 0 -1rem;
        /* Negative margin to comfortably scroll edge-to-edge on small screens */
        padding: 0 1rem;
        width: calc(100% + 2rem);
    }

    .comparison-table {
        min-width: 600px;
        /* Force scroll */
    }
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
    vertical-align: middle;
}

.comparison-table th:nth-child(1) {
    width: 20%;
}

.comparison-table th:nth-child(2) {
    width: 40%;
}

.comparison-table th:nth-child(3) {
    width: 40%;
}

.comparison-table th {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
    background: rgba(99, 102, 241, 0.05);
    /* Highlight KingKong column */
    border-color: rgba(99, 102, 241, 0.2);
}

.comparison-table th:nth-child(3) {
    color: var(--primary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-check {
    color: var(--secondary);
    font-weight: bold;
}

/* Closer Section */
.closer {
    background: var(--gradient-tech);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.closer-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.closer h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.closer p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

/* Pricing Section - Apple Style */
.pricing {
    background: #000;
    /* Apple-style dark background */
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    color: #f5f5f7;
}

.pricing .section-title {
    color: #f5f5f7;
    font-weight: 600;
}

.pricing .section-subtitle {
    color: #86868b;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* The "Why Not $8.99" Bar */
.value-proposition-bar {
    background: rgba(21, 21, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.value-prop-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.value-prop-content p {
    color: #a1a1aa;
    font-size: 1.1rem;
    line-height: 1.6;
}

.value-prop-content strong {
    color: #fff;
    font-weight: 500;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: #151516;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
    background: #1c1c1e;
    border: 1px solid #2c2c2e;
    order: -1;
}

@media (min-width: 900px) {
    .pricing-card.featured {
        transform: scale(1.05);
        /* Slight lift for emphasized card */
        z-index: 10;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    }

    .pricing-card.featured:hover {
        transform: scale(1.08);
    }
}

.popular-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
    border-bottom-left-radius: 99px;
    /* Reset override */
    border-top-right-radius: 99px;
}

.savings-badge {
    display: inline-block;
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #f5f5f7;
}

.price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    color: #f5f5f7;
    margin-top: 1rem;
}

.currency {
    font-size: 1.25rem;
    font-weight: 500;
    margin-right: 4px;
    color: #a1a1aa;
}

.amount {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.period {
    color: #86868b;
    margin-left: 0.5rem;
    font-size: 1rem;
}

.retainer-price {
    margin-top: 0.75rem;
    color: #a1a1aa;
    font-weight: 400;
    font-size: 1rem;
}

.pricing-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-desc {
    color: #a1a1aa;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    min-height: 60px;
    line-height: 1.5;
    text-align: center;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex: 1;
    text-align: left;
}

.pricing-features li {
    padding: 0.6rem 0;
    color: #d1d1d6;
    display: flex;
    align-items: center;
}

/* Align checkmark vertically */
/* Impact Stats Section - Dark Premium */
.impact-stats {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    background: #000;
    color: #f5f5f7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-stats .section-title {
    color: #f5f5f7 !important;
    /* Force override */
}

.impact-stats .section-subtitle {
    color: #a1a1aa !important;
    /* Force override */
}

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

.stat-card {
    background: #151516;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: #1c1c1e;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 1.5rem;
    background: rgba(37, 99, 235, 0.1);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 20px;
    /* Squircle */
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(37, 99, 235, 0.2);
}

.stat-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5f5f7;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.stat-card p {
    font-size: 1rem;
    color: #a1a1aa;
    line-height: 1.6;
}

.stat-card strong {
    color: #fff;
    font-weight: 600;
}

.pricing-features li i {
    color: #2563eb;
    /* Apple Blue */
    font-size: 0.9rem;
}

.pricing-features li i.fa-lock {
    color: #2ecc71;
    /* Green lock for security */
}

/* Button Refinements for Dark Mode */
.pricing-card button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.pricing-card .btn-primary {
    background: #0071e3;
    border: none;
    color: white;
}

.pricing-card .btn-primary:hover {
    background: #0077ed;
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.4);
}

.pricing-card .btn-outline {
    border-color: #424245;
    color: #fff;
}

.pricing-card .btn-outline:hover {
    background: #424245;
    border-color: #424245;
}

.pricing-bundle-info {
    margin-top: 5rem;
    text-align: center;
    background: #1c1c1e;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #2c2c2e;
}

.pricing-bundle-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #f5f5f7;
}

.pricing-bundle-info>p {
    color: #a1a1aa;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.bundle-item {
    padding: 1.5rem;
    background: #151516;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid #2c2c2e;
}

.bundle-item:hover {
    background: #1c1c1e;
    transform: translateY(-5px);
    border-color: #3a3a3c;
}

.bundle-item i {
    font-size: 2rem;
    color: #0071e3;
    margin-bottom: 1rem;
}

.bundle-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f5f5f7;
}

.bundle-item p {
    color: #86868b;
    font-size: 0.9rem;
    line-height: 1.5;
}