:root {
/* Colors */
--Tomato: #Ef6b3e;    /*DigitalTenant Color*/
--Zuez: #231f20;      /*DigitalTenant Color*/
--Grey: #93918d;      /*DigitalTenant Color*/
--Fantasy: #f4f3ef;   /*DigitalTenant Color*/
--White: #ffffff;     /*DigitalTenant Color*/
--RangoonGreen: #1a1a1a;
--BlackEel: #444444;
--BrightGrey: #374151;
--Flame: #E05A2D;
--WhiteSmoke: #f3f4f6;
--SnowDrift: #F8F9FA;
--PapayaWhip: #ffedd5;
--White-10: rgba(255, 255, 255, 0.1); /* 10% opacity - Form field background*/ 
--White-20: rgba(255, 255, 255, 0.2); /* 20% opacity - Border use */
--White-70: rgba(255, 255, 255, 0.7); /* 70% opacity - Place holder text */
--White-90: rgba(255, 255, 255, 0.9); /* 90% opacity - Info Text when typing info into a form. */
--Black-10: rgba(0, 0, 0, 0.1);  /* Very light shadows, subtle depth */
--Black-20: rgba(0, 0, 0, 0.2);  /* Light shadows, hover states */
--Black-30: rgba(0, 0, 0, 0.3);  /* Medium shadows, modal overlays */
--Black-70: rgba(0, 0, 0, 0.7);  /* Dark overlays, strong emphasis */
--Black-90: rgba(0, 0, 0, 0.9);  /* Nearly opaque, very strong emphasis */

/* Typography Scale - Size */
--font-2xs: 0.75rem;      /* 12px - Small captions */
--font-xs: 0.875rem;      /* 14px - Fine print */
--font-sm: 0.9375rem;     /* 15px */
--font-base: 1rem;        /* 16px - Body text */
--font-md: 1.125rem;      /* 18px - Large body */
--font-lg: 1.25rem;       /* 20px - Larger body, h6 */
--font-xl: 1.5rem;        /* 24px - h5 */
--font-2xl: 1.75rem;      /* 28px */
--font-3xl: 1.875rem;     /* 30px - h4 */
--font-4xl: 2.25rem;      /* 36px - h3 */
--font-5xl: 2.5rem;       /* 40px - h2 */
--font-6xl: 2.6rem;       /* 41.6px */
--font-7xl: 2.75rem;      /* 44px */
--font-8xl: 3rem;         /* 48px - h1 */

/* Font Families */
--font-primary: 'Poppins', sans-serif;
--font-secondary: system-ui, sans-serif;
--font-mono: ui-monospace, monospace;

/* Font Weights */
--weight-thin: 100;
--weight-extralight: 200;
--weight-light: 300;
--weight-normal: 400;
--weight-medium: 500;
--weight-semibold: 600;
--weight-bold: 700;
--weight-extrabold: 800;
--weight-black: 900;

/* Line Heights */
--leading-none: 1;          /* Tight */
--leading-tight: 1.25;      /* Condensed */
--leading-snug: 1.375;      /* Slightly Condensed */
--leading-normal: 1.5;      /* Normal */
--leading-relaxed: 1.625;   /* Slightly Relaxed */
--leading-loose: 2;         /* Spacious */

/* Letter Spacing */
--tracking-tighter: -0.05em;
--tracking-tight: -0.025em;
--tracking-normal: 0;
--tracking-wide: 0.025em;
--tracking-wider: 0.05em;
--tracking-widest: 0.1em;

/* Paragraph Spacing */
--spacing-tight: 1rem;
--spacing-normal: 1.5rem;
--spacing-relaxed: 2rem;
--spacing-loose: 2.5rem;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Main header styles */
.header-container {
    background-color: var(--White);
    padding: .7rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--Tomato);
}

.header-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo styles */
.logo img {
    height: 55px;
    width: auto;
}

/* Desktop Navigation styles */
.desktop-nav {
    flex: 1;
    margin: 0 20px;
    display: flex; /* Ensure it's a flex container for desktop */
    justify-content: center;
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.desktop-nav li {
    position: relative;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--RangoonGreen);
    font-size: var(--font-base);
    font-weight: 400;
    padding: 6px 8px;
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--Flame);
}

/* Dropdown arrow styles */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-toggle u {
    display: inline-block;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.2s ease;
}

.desktop-nav li:hover .dropdown-toggle u {
    transform: rotate(-135deg);
    margin-top: 2px;
}

/* Mega menu styles */
.mega-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-18%);
    background: var(--White);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    width: max-content;
    min-width: 520px;
}

/* Mega menu header styles */
.mega-menu-header {
    color: var(--Tomato);
    font-size: var(--font-xs);
    font-weight: var(--weight-semibold);
    padding: 0 16px;
    margin-bottom: 16px;
    margin-top: 10px;
}

.desktop-nav li:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 8px;
}

/* Menu arrow */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    transform: rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--White);
    border-radius: 2px;
}

/* Menu grid layout */
.mega-menu-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.mega-menu-row:last-child {
    margin-bottom: 0;
}

.mega-menu-column {
    flex: 1;
}

/* Menu items */
.mega-menu-column a {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mega-menu-column a:hover {
    background-color: rgba(245, 106, 44, 0.05);
}

.mega-menu-column i {
    font-size: 1.125rem;
    color: var(--Tomato);
    margin-right: 10px;
    margin-top: 2px;
    width: 20px;
    text-align: center;
}

.mega-menu-column .text-content {
    flex: 1;
}

.mega-menu-column .text-content h3 {
    color: var(--RangoonGreen);
    font-size: var(--font-sm);
    margin-bottom: 2px;
    font-weight: var(--weight-semibold);
}

.mega-menu-column .text-content p {
    font-size: var(--font-2xs);
    color: var(--BlackEel);
    line-height: var(--leading-normal);
}

/* Solutions Mega Menu - Two Column Layout */
.solutions-mega-menu {
    min-width: 320px;
    max-width: 650px;
    padding: 20px;
}

.solutions-grid {
    display: grid;
    gap: 1px;
}

.solutions-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.solutions-column-header {
    color: var(--Tomato);
    font-size: var(--font-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    padding: 0 10px;
    margin-bottom: 8px;
}

/* Adjust existing mega-menu-column for solutions */
.solutions-mega-menu .mega-menu-column {
    flex: none;
    width: 100%;
}

.solutions-mega-menu .mega-menu-column a {
    display: flex;
    align-items: flex-start;
    padding: 12px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.solutions-mega-menu .mega-menu-column a:hover {
    background-color: rgba(239, 107, 62, 0.08);
}

/* Button styles */
.buttons {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto;
}

.btn-login {
    color: var(--Tomato);
    text-decoration: none;
    padding: 0.45rem 1.9rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-size: var(--font-sm);
    border: 1px solid var(--Tomato);
    cursor: pointer;
}

.btn-login:hover {
    background-color: rgba(245, 106, 44, 0.05);
}

.btn-get-started {
    background-color: var(--Tomato);
    color: var(--White);
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    text-decoration: none;
    font-size: var(--font-base);
    transition: background-color 0.2s ease;
}

.btn-get-started:hover {
    background-color: var(--Flame);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 12px;
    cursor: pointer;
    color: var(--RangoonGreen);
    font-size: 1.2rem;
    position: relative;
    z-index: 1001;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--Black-70);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Panel */
.mobile-nav {
    position: absolute;
    left: 0;
    top: 0;
    height: 100vh;
    width: 320px;
    max-width: 90%;
    background: var(--White);
    padding-bottom: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-overlay.active .mobile-nav {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--WhiteSmoke);
    height: 55px;
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--RangoonGreen);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile menu layout */
.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-top: 1rem;
}

.mobile-nav li {
    width: 100%;
}

/* Mobile dropdown toggle button */
.mobile-dropdown-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 15px 25px;
    text-align: left;
    font-size: var(--font-base);
    color: var(--RangoonGreen);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.mobile-dropdown-toggle:hover {
    background-color: var(--WhiteSmoke);
    border-left-color: var(--Tomato);
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.mobile-dropdown-toggle.active i {
    transform: rotate(180deg);
}

/* Mobile dropdown content */
.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    background-color: var(--SnowDrift);
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.mobile-dropdown-content.active {
    max-height: 1000px;
    opacity: 1;
}

.mobile-dropdown-content a {
    display: flex;
    align-items: center;
    padding: 12px 25px 12px 45px;
    color: var(--BlackEel);
    text-decoration: none;
    font-size: var(--font-sm);
    transition: background-color 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-dropdown-content a:hover {
    background-color: var(--White);
    border-left-color: var(--Tomato);
}

.mobile-dropdown-content a i {
    margin-right: 12px;
    color: var(--Tomato);
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile dropdown section headers */
.mobile-dropdown-section {
    color: var(--Grey);
    font-size: var(--font-2xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 12px 25px 8px 45px;
    margin-top: 8px;
    background-color: var(--White);
}

.mobile-dropdown-section:first-child {
    margin-top: 0;
}

/* Mobile direct links (non-dropdown) */
.mobile-direct-link a {
    display: block;
    padding: 15px 25px;
    color: var(--RangoonGreen);
    text-decoration: none;
    font-size: var(--font-base);
    font-weight: 500;
    transition: background-color 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-direct-link a:hover {
    background-color: var(--WhiteSmoke);
    border-left-color: var(--Tomato);
}

/* Mobile buttons */
.mobile-buttons {
    padding: 20px 25px;
    border-top: 1px solid var(--WhiteSmoke);
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-buttons .btn-login,
.mobile-buttons .btn-get-started {
    width: 100%;
    text-align: center;
    display: block;
    padding: 12px 20px;
}

/* Login dropdown container */
.login-dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown arrow styling */
.dropdown-arrow {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* Rotate arrow when dropdown is active */
.login-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu */
.login-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Show dropdown when active */
.login-dropdown.active .login-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Login option styling */
.login-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.login-option:last-child {
    border-bottom: none;
}

.login-option:hover {
    background-color: #f8f9fa;
}

.login-option i {
    margin-right: 0.75rem;
    width: 16px;
    color: var(--Tomato);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .desktop-nav,
    .desktop-buttons {
        display: none;
    }
    
    .mobile-nav-overlay {
        display: block;
    }

    .header-wrapper {
        padding: 0 15px;
    }

    .solutions-mega-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        min-width: auto;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 45px;
    }
    
    .mobile-nav {
        width: 100%;
        max-width: 350px;
    }
    
    .mobile-dropdown-toggle,
    .mobile-direct-link a {
        padding: 16px 20px;
    }
    
    .mobile-dropdown-content a {
        padding: 14px 20px 14px 40px;
    }
    
    .mobile-buttons {
        padding: 20px;
    }

    .login-dropdown-menu {
        right: auto;
        left: 0;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        padding: 0 10px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .mobile-menu-btn {
        padding: 8px;
        font-size: 1.1rem;
    }
    
    .mobile-nav {
        width: 100%;
        padding-top: 0;
    }
    
    .mobile-dropdown-toggle,
    .mobile-direct-link a {
        padding: 14px 15px;
        font-size: var(--font-sm);
    }
    
    .mobile-dropdown-content a {
        padding: 12px 15px 12px 35px;
        font-size: var(--font-xs);
    }
    
    .mobile-buttons {
        padding: 15px;
    }
}