/* ========================================
   101surf - Modern Ocean Vibes
   Mobile-first, flowing design
   ======================================== */

/* CSS Variables */
:root {
    --bg: #ffffff;
    --bg-alt: #f8fafb;
    --text: #1a1a2e;
    --text-light: #64748b;
    --text-muted: #94a3b8;

    /* Rainbow gradient accent */
    --rainbow: linear-gradient(
        135deg,
        #ff6b6b 0%,
        #feca57 15%,
        #48dbfb 35%,
        #00d2d3 50%,
        #54a0ff 65%,
        #5f27cd 80%,
        #ff6b6b 100%
    );

    --ocean: linear-gradient(
        135deg,
        #667eea 0%,
        #64b5f6 25%,
        #4dd0e1 50%,
        #26c6da 75%,
        #00bcd4 100%
    );

    --ocean-soft: linear-gradient(
        180deg,
        rgba(100, 181, 246, 0.1) 0%,
        rgba(77, 208, 225, 0.05) 100%
    );

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

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Curves */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

p {
    color: var(--text-light);
}

/* Rainbow text utility */
.rainbow-text {
    background: var(--rainbow);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift 8s ease infinite;
}

@keyframes rainbow-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    z-index: -1;
}

/* Primary button - rainbow gradient */
.btn-primary {
    background: var(--ocean);
    background-size: 200% 200%;
    color: white;
    box-shadow:
        0 4px 15px rgba(100, 181, 246, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary::before {
    background: var(--rainbow);
    background-size: 200% 200%;
    animation: rainbow-shift 4s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(100, 181, 246, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

/* Secondary button - outline with rainbow hover */
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--text-muted);
    padding: calc(var(--space-sm) - 2px) calc(var(--space-lg) - 2px);
}

.btn-secondary::before {
    background: var(--ocean-soft);
}

.btn-secondary:hover {
    border-color: transparent;
    background: var(--ocean);
    background-size: 200% 200%;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.3);
}

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

/* Small button */
.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.875rem;
}

/* ========================================
   Section Styles
   ======================================== */

section {
    position: relative;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--ocean);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
}

/* Wave divider */
.wave-divider {
    position: absolute;
    left: 0;
    right: 0;
    height: 80px;
    overflow: hidden;
    line-height: 0;
}

.wave-divider.top {
    top: -1px;
}

.wave-divider.bottom {
    bottom: -1px;
    transform: rotate(180deg);
}

.wave-divider svg {
    width: 100%;
    height: 100%;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-md) var(--space-3xl);
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

/* Animated background blobs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: blob-float 20s ease-in-out infinite;
    pointer-events: none;
    display: none;
}

@media (min-width: 768px) {
    .hero::before,
    .hero::after {
        display: block;
        opacity: 0.2;
    }
}

.hero::before {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #64b5f6 0%, #4dd0e1 100%);
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.hero::after {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #4dd0e1 0%, #26c6da 100%);
    bottom: 15%;
    left: -80px;
    animation-delay: -10s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    padding: 0 var(--space-md);
}

/* Logo */
.hero-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-up 0.8s var(--ease-out) 0.1s both;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: rgba(100, 181, 246, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    color: #4dd0e1;
    margin-bottom: var(--space-lg);
    animation: fade-up 0.8s var(--ease-out) 0.2s both;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .hero-badge {
        font-size: 0.875rem;
    }
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4dd0e1;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(3rem, 12vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-sm);
    animation: fade-up 0.8s var(--ease-out) 0.3s both;
}

.hero-motto {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 500;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    animation: fade-up 0.8s var(--ease-out) 0.4s both;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    animation: fade-up 0.8s var(--ease-out) 0.5s both;
}

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fade-up 0.8s var(--ease-out) 0.8s both;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ========================================
   Wave Dividers
   ======================================== */

.wave-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
    z-index: 1;
}

.wave-divider svg {
    display: block;
    width: calc(100% + 2px);
    height: 40px;
    margin-left: -1px;
}

.wave-divider.top {
    top: -1px;
}

.wave-divider.bottom {
    bottom: -1px;
}

.wave-divider.flip svg {
    transform: rotateY(180deg);
}

@media (min-width: 768px) {
    .wave-divider svg {
        height: 80px;
    }
}

/* ========================================
   Services Section
   ======================================== */

.services {
    padding: var(--space-3xl) 0;
    padding-top: calc(var(--space-3xl) + 30px);
    background: var(--bg-alt);
    position: relative;
}

@media (min-width: 768px) {
    .services {
        padding-top: calc(var(--space-3xl) + 60px);
    }
}

.services-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.services-grid {
    display: grid;
    gap: var(--space-md);
}

.service-card {
    background: var(--bg);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rainbow);
    background-size: 200% 200%;
    animation: rainbow-shift 4s ease infinite;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04);
}

/* Desktop: hide rainbow bar by default, show on hover */
@media (min-width: 1024px) {
    .service-card::before {
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.5s var(--ease-out);
    }

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

    .service-card .btn-sm {
        opacity: 0;
        transform: translateY(10px);
    }

    .service-card:hover .btn-sm {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ocean-soft);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text);
}

.service-card p {
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.service-card .btn-sm {
    transition: all 0.4s var(--ease-out);
}

/* Team note */
.team-note {
    text-align: center;
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.08) 0%, rgba(77, 208, 225, 0.08) 100%);
    border-radius: var(--radius-lg);
}

.team-note p {
    font-size: 1.125rem;
    color: var(--text);
}

.team-note strong {
    color: var(--text);
}

/* ========================================
   About Section
   ======================================== */

.about {
    padding: var(--space-3xl) 0;
    padding-top: calc(var(--space-3xl) + 30px);
    background: var(--bg);
    position: relative;
}

@media (min-width: 768px) {
    .about {
        padding-top: calc(var(--space-3xl) + 60px);
    }
}

.about-content {
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}

.about-text {
    order: 2;
    text-align: center;
}

@media (min-width: 1024px) {
    .about-text {
        text-align: left;
    }
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about-text p:first-of-type::first-letter {
    font-size: 3.5rem;
    font-weight: 800;
    float: left;
    line-height: 1;
    margin-right: var(--space-sm);
    background: var(--ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-stats {
    display: flex;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* About image */
.about-image {
    order: 1;
    position: relative;
}

.about-photo {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Decorative blob */
.about-image::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--ocean);
    background-size: 200% 200%;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    bottom: -50px;
    right: -50px;
    z-index: -1;
}

/* ========================================
   Contact Section
   ======================================== */

.contact {
    padding: var(--space-3xl) 0;
    padding-top: calc(var(--space-3xl) + 30px);
    background: linear-gradient(180deg, var(--bg-alt) 0%, #f0fafa 100%);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .contact {
        padding-top: calc(var(--space-3xl) + 60px);
    }
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-header {
    margin-bottom: var(--space-xl);
}

.contact-header .section-title {
    margin-bottom: var(--space-sm);
}

/* Phone mockup */
.phone-mockup {
    position: relative;
    width: 280px;
    margin-bottom: var(--space-lg);
}

.phone-frame {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.25),
        0 20px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #0a0a15;
    border-radius: 20px;
}

.phone-screen {
    background: linear-gradient(180deg, #128c7e 0%, #075e54 100%);
    border-radius: 32px;
    aspect-ratio: 9/16;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
}

/* WhatsApp styling on screen */
.whatsapp-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    z-index: 1;
}

.whatsapp-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

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

.whatsapp-logo svg {
    width: 48px;
    height: 48px;
}

.whatsapp-name {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.whatsapp-status {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* Phone number button */
.phone-number-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: #25D366;
    color: white;
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-bounce);
    box-shadow:
        0 8px 30px rgba(37, 211, 102, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.phone-number-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.phone-number-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 12px 40px rgba(37, 211, 102, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.15);
}

.phone-number-btn:hover::before {
    opacity: 1;
}

.phone-number-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.phone-number-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.contact-note {
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Decorative elements */
.contact::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, rgba(77, 208, 225, 0.08) 100%);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
    filter: blur(80px);
    pointer-events: none;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: var(--space-xl) 0 var(--space-lg);
    background: var(--text);
    color: rgba(255, 255, 255, 0.6);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
    margin-bottom: var(--space-md);
}

.footer p {
    color: inherit;
    font-size: 0.875rem;
    margin: 0;
}

.footer-copyright {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.6;
}

.footer-brand {
    font-weight: 700;
    background: var(--rainbow);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift 8s ease infinite;
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s var(--ease-out);
}

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

/* ========================================
   Responsive - Tablet and up
   ======================================== */

@media (min-width: 640px) {
    .hero-logo {
        width: 120px;
        height: 120px;
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }

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

    .about-stats {
        justify-content: flex-start;
    }

    .phone-number-btn {
        font-size: 1.5rem;
    }
}

/* ========================================
   Responsive - Desktop
   ======================================== */

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }

    .about-content {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--space-3xl);
    }

    .about-text {
        order: 1;
    }

    .about-image {
        order: 2;
    }

    .contact-content {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: var(--space-3xl);
        text-align: left;
    }

    .contact-header {
        margin-bottom: 0;
        max-width: 400px;
    }

    .phone-mockup {
        margin-bottom: 0;
    }
}

/* ========================================
   Reduced motion
   ======================================== */

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

    html {
        scroll-behavior: auto;
    }
}
