/* Base Styles - Anek Bangla Only */
@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@100;200;300;400;500;600;700;800&display=swap');

@font-face {
    font-family: 'Anek Bangla';
    src: url('https://fonts.gstatic.com/s/anekbangla/v1/NAmZKzYbHv9kGzKgJqQpCw.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0980-09FF, U+1CD0-1CF9, U+200C-200D, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}

@font-face {
    font-family: 'Anek Bangla';
    src: url('https://fonts.gstatic.com/s/anekbangla/v1/NAmZKzYbHv9kGzKgJqQpCw.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0980-09FF, U+1CD0-1CF9, U+200C-200D, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}

.hero-headline {
    font-family: "Anek Bangla", sans-serif !important;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    font-size: 1.4em;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Anek Bangla", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

/* Set default font stack for all elements */
body, p, h1, h2, h3, h4, h5, h6, a, span, div, button, input, textarea, select, option, label, li, td, th, caption {
    font-family: "Anek Bangla", sans-serif !important;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --secondary: #00c6ff;
    --accent: #7928ca;
    --text: #1e293b;
    --text-light: #64748b;
    --light-bg: #f8f9ff;
    --border: #e2e8f0;
    --bg: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 18px;
    overflow-x: hidden;
    font-family: "Anek Bangla", sans-serif !important;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

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

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

ul, ol {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-bill {
    background: linear-gradient(135deg, #FF512F 0%, #DD2476 100%);
    color: #fff;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(221, 36, 118, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-bill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 36, 118, 0.55);
}

/* Header & Navigation */
.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.logo-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4e44ce, #8a2be2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #4e44ce;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-left: 2px;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    height: 70px;
    transition: var(--transition);
    position: relative;
}

.nav-link i {
    margin-right: 8px;
    font-size: 1rem;
}

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

/* Dropdown Menu */
.has-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--light-bg);
    color: var(--primary);
    padding-left: 25px;
}

.dropdown-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    padding: 15px 10px;
    z-index: 1001;
    transition: var(--transition);
}

.mobile-menu-btn.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hamburger {
    width: 30px;
    height: 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

/* Hero Section */
.hero {
    padding: 200px 0 120px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero .btn {
    margin: 0;
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 30px;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Footer */
.main-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after,
.footer-contact h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

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

.footer-links ul li a {
    color: #b3b3b3;
    transition: var(--transition);
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #b3b3b3;
}

.footer-contact ul li i {
    margin-right: 15px;
    color: var(--primary);
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: #b3b3b3;
    font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    padding: 80px 20px 30px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s ease,
                opacity 0.3s ease;
    transform: translateX(100%);
    opacity: 0;
    z-index: 1002;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    will-change: transform, opacity;
    overscroll-behavior: contain;
    display: none; /* Will be shown via JS */
}

.mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
    box-shadow: -5px 0 40px rgba(0, 0, 0, 0.2);
    display: block;
}

/* Speed Test Section */
.speed-test {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.speedtest-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.speedtest-box {
    padding: 0;
}

.speedtest-header {
    background: var(--primary);
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.speedtest-header i {
    font-size: 24px;
}

.speedtest-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.speedtest-body {
    padding: 30px;
}

.speedtest-status {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-muted);
    min-height: 30px;
}

.speedtest-results {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.speedtest-result {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.speedtest-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.speedtest-label {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
}

.speedtest-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 80px;
    text-align: right;
    margin: 0 10px;
}

.speedtest-unit {
    color: var(--text-muted);
    width: 50px;
    text-align: left;
}

.speedtest-progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin: 30px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.5s ease, background-color 0.3s;
    border-radius: 4px;
}

#startSpeedTest {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

#startSpeedTest:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

#startSpeedTest:active {
    transform: translateY(0);
}

#startSpeedTest i {
    transition: transform 0.3s ease;
}

#startSpeedTest.running {
    background-color: var(--danger);
}

#startSpeedTest.running i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive styles */
@media (max-width: 768px) {
    .speedtest-body {
        padding: 20px;
    }
    
    .speedtest-value {
        font-size: 1.3rem;
    }
    
    .speedtest-result {
        padding: 12px 15px;
    }
}

/* Add a subtle scale effect when opening */
@keyframes menuSlideIn {
    from {
        transform: translateX(100%) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.mobile-menu.active {
    animation: menuSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hide scrollbar when not needed */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.mobile-menu .nav-menu {
    flex-direction: column;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-menu .nav-menu > li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

.mobile-menu .nav-menu > li:active {
    background-color: rgba(0, 0, 0, 0.02);
}

.mobile-menu .nav-link {
    padding: 16px 0;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    color: var(--text);
    font-weight: 500;
    position: relative;
}

.mobile-menu .nav-link i:first-child {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.mobile-menu .has-dropdown > .nav-link {
    padding-right: 30px;
    position: relative;
}

.mobile-menu .has-dropdown > .nav-link .dropdown-arrow {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu .has-dropdown > .nav-link .dropdown-arrow:before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
    transition: all 0.2s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -4px;
    margin-left: -4px;
}

.mobile-menu .has-dropdown > .nav-link:hover .dropdown-arrow:before,
.mobile-menu .has-dropdown > .nav-link:focus .dropdown-arrow:before {
    border-color: var(--primary);
}

.mobile-menu .has-dropdown.active > .nav-link .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-menu .has-dropdown.active > .nav-link {
    color: var(--primary);
    font-weight: 600;
}

/* Add focus styles for better accessibility */
.mobile-menu .nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
    border-radius: 4px;
    background-color: rgba(79, 70, 229, 0.05);
}

/* Style for menu items in dropdown */
.mobile-menu .dropdown-menu [role="menuitem"] {
    display: block;
    width: 100%;
    padding: 10px 15px 10px 40px;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 4px;
}

.mobile-menu .dropdown-menu [role="menuitem"]:hover,
.mobile-menu .dropdown-menu [role="menuitem"]:focus {
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary);
    padding-left: 45px;
}

.mobile-menu .dropdown-menu [role="menuitem"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3);
}

/* Add indicator for current page in dropdown */
.mobile-menu .dropdown-menu [aria-current="page"] {
    color: var(--primary);
    font-weight: 500;
}

.mobile-menu .dropdown-menu [aria-current="page"]:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
}

.mobile-menu .has-dropdown .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 0 32px;
    margin: 0;
    display: none;
    border: none;
    background: rgba(0, 0, 0, 0.015);
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, padding 0.3s ease;
    will-change: max-height, opacity, padding;
}

.mobile-menu .has-dropdown.active .dropdown-menu {
    display: block;
    padding: 8px 0 12px 32px;
    max-height: 1000px;
    opacity: 1;
}

.mobile-menu .dropdown-menu li {
    position: relative;
    opacity: 0;
    transform: translateX(-5px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transition-delay: 0.1s;
}

.mobile-menu .has-dropdown.active .dropdown-menu li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu .dropdown-menu li a {
    display: block;
    padding: 10px 15px 10px 25px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 400;
    border-left: 2px solid transparent;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    margin: 2px 0;
}

.mobile-menu .dropdown-menu li a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.2s ease;
}

.mobile-menu .dropdown-menu li a:hover,
.mobile-menu .dropdown-menu li a:focus {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
    padding-left: 35px;
    transform: translateX(5px);
}

.mobile-menu .dropdown-menu li a:hover:before,
.mobile-menu .dropdown-menu li a:focus:before {
    opacity: 1;
    left: 15px;
}

/* Add subtle animation to dropdown items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu .has-dropdown.active .dropdown-menu li {
    animation: fadeInUp 0.3s ease forwards;
}

/* Add delay for each dropdown item */
.mobile-menu .has-dropdown.active .dropdown-menu li:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu .has-dropdown.active .dropdown-menu li:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu .has-dropdown.active .dropdown-menu li:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu .has-dropdown.active .dropdown-menu li:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu .has-dropdown.active .dropdown-menu li:nth-child(5) { animation-delay: 0.25s; }

/* Bilingual Highlight Section */
.bilingual-highlight {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.bilingual-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.bilingual-line {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(-10px);
    animation: slideIn 0.5s ease-out forwards;
}

.bilingual-line:nth-child(1) { animation-delay: 0.5s; }
.bilingual-line:nth-child(2) { animation-delay: 0.7s; }

.language-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.highlight-text {
    font-size: 1.2em;
    font-weight: 500;
    color: var(--text);
    position: relative;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(79, 70, 229, 0.2);
    z-index: -1;
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    animation: highlight 1.5s ease-in-out forwards;
    animation-delay: 1s;
}

@keyframes highlight {
    to {
        transform: scaleX(1);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s step-end;
    will-change: opacity, visibility;
    cursor: pointer;
    display: none; /* Will be shown via JS */
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    display: block;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s step-start;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
}

/* Add a subtle scale effect to the overlay content */
.mobile-menu-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active::before {
    opacity: 1;
}

/* Add a subtle pulse effect when active */
@keyframes overlayPulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

.mobile-menu-overlay:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: overlayPulse 2s infinite;
    pointer-events: none;
}

/* Improve touch targets */
@media (max-width: 992px) {
    .mobile-menu .nav-link {
        padding: 16px 0;
        min-height: 56px;
        display: flex;
        align-items: center;
    }
    
    .mobile-menu .dropdown-menu li a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

.no-scroll {
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 160px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .features {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
}
