﻿/* ==========================================
   PIRATE THEME — Ghostly Haunted Ocean
   ========================================== */

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

:root {
    --primary-color: #e8dcc8;
    --secondary-color: #c9a84c;
    --accent-color: #4ae3b5;
    --accent-ghost: #5ef0c8;
    --ghost-green: #39d98a;
    --gold: #d4a843;
    --blood-red: #8b1a1a;
    --dark-bg: #0a0e1a;
    --darker-bg: rgba(8, 12, 24, 0.85);
    --ocean-deep: #0c1428;
    --ocean-mid: #0f1d3a;
    --text-light: #e0d6c2;
    --text-dark: #050810;
    --border-color: rgba(74, 227, 181, 0.18);
    --gradient-primary: linear-gradient(135deg, #d4a843, #4ae3b5 50%, #39d98a);
    --gradient-dark: linear-gradient(180deg, #1a2744 0%, #0f1d3a 35%, #0a0e1a 100%);
    --gradient-gold: linear-gradient(135deg, #d4a843, #f0d078, #c9a84c);
    --shadow-glow: 0 0 28px rgba(74, 227, 181, 0.15);
    --shadow-ghost: 0 0 40px rgba(74, 227, 181, 0.25);
    --shadow-dark: 0 4px 24px rgba(0, 0, 0, 0.65);
    --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Pirata One', 'Cinzel Decorative', cursive;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: #050810;
    color: var(--text-light);
    overflow-x: hidden;
    cursor: auto;
    line-height: 1.6;
    position: relative;
}



/* ==========================================
   PIRATE LOADING SCREEN
   ========================================== */
.pirate-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(ellipse at center, #0f1d3a, #070b14);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.pirate-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: var(--text-light);
}

.loader-skull {
    font-size: 5rem;
    animation: skullFloat 2s ease-in-out infinite, ghostPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(74, 227, 181, 0.6));
    margin-bottom: 1rem;
}

.loader-ship {
    font-size: 3rem;
    animation: shipRock 3s ease-in-out infinite;
    margin-bottom: 0.5rem;
}

.loader-waves {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-color);
    letter-spacing: 0.3em;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.lw {
    display: inline-block;
    animation: waveChar 2s ease-in-out infinite;
}
.lw:nth-child(1) { animation-delay: 0s; }
.lw:nth-child(2) { animation-delay: 0.1s; }
.lw:nth-child(3) { animation-delay: 0.2s; }
.lw:nth-child(4) { animation-delay: 0.3s; }
.lw:nth-child(5) { animation-delay: 0.4s; }
.lw:nth-child(6) { animation-delay: 0.5s; }
.lw:nth-child(7) { animation-delay: 0.6s; }
.lw:nth-child(8) { animation-delay: 0.7s; }
.lw:nth-child(9) { animation-delay: 0.8s; }
.lw:nth-child(10) { animation-delay: 0.9s; }

@keyframes waveChar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.loader-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(212, 168, 67, 0.5);
    animation: hauntedFlicker 4s ease-in-out infinite;
}

.loader-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(74, 227, 181, 0.2);
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: loaderFill 2.5s ease-in-out forwards;
}

@keyframes loaderFill {
    0% { width: 0%; }
    30% { width: 35%; }
    60% { width: 65%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

@keyframes skullFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes shipRock {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    25% { transform: rotate(3deg) translateY(-5px); }
    50% { transform: rotate(-3deg) translateY(2px); }
    75% { transform: rotate(5deg) translateY(-3px); }
}

@keyframes ghostPulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(74, 227, 181, 0.4)); }
    50% { filter: drop-shadow(0 0 50px rgba(74, 227, 181, 0.8)); }
}

/* ==========================================
   GHOSTLY HAUNTED TEXT EFFECTS
   ========================================== */
.ghostly-text {
    animation: ghostlyGlow 4s ease-in-out infinite;
    text-shadow:
        0 0 10px rgba(74, 227, 181, 0.4),
        0 0 20px rgba(74, 227, 181, 0.2),
        0 0 40px rgba(74, 227, 181, 0.1),
        0 0 80px rgba(74, 227, 181, 0.05);
}

@keyframes ghostlyGlow {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(74, 227, 181, 0.4),
            0 0 20px rgba(74, 227, 181, 0.2),
            0 0 40px rgba(74, 227, 181, 0.1);
        opacity: 1;
    }
    33% {
        text-shadow:
            0 0 20px rgba(74, 227, 181, 0.6),
            0 0 40px rgba(74, 227, 181, 0.3),
            0 0 80px rgba(74, 227, 181, 0.15);
        opacity: 0.95;
    }
    66% {
        text-shadow:
            0 0 8px rgba(212, 168, 67, 0.5),
            0 0 25px rgba(212, 168, 67, 0.2),
            0 0 50px rgba(74, 227, 181, 0.1);
        opacity: 0.97;
    }
}

.haunted-flicker {
    animation: hauntedFlicker 5s ease-in-out infinite;
}

@keyframes hauntedFlicker {
    0%, 100% { opacity: 0.9; }
    5% { opacity: 0.4; }
    6% { opacity: 0.9; }
    10% { opacity: 0.85; }
    11% { opacity: 0.3; }
    12% { opacity: 0.9; }
    40% { opacity: 0.95; }
    42% { opacity: 0.5; }
    43% { opacity: 0.9; }
    70% { opacity: 0.92; }
    72% { opacity: 0.35; }
    73% { opacity: 0.88; }
    90% { opacity: 0.9; }
}

/* ==========================================
   OCEAN BACKGROUND LAYER
   ========================================== */
.ocean-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.fog {
    position: absolute;
    width: 200%;
    height: 120px;
    background: linear-gradient(90deg, transparent, rgba(74, 227, 181, 0.03), rgba(212, 168, 67, 0.02), transparent);
    opacity: 0.6;
}

.fog-1 {
    top: 15%;
    animation: fogDrift 25s linear infinite;
}

.fog-2 {
    top: 45%;
    animation: fogDrift 35s linear infinite reverse;
    height: 80px;
    background: linear-gradient(90deg, transparent, rgba(74, 227, 181, 0.04), transparent);
}

.fog-3 {
    top: 75%;
    animation: fogDrift 30s linear infinite;
    height: 150px;
    background: linear-gradient(90deg, transparent, rgba(139, 26, 26, 0.03), rgba(74, 227, 181, 0.02), transparent);
}

@keyframes fogDrift {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

.ocean-mist {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(74, 227, 181, 0.3), transparent),
        radial-gradient(1px 1px at 70% 60%, rgba(212, 168, 67, 0.25), transparent),
        radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(1px 1px at 88% 12%, rgba(74, 227, 181, 0.35), transparent),
        radial-gradient(1px 1px at 22% 55%, rgba(212, 168, 67, 0.3), transparent),
        radial-gradient(2px 2px at 55% 30%, rgba(74, 227, 181, 0.2), transparent);
    background-size: 100% 100%;
    opacity: 0.45;
}

.floating-debris {
    position: absolute;
    inset: 0;
}

.debris {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(212, 168, 67, 0.5);
    border-radius: 2px;
    opacity: 0.4;
}

.debris-1 { left: 8%; top: 15%; animation: debrisFloat 18s linear infinite; }
.debris-2 { left: 22%; top: -5%; animation: debrisFloat 24s linear infinite; animation-delay: -3s; }
.debris-3 { left: 45%; top: 10%; animation: debrisFloat 20s linear infinite; animation-delay: -7s; }
.debris-4 { left: 62%; top: -8%; animation: debrisFloat 22s linear infinite; animation-delay: -2s; }
.debris-5 { left: 78%; top: 25%; animation: debrisFloat 28s linear infinite; animation-delay: -11s; }
.debris-6 { left: 92%; top: 5%; animation: debrisFloat 16s linear infinite; animation-delay: -5s; }
.debris-7 { left: 35%; top: 40%; animation: debrisFloat 21s linear infinite; animation-delay: -9s; }
.debris-8 { left: 55%; top: -12%; animation: debrisFloat 26s linear infinite; animation-delay: -13s; }

@keyframes debrisFloat {
    0% { transform: translate(0, -10vh) rotate(0deg); opacity: 0; }
    8% { opacity: 0.4; }
    92% { opacity: 0.3; }
    100% { transform: translate(5vw, 115vh) rotate(360deg); opacity: 0; }
}

.skip-link,
main,
.footer {
    position: relative;
    z-index: 1;
}

.navbar {
    z-index: 1000;
}

.back-to-top {
    z-index: 1001;
}

h1, h2, h3, h4, h5, label, p, a, li, input, textarea, button {
    font-family: var(--font-body);
}

.section-title,
.section-title-text,
.nav-logo span,
.service-content h3,
.services-cta h3 {
    font-family: var(--font-display);
}

main#main-content {
    padding-top: 0;
}

/* ==========================================
   HERO SECTION — Haunted Ocean
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(74, 227, 181, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 168, 67, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(5, 8, 16, 0.4) 0%, transparent 60%),
        linear-gradient(180deg, #0a0e1a 0%, #0f1d3a 60%, #121a2e 100%);
}

#star-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#ocean-canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 1;
    opacity: 0.4;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 860px;
    padding: 2rem;
    animation: heroFadeIn 1.2s ease-out;
}

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

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    background: rgba(74, 227, 181, 0.08);
    border: 1px solid rgba(74, 227, 181, 0.25);
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    animation: badgePulse 3s ease-in-out infinite;
}

.hero-badge i {
    font-size: 1rem;
    animation: skullWobble 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 15px rgba(74, 227, 181, 0.1); }
    50% { box-shadow: 0 0 35px rgba(74, 227, 181, 0.3); }
}

@keyframes skullWobble {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    50% { transform: rotate(8deg) scale(1.1); }
}

/* Hero Title — MOSTELLER.TECH */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    position: relative;
}

.title-line {
    display: inline;
    background: linear-gradient(135deg, #4ae3b5 0%, #d4a843 35%, #39d98a 70%, #f0d078 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(74, 227, 181, 0.4));
}

.title-dot {
    display: inline;
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #d4a843, #f0d078);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: dotPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(212, 168, 67, 0.6));
}

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

@keyframes dotPulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(212, 168, 67, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(74, 227, 181, 0.7)); }
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(212, 168, 67, 0.3);
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    color: rgba(224, 214, 194, 0.82);
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    color: var(--accent-color);
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0.6;
    animation: scrollBounce 2.5s ease-in-out infinite;
    display: block;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(12px); opacity: 1; }
}

/* ==========================================
   GHOSTLY GLOWING SINE WAVE OCEAN + SHIP
   ========================================== */
#ghost-sea-canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 220px;
    z-index: 3;
    pointer-events: none;
}

/* Sailing Ship - rides the wave */
.sailing-ship {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    will-change: transform, left, bottom;
    transition: none;
    filter:
        drop-shadow(0 0 18px rgba(74, 227, 181, 0.5))
        drop-shadow(0 0 40px rgba(74, 227, 181, 0.25))
        drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.sailing-ship img {
    width: 130px;
    height: auto;
    display: block;
}

/* ==========================================
   GHOST FLAMES (replaces shooting stars)
   ========================================== */
.ghost-flames {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.ghost-flame {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 227, 181, 0.9), rgba(74, 227, 181, 0.3), transparent);
    box-shadow:
        0 0 10px rgba(74, 227, 181, 0.6),
        0 0 20px rgba(74, 227, 181, 0.3),
        0 0 40px rgba(74, 227, 181, 0.15);
    opacity: 0;
}

.ghost-flame:nth-child(1) {
    top: 20%; left: 10%;
    animation: ghostFlameRise 6s 0.5s ease-in-out infinite;
}
.ghost-flame:nth-child(2) {
    top: 40%; left: 30%;
    width: 6px; height: 6px;
    animation: ghostFlameRise 8s 2s ease-in-out infinite;
}
.ghost-flame:nth-child(3) {
    top: 60%; left: 55%;
    width: 10px; height: 10px;
    animation: ghostFlameRise 5s 4s ease-in-out infinite;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.8), rgba(212, 168, 67, 0.2), transparent);
    box-shadow: 0 0 15px rgba(212, 168, 67, 0.5), 0 0 30px rgba(212, 168, 67, 0.2);
}
.ghost-flame:nth-child(4) {
    top: 30%; left: 70%;
    animation: ghostFlameRise 7s 1s ease-in-out infinite;
}
.ghost-flame:nth-child(5) {
    top: 75%; left: 85%;
    width: 5px; height: 5px;
    animation: ghostFlameRise 9s 3s ease-in-out infinite;
}
.ghost-flame:nth-child(6) {
    top: 15%; left: 45%;
    width: 7px; height: 7px;
    animation: ghostFlameRise 6.5s 5s ease-in-out infinite;
    background: radial-gradient(circle, rgba(139, 26, 26, 0.7), rgba(139, 26, 26, 0.2), transparent);
    box-shadow: 0 0 12px rgba(139, 26, 26, 0.5);
}

@keyframes ghostFlameRise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 0.8; }
    50% { transform: translateY(-120px) scale(1.5); opacity: 0.6; }
    80% { opacity: 0.3; }
    100% { transform: translateY(-250px) scale(0.5); opacity: 0; }
}

/* ==========================================
   FLOATING SOULS (replaces particles)
   ========================================== */
.floating-souls {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.soul {
    position: absolute;
    border-radius: 50%;
    animation: soulFloat linear infinite;
}

.soul:nth-child(1) {
    width: 6px; height: 6px;
    background: rgba(74, 227, 181, 0.6);
    box-shadow: 0 0 12px rgba(74, 227, 181, 0.4), 0 0 24px rgba(74, 227, 181, 0.2);
    left: 10%; top: 80%;
    animation-duration: 14s;
}
.soul:nth-child(2) {
    width: 4px; height: 4px;
    background: rgba(212, 168, 67, 0.5);
    box-shadow: 0 0 10px rgba(212, 168, 67, 0.3);
    left: 25%; top: 90%;
    animation-duration: 18s;
    animation-delay: -3s;
}
.soul:nth-child(3) {
    width: 8px; height: 8px;
    background: rgba(74, 227, 181, 0.7);
    box-shadow: 0 0 15px rgba(74, 227, 181, 0.5), 0 0 30px rgba(74, 227, 181, 0.2);
    left: 45%; top: 85%;
    animation-duration: 12s;
    animation-delay: -5s;
}
.soul:nth-child(4) {
    width: 5px; height: 5px;
    background: rgba(139, 26, 26, 0.5);
    box-shadow: 0 0 10px rgba(139, 26, 26, 0.3);
    left: 65%; top: 95%;
    animation-duration: 16s;
    animation-delay: -7s;
}
.soul:nth-child(5) {
    width: 6px; height: 6px;
    background: rgba(212, 168, 67, 0.6);
    box-shadow: 0 0 12px rgba(212, 168, 67, 0.4);
    left: 80%; top: 88%;
    animation-duration: 13s;
    animation-delay: -2s;
}
.soul:nth-child(6) {
    width: 3px; height: 3px;
    background: rgba(74, 227, 181, 0.4);
    box-shadow: 0 0 8px rgba(74, 227, 181, 0.3);
    left: 35%; top: 92%;
    animation-duration: 20s;
    animation-delay: -9s;
}
.soul:nth-child(7) {
    width: 5px; height: 5px;
    background: rgba(212, 168, 67, 0.5);
    box-shadow: 0 0 10px rgba(212, 168, 67, 0.3);
    left: 55%; top: 78%;
    animation-duration: 15s;
    animation-delay: -4s;
}
.soul:nth-child(8) {
    width: 4px; height: 4px;
    background: rgba(74, 227, 181, 0.5);
    box-shadow: 0 0 8px rgba(74, 227, 181, 0.3);
    left: 90%; top: 82%;
    animation-duration: 19s;
    animation-delay: -11s;
}

@keyframes soulFloat {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 0.7; }
    50% { transform: translateY(-50vh) translateX(20px) scale(1.2); opacity: 0.5; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) translateX(-10px) scale(0.6); opacity: 0; }
}

main {
    padding-top: 0;
}

#hero {
    scroll-margin-top: 0;
}

/* ==========================================
   NAVIGATION — Weathered Ship Helm
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gold);
    text-decoration: none;
    text-shadow: 0 0 20px rgba(212, 168, 67, 0.4);
    z-index: 1100;
}

.nav-logo span {
    letter-spacing: 1px;
    font-size: 1.05em;
    line-height: 1;
}

#main-content,
#services,
#works,
#contact {
    scroll-margin-top: 5.5rem;
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--gold);
    text-shadow: 0 0 14px rgba(212, 168, 67, 0.5);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem 0;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    margin: 3px 0;
    transition: 0.3s;
}

/* ==========================================
   BUTTONS — Pirate Gold
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--dark-bg);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(212, 168, 67, 0.3), var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.3);
}

/* ==========================================
   SECTION STYLES
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-light);
}

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

.section-title i {
    color: var(--gold);
    filter: drop-shadow(0 0 12px rgba(212, 168, 67, 0.5));
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 3rem;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--darker-bg);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    box-shadow: var(--shadow-ghost), 0 0 60px rgba(212, 168, 67, 0.1);
    border-color: rgba(212, 168, 67, 0.4);
    transform: translateY(-6px);
}

.service-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 227, 181, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card-web:hover .service-card-glow {
    opacity: 1;
    background: radial-gradient(circle, rgba(74, 227, 181, 0.05) 0%, transparent 60%);
}

.service-card-ios:hover .service-card-glow {
    opacity: 1;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.05) 0%, transparent 60%);
}

.service-icon {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    justify-content: center;
}

.service-icon i {
    font-size: 3rem;
    position: relative;
    z-index: 1;
}

.service-icon-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid transparent;
    animation: iconRingSpin 8s linear infinite;
}

.service-icon-web .service-icon-ring {
    border-color: rgba(74, 227, 181, 0.25);
    box-shadow: 0 0 20px rgba(74, 227, 181, 0.1);
}

.service-icon-ios .service-icon-ring {
    border-color: rgba(212, 168, 67, 0.25);
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.1);
}

@keyframes iconRingSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); border-radius: 50%; }
    25% { border-radius: 45% 55% 50% 50%; }
    50% { transform: translate(-50%, -50%) rotate(180deg); border-radius: 50%; }
    75% { border-radius: 55% 45% 50% 50%; }
    100% { transform: translate(-50%, -50%) rotate(360deg); border-radius: 50%; }
}

.service-icon-web i {
    color: var(--accent-color);
    filter: drop-shadow(0 0 15px rgba(74, 227, 181, 0.4));
}

.service-icon-ios i {
    color: var(--gold);
    filter: drop-shadow(0 0 15px rgba(212, 168, 67, 0.4));
}

.service-content h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
    text-align: center;
}

.service-content > p {
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.88;
    text-align: center;
    font-size: 1.02rem;
}

.service-detail-group {
    margin-bottom: 1.75rem;
}

.detail-heading {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(224, 214, 194, 0.6);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-heading i {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

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

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    opacity: 0.92;
    text-align: left;
    font-size: 0.97rem;
}

/* Treasure Coins (replace planets) */
.coin {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(212, 168, 67, 0.2), inset -2px -2px 4px rgba(0, 0, 0, 0.3);
    animation: coinSpin 4s linear infinite;
}

@keyframes coinSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.coin-gold {
    background: radial-gradient(circle at 30% 25%, #f0d078, #d4a843 45%, #8b6914);
}
.coin-silver {
    background: radial-gradient(circle at 30% 25%, #e0e0e0, #a0a0a0 45%, #606060);
}
.coin-bronze {
    background: radial-gradient(circle at 30% 25%, #d4956a, #a0603a 45%, #6b3a1e);
}
.coin-emerald {
    background: radial-gradient(circle at 30% 25%, #5ef0c8, #2ecc71 45%, #1a8a4e);
}
.coin-ruby {
    background: radial-gradient(circle at 30% 25%, #ff6b6b, #c0392b 45%, #7b1a1a);
}
.coin-sapphire {
    background: radial-gradient(circle at 30% 25%, #74b9ff, #2980b9 45%, #1a5276);
}
.coin-amethyst {
    background: radial-gradient(circle at 30% 25%, #c39bd3, #8e44ad 45%, #512e5f);
}
.coin-diamond {
    background: radial-gradient(circle at 30% 25%, #ffffff, #dfe6e9 45%, #b2bec3);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3), inset -2px -2px 4px rgba(0, 0, 0, 0.15);
}

/* Tech Stack Pills */
.service-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 50px;
    background: rgba(212, 168, 67, 0.08);
    border: 1px solid rgba(212, 168, 67, 0.2);
    color: var(--gold);
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.tech-pill:hover {
    background: rgba(212, 168, 67, 0.18);
    box-shadow: 0 0 12px rgba(212, 168, 67, 0.2);
}

.service-card-web .tech-pill {
    background: rgba(74, 227, 181, 0.08);
    border-color: rgba(74, 227, 181, 0.2);
    color: var(--accent-color);
}

.service-card-web .tech-pill:hover {
    background: rgba(74, 227, 181, 0.15);
    box-shadow: 0 0 12px rgba(74, 227, 181, 0.15);
}

.service-card-ios .tech-pill {
    background: rgba(212, 168, 67, 0.08);
    border-color: rgba(212, 168, 67, 0.2);
    color: var(--gold);
}

.service-card-ios .tech-pill:hover {
    background: rgba(212, 168, 67, 0.15);
    box-shadow: 0 0 12px rgba(212, 168, 67, 0.15);
}

/* Services CTA */
.services-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: var(--darker-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.services-cta h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.services-cta > p:not(.pricing-note) {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

.service-cta-btn {
    margin-top: 0.25rem;
}

.pricing-note {
    font-size: 0.95rem;
    opacity: 0.82;
    font-style: normal;
    margin-bottom: 1.5rem !important;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
    color: rgba(224, 214, 194, 0.85);
}

.pricing-note i {
    color: var(--secondary-color);
    margin-right: 0.45rem;
}

/* ==========================================
   CREATED WORKS SECTION — Glowing & Bubbly
   ========================================== */
.works {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.works-showcase {
    margin-top: 2rem;
}

/* Featured Work Card */
.work-card-featured {
    position: relative;
    background: rgba(8, 12, 24, 0.9);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(74, 227, 181, 0.2);
    backdrop-filter: blur(14px);
    box-shadow:
        0 0 40px rgba(74, 227, 181, 0.08),
        0 0 80px rgba(74, 227, 181, 0.04),
        inset 0 0 60px rgba(74, 227, 181, 0.03);
    overflow: hidden;
    animation: cardGlowPulse 5s ease-in-out infinite;
}

@keyframes cardGlowPulse {
    0%, 100% {
        box-shadow:
            0 0 40px rgba(74, 227, 181, 0.08),
            0 0 80px rgba(74, 227, 181, 0.04),
            inset 0 0 60px rgba(74, 227, 181, 0.03);
        border-color: rgba(74, 227, 181, 0.2);
    }
    50% {
        box-shadow:
            0 0 60px rgba(74, 227, 181, 0.15),
            0 0 120px rgba(74, 227, 181, 0.08),
            inset 0 0 80px rgba(74, 227, 181, 0.05);
        border-color: rgba(74, 227, 181, 0.35);
    }
}

.work-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(74, 227, 181, 0.06) 0%, transparent 50%);
    pointer-events: none;
    animation: glowOrbit 12s linear infinite;
}

@keyframes glowOrbit {
    0% { transform: rotate(0deg) translateX(10%); }
    100% { transform: rotate(360deg) translateX(10%); }
}

/* ---- Floating Bubbles ---- */
.bubble {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: bubbleRise linear infinite;
    background: radial-gradient(circle at 30% 30%,
        rgba(74, 227, 181, 0.35),
        rgba(74, 227, 181, 0.1) 50%,
        transparent 70%);
    border: 1px solid rgba(74, 227, 181, 0.2);
    box-shadow:
        0 0 12px rgba(74, 227, 181, 0.2),
        inset 0 0 8px rgba(74, 227, 181, 0.1),
        inset -3px -3px 8px rgba(255, 255, 255, 0.05);
}

.bubble::after {
    content: '';
    position: absolute;
    top: 18%;
    left: 22%;
    width: 30%;
    height: 20%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(1px);
}

.bubble-1 { width: 22px; height: 22px; left: 5%;  bottom: -30px; animation-duration: 8s;  animation-delay: 0s; }
.bubble-2 { width: 16px; height: 16px; left: 18%; bottom: -30px; animation-duration: 10s; animation-delay: -2s; }
.bubble-3 { width: 28px; height: 28px; left: 35%; bottom: -30px; animation-duration: 7s;  animation-delay: -4s;
    background: radial-gradient(circle at 30% 30%, rgba(212, 168, 67, 0.3), rgba(212, 168, 67, 0.1) 50%, transparent 70%);
    border-color: rgba(212, 168, 67, 0.2);
    box-shadow: 0 0 12px rgba(212, 168, 67, 0.2), inset 0 0 8px rgba(212, 168, 67, 0.1);
}
.bubble-4 { width: 14px; height: 14px; left: 52%; bottom: -30px; animation-duration: 11s; animation-delay: -1s; }
.bubble-5 { width: 20px; height: 20px; left: 68%; bottom: -30px; animation-duration: 9s;  animation-delay: -3s; }
.bubble-6 { width: 18px; height: 18px; left: 82%; bottom: -30px; animation-duration: 8.5s; animation-delay: -5s;
    background: radial-gradient(circle at 30% 30%, rgba(212, 168, 67, 0.3), rgba(212, 168, 67, 0.1) 50%, transparent 70%);
    border-color: rgba(212, 168, 67, 0.2);
    box-shadow: 0 0 12px rgba(212, 168, 67, 0.2), inset 0 0 8px rgba(212, 168, 67, 0.1);
}
.bubble-7 { width: 12px; height: 12px; left: 92%; bottom: -30px; animation-duration: 12s; animation-delay: -6s; }
.bubble-8 { width: 24px; height: 24px; left: 45%; bottom: -30px; animation-duration: 7.5s; animation-delay: -7s; }

@keyframes bubbleRise {
    0% {
        transform: translateY(0) scale(0.6);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: translateY(-5vh) scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-50vh) translateX(15px) scale(1);
    }
    80% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-110vh) translateX(-10px) scale(0.4);
        opacity: 0;
    }
}

/* ---- Work Header ---- */
.work-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.work-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 24px;
    background: rgba(74, 227, 181, 0.08);
    border: 2px solid rgba(74, 227, 181, 0.25);
    margin-bottom: 1.5rem;
    animation: iconGlow 3s ease-in-out infinite;
    position: relative;
}

.work-icon i {
    font-size: 2.8rem;
    color: var(--accent-color);
    filter: drop-shadow(0 0 20px rgba(74, 227, 181, 0.6));
}

@keyframes iconGlow {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(74, 227, 181, 0.15),
            0 0 40px rgba(74, 227, 181, 0.08);
    }
    50% {
        box-shadow:
            0 0 30px rgba(74, 227, 181, 0.3),
            0 0 60px rgba(74, 227, 181, 0.15),
            0 0 90px rgba(74, 227, 181, 0.05);
    }
}

.work-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--accent-color);
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.work-tagline {
    font-size: 1.15rem;
    opacity: 0.75;
    letter-spacing: 0.04em;
}

/* ---- App Preview (single phone) ---- */
.work-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

/* Phone Frame */
.phone-frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 2px solid rgba(74, 227, 181, 0.25);
    background: #111;
    box-shadow:
        0 0 20px rgba(74, 227, 181, 0.12),
        0 0 40px rgba(74, 227, 181, 0.06),
        0 8px 32px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.phone-frame:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow:
        0 0 30px rgba(74, 227, 181, 0.25),
        0 0 60px rgba(74, 227, 181, 0.12),
        0 12px 48px rgba(0, 0, 0, 0.6);
    border-color: rgba(74, 227, 181, 0.45);
}

.phone-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 12px;
    background: #000;
    border-radius: 0 0 10px 10px;
    z-index: 2;
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero phone — featured single image */
.phone-hero {
    width: 280px;
    height: auto;
    animation: phoneGlowRoot 4s ease-in-out infinite;
}

.phone-hero img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@keyframes phoneGlowRoot {
    0%, 100% { box-shadow: 0 0 20px rgba(74, 227, 181, 0.12), 0 0 40px rgba(74, 227, 181, 0.06), 0 8px 32px rgba(0,0,0,0.5); }
    50% { box-shadow: 0 0 35px rgba(74, 227, 181, 0.2), 0 0 70px rgba(74, 227, 181, 0.1), 0 8px 32px rgba(0,0,0,0.5); }
}

/* ---- QR Code & App Store CTA ---- */
.work-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    padding-top: 1rem;
}

.qr-code-wrap {
    text-align: center;
}

.qr-code-img {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    border: 2px solid rgba(74, 227, 181, 0.25);
    padding: 8px;
    background: #fff;
    box-shadow:
        0 0 20px rgba(74, 227, 181, 0.15),
        0 0 40px rgba(74, 227, 181, 0.08);
    animation: qrGlow 3s ease-in-out infinite;
}

@keyframes qrGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(74, 227, 181, 0.15), 0 0 40px rgba(74, 227, 181, 0.08); }
    50% { box-shadow: 0 0 30px rgba(74, 227, 181, 0.3), 0 0 60px rgba(74, 227, 181, 0.15); }
}

.qr-label {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    opacity: 0.65;
    letter-spacing: 0.06em;
}

.app-store-cta {
    text-align: center;
}

.btn-appstore {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 2.2rem;
    background: linear-gradient(135deg, #4ae3b5 0%, #39d98a 50%, #2ecc71 100%);
    color: var(--dark-bg);
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    box-shadow:
        0 0 20px rgba(74, 227, 181, 0.2),
        0 0 40px rgba(74, 227, 181, 0.1);
    transition: all 0.3s ease;
    animation: btnGlow 3s ease-in-out infinite;
}

.btn-appstore:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 35px rgba(74, 227, 181, 0.35),
        0 0 70px rgba(74, 227, 181, 0.15);
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(74, 227, 181, 0.2), 0 0 40px rgba(74, 227, 181, 0.1); }
    50% { box-shadow: 0 0 30px rgba(74, 227, 181, 0.3), 0 0 60px rgba(74, 227, 181, 0.15); }
}

.btn-appstore i {
    font-size: 1.4rem;
}

.app-store-note {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    opacity: 0.6;
    letter-spacing: 0.04em;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-inner {
    max-width: 36rem;
    margin: 0 auto;
    text-align: center;
}

.contact-inner .section-subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 28rem;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72vh;
    background: transparent;
}

@media (max-width: 768px) {
    .contact { min-height: auto; padding: 3rem 0; }
}

.contact-form {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    background: var(--darker-bg);
    padding: 2rem 1.75rem 2.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    text-align: left;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.form-actions .btn {
    min-width: 12rem;
    justify-content: center;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 168, 67, 0.2);
}

.form-group label {
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    font-size: 1rem;
    color: var(--gold);
    background: rgba(10, 14, 26, 0.97);
    padding: 0 0.5rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #050810;
    border-top: 1px solid var(--border-color);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#ocean-floor-canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.footer-copy {
    font-size: 0.95rem;
    opacity: 0.75;
    color: rgba(224, 214, 194, 0.8);
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

/* ==========================================
   SHARK CANVAS
   ========================================== */
#shark-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--dark-bg);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    box-shadow: 0 0 30px rgba(212, 168, 67, 0.3), var(--shadow-glow);
}

.back-to-top i {
    line-height: 1;
}

/* ==========================================
   ACCESSIBILITY & PERFORMANCE
   ========================================== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.btn:focus,
.nav-link:focus,
.contact-link:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

@media print {
    .ocean-layer,
    .navbar,
    .back-to-top,
    .pirate-loader {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .section-title,
    .hero-title {
        color: black !important;
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 14, 26, 0.97);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-color);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Navbar logo — prevent overflow on small screens */
    .nav-logo {
        font-size: 1.05rem;
    }
    .nav-logo span {
        font-size: 0.95em;
    }

    /* Hero adjustments */
    .hero {
        min-height: 100svh;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 2.8rem);
        letter-spacing: 0.04em;
    }

    .title-dot {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .hero-badge {
        font-size: 0.82rem;
        padding: 0.35rem 0.9rem;
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: clamp(0.85rem, 3vw, 1.1rem);
        letter-spacing: 0.06em;
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.75rem;
        padding: 0 0.5rem;
    }

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

    .btn {
        width: 100%;
        max-width: 260px;
        padding: 0.85rem 1.5rem;
        font-size: 0.92rem;
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }

    /* Ship smaller on mobile */
    .sailing-ship img {
        width: 80px;
    }

    /* Reduce section padding on mobile */
    section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        gap: 0.6rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    /* Services grid — single column, no overflow */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .service-card {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }

    .service-icon i {
        font-size: 2.4rem;
    }

    .service-icon-ring {
        width: 64px;
        height: 64px;
    }

    .service-content h3 {
        font-size: 1.25rem;
    }

    .service-content > p {
        font-size: 0.92rem;
        margin-bottom: 1.5rem;
    }

    .service-features li {
        font-size: 0.88rem;
        padding: 0.4rem 0;
    }

    .tech-pill {
        font-size: 0.75rem;
        padding: 0.3rem 0.65rem;
    }

    .services-cta {
        margin-top: 2.5rem;
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }

    .services-cta h3 {
        font-size: 1.5rem;
    }

    .services-cta > p:not(.pricing-note) {
        font-size: 0.95rem;
    }

    .pricing-note {
        font-size: 0.85rem;
    }

    /* Contact — tighter on mobile */
    .contact-inner {
        max-width: 100%;
    }

    /* Works section responsive */
    .work-card-featured {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }

    .work-icon {
        width: 70px;
        height: 70px;
        border-radius: 18px;
    }

    .work-icon i {
        font-size: 2.2rem;
    }

    .work-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .work-tagline {
        font-size: 0.95rem;
    }

    .phone-hero {
        width: 220px;
        height: auto;
    }

    .phone-notch {
        height: 8px;
        top: 4px;
    }

    .work-cta {
        gap: 2rem;
    }

    .qr-code-img {
        width: 120px;
        height: 120px;
    }

    .btn-appstore {
        padding: 0.85rem 1.5rem;
        font-size: 0.92rem;
    }

    /* Hide some bubbles on mobile */
    .bubble-4,
    .bubble-7,
    .bubble-8 {
        display: none;
    }

    .contact-form {
        padding: 1.5rem 1.25rem 1.75rem;
        border-radius: 14px;
        max-width: 100%;
    }

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

    .form-group input,
    .form-group textarea {
        font-size: 1rem;
        padding: 0.85rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer {
        min-height: 120px;
    }

    .footer-copy {
        font-size: 0.82rem;
    }

    /* Back to top — slightly smaller */
    .back-to-top {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        bottom: 1.25rem;
        right: 1.25rem;
    }

    /* Reduce heavy effects on mobile for perf */
    .ghost-flame:nth-child(3),
    .ghost-flame:nth-child(5),
    .ghost-flame:nth-child(6) {
        display: none;
    }

    .soul:nth-child(6),
    .soul:nth-child(7),
    .soul:nth-child(8) {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-logo {
        font-size: 0.95rem;
    }

    .hero-content {
        padding: 1rem 0.5rem;
    }

    .hero-title {
        font-size: clamp(1.6rem, 11vw, 2.2rem);
    }

    .title-dot {
        font-size: clamp(1.6rem, 11vw, 2.2rem);
    }

    .hero-description {
        font-size: 0.88rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .services-cta {
        padding: 1.5rem 1rem;
    }

    /* Works — very small screens */
    .work-card-featured {
        padding: 1.5rem 0.75rem;
    }

    .phone-hero {
        width: 180px;
        height: auto;
    }

    .work-cta {
        flex-direction: column;
        gap: 1.5rem;
    }

    .qr-code-img {
        width: 100px;
        height: 100px;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.notification-error {
    background: linear-gradient(135deg, #8b0000, #ff4444) !important;
    color: white !important;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gold);
    color: var(--dark-bg);
    padding: 0.5rem 1rem;
    z-index: 10000;
    font-weight: bold;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}
