﻿/* ScyllAd Tech - Apple-inspired Design System */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F5F5F7;
    /* Apple Light Gray */
    --color-text-primary: #1D1D1F;
    /* Apple Near Black */
    --color-text-secondary: #86868B;
    /* Apple Gray */
    --color-accent: #0071E3;
    /* Apple Blue */
    --color-accent-hover: #0077ED;
    --color-border: #D2D2D7;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 72px;
    /* Balanced header height */
    --section-spacing: 120px;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    /* Tight tracking for headings */
    line-height: 1.1;
}

h1 {
    font-size: 3.5rem;
    /* 56px */
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    /* 40px */
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
    /* 28px */
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.0625rem;
    /* 17px - Apple standard body size */
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.text-large {
    font-size: 1.25rem;
    /* 20px */
    font-weight: 400;
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-accent);
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-spacing) 0;
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 980px;
    /* Pill shape */
    font-size: 0.875rem;
    /* 14px */
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: scale(1.02);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.btn-secondary:hover {
    background-color: rgba(0, 113, 227, 0.1);
}

.btn-link {
    color: var(--color-accent);
    padding: 0;
    font-size: 1rem;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-link::after {
    content: ' ->';
    font-size: 1.2em;
    line-height: 1;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(251, 251, 253, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid #d2d2d7;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 12px 28px;
}

.logo img,
.nav-logo img {
    height: 70px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-size: 0.9375rem;
    /* 15px - desktop Apple-style */
    color: var(--color-text-primary);
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    opacity: 1;
    color: var(--color-accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-text-primary);
}

/* Hero Section */
.hero {
    padding-top: 24px;
    padding-bottom: 56px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-video {
    width: 100%;
    margin: 0 auto 56px;
}

.hero-video video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    animation: fadeIn 1s ease-out;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    margin-bottom: 24px;
    background: linear-gradient(135deg, #1D1D1F 0%, #434344 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.5rem;
    /* 24px */
    line-height: 1.4;
    margin-bottom: 40px;
    color: var(--color-text-primary);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-container {
    position: relative;
}

.about-img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
    align-items: stretch;
}

.philosophy-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.philosophy-card h4 {
    color: var(--color-accent);
    margin-bottom: 8px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.service-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--color-accent);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-features {
    margin: 24px 0;
    flex-grow: 1;
}

.service-features li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.service-features li::before {
    content: '>';
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.solutions-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 40px auto 0;
}

.solutions-cta .btn {
    padding: 14px 28px;
    font-size: 1rem;
    min-width: 220px;
    margin: 0 auto;
}

#solutions.section {
    padding-bottom: 40px;
}

/* Case Studies */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.case-study-card {
    background: #fff;
    /* Changed to white for better contrast with image */
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.case-study-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-study-content {
    padding: 32px;
}

.case-study-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--color-accent);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.case-study-results {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.result-item {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text-primary);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--color-bg-alt);
    padding: 32px;
    border-radius: var(--radius-md);
    position: relative;
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 24px;
    color: var(--color-text-primary);
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.blog-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-content {
    padding: 24px;
}

.blog-category {
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Contact & Footer */
.contact-section {
    background-color: #1D1D1F;
    /* Dark footer area */
    color: #fff;
    padding: 24px 0 64px;
}

.contact-section h2,
.contact-section p {
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.contact-info {
    text-align: right;
    justify-self: end;
    align-self: center;
}

.contact-info p {
    color: #A1A1A6;
}

.footer {
    background-color: #1D1D1F;
    color: #86868B;
    padding: 40px 0;
    border-top: 1px solid #424245;
    font-size: 0.75rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.footer-logo span {
    color: #fff;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--color-accent);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 1200;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chevron-up {
    display: block;
    width: 14px;
    height: 14px;
    border-right: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(-135deg);
    margin: 12px auto;
}

/* Floating WhatsApp */
.fab-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 88px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 1200;
}

.fab-whatsapp img {
    width: 44px;
    height: 44px;
    display: block;
}

.fab-whatsapp.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@media (max-width: 900px) {
    h2 { font-size: 2rem; }
    .header { height: 72px; }
    .logo img { height: 32px; }
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding-top: 0;
        overflow: hidden;
        transition: height 0.3s ease;
    }
    .nav-links.active {
        height: calc(100vh - 60px);
        padding-top: 40px;
    }
    .nav-link { font-size: 1.125rem; }
    .mobile-menu-btn { display: block; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-stats { grid-template-columns: 1fr 1fr 1fr; }
    .about-grid,
    .contact-grid,
    .philosophy-cards { grid-template-columns: 1fr; }
    .about-image-container { order: -1; }
}

@media (max-width: 768px) {
    .nav-logo {
        height: 36px;
        width: 140px;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    padding: 14px 24px;
    height: 72px;
}

/* LEFT SIDE GROUP */
.nav-left {
    display: flex;
    align-items: flex-end; /* aligns logo with bottom of header */
}

/* BIGGER LOGO */
.nav-logo img {
    height: 64px;
    width: auto;
    margin-bottom: -6px; /* optical alignment with hero text */
}

/* MENU STAYS IN ITS ORIGINAL ALIGNMENT */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px; /* compact, premium spacing */
    font-size: 16px;
    font-weight: 500;
    color: #222;
    letter-spacing: -0.2px;
    margin-right: 0;
}

/* --- Apple-like header styles --- */
/* design tokens (adjust to match your site) */
:root{
  --header-height: 72px;
  --header-padding: 14px 24px;
  --color-bg: rgba(255,255,255,0.75);
  --color-bg-solid: rgba(255,255,255,1);
  --color-text: #222;
  --accent: #0b5cff; /* adjust to your brand */
  --glass-blur: 10px;
  --shadow-elev: 0 6px 20px rgba(13,18,25,0.06);
  --container-max: 1200px;
}

/* base header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: backdrop-filter .28s ease, background-color .28s ease, box-shadow .28s ease, padding .18s ease;
  background: transparent;
}

/* inner container */
.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 24px;
  gap: 24px;
}

/* logo */
.logo img {
  height: 70px;      /* larger logo */
  width: auto;
  display: block;
  transition: height .18s ease;
}

/* nav (center) */
.site-nav {
  flex: 0 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
  margin-right: 12px;
}

/* nav list layout like Apple — thin letter spacing */
.nav-list {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-end;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.2px;
  padding: 6px 0;
  transition: color .18s ease, transform .12s ease;
}

/* hover/active */
.nav-link:hover,
.nav-link:focus {
  color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

/* right actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 12px;
}

/* subtle ghost contact link */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
    background: transparent;
    color: var(--color-text);
    border: none;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.2px;
    transition: color .18s ease, transform .12s ease;
}

/* nav menu links share same feel */
.nav-menu a {
    color: #222;
    text-decoration: none;
    padding: 4px 0;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #000;
    opacity: 0.8;
    transition: 0.2s ease;
}

/* primary call-to-action (used in mobile menu) */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

/* mobile toggle hamburger */
.mobile-toggle {
  display: none;            /* desktop hidden */
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}

/* hamburger visuals */
.hamburger {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  display: block;
  position: relative;
  border-radius: 2px;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* mobile menu (hidden by default) */
.mobile-menu {
  display: none;
  width: 100%;
  background: var(--color-bg-solid);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.mobile-menu ul { list-style: none; margin: 12px 20px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu a { text-decoration: none; color: var(--color-text); font-weight: 600; }

/* sticky state (applies when JS toggles .scrolled) */
.site-header.scrolled {
  background: var(--color-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-elev);
}

/* smaller header on scroll for compact feel */
.site-header.scrolled .header-inner { padding: 12px 18px; }
.site-header.scrolled .logo img { height: 56px; }

/* responsive — tablet & mobile */
@media (max-width: 980px) {
  .nav-list { gap: 20px; }
  .header-inner { padding: 14px; }
  .logo img { height: 46px; }
}

/* mobile breakpoint: compact header and mobile nav */
@media (max-width: 760px) {
  .site-nav { display: none; }          /* hide center nav */
  .mobile-toggle { display: inline-flex; } /* show hamburger */
  .btn-ghost { display: none; }         /* hide right contact on small screens (use mobile menu CTA) */
  .mobile-menu { display: none; }       /* toggled by JS when open */
}


