/* ====================================================
   ROOT VARIABLES & GLOBAL STYLES
==================================================== */
:root {
    --primary: #0e2a47;
    --primary-light: #4d7399;
    --secondary: #a8dadc;
    --background: #f8f9fa;
    --foreground: #074c91;
    --radius: 0.5rem;
    --text-light: #fff;
    --text-muted: rgba(255,255,255,0.8);
    --icon-bg: rgba(255,255,255,0.1);
    --icon-bg-hover: rgba(255,255,255,0.2);
    --transition-speed: 0.3s;
    --fade-duration: 0.8s;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: 'Open Sans', sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    scroll-behavior: smooth;
  }
  h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; }
  a { text-decoration: none; color: inherit; }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
  .section { padding: 6rem 0; }
  .section h2 { margin-bottom: 1.5rem; }
  
  /* ====================================================
     HEADER & NAVIGATION
  ==================================================== */
  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0.75rem 0;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
  }
  header.transparent { background: transparent; }
  header.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  }
  .nav-container { display: flex; align-items: center; justify-content: space-between; }
  .logo {
    display: flex;
    align-items: center;
    font-size: 1.75rem;
    font-weight: 600;
    transition: color var(--transition-speed);
  }
  nav.desktop { display: flex; align-items: center; }
  nav.desktop a {
    margin: 0 1rem;
    position: relative;
    font-size: 1rem;
    transition: color var(--transition-speed);
  }
  nav.desktop a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width var(--transition-speed);
  }
  nav.desktop a:hover::after { width: 100%; }
  .btn-primary {
    background: var(--primary);
    color: var(--text-light);
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition-speed);
    font-weight: 600;
    font-size: 0.95rem;
  }
  .btn-primary:hover { background: #15304a; }
  .mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.75rem;
  }
  nav.mobile {
    display: none;
    flex-direction: column;
    background: rgba(255,255,255,0.95);
    padding: 1rem;
    border-top: 1px solid #e5e5e5;
  }
  nav.mobile.open { display: flex; }
  nav.mobile a { margin: 0.75rem 0; font-size: 1rem; }
  @media (max-width: 768px) {
    nav.desktop { display: none; }
    .mobile-menu-button { display: block; }
  }
  
  /* ====================================================
     HERO SECTION
  ==================================================== */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 90px;
    overflow: hidden;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d") no-repeat center center/cover;
    background-attachment: fixed;
    z-index: -10;
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--primary), rgba(26,59,93,0.90));
    z-index: -9;
  }
  .blob {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    filter: blur(3rem);
    animation: blob 7s infinite;
  }
  @keyframes blob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
  }
  .blob.delay-2000 { animation-delay: 2s; }
  .blob.one { top: 25%; left: 25%; width: 16rem; height: 16rem; }
  .blob.two { bottom: 25%; right: 25%; width: 24rem; height: 24rem; }
  .hero-content {
    position: relative;
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
  }
  .hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  @media (min-width: 768px) { .hero h1 { font-size: 4rem; } }
  /* Typewriter Effect */
  .typewriter {
    display: inline;
    border-right: 2px solid var(--text-light);
    white-space: nowrap;
    overflow: hidden;
  }
  .gradient-text {
    background: linear-gradient(to right, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #cfd7e3;
  }
  .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
  }
  .hero .btn-primary {
    position: relative;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    background: #38b2ff;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--transition-speed);
  }
  .hero .btn-primary:hover { transform: scale(1.05); }
  .hero .btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 100%;
    background: rgba(255,255,255,0.2);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
  }
  .hero .btn-primary:hover::before { left: 100%; }
  .hero .btn-primary .arrow {
    margin-left: 0.25rem;
    transition: transform var(--transition-speed);
  }
  .hero .btn-primary:hover .arrow { transform: translateX(4px); }
  .hero .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 0.75rem;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-speed), transform var(--transition-speed);
  }
  .hero .btn-secondary:hover { background: rgba(255,255,255,0.1); transform: scale(1.05); }
  
  /* Statistics Section */
  .stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
  }
  .stat-item {
    position: relative;
    text-align: center;
    transition: transform var(--transition-speed);
    cursor: pointer;
  }
  .stat-item:hover { transform: scale(1.05); }
  .stat-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    transform: rotate(3deg);
    transition: transform var(--transition-speed);
    z-index: -1;
  }
  .stat-item:hover::before { transform: rotate(6deg); }
  .stat-box {
    position: relative;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
  }
  .stat-value { font-size: 2rem; font-weight: bold; color: var(--text-light); margin-bottom: 0.5rem; }
  .stat-label { font-size: 1rem; color: #cfd7e3; }
  
  /* ====================================================
     SERVICES SECTION
  ==================================================== */
  .services {
    padding: 4rem 0;
    background: var(--background);
    text-align: center;
  }
  .services h2 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
    font-weight: 600;
  }
  .services .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #6b7a8f;
  }
  .services p.intro {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: #475565;
    font-size: 1rem;
    line-height: 1.5;
  }
  /* Tabs for Service Categories */
  .services-tabs {
    display: inline-flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }
  .services-tabs .tab {
    border: none;
    background: #f5f7fa;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    color: #475565;
    cursor: pointer;
    transition: background var(--transition-speed), color var(--transition-speed);
  }
  .services-tabs .tab:hover { background: #e3e7ed; }
  .services-tabs .tab.active { background: var(--primary); color: #fff; }
  /* Service Cards Grid */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  .service-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: left;
    padding: 2rem 1.5rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden;
  }
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  .service-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at top right, #ebf1f8 0%, transparent 70%);
    z-index: -1;
  }
  .service-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
  }
  .service-card h3 {
    font-size: 1.125rem;
    color: #354f75;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }
  .service-card p {
    font-size: 0.9rem;
    color: #6b7a8f;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }
  .learn-more-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-speed);
  }
  .learn-more-link:hover { text-decoration: underline; color: #15304a; }
  .service-benefits {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }
  .service-card:hover .service-benefits {
    max-height: 300px;
    opacity: 1;
  }
  .service-benefits ul {
    margin-top: 1rem;
    list-style: none;
    padding-left: 0;
  }
  .service-benefits li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #6b7a8f;
    margin-bottom: 0.5rem;
  }
  .service-benefits li i {
    margin-right: 0.5rem;
    color: var(--primary);
  }
  
  /* ====================================================
     CONTACT FORM SECTION
  ==================================================== */
  .contact {
    padding: 4rem 0;
    background: #f0f2f5;
    text-align: center;
  }
  .contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
  }
  .contact form { max-width: 600px; margin: 0 auto; }
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .field { text-align: left; }
  .field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
  }
  .field input,
  .field textarea,
  .field select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(26,59,93,0.2);
    border-radius: 0.75rem;
    font-size: 1rem;
    background: rgba(255,255,255,0.5);
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  .field input:focus,
  .field textarea:focus,
  .field select:focus {
    outline: none;
    border-color: rgba(26,59,93,0.6);
    box-shadow: 0 0 0 2px rgba(26,59,93,0.2);
  }
  .field textarea { resize: vertical; min-height: 120px; }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .fade-in { animation: fadeIn 0.5s forwards; }
  .submit-field { margin-top: 2rem; }
  .submit-button {
    position: relative;
    width: 100%;
    background: var(--primary);
    color: var(--text-light);
    padding: 0.75rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s, transform 0.3s;
  }
  .submit-button:hover {
    background: #15304a;
    transform: scale(1.02);
  }
  .submit-button:disabled { opacity: 0.7; cursor: not-allowed; }
  .submit-button::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 100%;
    background: rgba(255,255,255,0.2);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
  }
  .submit-button:hover::before { left: 100%; }
  .spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--text-light);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  
  /* ====================================================
     FOOTER SECTION
  ==================================================== */
  footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--primary), rgba(26,59,93,0.90));
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
    font-size: 0.95rem;
  }
  .footer-blobs {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .footer-blobs .blob {
    position: absolute;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    filter: blur(3rem);
    animation: blob 7s infinite;
  }
  .footer-blobs .blob.delay-2000 { animation-delay: 2s; }
  .footer-blobs .blob.one { top: 0; left: 25%; width: 16rem; height: 16rem; }
  .footer-blobs .blob.two { bottom: 0; right: 25%; width: 24rem; height: 24rem; }
  .footer-container { position: relative; z-index: 1; }
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  @media (max-width: 992px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 576px) { .footer-grid { grid-template-columns: 1fr; } }
  .footer-column h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  .footer-column p,
  .footer-column a,
  .footer-column button {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
  }
  .footer-column a:hover { text-decoration: underline; }
  .view-openings-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid var(--text-light);
    border-radius: 0.5rem;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
    margin-top: 0.75rem;
  }
  .view-openings-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
  }
  .view-openings-btn .arrow-right {
    transition: transform 0.3s;
  }
  .view-openings-btn:hover .arrow-right { transform: translateX(4px); }
  .footer-social .social-icons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }
  .footer-social .social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
  }
  .footer-social .social-icons a:hover {
    background: var(--icon-bg-hover);
    transform: translateY(-2px);
  }
  .footer-social .social-icons i { font-size: 0.9rem; }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
  }
  
  /* ====================================================
     CALENDLY MODAL STYLES
  ==================================================== */
  .calendly-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 200;
    align-items: center;
    justify-content: center;
  }
  .calendly-modal.active { display: flex; }
  .calendly-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 80vh;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }
  .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    color: #333;
  }
  