/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-24);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--dur-2) var(--ease-out);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--brand);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* Header specific CTA override for white background */
.header-actions .btn-primary {
    background-color: transparent;
    border-color: #1E5EFF;
    color: #1E5EFF;
    box-shadow: none;
}

.header-actions .btn-primary:hover {
    background-color: #1E5EFF;
    color: #ffffff;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-primary:hover {
    background-color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
    background-color: rgba(29, 78, 216, 0.05);
    /* very light blue tint */
}

/* In dark contexts (Hero/Footer), outline buttons need white */
.theme-dark .btn-outline,
.site-header .btn-outline,
.site-footer .btn-outline,
.hero-slider .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.theme-dark .btn-outline:hover,
.site-header .btn-outline:hover,
.site-footer .btn-outline:hover,
.hero-slider .btn-outline:hover {
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-lg {
    padding: var(--space-16) var(--space-40);
    font-size: var(--text-base);
}

.btn-full {
    width: 100%;
}

/* --- Header & Nav --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 92px;
    z-index: 1000;
    transition: all var(--dur-3) var(--ease-out);
    background: #ffffff;
    /* White Background */
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    /* Subtle border */
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header.is-scrolled {
    background: #ffffff;
    box-shadow: var(--shadow-md);
    height: 72px;
}

/* Logo Styling */
.header-logo-image {
    height: 100px;
    width: auto;
    object-fit: contain;
    max-height: 100%;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: height 0.3s ease;
}

/* Scrolled State */
.site-header.is-scrolled .header-logo-image {
    height: 64px;
    /* Proportional to 72px header */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .site-header {
        height: 72px;
        /* Enforce smaller header on mobile */
    }

    .header-logo-image {
        height: 56px;
        /* Fit within 72px */
    }
}

.brand-logo .logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: #1E5EFF;
    letter-spacing: -0.02em;
}

/* Navigation */
.nav-list {
    display: flex;
    gap: var(--space-8);
}

.nav-link {
    padding: var(--space-8) var(--space-16);
    border-radius: var(--radius-pill);
    color: #1E5EFF;
    /* Brand Blue on White */
    font-weight: 600;
    font-size: 15px;
    position: relative;
    transition: all var(--dur-2) var(--ease-out);
}

.nav-link:hover {
    color: #1141b7;
    background-color: rgba(30, 94, 255, 0.08);
}

.nav-link.active {
    color: #1141b7;
    background-color: rgba(30, 94, 255, 0.12);
}

/* --- Cards (White Surface) --- */
.glass-card,
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-32);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}

.glass-card:hover,
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-light);
}

/* Special Case: Hero Visual remains glass/transparent if needed, but for now we make it consistent */
.hero-visual .glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: var(--space-56);
    max-width: 700px;
}

.section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-16);
    color: var(--text);
}

.section-desc {
    font-size: 18px;
    color: var(--text-muted);
}

/* --- Footer (AgnoShin Style) --- */
/* build: FOOTER-UPDATE-2026-02-18 */
.site-footer {
    background-color: #0B1120;
    /* Dark Navy / Charcoal */
    color: #94A3B8;
    /* Light Gray text */
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 15px;
}

.footer-grid {
    display: grid;
    /* UPDATE: Tighter grid as requested */
    grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr;
    gap: 24px;
    margin-bottom: 60px;
    /* Ensure no artificial stretching */
    justify-content: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

/* Newsletter Column */

/* Updated Newsletter UI */
.site-footer .ts-input-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.site-footer .ts-input {
    flex: 1;
    max-width: 260px;
    /* Controlled width */
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
}

.site-footer .ts-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.site-footer .ts-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(242, 103, 34, 0.2);
    /* Orange glow */
    background: rgba(255, 255, 255, 0.1);
}

.site-footer .ts-btn-subscribe {
    background-color: var(--brand);
    /* TechShark Orange */
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-footer .ts-btn-subscribe:hover {
    background-color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 103, 34, 0.3);
}

.copyright-text {
    font-size: 13px;
    color: #64748B;
    margin-top: 24px;
}

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

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

.footer-link {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #FFFFFF;
    transform: translateX(2px);
}

/* Socials */
.footer-social-group {
    margin-top: 32px;
}

.social-title {
    font-size: 16px;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    color: #FFFFFF;
    opacity: 0.7;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--brand);
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #050912;
    padding-block: 24px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #64748B;
}

.designer-credit {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Tablet: 2 cols */
        gap: 40px 24px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* Mobile: 1 col */
        gap: 48px;
    }

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

    .site-footer {
        padding-top: 60px;
    }

    /* Stack Newsletter on Mobile */
    .site-footer .ts-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .site-footer .ts-input {
        max-width: 100%;
        width: 100%;
    }

    .site-footer .ts-btn-subscribe {
        width: 100%;
    }
}

/* --- Mobile Navigation --- */

/* Hamburger Button */
.mobile-menu-toggle {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-8);
    position: relative;
    z-index: 1001;
    /* Above mobile nav */
    color: #1E5EFF;
    margin-left: var(--space-16);
}

.hamburger-box {
    width: 24px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    position: absolute;
    transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2);
}

.hamburger-inner::before {
    content: '';
    top: -7px;
}

.hamburger-inner::after {
    content: '';
    top: 7px;
}

/* Mobile Drawer — Full-screen overlay */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--navy);
    z-index: 1000;
    padding: var(--space-24);
    padding-top: 0;
    transform: translateX(100%);
    /* Hidden by default */
    transition: transform var(--dur-3) var(--ease-out);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-panel.is-open {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-40);
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: 0;
    background: var(--navy);
    z-index: 1;
}

.mobile-nav-header .logo-text {
    font-size: 20px;
    color: var(--white);
    font-weight: 700;
}

.nav-close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.nav-close-btn:hover {
    color: var(--white);
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    margin: 0;
    padding: 0;
    flex: 1;
}

.mobile-link {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 500;
    display: block;
    padding: var(--space-8) 0;
    transition: color var(--dur-2);
    text-decoration: none;
}

.mobile-link:hover,
.mobile-link:active {
    color: var(--brand);
}

.mobile-nav-actions {
    margin-top: auto;
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
}

/* --- Responsive Breakpoints --- */

@media (min-width: 992px) {

    /* Ensure mobile elements are hidden on desktop */
    .mobile-menu-toggle {
        display: none !important;
    }

    .mobile-nav-panel {
        display: none !important;
    }
}

@media (max-width: 991px) {

    /* Hide desktop nav */
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-actions .btn {
        display: none;
        /* Hide desktop CTA on mobile */
    }
}

/* --- Dropdown Navigation --- */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-8) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--dur-2) var(--ease-out);
    z-index: 1002;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: var(--space-12) var(--space-24);
    color: #1E5EFF;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    margin: 0 var(--space-8);
    transition: all var(--dur-2);
}

.dropdown-item:hover {
    background: rgba(30, 94, 255, 0.05);
    color: #1141b7;
    transform: translateX(4px);
}


/* --- Mobile Submenus --- */
.mobile-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.mobile-group-title {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding-top: var(--space-8);
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-group-title:hover {
    color: var(--primary);
}

.mobile-sublink {
    font-size: 15px;
    color: var(--text-light);
    padding-left: var(--space-16);
    border-left: 1px solid var(--border);
    margin-left: var(--space-4);
    display: block;
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-sublink:hover {
    color: var(--brand);
}

/* Newsletter Subscribe Button */
.ts-btn-subscribe {
    cursor: pointer;
    transition: all 0.2s ease;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.ts-btn-subscribe:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.3);
    filter: brightness(1.1);
}

/* Input Group Wrapper */
.ts-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Responsive */
@media (min-width: 480px) {
    .ts-input-group {
        flex-direction: row;
        gap: 8px;
    }

    .ts-input {
        width: auto;
        flex: 1;
    }
}