/* ================================= */
/* FUTURISTIC THEME - GLOBAL STYLES  */
/* ================================= */
:root {
    --background-dark: #020412;
    --background-card: rgba(15, 23, 67, 0.4);
    --primary-accent: #00f7ff; /* Neon Cyan */
    --primary-accent-darker: #00A0A6; /* Darker Cyan for light backgrounds */
    --secondary-accent: #4CAF50; /* Kept original green for brand consistency */
    
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-dark-bg: #020412;
    
    --glow-color: rgba(0, 247, 255, 0.5);
    --border-color: rgba(0, 247, 255, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-secondary);
    line-height: 1.7;
    background-color: var(--background-dark);
    background: linear-gradient(-45deg, #020412, #0a0f28, #020412, #1A237E);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    color: var(--text-primary);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255,255,255,0.2);
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: var(--primary-accent); transition: color 0.3s ease; }
a:hover { color: white; }

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.8rem; color: #fff; margin-bottom: 15px; }
.section-title p { font-size: 1.15rem; color: var(--text-secondary); max-width: 700px; margin: 0 auto; }

/* ================================= */
/* HEADER & NAVIGATION             */
/* ================================= */
header {
    background-color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #dddddd;
    position: sticky; top: 0; z-index: 100;
}
nav { display: flex; justify-content: space-between; align-items: center; }
.logo img { 
    height: 60px; 
    width: auto; 
}
.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links li a { color: #333333; font-weight: 600; transition: all 0.3s ease; padding-bottom: 5px; }
.nav-links li a:hover { color: var(--primary-accent-darker); }
.nav-links a.active { color: var(--primary-accent-darker); border-bottom: 2px solid var(--primary-accent-darker); }

.btn-primary {
    background-color: transparent; 
    color: var(--primary-accent-darker);
    padding: 12px 28px; 
    border-radius: 5px; 
    font-weight: 600;
    border: 1px solid var(--primary-accent-darker);
    transition: all 0.3s ease;
}
.btn-primary:hover { 
    background-color: var(--primary-accent); 
    color: var(--text-dark-bg);
    box-shadow: 0 0 20px var(--glow-color); 
    transform: translateY(-2px); 
}

/* ================================= */
/* HERO SECTION                    */
/* ================================= */
.hero { text-align: center; padding: 120px 0; background-color: transparent; }
.hero-content { max-width: 850px; }
.hero h1 { 
    font-size: 3.8rem; font-weight: 700; 
    color: #fff; margin-bottom: 25px; line-height: 1.2; 
    text-shadow: 0 0 15px rgba(0, 247, 255, 0.3);
}
.hero p { font-size: 1.25rem; margin-bottom: 40px; color: var(--text-secondary); max-width: 750px; margin-left: auto; margin-right: auto; }

.btn-secondary {
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent)); 
    color: var(--text-dark-bg);
    padding: 16px 40px; border-radius: 5px; font-weight: 700; font-size: 1.1rem;
    transition: all 0.3s ease; border: none;
    box-shadow: 0 0 25px var(--glow-color);
}
.btn-secondary:hover { 
    transform: translateY(-3px) scale(1.05); 
    box-shadow: 0 0 40px var(--glow-color);
}

/* ================================= */
/* SERVICES & FEATURES SECTIONS      */
/* ================================= */
.services-overview, .why-choose-us, .core-values { padding: 100px 0; background-color: transparent; }
.services-grid, .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card {
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 8px; padding: 40px; text-align: center;
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary-accent);
    box-shadow: 0 0 25px var(--glow-color);
}
.service-icon { margin-bottom: 25px; color: var(--primary-accent); }
.service-card h3 { color: #fff; margin-bottom: 15px; font-size: 1.5rem; }
.feature-item h4 { font-size: 1.4rem; margin-bottom: 15px; color: var(--primary-accent); }

/* ================================= */
/* CONTACT US SECTION              */
/* ================================= */
.contact-section { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: flex-start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { font-size: 1.8rem; color: #fff; margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-primary); }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; padding: 12px;
    border: 1px solid var(--border-color); border-radius: 5px;
    font-size: 1rem; font-family: 'Lato', sans-serif;
    background-color: rgba(2, 4, 18, 0.5);
    color: var(--text-primary);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    outline: none; border-color: var(--primary-accent);
    box-shadow: 0 0 10px var(--glow-color);
}
.contact-form button { width: 100%; cursor: pointer; }

/* ================================= */
/* FOOTER SECTION                  */
/* ================================= */
footer { background-color: #020412; color: var(--text-secondary); text-align: center; padding: 25px 0; border-top: 1px solid var(--border-color); }
footer p { margin: 0; }

/* ================================= */
/* MODAL (POPUP) STYLES            */
/* ================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 15, 40, 0.7);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; opacity: 1; transition: opacity 0.3s ease;
}
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-box {
    background-color: var(--background-dark);
    border: 1px solid var(--primary-accent);
    box-shadow: 0 0 30px var(--glow-color);
    padding: 40px; border-radius: 8px;
    width: 90%; max-width: 500px; text-align: center; position: relative;
    transform: scale(1); transition: transform 0.3s ease;
}
.modal-content .icon { color: var(--primary-accent); margin-bottom: 20px; }
.modal-content h1 { color: #fff; margin-bottom: 15px; }
.close-modal {
    position: absolute; top: 10px; right: 15px; background: none; border: none;
    font-size: 2.5rem; color: var(--text-secondary); cursor: pointer; line-height: 1;
}
.close-modal:hover { color: var(--primary-accent); }

/* ================================= */
/* ABOUT US PAGE STYLES              */
/* ================================= */
.about-hero {
    background: linear-gradient(rgba(2, 4, 18, 0.6), rgba(2, 4, 18, 0.6)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=2070');
    background-size: cover;
    text-align: center;
    padding: 100px 0;
}
.about-hero h1 { color: white; font-size: 3.5rem; }
.about-hero p { font-size: 1.25rem; max-width: 800px; margin: 20px auto 0; opacity: 0.9; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 100px 0; }
.split-section-image img { border-radius: 8px; border: 1px solid var(--border-color); }
.section-title-left { text-align: left; font-size: 2.8rem; margin-bottom: 25px; color: #fff; }
.cta-section { background-color: transparent; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); text-align: center; padding: 80px 0; }
.cta-section h2 { color: white; font-size: 2.5rem; }
.cta-section p { margin: 15px 0 30px 0; font-size: 1.15rem; color: var(--text-secondary); }
.text-focused-section { padding: 100px 0; }
.text-focused-section.meet-founder { background-color: rgba(2, 4, 18, 0.5); border-radius: 10px; }
.text-focused-section .text-content { max-width: 800px; margin: 0 auto; text-align: center; }

@media (max-width: 600px) {
    .split-section { grid-template-columns: 1fr; }
    .split-section .split-section-image { grid-row: 1; margin-bottom: 30px; }
    .split-section-image img { max-width: 80%; margin: 0 auto; display: block; } /* Added for image sizing */
}

/* ===================== Responsive Enhancements (2025-09) ===================== */
img { max-width: 100%; height: auto; }

/* Fluid type */
.hero h1 { font-size: clamp(2rem, 3.5vw + 1rem, 3.8rem); }
.section-title h2 { font-size: clamp(1.6rem, 2.2vw + 1rem, 2.8rem); }

/* Logo sizing on smaller screens */
@media (max-width: 1024px) {
  .logo img { height: 52px; }
  .hero { padding: 100px 0; }
}
@media (max-width: 768px) {
  .logo img { height: 46px; }
  .hero { padding: 80px 0; }
  .hero p { font-size: 1.05rem; }
}

/* Mobile/Tablet Navigation */
.nav-toggle{
  display:none; background:none; border:0; width:40px; height:40px; margin-left:auto;
  position:relative; cursor:pointer;
}
.nav-toggle span{
  position:absolute; left:8px; right:8px; height:2px; background:#1a1a1a; transition:transform .25s, top .25s, opacity .25s;
}
.nav-toggle span:nth-child(1){ top:12px; }
.nav-toggle span:nth-child(2){ top:19px; }
.nav-toggle span:nth-child(3){ top:26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ top:19px; transform:rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ top:19px; transform:rotate(-45deg); }

.only-desktop{ display:inline-block; }
.only-mobile{ display:none; }

@media (max-width: 1024px){
  .nav-toggle{ display:block; }
  /* hide desktop CTA, show inside drawer */
  .only-desktop{ display:none; }
  .only-mobile{ display:block; }

  /* Drawer styling */
  .nav-links{
    position:fixed; top:72px; right:0; height:calc(100% - 72px);
    width:min(320px, 85%); background:#ffffff; list-style:none;
    flex-direction:column; gap:18px; padding:22px;
    border-left:1px solid #e5e7eb; box-shadow: -12px 0 30px rgba(0,0,0,.08);
    transform:translateX(100%); transition:transform .25s ease;
    z-index:999;
  }
  .nav-links.open{ transform:translateX(0); }
  body.no-scroll{ overflow:hidden; }

  nav{ gap:14px; }
}

/* Section/layout tweaks for tablets/phones */
@media (max-width: 1024px){
  .services-grid, .features-grid{ gap:20px; }
  .split-section{ display:grid; grid-template-columns: 1fr; gap:30px; padding: 70px 0; }
  .section-title{ margin-bottom: 40px; }
}

@media (max-width: 600px){
  .contact-grid{ display:grid; grid-template-columns: 1fr; gap:28px; }
  .cta-section{ padding:60px 0; }
  .about-hero{ padding:70px 0; }
  .about-hero h1{ font-size: clamp(1.8rem, 5vw + 1rem, 3rem); }
  .btn-secondary{ padding:14px 28px; font-size:1rem; }
  .btn-primary{ padding:10px 22px; }
}


/* ===================== Patch: mobile grid + header vars (2025-09-16) ===================== */
:root{ --header-h: 68px; }

header nav{ min-height: var(--header-h); }
header{ z-index: 1000; }

@media (max-width: 1024px){
  .nav-links{ top: var(--header-h); }
}

@media (max-width: 600px){
  /* prevent horizontal scroll on small phones */
  .services-grid, .features-grid{ grid-template-columns: 1fr; }
  .container{ padding: 0 16px; } /* a little tighter padding */
}


/* ===================== Patch: Toggle visibility over sidebar (2025-09-16b) ===================== */
@media (max-width: 1024px){
  .nav-toggle{
    z-index: 1001;              /* above the .nav-links drawer (999) */
    color: #111;                /* base line color */
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.96); /* pill background for contrast on dark images */
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
  }
  /* Make spans follow currentColor so we can flip color easily */
  .nav-toggle span{ background: currentColor; }

  /* When open, turn into a floating close button on top-right */
  .nav-toggle[aria-expanded="true"]{
    position: fixed;
    top: 14px;
    right: 14px;
    color: #fff;
    background: #111;           /* darker when open for strong contrast */
    border-color: rgba(0,0,0,.4);
  }
  .nav-toggle[aria-expanded="true"] span{ background: currentColor; }
}

/* Optional: subtle sticky header background so toggle never sits on pure-transparent area */
@media (max-width: 1024px){
  header{
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(170%) blur(8px);
  }
}



/* ===================== Patch: Solid Sidebar, Dark Header (2025-09-16c) ===================== */
@media (max-width: 1024px){
  /* Make sidebar drawer solid (no transparency) */
  .nav-links{
    background:#0b1120;                /* solid dark */
    border-left:1px solid rgba(255,255,255,.08);
    color:#eaf3ff;
    backdrop-filter:none;
  }
  .nav-links li a { color:#eaf3ff; }
}

/* Restore dark header on mobile (remove translucent white override) */
@media (max-width: 1024px){
  header{
    background: linear-gradient(180deg, rgba(10,15,26,.98), rgba(10,15,26,.92));
    backdrop-filter:none;
  }
}



/* ===================== Patch: Logo Visibility Badge (2025-09-16d) ===================== */
@media (max-width: 1024px){
  .logo {
    display: inline-flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 12px;
    background: #ffffff;                 /* solid white behind the logo */
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
  }
  .logo img{
    height: 44px;                        /* keep logo readable on badge */
    margin: 0;                           /* reset auto margins from global img rule */
    filter: none;                        /* ensure no unexpected blend */
  }
}

