/* ==========================================================================
   CORSCORE — Corporate Styling System
   ========================================================================== */

/* Design Tokens & Variables */
:root {
  /* Color Palette */
  --primary: #2D8CFF;
  --primary-hover: #1a7aee;
  --primary-light: #eaf3ff;
  --primary-glow: rgba(45, 140, 255, 0.12);
  
  --dark: #0f172a;
  --dark-panel: #0b1a30;
  
  --bg-light: #f8fafc;
  --white: #ffffff;
  
  --text-main: #1e293b;
  --text-light: #64748b;
  --border: #e8ecf1;
  --error: #ef4444;
  
  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Elevation — soft, modern, near-invisible */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 8px 24px rgba(45, 140, 255, 0.07), 0 2px 6px rgba(0, 0, 0, 0.03);

  /* Unified Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1280px;
  --nav-height: 70px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Elements (Mobile First — 360px+)
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

/* ==========================================================================
   Reusable UI Components
   ========================================================================== */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border-radius: var(--radius-md);
  height: 44px;
  padding: 0 24px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(45, 140, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(45, 140, 255, 0.08);
}

/* Section Header & Badges */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.75;
  margin-top: 14px;
}

.section-header {
  margin-bottom: 40px;
  text-align: left;
}

/* ==========================================================================
   Navigation Bar (Mobile First)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--white);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  user-select: none;
}

.logo-img {
  height: 48px;
  width: auto;
}

/* Mobile Links Drawer */
.nav-links {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 8px 24px 24px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.nav-links.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-link {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav-link:last-child {
  border-bottom: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-cta {
  display: none;
}

/* Hamburger Icon */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 6px;
  z-index: 1001;
  position: relative;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark);
  border-radius: 1px;
  transition: var(--transition);
}

.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);
}

/* ==========================================================================
   Hero Section (Mobile First)
   ========================================================================== */
.hero {
  padding: calc(var(--nav-height) + 48px) 0 56px;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: rgba(45, 140, 255, 0.07);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-top: 18px;
  max-width: 540px;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  width: 100%;
}

.hero-btns .btn {
  width: 100%;
}

/* Hero Feature Checklist */
.hero-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  width: 100%;
}

.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.hf-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

.hero-feature h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
  line-height: 1.3;
}

.hero-feature p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.55;
}

/* Hero Image Wrapper */
.hero-visual {
  position: relative;
  width: 100%;
}

.hero-bg-shape {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  top: 10px;
  left: -10px;
  z-index: 0;
}

.hero-img-wrapper {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* ==========================================================================
   About Section (Mobile First)
   ========================================================================== */
.about {
  padding: 72px 0;
  background: var(--white);
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-image {
  position: relative;
  width: 100%;
}

.about-img-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  top: -10px;
  right: -10px;
  z-index: 0;
}

.about-img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-text.lead {
  font-size: 16px;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.7;
}

.about-subheading {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 12px;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* ==========================================================================
   Services Section (Mobile First)
   ========================================================================== */
.services {
  padding: 72px 0;
  background: var(--bg-light);
}

.services-header {
  text-align: center;
}

.services-header .section-desc {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(45, 140, 255, 0.1);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 320px;
}

/* ==========================================================================
   Contact Section (Mobile First)
   ========================================================================== */
.contact {
  padding: 72px 0;
  background: var(--white);
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* Left Panel */
.contact-info {
  background: linear-gradient(160deg, var(--dark-panel) 0%, #081525 100%);
  color: var(--white);
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
}

.contact-bg-circle {
  position: absolute;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-full);
  bottom: -70px;
  right: -70px;
  pointer-events: none;
}

.contact-label {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.contact-title {
  color: var(--white);
  font-size: 24px;
  margin-top: 14px;
  line-height: 1.25;
}

.contact-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 36px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.contact-item svg {
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Right Panel Form */
.contact-form {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-main);
}

.form-group input, 
.form-group textarea, 
.form-group select {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
  background: var(--white);
  color: var(--dark);
  width: 100%;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

/* Custom Select Dropdown Arrow */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-light);
  pointer-events: none;
}

.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 36px;
  cursor: pointer;
}

/* Form Validation Errors */
.error-msg {
  font-size: 11.5px;
  color: var(--error);
  font-weight: 500;
  display: none;
  margin-top: 2px;
}

.form-group.error input, 
.form-group.error textarea, 
.form-group.error select {
  border-color: var(--error);
}

.form-group.error .error-msg {
  display: block;
}

.btn-form {
  height: 46px;
  padding: 0 28px;
  font-size: 14px;
  align-self: flex-start;
  margin-top: 4px;
}

/* ==========================================================================
   Footer Section (Mobile First)
   ========================================================================== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 0;
  font-size: 14px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 60px;
  width: auto;
}

.footer-brand p {
  line-height: 1.7;
  font-size: 13.5px;
  max-width: 300px;
}

.footer-links-group h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links-group ul {
  list-style: none;
}

.footer-links-group ul li {
  margin-bottom: 12px;
}

.footer-links-group ul li a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
  transition: var(--transition);
}

.footer-links-group ul li a:hover {
  color: var(--white);
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  margin-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.55;
}

/* Bottom Bar */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

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

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* Developer Credit */
.footer-developer {
  text-align: center;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0;
}

.footer-developer p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  letter-spacing: 0.5px;
}

.footer-developer a {
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
}

.footer-developer a:hover {
  color: var(--white);
}

/* ==========================================================================
   Back to Top Button (Mobile First)
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(45, 140, 255, 0.25);
  z-index: 998;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(45, 140, 255, 0.3);
}

/* ==========================================================================
   Tablet Devices (768px+)
   ========================================================================== */
@media (min-width: 768px) {
  body {
    font-size: 15.5px;
  }
  
  .container {
    padding-right: 32px;
    padding-left: 32px;
  }

  .section-title {
    font-size: 34px;
  }

  .section-header {
    margin-bottom: 52px;
  }

  /* Sticky Navbar Reset */
  .navbar {
    height: var(--nav-height);
  }

  .hamburger {
    display: none;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    padding: 0;
    width: auto;
    border-bottom: none;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: none;
    gap: 36px;
  }

  .nav-link {
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: none;
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: var(--transition);
  }

  .nav-link:hover::after, 
  .nav-link.active::after {
    width: 100%;
  }

  .nav-cta {
    display: inline-flex;
    height: 38px;
    padding: 0 20px;
    font-size: 13px;
  }

  /* Hero Section Grid */
  .hero {
    padding: calc(var(--nav-height) + 56px) 0 72px;
  }

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

  .hero-title {
    font-size: 38px;
  }

  .hero-btns {
    flex-direction: row;
  }

  .hero-btns .btn {
    width: auto;
  }

  /* About Section Grid */
  .about {
    padding: 88px 0;
  }

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

  /* Services Grid */
  .services {
    padding: 88px 0;
  }

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

  /* Contact Section */
  .contact {
    padding: 88px 0;
  }

  .contact-wrapper {
    flex-direction: row;
  }

  .contact-info {
    flex: 1;
    padding: 48px 40px;
  }

  .contact-form {
    flex: 1.2;
    padding: 48px 40px;
  }

  .form-row {
    flex-direction: row;
  }

  /* Footer Section */
  .footer {
    padding: 72px 0 0;
  }

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 24px 0;
  }
}

/* ==========================================================================
   Desktop Devices (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
  .container {
    padding-right: 40px;
    padding-left: 40px;
  }

  .section-title {
    font-size: 38px;
  }

  .section-desc {
    font-size: 16px;
    max-width: 600px;
  }

  /* Hero */
  .hero {
    padding: calc(var(--nav-height) + 80px) 0 96px;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
  }

  .hero-grid {
    gap: 80px;
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-bg-shape {
    left: -14px;
    top: 14px;
  }

  /* About */
  .about {
    padding: 100px 0;
  }

  .about-grid {
    gap: 80px;
  }

  .about-text.lead {
    font-size: 16.5px;
    margin-bottom: 20px;
  }

  /* Services Grid */
  .services {
    padding: 100px 0;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .service-card {
    padding: 24px 26px 28px;
  }

  .service-card h3 {
    font-size: 19px;
  }

  .service-card p {
    font-size: 14.5px;
    max-width: 300px;
  }

  /* Contact */
  .contact {
    padding: 100px 0;
  }

  .contact-info {
    padding: 60px 48px;
  }

  .contact-form {
    padding: 60px 48px;
    gap: 22px;
  }

  /* Footer */
  .footer {
    padding: 80px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr;
    gap: 56px;
    padding-bottom: 56px;
  }

  .footer-brand p {
    max-width: 280px;
  }
}

/* ==========================================================================
   Large Desktops (1200px+)
   ========================================================================== */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 48px;
  }

  .section-title {
    font-size: 40px;
  }
}

/* ==========================================================================
   Small Mobile Safety Cutoff (360px)
   ========================================================================== */
@media (max-width: 360px) {
  .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 22px;
  }

  .service-card {
    padding: 20px 20px 24px;
  }

  .contact-info {
    padding: 32px 20px;
  }

  .contact-form {
    padding: 28px 20px;
  }
}
