/* ================================
   WebMar Studios - Ocean Theme
   Pure Vanilla CSS with Smooth Animations
   ================================ */

/* ================================
   CSS CUSTOM PROPERTIES
   ================================ */
:root {
    /* Ocean Blue Color Palette - KEEP THESE! */
    --deep-ocean: #0A4D68;
    --teal: #088395;
    --aqua: #05BFDB;
    --coral: #FF6B35;
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --dark: #0F172A;

    /* Alias colors for packages section */
    --color-deep-ocean: #0A4D68;
    --color-teal: #088395;
    --color-aqua: #05BFDB;
    --color-coral: #FF6B35;
    --color-white: #FFFFFF;
    --color-light-gray: #F8FAFC;
    --color-medium-gray: #E2E8F0;
    --color-text-primary: #0F172A;
    --color-text-secondary: #334155;

    /* Extended Palette */
    --ocean-dark: #083A50;
    --ocean-light: #0E6B91;
    --aqua-light: #66D9EF;
    --coral-light: #FF8F66;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-700: #334155;
    --gray-900: #0F172A;

    /* Gradients */
    --gradient-ocean: linear-gradient(135deg, var(--deep-ocean) 0%, var(--teal) 50%, var(--aqua) 100%);
    --gradient-coral: linear-gradient(135deg, var(--coral) 0%, var(--coral-light) 100%);
    --gradient-light: linear-gradient(135deg, var(--aqua-light) 0%, var(--aqua) 100%);
    --gradient-aqua: linear-gradient(135deg, var(--aqua) 0%, var(--teal) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(10, 77, 104, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(10, 77, 104, 0.1), 0 2px 4px -1px rgba(10, 77, 104, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(10, 77, 104, 0.1), 0 4px 6px -2px rgba(10, 77, 104, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(10, 77, 104, 0.1), 0 10px 10px -5px rgba(10, 77, 104, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(10, 77, 104, 0.25);
    --shadow-glow: 0 0 30px rgba(5, 191, 219, 0.3);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Georgia', 'Times New Roman', serif;
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;

    /* Smooth Transitions - Premium Easing */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Container */
    --container-max: 1280px;
    --container-padding: 2rem;
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ================================
   OCEAN WAVE BACKGROUND
   ================================ */
.ocean-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--deep-ocean) 0%, var(--ocean-dark) 100%);
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 300px;
    background: var(--teal);
    opacity: 0.3;
    border-radius: 50%;
    animation: waveAnimation 25s ease-in-out infinite;
}

.wave-1 {
    animation-duration: 25s;
    animation-delay: 0s;
    opacity: 0.4;
}

.wave-2 {
    animation-duration: 30s;
    animation-delay: 5s;
    opacity: 0.3;
    background: var(--aqua);
}

.wave-3 {
    animation-duration: 35s;
    animation-delay: 10s;
    opacity: 0.2;
    background: var(--ocean-light);
}

@keyframes waveAnimation {
    0%, 100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
    25% {
        transform: translateX(-45%) translateY(-20px) scale(1.05);
    }
    50% {
        transform: translateX(-50%) translateY(-40px) scale(1.1);
    }
    75% {
        transform: translateX(-55%) translateY(-20px) scale(1.05);
    }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--aqua) 0%, transparent 70%);
    top: 10%;
    right: -10%;
    animation-duration: 25s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--coral) 0%, transparent 70%);
    bottom: 20%;
    left: -10%;
    animation-duration: 30s;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, 100px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }
    75% {
        transform: translate(80px, -50px) scale(1.05);
    }
}

/* ================================
   CONTAINER & LAYOUT
   ================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.section {
    position: relative;
    z-index: 10;
    padding: var(--spacing-3xl) 0;
    background: var(--white);
}

.section:nth-child(even) {
    background: var(--gray-50);
}

/* ================================
   NAVIGATION
   ================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--container-padding);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--deep-ocean);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.logo-text {
    font-family: 'Major Mono Display', monospace;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.logo-text-main {
    font-size: 1.5rem;
}

.logo-text-sub {
    font-size: 0.875rem;
    opacity: 0.8;
}

.logo:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

.logo:active {
    transform: scale(0.98);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--teal);
    transition: transform var(--transition-bounce);
}

.logo:hover .logo-icon {
    transform: rotate(360deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-base);
}

.nav-link:not(.btn):hover {
    color: var(--teal);
}

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

.nav-link:not(.btn):hover::after {
    width: 100%;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.lang-option {
    padding: 0.5rem 0.875rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    color: var(--gray-400);
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-sm);
    background: transparent;
    position: relative;
    z-index: 1;
}

.lang-option:hover:not(.active) {
    color: var(--ocean);
    transform: translateY(-2px) scale(1.05);
    background: var(--gray-50);
    box-shadow: 0 2px 8px rgba(10, 77, 104, 0.15);
}

.lang-option.active {
    color: white;
    background: var(--deep-ocean);
    cursor: default;
    box-shadow: 0 4px 12px rgba(10, 77, 104, 0.3);
    font-weight: 700;
    transform: scale(1.05);
}

/* Legacy support for old pages */
.lang-switch {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-weight: 600;
    transition: all var(--transition-base);
}

.lang-switch:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: rgba(5, 191, 219, 0.05);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--deep-ocean);
    transition: all var(--transition-base);
}

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

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

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

/* ================================
   BUTTONS
   ================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-ocean);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(10, 77, 104, 0.3);
    transition: all 0.3s ease;
    animation: btn-pulse 2.5s ease-in-out infinite;
}

@keyframes btn-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(10, 77, 104, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(5, 191, 219, 0.5);
    }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(5, 191, 219, 0.5);
    animation: none;
}

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

.btn-secondary {
    background: linear-gradient(135deg, var(--aqua) 0%, var(--teal) 100%);
    color: var(--white);
    box-shadow: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

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

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 50%, #1DA851 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #20BA5A 0%, #1DA851 50%, #128C7E 100%);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-3xl) 0;
    background: transparent;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-content {
    color: var(--white);
}

.hero-title {
    font-family: 'Inconsolata', monospace;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.01em;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.1s;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.3s;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
}

.badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 600;
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-2xl);
    transition: box-shadow var(--transition-base);
    will-change: transform;
    cursor: default;
    touch-action: none;
    user-select: none;
}

@media (max-width: 768px) {
    .floating-card {
        cursor: grab;
    }

    .floating-card:active {
        cursor: grabbing;
    }
}

.floating-card:hover {
    box-shadow: 0 30px 60px -15px rgba(10, 77, 104, 0.3);
}

.card-1 {
    top: 8%;
    left: 5%;
}

.card-2 {
    top: 60%;
    right: 4%;
}

.card-3 {
    bottom: 8%;
    left: 50%;
}

.card-4 {
    top: 12%;
    right: 15%;
}

.card-5 {
    bottom: 35%;
    left: 8%;
}

.card-6 {
    bottom: 40%;
    right: 25%;
}

.card-metric {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-ocean);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.card-metric span {
    font-size: 1.5rem;
    color: var(--teal);
}

.card-label {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* Removed floatCard animation - replaced with JavaScript magnetic repulsion */

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    opacity: 0.7;
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.scroll-indicator span {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: bounceArrow 2s ease-in-out infinite;
}

.scroll-indicator:hover .scroll-arrow {
    animation-play-state: paused;
    transform: rotate(45deg) translateY(3px);
}

@keyframes bounceArrow {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: rotate(45deg) translateY(8px);
        opacity: 1;
    }
}

/* ================================
   SECTION HEADERS
   ================================ */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-3xl);
}

.section-label {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem 1rem;
    background: var(--gradient-light);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-family: 'Inconsolata', monospace;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--deep-ocean);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.6;
}

/* ================================
   SERVICES SECTION
   ================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Service Visual Section - Top with gradient and icon */
.service-visual {
    position: relative;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-gradient {
    position: absolute;
    inset: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-gradient {
    transform: scale(1.08);
}

.service-gradient-tourism {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F66 50%, #FFA885 100%);
}

.service-gradient-ecommerce {
    background: linear-gradient(135deg, #088395 0%, #05BFDB 50%, #66D9EF 100%);
}

.service-gradient-corporate {
    background: linear-gradient(135deg, #0A4D68 0%, #088395 50%, #05BFDB 100%);
}

.service-icon-large {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.service-card:hover .service-icon-large {
    transform: scale(1.15) rotate(5deg);
}

/* Service Content Section - Bottom with text */
.service-content {
    padding: var(--spacing-xl);
    background: var(--white);
}

.service-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(5, 191, 219, 0.1);
    color: var(--teal);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
}

.service-content h3 {
    font-family: 'Inconsolata', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--deep-ocean);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.service-content > p {
    color: var(--gray-700);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    line-height: 1.4;
}

.service-features li::before {
    content: '✓';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--aqua) 100%);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(5, 191, 219, 0.3);
}

/* ================================
   PORTFOLIO SECTION
   ================================ */
.portfolio-section .section-header {
    max-width: none;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    text-align: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.portfolio-item {
    animation: fadeInUp 0.5s ease-out forwards;
}

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

.portfolio-item.hidden {
    display: none;
}

.portfolio-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--gray-200);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 77, 104, 0.95) 0%, rgba(10, 77, 104, 0.7) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
    color: var(--white);
}

.portfolio-image:hover img {
    transform: scale(1.1);
}

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

.portfolio-overlay h3 {
    font-family: 'Inconsolata', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.portfolio-overlay .btn {
    background-color: white;
    color: var(--deep-ocean);
    border: 2px solid white;
}

.portfolio-overlay .btn:hover {
    background-color: var(--deep-ocean);
    color: white;
    border-color: white;
}

/* ================================
   PROCESS/ABOUT SECTION
   ================================ */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.process-step {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
}

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

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--aqua);
    opacity: 0.3;
    line-height: 1;
    flex-shrink: 0;
}

.step-content h3 {
    font-family: 'Inconsolata', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--deep-ocean);
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--gray-700);
    line-height: 1.6;
}

/* CTA Process Step */
.process-step--cta {
    background: linear-gradient(135deg, var(--deep-ocean) 0%, var(--teal) 100%);
    color: var(--white);
    box-shadow: var(--shadow-xl);
}

.process-step--cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(10, 77, 104, 0.4);
}

.step-icon {
    font-size: 3rem;
    color: var(--aqua);
    line-height: 1;
    flex-shrink: 0;
}

.process-step--cta .step-content h3 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.process-step--cta .step-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.6;
}

.process-step--cta .step-content strong {
    color: var(--white);
    font-weight: 700;
}

/* About Section Content */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-paragraph {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.about-paragraph:first-child {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* About Section CTA */
.about-cta {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

/* On-Demand Highlight Box */
.on-demand-highlight {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--deep-ocean) 0%, var(--teal) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    color: var(--white);
    animation: slideIn 0.6s ease-out;
}

.highlight-icon {
    font-size: 3rem;
    color: var(--aqua);
    flex-shrink: 0;
}

.highlight-content h4 {
    font-family: 'Inconsolata', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.highlight-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* ================================
   CTA SECTION
   ================================ */
.cta-section {
    background: var(--gradient-ocean) !important;
    color: var(--white) !important;
    text-align: center;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

.cta-title {
    font-family: 'Inconsolata', monospace;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: var(--spacing-md);
    color: var(--white) !important;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    line-height: 1.6;
    color: var(--white) !important;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
    color: var(--white) !important;
}

.info-item span {
    color: var(--white) !important;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.info-icon {
    font-size: 1.5rem;
    color: var(--white) !important;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    position: relative;
    z-index: 100;
    background: var(--deep-ocean);
    color: var(--gray-300);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

/* Subtle Wave Effect at Top of Footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    transform: translateY(-100%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 Q150,10 300,30 T600,30 T900,30 T1200,30 L1200,60 L0,60 Z' fill='%230A4D68' fill-opacity='0.15'/%3E%3Cpath d='M0,35 Q200,20 400,35 T800,35 T1200,35 L1200,60 L0,60 Z' fill='%23088395' fill-opacity='0.08'/%3E%3Cpath d='M0,40 Q250,25 500,40 T1000,40 T1200,40 L1200,60 L0,60 Z' fill='%2305BFDB' fill-opacity='0.05'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: bottom;
    pointer-events: none;
    opacity: 1;
    animation: gentleWave 20s ease-in-out infinite;
}

@keyframes gentleWave {
    0%, 100% {
        transform: translateY(-100%) translateX(0);
    }
    50% {
        transform: translateY(-100%) translateX(-2%);
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.footer-brand p {
    line-height: 1.6;
    max-width: 350px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact {
    margin-top: var(--spacing-md);
}

.footer-contact > div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-contact > div:last-child {
    margin-bottom: 0;
}

.footer-contact i {
    color: var(--aqua);
    width: 20px;
    flex-shrink: 0;
}

.footer-contact a,
.footer-contact span {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-base);
}

.footer-contact a:hover {
    color: var(--aqua);
}

.footer-column h4 {
    font-family: 'Inconsolata', monospace;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.footer-column a {
    display: block;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-base);
}

.footer-column a:hover {
    color: var(--aqua);
    padding-left: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(5, 191, 219, 0.4);
}

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

/* ================================
   MODAL
   ================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 77, 104, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn var(--transition-base);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-2xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    animation: slideUpFade var(--transition-smooth);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 10;
}

.modal-close:hover {
    background: var(--coral);
    transform: rotate(90deg);
}

.modal-close span {
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--white);
}

.modal-close span:first-child {
    transform: rotate(45deg);
}

.modal-close span:last-child {
    transform: rotate(-45deg);
}

.modal-body {
    padding: var(--spacing-2xl);
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-delayed {
    animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.slide-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-smooth);
}

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

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-visual {
        height: 300px;
    }

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

    /* Reduce nav spacing on smaller desktops */
    .nav-links {
        gap: var(--spacing-md);
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .logo-text-main {
        font-size: 1.25rem;
    }

    .logo-text-sub {
        font-size: 0.75rem;
    }
}

/* Switch to mobile menu at 900px for better spacing */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-base);
        gap: var(--spacing-sm);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 1rem;
        width: 100%;
        text-align: center;
        padding: var(--spacing-sm) 0;
    }

    .lang-toggle {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --spacing-3xl: 3rem;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--spacing-3xl) + 60px) 0 var(--spacing-3xl);
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-badges {
        flex-direction: column;
    }

    .hero-visual {
        position: relative;
        height: 350px;
        margin-top: var(--spacing-xl);
    }

    .floating-card {
        font-size: 0.65rem;
        padding: var(--spacing-xs) var(--spacing-sm);
        min-width: 80px;
    }

    .card-metric {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .card-metric span {
        font-size: 0.875rem;
    }

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

    .services-grid,
    .portfolio-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .service-visual {
        height: 200px;
    }

    .service-icon-large {
        width: 100px;
        height: 100px;
    }

    .service-content {
        padding: var(--spacing-lg);
    }

    .on-demand-highlight {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg);
    }

    .highlight-icon {
        font-size: 2.5rem;
    }

    .highlight-content h4 {
        font-size: 1.25rem;
    }

    .highlight-content p {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-contact {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .contact-info {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--spacing-xl) 0;
    }

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

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

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

    .modal-body {
        padding: var(--spacing-lg);
    }

    .modal-content {
        max-width: 95%;
        margin: 1rem;
    }

    /* Improve project URL display on mobile */
    .modal-body a[href^="http"] {
        font-size: 0.875rem !important;
        word-break: break-all;
    }
}

/* ================================
   SOCIAL PROOF SECTION
   ================================ */

.social-proof-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, rgba(5, 191, 219, 0.03) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--aqua);
}

.testimonial-quote {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.quote-icon {
    width: 32px;
    height: 32px;
    color: var(--aqua);
    opacity: 0.4;
    margin-bottom: var(--spacing-sm);
}

.testimonial-quote p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--spacing-md);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--deep-ocean);
    font-size: 0.95rem;
}

.author-role {
    font-size: 0.85rem;
    color: var(--gray-700);
}

.testimonial-result {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.result-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--teal);
    font-family: 'Inconsolata', monospace;
}

.result-label {
    font-size: 0.85rem;
    color: var(--gray-700);
    line-height: 1.3;
}

/* Trust Badge */
.trust-badge-row {
    display: flex;
    justify-content: center;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, rgba(5, 191, 219, 0.08) 0%, rgba(5, 191, 219, 0.15) 100%);
    border: 2px solid rgba(5, 191, 219, 0.3);
    border-radius: var(--radius-full);
}

.trust-icon {
    font-size: 1.5rem;
}

.trust-text {
    font-weight: 600;
    color: var(--deep-ocean);
    font-size: 0.95rem;
}

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

    .testimonial-card {
        padding: var(--spacing-lg);
    }

    .trust-badge {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-md);
    }
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .ocean-background,
    .nav,
    .scroll-indicator,
    .modal {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}
