* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #a855f7;
    --accent: #ec4899;
    --text: #0f172a;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --scrollbar-width: 0px;
}

/* Prevent width shifting when modal opens */
html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    width: 100%;
    overflow-x: hidden;
    transition: padding-right 0.3s ease;
}

/* Lock body when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    padding-right: var(--scrollbar-width);
}

/* FontAwesome Fix */
.fas, .fab, .fa {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', sans-serif !important;
    font-weight: 900;
}

.fab {
    font-family: 'Font Awesome 6 Brands', sans-serif !important;
}

.fa-regular, .far {
    font-weight: 400 !important;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
    width: 100%;
    padding-right: var(--scrollbar-width);
}

.navbar.modal-open {
    padding-right: calc(15px + var(--scrollbar-width));
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.logo i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

/* ===== DROPDOWN STYLES - HOVER ON DESKTOP / CLICK ON MOBILE ===== */
.nav-item.has-dropdown {
    position: relative;
}

.nav-item.has-dropdown .nav-link i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

/* Desktop hover dropdown */
@media (min-width: 969px) {
    .nav-item.has-dropdown:hover .nav-link i {
        transform: rotate(180deg);
    }
    
    .nav-item.has-dropdown:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.nav-item.has-dropdown.active .nav-link i {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    border: 1px solid var(--border);
    pointer-events: none;
}

.nav-item.has-dropdown.active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-section h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.mega-menu-item:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

.mega-menu-item i {
    font-size: 1.25rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 24px;
    text-align: center;
    padding-top: 0.25rem;
}

.mega-menu-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.mega-menu-content p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

.sign-up-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    white-space: nowrap;
}

.sign-up-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 0.5rem;
}

/* ===== ENHANCED HERO SECTION WITH SIDE-BY-SIDE LAYOUT ===== */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8rem 2rem 4rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    max-width: 100vw;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 6s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 30%;
    animation-delay: 9s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text-section {
    color: white;
    padding-top: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== GENERATOR FORM IN HERO ===== */
.hero-form-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 100%;
}

.generator-form {
    width: 100%;
}

.form-section {
    max-width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.textarea-wrapper {
    position: relative;
}

.form-group textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s;
    background: white;
    max-width: 100%;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.mic-icon {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.mic-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.mic-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    max-width: 100%;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Generate Button with Animation */
.btn-generate {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-generate:hover .btn-shine {
    left: 100%;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.app-btn {
    padding: 0.875rem 1rem;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.app-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.app-btn i {
    font-size: 1.5rem;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== RESULT SECTION ===== */
.result-section {
    background: var(--bg-light);
    padding: 4rem 2rem;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-width: 1280px;
    margin: 0 auto;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.result-header h3 {
    font-size: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.result-header h3 i {
    color: #10b981;
    font-size: 1.75rem;
}

.result-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.word-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.copy-btn, .action-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    border: 2px solid var(--border);
    background: white;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.action-btn:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.result-box {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    max-height: 600px;
    overflow-y: auto;
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 1.05rem;
    color: var(--text);
}

.result-box::-webkit-scrollbar {
    width: 8px;
}

.result-box::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.result-box::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

/* Section Styles */
section {
    padding: 6rem 2rem;
    max-width: 100vw;
    overflow: hidden;
}

.templates-section {
    background: var(--bg);
}

.tools-section {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.2;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Enhanced Video Cards */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}

.play-overlay i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-left: 3px;
}

.video-card:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: white;
}

.video-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-badge.trending {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.video-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
}

.video-card-content {
    padding: 1.75rem;
}

.video-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.video-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.uses {
    color: var(--text-light);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.try-btn {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.try-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Enhanced Image Showcase */
.image-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.image-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
}

.image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.image-card:hover .image-wrapper img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.image-card:hover .image-overlay {
    opacity: 1;
}

.preview-btn,
.use-template-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.preview-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-template-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.image-card-content {
    padding: 1.5rem;
}

.image-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.image-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.375rem 0.875rem;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Enhanced Tool Cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.tool-card:hover::before {
    opacity: 0.05;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.tool-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.tool-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.tool-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.tool-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-stats i {
    color: var(--primary);
}

/* Chatbot Section */
.chatbot-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.chatbot-section .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.chatbot-section .section-header h2,
.chatbot-section .section-header p {
    color: white;
}

.chatbot-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.chatbot-demo {
    position: relative;
}

.demo-window {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.window-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-weight: 600;
}

.window-dots {
    display: flex;
    gap: 0.5rem;
}

.window-dots i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
    padding: 1.5rem;
    background: #f8fafc;
    min-height: 350px;
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.message.user-message {
    flex-direction: row-reverse;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.message-content {
    max-width: 70%;
}

.message-content p {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-message .message-content p {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.chatbot-features {
    display: grid;
    gap: 2rem;
}

.feature-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.feature-box .feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.feature-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Testimonials */
.testimonials-section {
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stars {
    color: #fbbf24;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.25rem;
    font-size: 1.125rem;
}

.testimonial-text {
    color: var(--text);
    margin-bottom: 2rem;
    font-style: italic;
    line-height: 1.7;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Trusted By Section */
.trusted-section {
    background: var(--bg-light);
    padding: 4rem 1rem;
}

.logo-slider {
    overflow: hidden;
    padding: 2rem 0;
}

.logo-track {
    display: flex;
    gap: 3rem;
    animation: scroll 40s linear infinite;
}

.logo-item {

    min-width: 180px;
    height: 70px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--text);
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    padding: 0 1rem;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.logo-item i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* View More Button */
.view-more-btn-container {
    text-align: center;
    margin-top: 3rem;
}

.view-more-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 1rem 2rem;
    max-width: 100vw;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.875rem;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: white;
    text-decoration: none;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.social-icon i {
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

/* ===== MODAL STYLES - FIXED FOR WIDTH SHIFT ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Login Modal Content */
.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 24px;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 1.75rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal .form-group {
    margin-bottom: 1.5rem;
}

.modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.modal .form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.modal .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.modal-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.modal-btn:hover::before {
    left: 100%;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.modal-btn:active {
    transform: translateY(0);
}

/* Enhanced App Modal Styles */
.app-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 24px;
    width: 100%;
    max-width: min(900px, 95vw);
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 20px;
    cursor: pointer;
    color: white;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tabs {
    display: flex;
    padding: 0 1.5rem;
    background: white;
    border-bottom: 2px solid #f0f0f0;
    overflow-x: auto;
    gap: 0.5rem;
}

.tabs::-webkit-scrollbar {
    height: 4px;
}

.tabs::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.tab {
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.3s ease;
    color: var(--text-light);
    position: relative;
}

.tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: transform 0.3s ease;
}

.tab:hover {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.tab.active {
    color: var(--primary);
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.1), transparent);
}

.tab.active::before {
    transform: translateX(-50%) scaleX(1);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    background: white;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.modal-body .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.tool-item {
    padding: 1.25rem 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.tool-item:hover::before {
    opacity: 1;
}

.tool-item:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.tool-item .icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.tool-item:hover .icon {
    transform: scale(1.2) rotate(5deg);
}

.tool-item span {
    position: relative;
    z-index: 1;
}

.tool-item a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.tool-item a:hover {
    color: inherit;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Large screens */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
}

/* Tablets and small laptops */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-text-section {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .chatbot-showcase {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .video-grid,
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .mega-menu {
        width: 500px;
    }
}

/* Tablets */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg);
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 1.5rem;
        align-items: stretch;
        height: calc(100vh - 70px);
        overflow-y: auto;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }

    .video-grid,
    .image-showcase {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Mobile mega menu - click instead of hover */
    .nav-item.has-dropdown .nav-link::after {
        display: none;
    }
    
    .nav-item.has-dropdown .mega-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        background: transparent;
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        grid-template-columns: 1fr;
        pointer-events: auto;
    }
    
    .nav-item.has-dropdown.active .mega-menu {
        max-height: 1000px;
        margin-top: 1rem;
        padding-left: 1rem;
        border-left: 2px solid var(--primary);
    }
    
    .mega-menu-section {
        margin-bottom: 1rem;
    }
    
    .mega-menu-section h3 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .mega-menu-item {
        padding: 0.5rem;
        margin-bottom: 0.25rem;
    }
    
    /* Disable hover effects on mobile */
    .nav-item.has-dropdown:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
    }
    
    .nav-item.has-dropdown:hover .nav-link i {
        transform: none;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .app-buttons {
        grid-template-columns: 1fr;
    }

    .hero-form-section {
        padding: 1.5rem;
    }

    .modal-content,
    .app-modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .modal h2 {
        font-size: 1.5rem;
    }

    .modal-header {
        padding: 1rem 1.25rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-body .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .tool-item {
        padding: 1rem 0.5rem;
    }

    .tool-item .icon {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .video-grid,
    .image-showcase {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    section {
        padding: 4rem 1rem;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Mobile Portrait */
@media (max-width: 640px) {
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-form-section {
        padding: 1.5rem;
    }
    
    .result-card {
        padding: 1.5rem;
    }
    
    .copy-btn, .action-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .testimonials-grid,
    .image-showcase {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .chatbot-showcase {
        gap: 2rem;
    }
    
    .logo-item {
        min-width: 150px;
        height: 60px;
        font-size: 0.9rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.75rem 0;
    }
    
    .sign-up-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    .video-grid,
    .tools-grid,
    .image-showcase {
        grid-template-columns: 1fr;
    }
    
    .modal-body .tools-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .logo-item {
        min-width: 130px;
        height: 50px;
        font-size: 0.8rem;
        padding: 0 0.75rem;
    }
    
    .logo-item i {
        font-size: 1.25rem;
    }
    
    .tab {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Very small mobile */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-content-wrapper {
        gap: 2rem;
    }
    
    .hero-form-section {
        padding: 1.25rem;
    }
    
    .container {
        padding: 0 0.25rem;
    }
    
    .nav-container {
        padding: 0.75rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .modal-body .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== MOBILE MENU FIXES ===== */
@media (max-width: 968px) {
    /* Fix mobile menu container */
    .nav-menu.active {
        display: flex !important;
        flex-direction: column;
        gap: 0;
    }
    
    /* Mobile nav items */
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-item.has-dropdown {
        border-bottom: none;
    }
    
    /* Mobile nav links */
    .nav-link {
        padding: 1rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        font-size: 1rem;
    }
    
    .nav-link i.fa-chevron-down {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }
    
    .nav-item.has-dropdown.active .nav-link i.fa-chevron-down {
        transform: rotate(180deg);
    }
    
    /* Mobile mega menu fixes */
    .nav-item.has-dropdown .mega-menu {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
        display: block !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease;
        grid-template-columns: 1fr !important;
        pointer-events: auto !important;
        margin: 0 !important;
    }
    
    .nav-item.has-dropdown.active .mega-menu {
        max-height: 2000px;
        padding: 0.5rem 0 0.5rem 1rem !important;
        margin-top: 0 !important;
        border-left: 3px solid var(--primary) !important;
    }
    
    /* Mega menu sections in mobile */
    .mega-menu-section {
        margin-bottom: 1.5rem;
    }
    
    .mega-menu-section h3 {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
        margin-bottom: 0.75rem;
        color: var(--primary);
        border-bottom: 1px solid var(--border);
    }
    
    /* Mega menu items in mobile */
    .mega-menu-item {
        padding: 0.75rem 0.5rem;
        margin-bottom: 0.5rem;
        background: var(--bg-light);
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .mega-menu-item:hover {
        background: var(--primary);
        transform: translateX(5px);
    }
    
    .mega-menu-item:hover i,
    .mega-menu-item:hover h4,
    .mega-menu-item:hover p {
        color: white !important;
        -webkit-text-fill-color: white !important;
    }
    
    .mega-menu-item i {
        font-size: 1.1rem;
        min-width: 24px;
    }
    
    .mega-menu-content h4 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .mega-menu-content p {
        font-size: 0.8rem;
        color: var(--text-light);
    }
    
    /* Close all other dropdowns when one is open */
    .nav-item.has-dropdown:not(.active) .mega-menu {
        max-height: 0;
        padding: 0 !important;
    }
    
    /* Prevent hover effects on mobile */
    .nav-item.has-dropdown:hover .mega-menu {
        max-height: 0;
        padding: 0 !important;
    }
    
    .nav-item.has-dropdown:hover .nav-link i.fa-chevron-down {
        transform: none;
    }
}

/* Small mobile adjustments */
@media (max-width: 640px) {
    .nav-menu {
        padding: 1rem;
    }
    
    .nav-link {
        padding: 0.875rem 0;
    }
    
    .mega-menu-section h3 {
        font-size: 0.85rem;
    }
    
    .mega-menu-item {
        padding: 0.625rem 0.5rem;
    }
}
.try-btn:focus-visible {
  outline: none;
}

