:root {
    --primary-orange: #f26822;
    --text-dark: #1a1f36;
    --text-gray: #6b7280;
    --bg-color: #d1d5db;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    overflow-x: clip;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.main-container {
    background-color: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    padding: 24px;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

/* Logo Image */
.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-logo-img {
    height: 56px;
}

.nav-links {
    display: flex;
    gap: 20px; /* Reduced from 28px for better fit */
    list-style: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 13px;
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap; /* Prevent awkward wrapping */
}

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

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 18px;
}

.nav-contact {
    color: var(--primary-orange);
}
.nav-contact:hover {
    color: #d85719;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 999;
    padding: 100px 24px 24px 24px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-nav-overlay.active {
    transform: translateX(0);
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}
.mobile-nav-link {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary-orange);
}

.mobile-nav-item-dropdown {
    width: 100%;
}
.mobile-nav-link-dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
}
.mobile-nav-link-dropdown .dropdown-icon {
    transition: transform 0.3s ease;
}
.mobile-nav-item-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.mobile-megamenu {
    display: none;
    padding: 16px 0 0 16px;
    border-left: 2px solid rgba(0,0,0,0.05);
    margin-left: 8px;
}
.mobile-nav-item-dropdown.active .mobile-megamenu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-megamenu-column h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 16px 0 12px 0;
}
.mobile-megamenu-column:first-child h4 {
    margin-top: 0;
}

.mobile-megamenu-column ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mobile-megamenu-column ul li a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}
.mobile-megamenu-column ul li a:hover {
    color: var(--primary-orange);
}

/* Mobile Menu Button Open State */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1350px) {
    .nav-links, .navbar-container .btn-primary {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* Megamenu Styles */
.nav-item-has-megamenu {
    position: static;
}

.nav-link-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid #f1f5f9;
    width: 850px;
    max-width: 95vw;
}

.nav-item-has-megamenu:hover .megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.megamenu-inner {
    padding: 32px 40px;
}

.megamenu-grid {
    display: flex;
    gap: 40px;
    width: 100%;
    justify-content: space-between;
}

.megamenu-column {
    flex: 1;
}

.megamenu-column h4 {
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.megamenu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.megamenu-column a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.megamenu-column a:hover {
    color: var(--primary-orange);
}

.megamenu-card {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 32px;
}

.megamenu-card h4 {
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.megamenu-card p {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.megamenu-slider {
    position: relative;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 16px;
}

.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 25%;
    background: var(--primary-orange);
    border-radius: 2px;
}

.slider-thumb {
    position: absolute;
    left: 25%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #1e3a8a;
    border-radius: 50%;
}

.slider-end {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-orange);
    border-radius: 50%;
}

.megamenu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    border-top: 1px solid #f1f5f9;
}

.megamenu-footer p {
    color: var(--text-gray);
    font-size: 13px;
    margin: 0;
}

.megamenu-footer a {
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.megamenu-footer a:hover {
    color: var(--primary-orange);
}

.megamenu-footer a svg {
    margin-left: 6px;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: white;
    padding: 12px 24px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 14px 0 rgba(242, 104, 34, 0.39);
}

.btn-primary:hover {
    background-color: #e05a18;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 104, 34, 0.4);
}

/* Footer Section */
.footer {
    /* margin: 0 24px 24px 24px;
    border-radius: 24px; */
    background-color: #0b1120;
    padding: 56px 0 32px 0;
    color: #d1d5db;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.footer-logo {
    text-decoration: none;
}



.certification-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #e5e7eb;
    background-color: rgba(255, 255, 255, 0.02);
}

.certification-badge .dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 4px var(--primary-orange);
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.06);
    margin: 36px 0;
    width: 100%;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-bottom: 16px;
}

.footer-column h4 {
    color: var(--primary-orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
    padding-top: 12px;
}

.footer-copyright {
    flex: 1.5;
}

.footer-legal {
    display: flex;
    gap: 32px;
    flex: 1;
    justify-content: flex-start;
}

.footer-legal a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

@media (max-width: 1024px) {
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 24px;
    }
}

@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-top {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    .footer-legal {
        justify-content: center;
    }
}

/* ================================
   GLOBAL COMPONENTS & TYPOGRAPHY
================================ */

/* Section Typography */
.section-subtitle {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-orange);
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}
.section-subtitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-orange) 0%, rgba(232,93,36,0) 100%);
}

.section-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}
.section-label.dark { color: white; }
.section-label.light { color: #111827; }
.section-label.centered {
    display: block;
    text-align: center;
    width: max-content;
    margin: 0 auto 24px auto;
}
.section-label::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-orange) 0%, rgba(232,93,36,0) 100%);
}
.section-label.centered::after {
    background: linear-gradient(90deg, rgba(232,93,36,0) 0%, var(--primary-orange) 50%, rgba(232,93,36,0) 100%);
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.section-title span {
    color: var(--primary-orange);
}
.section-title.dark { color: white; }
.section-title.centered { text-align: center; margin-bottom: 48px; }

.section-description,
.section-desc {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 700px;
}
.section-description.text-light {
    color: rgba(255, 255, 255, 0.7);
}

/* Global Buttons */
.btn-primary,
.btn-solid-orange,
.btn-primary-orange,
.btn-cta-primary,
.btn-submit {
    background-color: var(--primary-orange);
    color: white;
    padding: 12px 24px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 14px 0 rgba(242, 104, 34, 0.39);
}
.btn-primary:hover,
.btn-solid-orange:hover,
.btn-primary-orange:hover,
.btn-cta-primary:hover,
.btn-submit:hover {
    background-color: #e05a18;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 104, 34, 0.4);
}

.btn-large {
    padding: 16px 36px !important;
    font-size: 15px !important;
}

.btn-outline,
.btn-cta-outline {
    background-color: transparent;
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline-orange {
    background-color: transparent;
    color: var(--primary-orange);
    padding: 12px 24px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid var(--primary-orange);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover,
.btn-cta-outline:hover,
.btn-outline-orange:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    background-color: rgba(242, 104, 34, 0.05);
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    padding: 12px 24px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-outline-white:hover {
    background-color: white;
    color: var(--text-dark);
}

.btn-orange-glow {
    background-color: rgba(242, 104, 34, 0.1);
    color: var(--primary-orange);
    padding: 12px 24px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(242, 104, 34, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: inset 0 0 20px rgba(242, 104, 34, 0.05);
}
.btn-orange-glow:hover {
    background-color: var(--primary-orange);
    color: white;
    box-shadow: 0 8px 24px rgba(242, 104, 34, 0.3);
    transform: translateY(-2px);
}

/* Global CTA Section */
.cta-section {
    padding: 80px 0;
    margin: 0 24px 24px 24px;
}

.cta-box {
    background-color: #0b1120;
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cta-icon {
    position: absolute;
    width: 300px;
    height: 300px;
    opacity: 0.03;
}
.cta-icon-left {
    left: -50px;
    bottom: -50px;
    transform: rotate(-15deg);
}
.cta-icon-right {
    right: -50px;
    top: -50px;
    transform: rotate(15deg);
}
.cta-icon img {
    width: 100%;
    height: 100%;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}



.cta-line {
    width: 40px;
    height: 1px;
    background-color: var(--primary-orange);
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.cta-title span {
    color: var(--primary-orange);
}

.cta-desc {
    color: #9ca3af;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.cta-btn-outline {
    background-color: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.cta-btn-outline:hover {
    background-color: white;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .section-title { font-size: 32px; }
    .cta-title { 
        font-size: 28px;
    }
    .cta-actions { flex-direction: column; }
    .btn-large, .btn-outline, .btn-orange-glow { width: 100%; text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
    .cta-title { font-size: 22px; }
}
/* ================================
   GLOBAL REVEAL SYSTEM
================================ */

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Direction variations */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .tech-item,
    .project-card,
    .cred-card,
    .security-card,
    .stats-card .stat-item {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Global Responsive Typography Overrides */
@media (max-width: 768px) {
    h1, h2,
    .title, 
    .hero-title, 
    .section-title, 
    .page-title {
        font-size: 28px !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: none !important;
    }
    
    .description, 
    .hero-description, 
    .section-description {
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    h1, h2,
    .title, 
    .hero-title, 
    .section-title, 
    .page-title {
        font-size: 22px !important;
    }
    
    .description, 
    .hero-description, 
    .section-description {
        font-size: 14px !important;
    }
}
