/* =========================================
   1. CORE & RESET (Global)
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #0a0a0a;
    --accent: #ff3366;
    /* Neon Pink */
    --accent-hover: #ff1149;
    --accent-blue: #00ADEF;
    /* Brand Blue */
    --text-light: #ffffff;
    --text-muted: #94a3b8;
    --bg-dark: #020617;
    /* Deepest Blue/Black */
    --bg-card: #0f172a;
    /* Slate Card Background */
    --border-color: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;

    /* Layout Fix for Sticky Footer */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

/* =========================================
   2. FONT DEFINITIONS
   ========================================= */
@font-face {
    font-family: 'Geetanjali';
    src: local('ABTT Geetanjali'), local('Geetanjali');
}

@font-face {
    font-family: 'GeetanjaliP';
    src: local('ABTT GeetanjaliP'), local('GeetanjaliP');
}

.std-font {
    font-family: 'ABTT Geetanjali', 'Geetanjali', sans-serif !important;
}

.num-font {
    font-family: 'ABTT GeetanjaliP', 'GeetanjaliP', sans-serif !important;
}

.eng-font {
    font-family: 'Times New Roman', Times, serif !important;
    font-size: 0.9em;
}

/* =========================================
   3. GLOBAL ANIMATIONS
   ========================================= */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================
   4. PROFESSIONAL NAVBAR STYLES (Fixed)
   ========================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px;
    background: rgba(2, 6, 23, 0.9);
    /* Darker Glass */
    backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.logo-link {
    text-decoration: none !important;
    border: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: "Geom", sans-serif;
    font-size: 26px;
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1;
}

.highlight-text {
    background: linear-gradient(135deg, var(--accent), #ff1149);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.logo-dot {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

/* Menu Links */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

.nav-link:hover {
    color: white;
}

/* Dropdown Logic */
.dropdown-item {
    position: relative;
    height: 100%;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 200px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    list-style: none;
    z-index: 1100;
}

.dropdown-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    transition: 0.2s;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dropdown-menu .material-symbols-outlined {
    font-size: 18px;
    color: var(--accent);
}

/* Right Actions (Button & Lang) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.globe-icon {
    font-size: 18px;
    color: #94a3b8;
    margin-right: 5px;
}

.lang-select {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.lang-select option {
    background: #0f172a;
    color: white;
}

/* Start Project Button (Visible on Desktop) */
.nav-cta {
    background: white;
    color: #000;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    /* Ensure visibility */
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.nav-cta:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle (3 Lines) */
.menu-toggle {
    display: none;
    /* Hidden on Desktop */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
    z-index: 2001;
}

.bar {
    width: 26px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

/* Mobile Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #020617;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    padding: 20px 30px;
    overflow-y: auto;
}

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

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.nav-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-link {
    display: block;
    font-size: 20px;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    padding: 20px 0;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-link.highlight {
    color: var(--accent) !important;
    font-weight: 700;
}

/* RESPONSIVE NAVBAR */
@media (max-width: 900px) {

    /* Hide Desktop Elements */
    .nav-links,
    .lang-wrapper,
    .nav-actions .nav-cta {
        display: none !important;
    }

    /* Show Mobile Elements */
    .menu-toggle {
        display: flex !important;
    }

    .nav {
        padding: 15px 20px;
    }
}

/* =========================================
   5. GLOBAL BUTTONS & INPUTS
   ========================================= */
.material-symbols-outlined {
    font-size: 18px;
    vertical-align: middle;
}

button,
.cta-button,
.action-btn,
.hero-btn,
.btn-download,
.studio-btn,
.btn-get-script {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 24px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: 0.2s ease-out;
    text-decoration: none;
    box-shadow: none !important;
    background-size: 200% auto;
}

button:hover {
    background-position: right center;
}

button:active {
    transform: scale(0.98);
}

/* Primary Gradient Button */
.cta-button.primary,
.hero-btn,
.action-btn,
.studio-btn.primary,
.btn-get-script {
    background-image: linear-gradient(to right, #ff3366 0%, #ff1149 51%, #ff3366 100%);
    color: white;
}

/* Secondary/Outline Button */
.btn-simple,
.studio-btn.outline,
.btn-quote {
    background-image: linear-gradient(to right, #1e293b 0%, #334155 51%, #1e293b 100%);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-simple:hover,
.studio-btn.outline:hover,
.btn-quote:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Inputs */
input,
textarea,
.studio-input,
.studio-select {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

input:focus,
textarea:focus,
.studio-input:focus {
    transform: translateY(-3px);
    border-color: var(--accent);
    outline: none;
}

/* =========================================
   6. FOOTER FINAL (Professional & Bulletproof)
   ========================================= */

/* 🚫 1. HIDE GHOST FOOTERS (Trapped inside tools) */
.qr-wrapper footer,
.barcode-wrapper footer,
.hero-section footer,
.nav footer {
    display: none !important;
}

/* ✅ 2. FORCE MAIN FOOTER VISIBILITY */
.footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    background: linear-gradient(to bottom, #020617 0%, #0f172a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 0 30px 0;
    margin-top: 120px !important;
    position: relative;
    z-index: 50;
    width: 100%;
    clear: both;
}

/* 3. Grid Layout */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* 4. Column Styling */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Logo */
.footer-logo {
    font-family: 'Geom', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1px;
    display: inline-block;
}

.footer-logo .highlight-text {
    background: linear-gradient(135deg, #ff3366, #ff1149);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-desc {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.8;
    max-width: 320px;
    font-weight: 400;
}

/* Headings */
.footer-heading {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 20px;
    height: 2px;
    background: #ff3366;
    border-radius: 2px;
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(8px);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.3s;
    color: #ff3366;
    font-size: 12px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Icons */
.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-list .material-symbols-outlined {
    font-size: 22px;
    color: #ff3366;
    background: rgba(255, 51, 102, 0.08);
    border: 1px solid rgba(255, 51, 102, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.contact-list li:hover .material-symbols-outlined {
    background: #ff3366;
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
    transform: translateY(-3px);
}

.contact-list a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s;
}

.contact-list a:hover {
    color: #fff;
}

/* --- FOOTER BOTTOM (Copyright & Credits) --- */
.footer-bottom {
    margin-top: 70px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 60;
}

/* Left: Copyright */
.copyright-text {
    color: #94a3b8;
    font-size: 13px;
}

.copyright-text strong {
    color: #fff;
}

/* Right: Credits */
.footer-credits {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #94a3b8;
}

/* Links (xobdo.org) */
.footer-credits a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
    transition: 0.3s;
}

.footer-credits a:hover {
    color: #ff3366 !important;
    border-bottom-color: #ff3366;
}

/* Team Highlight */
.footer-credits strong {
    color: #ff3366;
}

/* Separator Dot */
.sep {
    color: rgba(255, 255, 255, 0.15);
    font-size: 10px;
}

/* 📱 Mobile */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-desc {
        margin: 0 auto;
    }

    .contact-list li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-credits {
        flex-direction: column;
        gap: 8px;
    }

    .sep {
        display: none;
    }
}

/* =========================================
   7. GLOBAL MODAL
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

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

.modal-content {
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.modal-img-full {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 2001;
}

.modal-close .material-symbols-outlined {
    font-size: 48px;
}

.modal-close:hover {
    color: var(--accent);
}