/* ========================================
   SINAPTIKA — The Innovation Key
   CSS Design System
   ======================================== */

/* --- CSS Variables --- */
:root {
    --pink: #E91E63;
    --pink-light: #FCE4EC;
    --pink-glow: rgba(233, 30, 99, 0.15);
    --teal: #1B6B72;
    --teal-dark: #165C62;
    --teal-light: #E0F2F1;
    --dark: #1A1A2E;
    --dark-soft: #2D2D44;
    --gray-900: #212121;
    --gray-700: #616161;
    --gray-500: #9E9E9E;
    --gray-300: #E0E0E0;
    --gray-100: #F5F5F5;
    --white: #FFFFFF;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-pink: 0 8px 30px rgba(233, 30, 99, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-body);
    color: var(--gray-900);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

.accent { color: var(--pink); }
.section { padding: 100px 0; }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header p {
    color: var(--gray-700);
    font-size: 1.1rem;
    margin-top: 12px;
}

.section-tag {
    display: inline-block;
    background: var(--pink-glow);
    color: var(--pink);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--pink);
    color: var(--white);
    border-color: var(--pink);
    box-shadow: var(--shadow-pink);
}
.btn-primary:hover {
    background: #C2185B;
    border-color: #C2185B;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

.btn-white {
    background: var(--white);
    color: var(--pink);
    border-color: var(--white);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.btn-nav {
    background: var(--pink);
    color: var(--white);
    padding: 10px 24px;
    font-size: 0.9rem;
}
.btn-nav:hover { background: #C2185B; }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo { text-decoration: none; }

.nav-logo-img {
    height: 44px;
    width: auto;
    transition: var(--transition);
    border-radius: 6px;
}
.navbar.scrolled .nav-logo-img {
    height: 38px;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    margin-bottom: 16px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--pink); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    transition: var(--transition);
    border-radius: 2px;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #14535A 0%, var(--teal) 40%, #1E7880 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}
.shape-1 {
    width: 600px; height: 600px;
    background: var(--pink);
    top: -200px; right: -100px;
    animation: float 20s ease-in-out infinite;
}
.shape-2 {
    width: 400px; height: 400px;
    background: var(--white);
    bottom: -100px; left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}
.shape-3 {
    width: 300px; height: 300px;
    background: var(--pink);
    top: 40%; left: 50%;
    animation: float 18s ease-in-out infinite 2s;
}

/* Neural network nodes */
.node {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(233, 30, 99, 0.4);
    animation: pulse 3s ease-in-out infinite;
}
.node::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 40px; height: 1px;
    background: rgba(233, 30, 99, 0.15);
    transform-origin: left center;
}
.node-1 { top: 20%; left: 15%; animation-delay: 0s; }
.node-1::after { transform: rotate(35deg); width: 80px; }
.node-2 { top: 35%; right: 20%; animation-delay: 1s; }
.node-2::after { transform: rotate(-25deg); width: 60px; }
.node-3 { bottom: 30%; left: 25%; animation-delay: 0.5s; }
.node-3::after { transform: rotate(60deg); width: 70px; }
.node-4 { top: 60%; right: 30%; animation-delay: 1.5s; }
.node-4::after { transform: rotate(-45deg); width: 90px; }
.node-5 { top: 15%; left: 55%; animation-delay: 2s; }
.node-5::after { transform: rotate(15deg); width: 50px; }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero-content h1 { color: var(--white); margin-bottom: 24px; }
.hero-sub {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 28px;
}
.badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--pink);
    animation: pulse 2s ease-in-out infinite;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}
.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

/* --- Services --- */
.section-services { background: var(--gray-100); }

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition);
    border: 1px solid var(--gray-300);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--teal));
    opacity: 0;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before { opacity: 1; }

.service-card.featured {
    border-color: var(--pink);
    background: linear-gradient(135deg, #FFF5F8 0%, var(--white) 100%);
}
.service-card.featured::before { opacity: 1; }

.service-icon {
    width: 56px; height: 56px;
    background: var(--pink-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--pink);
}
.service-icon svg { width: 32px; height: 32px; }

.service-card h3 { margin-bottom: 12px; color: var(--teal-dark); }
.service-card p { color: var(--gray-700); font-size: 0.95rem; margin-bottom: 20px; }

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}
.service-tags li {
    background: var(--teal-light);
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}

/* --- Method --- */
.section-method { background: var(--white); }

.method-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}
.method-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--pink), var(--teal));
    z-index: 0;
}

.method-step {
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--pink), #C2185B);
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-pink);
    position: relative;
}
.step-number::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--pink-light);
}

.step-content h3 { margin-bottom: 8px; color: var(--teal-dark); }
.step-content p { color: var(--gray-700); font-size: 0.9rem; }

/* --- Sectors --- */
.section-sectors { background: var(--gray-100); }

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sector-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-300);
    position: relative;
}
.sector-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.sector-highlight {
    border: 2px solid var(--pink);
    background: linear-gradient(135deg, #FFF5F8 0%, var(--white) 100%);
}
.sector-highlight .sector-icon {
    background: var(--pink);
    color: var(--white);
}

.sector-icon {
    width: 52px; height: 52px;
    background: var(--pink-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--pink);
}
.sector-icon svg { width: 28px; height: 28px; }

.sector-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--pink);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sector-card h3 { margin-bottom: 8px; color: var(--teal-dark); font-size: 1.1rem; }
.sector-card p { color: var(--gray-700); font-size: 0.88rem; }

/* --- About --- */
.section-about { background: var(--white); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-tag { margin-bottom: 16px; }
.about-content h2 { margin-bottom: 24px; }
.about-lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 16px;
}
.about-content p { color: var(--gray-700); margin-bottom: 16px; }

.about-values {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}
.value {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.value-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: var(--pink-glow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
}
.value-icon svg { width: 20px; height: 20px; }
.value strong { display: block; color: var(--teal-dark); font-size: 0.95rem; }
.value span { color: var(--gray-700); font-size: 0.88rem; }

/* About visual - floating cards */
.about-visual {
    position: relative;
    height: 450px;
}

.about-card-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-300);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--teal-dark);
    transition: var(--transition);
}
.floating-card:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); }

.fc-emoji { font-size: 1.5rem; }

.fc-1 { top: 10%; left: 10%; animation: floatCard 6s ease-in-out infinite; }
.fc-2 { top: 35%; right: 5%; animation: floatCard 7s ease-in-out infinite 1s; }
.fc-3 { bottom: 25%; left: 5%; animation: floatCard 5s ease-in-out infinite 2s; }
.fc-4 { bottom: 5%; right: 15%; animation: floatCard 8s ease-in-out infinite 0.5s; }

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

/* --- CTA Banner --- */
.section-cta {
    padding: 80px 0;
    background: var(--white);
}

.cta-banner {
    background: linear-gradient(145deg, var(--teal-dark), var(--teal));
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(233, 30, 99, 0.1);
    top: -150px; right: -100px;
}
.cta-banner::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    bottom: -100px; left: -50px;
}

.cta-banner h2 { color: var(--white); margin-bottom: 12px; position: relative; z-index: 1; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 32px; position: relative; z-index: 1; }
.cta-banner .btn { position: relative; z-index: 1; }

/* --- Contact --- */
.section-contact { background: var(--gray-100); }

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-900);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-900);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px var(--pink-glow);
}
.form-group textarea { resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-500); }

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
}
.contact-card h3 { color: var(--teal-dark); margin-bottom: 8px; }
.contact-card > p { color: var(--gray-700); font-size: 0.95rem; margin-bottom: 24px; }

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--gray-300);
}
.contact-method:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-2px); }

.contact-method.whatsapp:hover { background: #E8F5E9; border-color: #4CAF50; }
.contact-method.email:hover { background: var(--pink-light); border-color: var(--pink); }

.cm-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.whatsapp .cm-icon { background: #E8F5E9; color: #4CAF50; }
.email .cm-icon { background: var(--pink-light); color: var(--pink); }
.cm-icon svg { width: 22px; height: 22px; }

.contact-method strong { display: block; color: var(--gray-900); font-size: 0.95rem; }
.contact-method span { color: var(--gray-700); font-size: 0.85rem; }

/* --- Footer --- */
.footer {
    background: #165C62;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-brand .logo-text { color: var(--white); }
.footer-tagline {
    color: var(--pink);
    font-style: italic;
    font-size: 0.95rem;
    margin: 4px 0 12px;
}
.footer-brand p { font-size: 0.9rem; }

.footer-links h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--pink); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px; height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    color: var(--white);
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* --- Animations --- */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .sectors-grid { grid-template-columns: repeat(2, 1fr); }
    .method-timeline { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .method-timeline::before { display: none; }
    .about-grid { gap: 48px; }
}

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

    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        z-index: 998;
    }
    .nav-links.active { display: flex; }
    .nav-links a { color: var(--white); font-size: 1.2rem; }

    .hamburger { display: flex; z-index: 999; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .hamburger.active span { background: var(--white); }

    .hero { padding: 100px 0 60px; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .stat-divider { display: none; }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-visual { height: 300px; }

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

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

    .cta-banner { padding: 50px 30px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; text-align: center; }
    .service-card { padding: 28px; }
}
