/* css/styles.css - Exact Nexan Clone CSS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Colors */
  --c-white: #ffffff;
  --c-bg-light: #F8F9FA;
  --c-bg-dark: #070D1E; /* Deep Navy */
  --c-surface-dark: #0D162B; /* Deep Navy slightly lighter */
  
  --c-accent: #5A67D8; /* Periwinkle/Indigo */
  --c-accent-hover: #4C51BF;
  
  --c-text-main: #111827; /* Dark Slate heading */
  --c-text-body: #4B5563; /* Slate Body */
  --c-text-muted: #9CA3AF;
  
  --c-dark-text-main: #F3F4F6;
  --c-dark-text-body: #9CA3AF;

  --c-border-light: #E5E7EB;
  --c-border-dark: rgba(255,255,255,0.08);

  /* Shadows */
  --sh-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
  --sh-md: 0 10px 25px -5px rgba(0,0,0,0.05);
  
  /* Tyopgraphy */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background-color: var(--c-white);
  color: var(--c-text-body);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--c-text-main);
  font-weight: 700;
  line-height: 1.2;
}
.theme-dark h1, .theme-dark h2, .theme-dark h3, .theme-dark h4, .text-white {
  color: var(--c-white);
}
.theme-dark p { color: var(--c-dark-text-body); }

p { margin-bottom: 1rem; }
a { color: var(--c-text-main); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-accent); }
.theme-dark a { color: var(--c-white); }
.theme-dark a:hover { color: var(--c-accent); }

/* Layout Grid */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-light { background-color: var(--c-bg-light); }
.bg-white { background-color: var(--c-white); }
.bg-dark { background-color: var(--c-bg-dark); color: var(--c-dark-text-body); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 600;
  padding: 14px 28px; border-radius: 6px;
  transition: all 0.2s ease; cursor: pointer;
  border: none; outline: none; text-decoration: none;
}
.btn-primary { background: var(--c-accent); color: var(--c-white); }
.btn-primary:hover { background: var(--c-accent-hover); color: var(--c-white); transform: translateY(-2px); }
.btn-dark { background: var(--c-bg-dark); color: var(--c-white); }
.btn-dark:hover { background: var(--c-surface-dark); color: var(--c-white); }

/* Top Bar */
.top-bar {
  background: var(--c-bg-light); border-bottom: 1px solid var(--c-border-light);
  padding: 8px 0; font-size: 13px; color: var(--c-text-body);
}
.top-bar .flex-between { display: flex; justify-content: space-between; align-items: center; }
.top-contact { display: flex; gap: 24px; }
.top-contact span { display: flex; align-items: center; gap: 6px; }

/* Navbar */
.navbar {
  background: var(--c-white); padding: 16px 0; position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--c-border-light);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--c-text-main); display: flex; align-items: center; gap: 8px;}
.brand-icon { width: 24px; height: 24px; background: var(--c-accent); border-radius: 50%; } /* Placeholder for Logo mark */
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links li a { font-weight: 500; font-size: 15px; color: var(--c-text-main); }
.nav-links li a:hover { color: var(--c-accent); }

/* Hero */
.hero {
  background-color: var(--c-bg-dark);
  position: relative;
  min-height: 80vh;
  display: flex; align-items: center;
  background-image: 
    linear-gradient(to right, rgba(7, 13, 30, 0.95) 0%, rgba(7, 13, 30, 0.7) 50%, rgba(7, 13, 30, 0.4) 100%),
    url('https://images.unsplash.com/photo-1573164713988-8665fc963095?auto=format&fit=crop&q=80');
  background-size: cover; background-position: center;
  background-attachment: fixed;
}
.hero-content {
  max-width: 700px;
  position: relative; z-index: 2;
}
.hero-tag {
  color: var(--c-white); opacity: 0.8; font-size: 14px; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 24px; display: flex; align-items: center; gap: 12px;
}
.hero-tag::before { content:''; display:block; width:40px; height:1px; background:var(--c-white); opacity:0.5;}
.hero h1 { font-size: 64px; margin-bottom: 24px; letter-spacing: -1.5px; }
.hero p { font-size: 18px; line-height: 1.7; color: var(--c-dark-text-body); margin-bottom: 40px; max-width: 600px; }

/* Partner Strip */
.partner-strip {
  border-bottom: 1px solid var(--c-border-light); padding: 48px 0; background: var(--c-white);
}
.partner-container { display: flex; align-items: center; justify-content: space-between; }
.partner-title { font-weight: 600; font-size: 18px; max-width: 200px; color: var(--c-text-main); line-height: 1.3; }
.partner-logos { display: flex; gap: 64px; align-items: center; opacity: 0.6; filter: grayscale(100%); }

/* About Section */
.about-section { background: var(--c-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image { position: relative; border-radius: 12px; overflow: hidden; }
.about-image img { width: 100%; display: block; height: auto; object-fit: cover;}
.play-btn {
  position: absolute; bottom: 32px; left: 32px; display: flex; align-items: center; gap: 16px;
  color: var(--c-white); font-weight: 600; font-family: var(--font-heading);
}
.play-icon { width: 56px; height: 56px; background: var(--c-accent); border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.sec-tag { font-family: var(--font-heading); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--c-accent); margin-bottom: 16px; display: flex; align-items: center; gap: 8px;}
.sec-tag::before { content:''; width:24px; height:1px; background:var(--c-accent); }
.about-content h2 { font-size: 44px; margin-bottom: 24px; }
.about-list { list-style: none; margin: 32px 0; }
.about-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; color: var(--c-text-main); font-weight: 500;}
.about-list li svg { color: var(--c-accent); flex-shrink: 0; margin-top:2px; }
.about-stats { display: flex; gap: 48px; margin-top: 48px; border-top: 1px solid var(--c-border-light); padding-top: 32px;}
.stat-block strong { display: block; font-family: var(--font-heading); font-size: 32px; color: var(--c-text-main); line-height: 1;}
.stat-block span { font-size: 14px; color: var(--c-text-muted); }

/* Services Section */
.services-section { background: var(--c-bg-dark); }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; }
.services-header h2 { font-size: 44px; max-width: 500px; color: var(--c-white);}
.services-header p { max-width: 400px; color: var(--c-dark-text-body); margin: 0; }
.svc-card {
  padding: 40px; border-radius: 12px; transition: transform 0.2s;
}
.svc-card:hover { transform: translateY(-4px); }
.svc-light { background: var(--c-white); color: var(--c-text-body); }
.svc-light h3 { color: var(--c-text-main); }
.svc-dark { background: var(--c-surface-dark); border: 1px solid var(--c-dark-border); color: var(--c-dark-text-body); }
.svc-dark h3 { color: var(--c-white); }

.svc-icon-wrap {
  width: 64px; height: 64px; background: var(--c-accent); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 32px;
  color: #fff;
}
.svc-card h3 { font-size: 22px; margin-bottom: 16px; }

/* Image Break */
.img-break { width: 100%; height: 400px; background: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&q=80') center/cover; background-attachment: fixed; }

/* Case Studies */
.case-studies { text-align: center; }
.cs-header { margin-bottom: 64px; }
.cs-header h2 { font-size: 44px; margin-bottom: 16px; }
.cs-header p { max-width: 600px; margin: 0 auto; color: var(--c-text-body); }
.cs-card { text-align: left; }
.cs-img { width: 100%; height: 240px; border-radius: 12px; overflow: hidden; margin-bottom: 24px; position:relative;}
.cs-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-logo { position: absolute; bottom: 16px; left: 16px; font-weight:bold; color:#fff; display:flex; align-items:center; gap:8px;}
.cs-card span { color: var(--c-accent); font-size: 14px; font-weight: 600; text-transform: uppercase; }
.cs-card h3 { font-size: 22px; margin-top: 12px; }

/* Testimonials */
.testi-section { background: var(--c-bg-light); text-align: center; }
.testi-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 64px; text-align:left;}
.testi-header h2 { font-size: 44px; margin:0;}
.testi-card { background: var(--c-white); padding: 40px; border: 1px solid var(--c-border-light); border-radius: 12px; text-align:left;}
.testi-card p { font-size: 16px; color: var(--c-text-body); margin-bottom: 32px; line-height: 1.6;}
.testi-author { display: flex; align-items: center; gap: 16px; }
.testi-author img { width: 48px; height: 48px; border-radius: 50%; }
.testi-name strong { display: block; color: var(--c-text-main); font-family: var(--font-heading); }
.testi-name span { font-size: 14px; color: var(--c-text-muted); }

/* Contact Form Section */
.form-section { background: var(--c-white); }
.form-wrapper { display: flex; border-radius: 16px; overflow: hidden; box-shadow: var(--sh-md); }
.form-box { flex: 1; padding: 64px; background: var(--c-white); }
.form-info { flex: 1; padding: 64px; background: var(--c-bg-dark); color: var(--c-dark-text-body); }

.form-group { margin-bottom: 24px; }
.form-label { display: block; font-weight: 500; color: var(--c-text-main); margin-bottom: 8px; font-size: 14px;}
.form-control { 
  width: 100%; padding: 14px 16px; border: 1px solid var(--c-border-light); 
  border-radius: 6px; font-family: var(--font-body); outline: none; transition: border 0.2s;
}
.form-control:focus { border-color: var(--c-accent); }
textarea.form-control { min-height: 120px; resize: vertical; }

.form-info h2 { font-size: 36px; color: var(--c-white); margin-bottom: 24px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; margin-bottom: 48px;}
.info-block h4 { color: var(--c-white); font-size: 18px; margin-bottom: 8px; }
.info-benefits h4 { color: var(--c-white); font-size: 18px; margin-bottom: 16px; }
.info-benefits ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;}
.info-benefits li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.info-benefits svg { color: var(--c-accent); width: 16px; height: 16px; flex-shrink:0; margin-top:3px;}

/* Footer */
.footer { background: var(--c-bg-dark); padding: 80px 0 40px; color: var(--c-dark-text-body); border-top: 1px solid var(--c-dark-border);}
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 64px; margin-bottom: 80px; }
.footer-brand h2 { color: var(--c-white); font-family: var(--font-heading); font-size: 24px; margin-bottom: 24px; display:flex; align-items:center; gap:8px;}
.footer-brand p { margin-bottom: 24px; font-size: 18px; font-weight: 600; color: var(--c-white);}
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex:1; padding: 12px 16px; border-radius: 6px; border: none; outline:none; }
.newsletter-form button { padding: 12px 24px; background: var(--c-accent); color: #fff; border:none; border-radius: 6px; cursor: pointer; font-weight:600;}
.footer-col h4 { color: var(--c-white); font-size: 18px; margin-bottom: 24px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--c-dark-text-body); }
.footer-col a:hover { color: var(--c-white); }
.footer-bottom { border-top: 1px solid var(--c-dark-border); padding-top: 32px; display: flex; justify-content: space-between; font-size: 14px; }


/* Services Timeline Layout */
.timeline-wrapper { position: relative; padding: 120px 0; max-width: 1100px; margin: 0 auto; }
.timeline-tracker { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--c-border-light); transform: translateX(-50%); z-index: 1; }
.timeline-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: var(--c-accent); transition: height 0.1s linear; }
.timeline-step { display: flex; align-items: center; justify-content: space-between; margin-bottom: 120px; position: relative; z-index: 2; transition: opacity 0.8s, transform 0.8s; opacity: 0; transform: translateY(40px); }
.timeline-step.is-revealed { opacity: 1; transform: translateY(0); }
.timeline-step:last-child { margin-bottom: 0; }
.timeline-content { width: 42%; }
.timeline-graphic { width: 48%; background: var(--c-surface-dark); border-radius: 20px; display: flex; justify-content: center; align-items: center; border: 1px solid var(--c-dark-border); box-shadow: var(--sh-md); aspect-ratio: 4/3; position: relative; overflow: hidden; }
.timeline-step:nth-child(even) { flex-direction: row-reverse; }
.timeline-step:nth-child(even) .timeline-content { text-align: left; }
.timeline-step:nth-child(odd) .timeline-content { text-align: right; }
.timeline-step:nth-child(odd) .timeline-content .svc-icon-wrap { margin-left: auto; margin-right: 0; }
.timeline-dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; background: var(--c-white); border: 4px solid var(--c-border-light); border-radius: 50%; flex-shrink: 0; transition: all 0.4s ease; z-index: 3; box-shadow: 0 0 0 0px rgba(90, 103, 216, 0); }
.timeline-step.is-active .timeline-dot { border-color: var(--c-accent); box-shadow: 0 0 0 8px rgba(90, 103, 216, 0.2); }

@media (max-width: 900px) {
  .timeline-tracker { left: 24px; transform: none; }
  .timeline-dot { left: 24px; transform: translateY(-50%); top: 40px;}
  .timeline-step { flex-direction: column !important; align-items: flex-start; margin-bottom: 80px; padding-left: 64px; }
  .timeline-content, .timeline-graphic { width: 100%; text-align: left !important; }
  .timeline-content .svc-icon-wrap { margin-left: 0 !important; }
  .timeline-graphic { margin-top: 32px; }
}


/* Sticky Card Deck Layout for Industries */
.sticky-deck-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 150px;
  background: var(--c-surface-dark);
}
.sticky-card {
  position: sticky;
  top: 80px; /* Offset for header */
  height: 90vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
.sticky-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 80px;
}
.sticky-text {
  width: 45%;
}
.sticky-tag {
  display: inline-block;
  color: var(--c-accent);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 6px 12px;
  border: 1px solid rgba(90, 103, 216, 0.4);
  border-radius: 4px;
}
.sticky-text h2 {
  font-family: var(--font-heading);
  font-size: 56px;
  color: var(--c-white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.sticky-text p {
  font-size: 20px;
  color: var(--c-dark-text-body);
  line-height: 1.7;
}
.sticky-visual {
  width: 50%;
  height: 100%;
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 900px) {
  .sticky-card {
    height: auto;
    position: relative;
    top: auto;
    padding: 80px 0;
  }
  .sticky-card-inner {
    flex-direction: column;
  }
  .sticky-text, .sticky-visual {
    width: 100%;
  }
  .sticky-text h2 { font-size: 40px; }
}


/* Lead Collection Form CSS */
.lead-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}
.lead-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 48px;
    backdrop-filter: blur(10px);
}
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.form-row {
    display: flex;
    gap: 24px;
}
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.input-group label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-dark-text-body);
}
.input-group input, 
.input-group select, 
.input-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 12px 0;
    font-size: 16px;
    color: white;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-bottom-color: var(--c-accent);
}
.input-group select {
    color: white;
}
.input-group select option {
    background: var(--c-surface-dark);
    color: white;
}
.input-group textarea {
    resize: vertical;
}

@media (max-width: 900px) {
    .lead-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .form-row {
        flex-direction: column;
        gap: 24px;
    }
    .lead-form-wrapper {
        padding: 32px 24px;
    }
}
