:root {
    /* Color Palette - Official DevUX Brand Colors */
    --true-cobalt: #012f8c;
    --sapphire: #2758b8;
    --aquamarine: #60e7c3;
    --sky-aqua: #07deff;
    --ghost-white: #f7f8fd;

    /* Main Colors */
    --primary: #2758b8;
    /* Sapphire - Main brand color */
    --secondary: #60e7c3;
    /* Aquamarine - Fresh accent */
    --primary-dark: #012f8c;
    /* True Cobalt - Deep blue */
    --primary-light: #07deff;
    /* Sky Aqua - Light aqua */

    --accent: #60e7c3;
    /* Aquamarine for highlights */

    /* Backgrounds */
    --bg-white: #FFFFFF;
    --bg-soft: #f7f8fd;
    /* Ghost White - Very subtle */
    --bg-gray: #EEF2FB;
    /* Lighter ghost white variant */
    --bg-dark: #012f8c;
    /* Darker true cobalt for dark sections */

    /* Text Colors */
    --text-main: #2758b8;
    /* Sapphire for main text */
    --text-muted: #5a7aa8;
    /* Muted blue */
    --text-light: #8fa9c9;
    /* Light blue-gray */
    --text-white: #FFFFFF;

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.95);
    --glass-stroke: rgba(39, 88, 184, 0.2);

    /* Gradients */
    --grad-linear: linear-gradient(135deg, var(--sapphire), var(--aquamarine));
    --grad-surface: linear-gradient(180deg, #FFFFFF 0%, #f7f8fd 100%);
    --grad-text: linear-gradient(90deg, var(--sapphire) 0%, var(--aquamarine) 100%);
    --grad-glow: linear-gradient(90deg, var(--sky-aqua), var(--aquamarine));
    --grad-hero: linear-gradient(135deg, var(--true-cobalt), var(--sapphire), var(--sky-aqua));

    /* Layered Shadows */
    --shadow-sm: 0 2px 4px rgba(39, 88, 184, 0.05);
    --shadow-md: 0 8px 16px -4px rgba(39, 88, 184, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(39, 88, 184, 0.1), 0 10px 10px -5px rgba(39, 88, 184, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(39, 88, 184, 0.25);

    /* Specific Button Glow */
    --shadow-btn-glow: -5px 5px 20px rgba(39, 88, 184, 0.3), 5px 5px 20px rgba(96, 231, 195, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* Typography Utilities */
.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(39, 88, 184, 0.1);
    border-radius: var(--radius-full);
    border: 1px solid rgba(39, 88, 184, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    /* Slightly less rounded than full pill */
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(39, 88, 184, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--secondary);
    box-shadow: 0 15px 25px -5px rgba(96, 231, 195, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--bg-gray);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-soft);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1200px;
    height: 72px;
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    z-index: 1000;
    transition: var(--transition);
    padding: 0 1.5rem;
}

.navbar.scrolled {
    top: 1rem;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
}

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

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    color: var(--text-main);
}

.logo-text span {
    color: var(--aquamarine);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.btn-nav {
    background: var(--primary-dark);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-nav:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(96, 231, 195, 0.4);
}

.menu-toggle {
    display: none;
    font-size: 1.25rem;
    color: var(--text-main);
}

/* Hero Section - Centered Redesign */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: var(--bg-white);
    overflow: hidden;
}

.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
}

.hero-content-center {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin: 0 auto 2rem;
    max-width: 600px;
    line-height: 1.7;
}

/* Keywords Row */
.hero-keywords {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-keywords .dot {
    color: var(--primary);
    font-weight: bold;
}

/* Custom Glow Button */
.btn-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    background: var(--primary-dark);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border: 2px solid var(--primary-dark);
    box-shadow: 0 10px 25px rgba(39, 88, 184, 0.4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-glow:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(96, 231, 195, 0.5);
}

/* Floating Shapes (Mimicking 3D elements) */
.floating-shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

/* Cloud Shapes (Replacing Geometric Shapes) */
.shape-cloud {
    background: linear-gradient(180deg, #FFFFFF 0%, #E0F7FF 100%);
    border-radius: 100px;
    position: absolute;
    z-index: 1;
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 1),
        0 20px 40px rgba(7, 222, 255, 0.3),
        0 10px 20px rgba(10, 25, 47, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.shape-cloud::after,
.shape-cloud::before {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
    z-index: -1;
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 1),
        0 -5px 10px rgba(7, 222, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Cloud 1 - Top Left */
.cloud-1 {
    width: 140px;
    height: 50px;
    top: 15%;
    left: -5%;
    animation: float-cloud 8s ease-in-out infinite;
}

.cloud-1::after {
    width: 60px;
    height: 60px;
    top: -35px;
    left: 25px;
}

.cloud-1::before {
    width: 45px;
    height: 45px;
    top: -20px;
    right: 25px;
}

/* Cloud 2 - Top Right (Small) */
.cloud-2 {
    width: 120px;
    height: 45px;
    top: 20%;
    right: 0%;
    opacity: 0.9;
    animation: float-cloud 11s ease-in-out infinite reverse;
}

.cloud-2::after {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 20px;
}

/* Cloud 3 - Bottom Left */
.cloud-3 {
    width: 180px;
    height: 65px;
    bottom: 5%;
    left: 10%;
    opacity: 0.8;
    animation: float-cloud 10s ease-in-out infinite 1s;
}

.cloud-3::after {
    width: 80px;
    height: 80px;
    top: -45px;
    left: 30px;
}

.cloud-3::before {
    width: 60px;
    height: 60px;
    top: -25px;
    right: 30px;
}

/* Rocket Container */
.shape-rocket {
    top: 30%;
    right: -15%;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float-delayed 9s ease-in-out infinite;
}

.rocket-mini {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(7, 222, 255, 0.2));
    transform: rotate(-15deg);
}

/* Animations */
@keyframes float-cloud {

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

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

/* Client Logos Bottom */
.hero-clients-bottom {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    opacity: 0.4;
    flex-wrap: wrap;
    z-index: 2;
}

.hero-clients-bottom i {
    font-size: 2rem;
    color: var(--primary-dark);
    transition: var(--transition);
}

.hero-clients-bottom i:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateY(-5px);
}

/* Animations */
@keyframes float-slow {

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

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

@keyframes float-delayed {

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

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

@keyframes float-reverse {

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

    50% {
        transform: translateY(15px) rotate(35deg);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .cloud-1 {
        width: 100px;
        height: 40px;
        left: 0;
        top: 10%;
    }

    .cloud-2 {
        display: none;
    }

    .cloud-3 {
        width: 120px;
        height: 50px;
        bottom: 10%;
        left: 5%;
    }

    .shape-rocket {
        width: 200px;
        height: 200px;
        right: 0;
        top: 20%;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

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

    .shape-cloud {
        opacity: 0.3;
    }

    /* Cloud 2 - Make smaller for mobile */
    .cloud-2 {
        width: 80px;
        height: 30px;
        top: 5%;
        right: 5%;
        opacity: 0.2;
    }

    /* Position rocket as decorative background element for mobile */
    .shape-rocket {
        position: absolute;
        top: 35%;
        right: -20px;
        width: 140px;
        height: 140px;
        margin-bottom: 0;
        opacity: 1;
        z-index: -1;
        pointer-events: none;
    }

    .rocket-mini {
        transform: rotate(-15deg);
    }
}

/* Services Section - Redesigned */
.services {
    padding: 140px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 50%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

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

.section-header h2 {
    font-size: 3rem;
    margin-top: 1rem;
}

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

/* Modern Service Cards */
.service-card-modern {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid transparent;
    cursor: pointer;
}

/* Gradient Border Effect */
.service-card-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Card Glow Effect */
.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(7, 222, 255, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    filter: blur(40px);
}

.service-card-modern:hover .card-glow {
    opacity: 1;
}

/* Modern Icon Container */
.service-icon-modern {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(7, 222, 255, 0.3);
}

.service-card-modern:hover .service-icon-modern {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(7, 222, 255, 0.5);
}

.service-icon-modern i {
    position: relative;
    z-index: 2;
    animation: icon-float 3s ease-in-out infinite;
}

/* Orbiting Ring Around Icon */
.icon-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    animation: orbit-rotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card-modern:hover .icon-orbit {
    opacity: 1;
}

@keyframes orbit-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes icon-float {

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

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

/* Card Content */
.service-card-modern h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-weight: 700;
    transition: color 0.3s ease;
}

.service-card-modern:hover h3 {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card-modern p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Service Badge */
.service-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(7, 222, 255, 0.1);
    border: 1px solid rgba(7, 222, 255, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-badge {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(7, 222, 255, 0.4);
}

/* Animated Background Grid */
.services-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(7, 222, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 222, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    opacity: 0.5;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }

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

/* Hover Magnetic Effect */
.service-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(7, 222, 255, 0.2),
        0 10px 20px rgba(39, 88, 184, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card-modern {
        padding: 2.5rem 2rem;
    }
}

/* Legacy service-card styles (keeping for compatibility) */
.service-card {
    background: white;
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--glass-stroke);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-soft);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--text-main);
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Tech Stack */
.tech-stack {
    padding: 120px 0;
    background: white;
}

.stack-slider {
    margin-top: 4rem;
}

.stack-track {
    display: flex;
    gap: 5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    filter: grayscale(1);
    opacity: 0.3;
    transition: var(--transition);
}

.tech-item i {
    font-size: 3.5rem;
    color: var(--text-main);
}

.tech-item span {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.tech-item:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-8px);
}

.tech-item:hover i {
    color: var(--primary);
}

/* Process Flow Redesign */
.process {
    padding: 140px 0;
    background: var(--bg-soft);
    overflow: hidden;
}

.process-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 6rem;
    gap: 2rem;
}

/* Connecting Line */
.process-stepper::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bg-gray);
    z-index: 0;
    border-radius: 4px;
}

.step {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: var(--transition);
}

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

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: white;
    border: 4px solid var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-muted);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
    z-index: 2;
}

/* Active/Hover State for Steps */
.step:hover .step-number {
    background: var(--secondary);
    color: white;
    border-color: var(--primary-glow);
    box-shadow: 0 0 0 8px var(--primary-glow);
    transform: scale(1.1);
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-weight: 700;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive Process */
@media (max-width: 992px) {
    .process-stepper {
        flex-direction: column;
        gap: 3rem;
        padding-left: 1rem;
    }

    .process-stepper::before {
        width: 4px;
        height: 100%;
        left: 50px;
        /* Center with circle (1rem padding + 40px half width) */
        top: 0;
    }

    .step {
        display: flex;
        text-align: left;
        align-items: flex-start;
        gap: 2rem;
        padding: 0;
    }

    .step-number {
        margin: 0;
        flex-shrink: 0;
    }

    .step-content {
        padding-top: 1rem;
    }
}

/* Portfolio */
.portfolio {
    padding: 140px 0;
    background: white;
}

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

.portfolio-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-gray);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    padding: 3rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: var(--transition);
}

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

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

.portfolio-overlay h3 {
    font-size: 1.75rem;
    color: white;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Testimonials */
.testimonials {
    padding: 140px 0;
    background: var(--bg-soft);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.testimonial-card {
    background: white;
    padding: 4rem 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-stroke);
    position: relative;
}

.quote-icon {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.4;
}

.testimonial-card p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.client-info strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-main);
}

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

.client-logos {
    display: flex;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
    opacity: 0.2;
}

.client-logos i {
    font-size: 2.5rem;
}



/* Contact */
.contact {
    padding: 140px 0;
}

.contact-box {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    border: 1px solid var(--glass-stroke);
}

.contact-info {
    padding: 5rem;
    background: var(--bg-soft);
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.contact-details {
    margin-top: 4rem;
}

.detail {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail i {
    width: 48px;
    height: 48px;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.contact-form {
    padding: 5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--bg-gray);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-soft);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Footer Compact Redesign */
.footer-compact {
    background: var(--primary-dark);
    padding: 2rem 0 2rem 0;
    position: relative;
    overflow: hidden;
    color: white;
    margin-top: 0;
}

/* Top Glowing Line */
.footer-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.6;
    box-shadow: 0 0 10px var(--primary);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.footer-brand-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.footer-logo span {
    color: var(--primary);
}

.footer-brand-compact .divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.25rem;
}

.footer-brand-compact .copyright {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.8;
}

/* Costa Rica Pride Badge */
.cr-badge {
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
    position: relative;
    animation: flag-wave 2s ease-in-out infinite;
    transform-origin: center right;
    margin-left: 0.5rem;
    z-index: 100;
}

.cr-badge::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--sapphire);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(39, 88, 184, 0.3);
}

.cr-badge::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 4px);
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--sapphire);
    border-radius: 2px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 9999;
}

.cr-badge:hover::after,
.cr-badge:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cr-badge:hover {
    animation: flag-wave-intense 0.5s ease-in-out;
}

@keyframes flag-wave {

    0%,
    100% {
        transform: rotateZ(0deg);
    }

    25% {
        transform: rotateZ(2deg);
    }

    75% {
        transform: rotateZ(-2deg);
    }
}

@keyframes flag-wave-intense {

    0%,
    100% {
        transform: rotateZ(0deg);
    }

    25% {
        transform: rotateZ(8deg);
    }

    50% {
        transform: rotateZ(-8deg);
    }

    75% {
        transform: rotateZ(8deg);
    }
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: var(--secondary);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.footer-link:hover {
    color: white;
}

.footer-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Social Icons Compact */
.footer-social-compact {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px) rotate(10deg);
    box-shadow: 0 5px 15px rgba(55, 177, 246, 0.3);
}

/* Ambient Glow */
.footer-glow {
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(55, 177, 246, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

/* Footer Logo Image */
.footer-logo-img {
    height: 48px;
    width: auto;
    margin-right: 0.5rem;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .footer-nav {
        order: -1;
        /* Nav on top for mobile */
        width: 100%;
        justify-content: center;
    }

    .footer-brand-compact {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-brand-compact .divider {
        display: none;
    }
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 999;
}

.whatsapp-btn {
    position: relative;
    width: 64px;
    height: 64px;
    background: #25d366;
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 16px 32px rgba(37, 211, 102, 0.4);
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25d366;
    border-radius: var(--radius-full);
    z-index: -1;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

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

.whatsapp-tooltip {
    position: absolute;
    right: 84px;
    background: var(--text-main);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.scroll-top-btn {
    width: 64px;
    height: 64px;
    background: white;
    border: 1px solid var(--bg-gray);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: var(--shadow-md);
}

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

.scroll-top-btn:hover {
    background: var(--text-main);
    color: white;
    transform: translateY(-5px);
}

.progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    pointer-events: none;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.1s;
    transform-origin: 50% 50%;
}

/* Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        margin: 0 auto 3rem;
    }

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

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: calc(100% - 2rem);
        top: 1rem;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 65px; /* Position below the navbar */
        left: 0;
        width: 100%;
        background: white;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius-lg);
        animation: slide-down 0.3s ease-out;
    }

    @keyframes slide-down {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

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

    .contact-info,
    .contact-form {
        padding: 3rem 2rem;
    }

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

/* About Section - Creative Design */
.about-section {
    padding: 140px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

/* Left Side - Content */
.about-content {
    position: relative;
    z-index: 2;
}

.about-content h2 {
    font-size: 3rem;
    margin: 1rem 0 2rem;
    line-height: 1.2;
}

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

/* Mission & Vision Cards */
.mv-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mv-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(7, 222, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.mv-card:hover::before {
    transform: scaleY(1);
}

.mv-card:hover {
    transform: translateX(10px);
    border-color: rgba(7, 222, 255, 0.3);
    box-shadow: -10px 10px 30px rgba(7, 222, 255, 0.15);
}

.mv-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.mv-card:hover .mv-icon {
    transform: scale(1.1) rotate(5deg);
}

.mv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.mv-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Right Side - Stats & Visual */
.about-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(7, 222, 255, 0.05), rgba(96, 231, 195, 0.05));
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    display: inline-block;
    font-family: 'Outfit', sans-serif;
}

.stat-suffix {
    font-size: 3rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-left: 0.25rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(7, 222, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    filter: blur(30px);
}

.stat-card:hover .stat-glow {
    opacity: 1;
}

/* Decorative Element */
.about-decoration {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(7, 222, 255, 0.3);
}

.circle-1 {
    width: 150px;
    height: 150px;
    animation: rotate-slow 20s linear infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    animation: rotate-slow 15s linear infinite reverse;
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.decoration-text {
    text-align: center;
    position: relative;
    z-index: 2;
}

.decoration-text span {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.5;
}

/* Background Shapes */
.about-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.shape-left {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(7, 222, 255, 0.2) 0%, transparent 70%);
    top: 10%;
    left: -10%;
    animation: float-slow 10s ease-in-out infinite;
}

.shape-right {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(7, 222, 255, 0.2) 0%, transparent 70%);
    bottom: 10%;
    right: -10%;
    animation: float-slow 12s ease-in-out infinite reverse;
}

/* Responsive */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-content h2 {
        font-size: 2.5rem;
    }

    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-suffix {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 80px 0;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .mv-cards {
        gap: 1rem;
    }

    .mv-card {
        padding: 1.5rem;
    }
}

/* Form Messages & Spinner */
.form-message {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    display: none;
    border-left: 5px solid;
}

.form-message h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.form-message.success {
    background-color: #e6f9f0;
    border-color: #28a745;
    color: #1a632f;
}

.form-message.success h4 {
    color: #1a632f;
}

.form-message.error {
    background-color: #fdeaea;
    border-color: #dc3545;
    color: #8b222c;
}

.form-message.error h4 {
    color: #8b222c;
}

.sending-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.75rem;
    vertical-align: text-bottom;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}