/* =====================================================
   SOLVETAA — PREMIUM PRODUCTION DESIGN SYSTEM
   Design Philosophy: Clarity, Precision, & Motion
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary: #0B2F44;        /* Deep Navy */
    --accent: #2FA4A9;         /* Solvetaa Teal */
    --accent-light: #E6F4F5;
    --accent-dark: #1E7F84;
    
    /* Semantic Colors */
    --success: #10B981;
    --error: #EF4444;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --bg-main: #FFFFFF;
    --bg-alt: #F8FAFC;
    
    /* Layout */
    --container-width: 1280px;
    --header-total-height: 120px; /* Adjusted for Topbar + Nav */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(11, 47, 68, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(11, 47, 68, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* ---------- COMPONENTS ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.button-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.button-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ---------- TOP BAR ---------- */
.header-topbar {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    padding: 10px 0;
    position: relative;
    z-index: 1001;
}

.topbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-socials {
    display: flex;
    gap: 1.5rem;
}

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-link:hover { color: var(--accent); }

/* ---------- HERO SECTION ---------- */
.hero {
    padding: 180px 0 100px; /* Increased padding to clear fixed header */
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    margin-bottom: 2rem;
    color: var(--primary);
    line-height: 0.9;
}

/* --- CREATIVE UTILITIES --- */
.text-stroke {
    -webkit-text-stroke: 1.5px var(--primary);
    color: transparent;
}

.bg-accent-blur {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    opacity: 0.6;
}

.card-offset {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: 30px 30px 80px rgba(11, 47, 68, 0.08);
}

.creative-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    align-items: center;
}

/* ---------- GRID & CARDS ---------- */
.section-padding {
    padding: 120px 0;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-12px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

/* --- BUTTON CREATIVE --- */
.btn-creative {
    position: relative;
    overflow: hidden;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    z-index: 1;
}

.btn-creative::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--primary);
    transition: var(--transition);
    z-index: -1;
}

.btn-creative:hover { color: #fff; }
.btn-creative:hover::before { left: 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
    .creative-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero-title { font-size: 3.5rem; }
}
/* --- ADDITIONAL HEADER FIXES --- */

/* Mobile Toggle Styling */
.mobile-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Active Link State */
.nav-link.active {
    color: var(--accent);
    font-weight: 700;
}

.nav-link.active::after {
    width: 100%; /* Keeps the underline visible for the active page */
}

/* Ensure Topbar Contact items have spacing */
.topbar-contact i {
    color: var(--accent);
}

.topbar-contact span {
    margin-right: 20px;
}

/* Responsive Toggle visibility */
@media (max-width: 991px) {
    .mobile-toggle {
        display: block;
    }
}

/* --- INDEX PAGE SPECIFIC FIXES --- */

/* Service Card Icon Transitions */
.service-card i {
    transition: var(--transition);
}

.service-card:hover i {
    transform: scale(1.1) rotate(-5deg);
    color: var(--primary);
}

/* Work Card Hover Effects (for the Dark Section) */
.work-card {
    transition: var(--transition);
    border: 1px solid transparent;
}

.work-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.1);
}

.work-card a:hover {
    text-decoration: underline;
    color: #fff !important;
}

/* Values Section Letter Styling */
.values-section span {
    user-select: none;
    transition: var(--transition);
}

.values-section div:hover span {
    color: var(--accent) !important;
    opacity: 1;
}

/* --- LOGO SIZE ADJUSTMENT --- */
.logo {
    display: flex;
    align-items: center;
    padding: 5px 0; /* Adds a little breathing room */
}

.logo img {
    /* Adjust these values to your preference */
    height: 65px;      /* Increased from 48px/50px for better visibility */
    width: auto;       /* Maintains aspect ratio */
    object-fit: contain;
    transition: var(--transition);
}

/* Optional: Shrink logo slightly when header is scrolled */
.site-header.scrolled .logo img {
    height: 50px;
}

/* Responsive Logo Size */
@media (max-width: 768px) {
    .logo img {
        height: 45px;
    }
}

/* =====================================================
   MOBILE RESPONSIVE LAYER (PHONES & SMALL DEVICES)
===================================================== */

/* ---------- GLOBAL ---------- */
@media (max-width: 768px) {

  html {
    font-size: 15px; /* Slightly smaller base text */
  }

  section,
  .section-padding {
    padding: 72px 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  h1, h2, h3, h4 {
    letter-spacing: -0.02em;
  }
}

/* ---------- HEADER & NAV ---------- */
@media (max-width: 991px) {

  .header-topbar {
    font-size: 0.7rem;
    padding: 8px 0;
  }

  .topbar-wrapper {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .site-header {
    backdrop-filter: blur(12px);
  }

  .nav-wrapper {
    padding: 14px 0;
  }

  /* Logo */
  .logo img {
    height: 48px;
  }

  /* Mobile Nav (hidden by default, ready for toggle JS) */
  .nav-links {
    position: absolute;
    top: var(--header-total-height);
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: none;
  }

  .nav-links a {
    padding: 14px 24px;
    width: 100%;
    text-align: center;
  }
}

/* ---------- HERO ---------- */
@media (max-width: 768px) {

  .hero {
    padding: 140px 0 80px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
    line-height: 1.05;
  }

  .hero-text {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .bg-accent-blur {
    width: 280px;
    height: 280px;
    filter: blur(60px);
  }
}

/* ---------- BUTTONS ---------- */
@media (max-width: 768px) {

  .button,
  .btn-creative {
    padding: 0.75rem 1.6rem;
    font-size: 0.85rem;
  }
}

/* ---------- GRID SYSTEM ---------- */
@media (max-width: 768px) {

  .creative-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .grid-auto {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- CARDS ---------- */
@media (max-width: 768px) {

  .card,
  .card-offset {
    padding: 1.75rem;
  }

  .card:hover {
    transform: none; /* Disable heavy lift on mobile */
  }
}

/* ---------- SERVICES ---------- */
@media (max-width: 768px) {

  .service-card i {
    font-size: 1.4rem;
  }

  .service-card:hover i {
    transform: none;
  }
}

/* ---------- WORK / PORTFOLIO ---------- */
@media (max-width: 768px) {

  .work-image {
    height: 140px;
  }

  .work-card:hover {
    transform: none;
  }
}

/* ---------- VALUES ---------- */
@media (max-width: 768px) {

  .values-section span {
    font-size: 2rem;
  }
}

/* ---------- FOOTER ---------- */
@media (max-width: 768px) {

  .footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 64px 1.25rem;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-links h4 {
    margin-top: 12px;
  }
}
