/* Fonts */



:root {

    --bg-color: #050505;

    --surface-color: #0f0f0f;

    --surface-color-light: #1a1a1a;

    --primary-color: #8b5cf6;

    --secondary-color: #ec4899;

    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);

    --text-main: #ffffff;

    --text-muted: #a1a1aa;

    --border-color: #27272a;

    --glass-bg: rgba(255, 255, 255, 0.05);

    --glass-border: rgba(255, 255, 255, 0.1);

    --overlay-color: rgba(0, 0, 0, 0.45);

    --container-width: 1200px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

}



[data-theme="light"] {

    --bg-color: #ffffff;

    --surface-color: #f3f4f6;

    --surface-color-light: #e5e7eb;

    --text-main: #111827;

    --text-muted: #4b5563;

    --border-color: #e5e7eb;

    --glass-border: rgba(0, 0, 0, 0.1);

    --overlay-color: rgba(255, 255, 255, 0.4);

    /* Reduced from 0.85 */

}



[data-theme="light"] .logo img {

    filter: invert(1);

}



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



html,

body {

    overflow-x: hidden;

    position: relative;

    width: 100%;

}



html {

    scroll-behavior: smooth;

}



body {

    font-family: 'Outfit', sans-serif;

    background-color: var(--bg-color);

    color: var(--text-main);

    line-height: 1.6;

    overflow-x: hidden;

}



a {

    text-decoration: none;

    color: inherit;

    transition: var(--transition);

}



ul {

    list-style: none;

}



img {

    max-width: 100%;

    display: block;

}



.container {

    max-width: var(--container-width);

    margin: 0 auto;

    padding: 0 2rem;

}



.section-padding {

    padding: clamp(4rem, 10vw, 8rem) 0;

}



.section-padding.compact-top {

    padding-top: clamp(2rem, 5vw, 4rem);

}



h1,

h2,

h3,

h4,

h5,

h6 {

    line-height: 1.2;

    margin-bottom: 1rem;

}



.gradient-text {

    background: var(--accent-gradient);

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

}



.btn {

    display: inline-block;

    padding: 0.8rem 2rem;

    border-radius: 50px;

    font-weight: 600;

    cursor: pointer;

    transition: var(--transition);

    border: none;

    font-size: 1rem;

}



.btn-primary {

    background: var(--accent-gradient);

    color: white;

    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);

}



.btn-primary:hover {

    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);

}



.btn-outline {

    background: transparent;

    border: 2px solid var(--border-color);

    color: var(--text-main);

}



.btn-outline:hover {

    border-color: var(--primary-color);

    color: var(--primary-color);

}



/* Screen Reader Only Utility */

.sr-only {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border-width: 0;

}



/* Header */

header {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    z-index: 1000;

    padding: 1.5rem 0;

    transition: var(--transition);

    background: transparent;

    border-bottom: 1px solid transparent;

}



header.scrolled {

    padding: 1rem 0;

    background: var(--surface-color);

    /* Adaptive background */

    backdrop-filter: blur(10px);

    border-bottom: 1px solid var(--border-color);

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

}



.nav-container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    position: relative;

    /* Essential for absolute centering of toggle */

    width: 100%;

}



.logo {

    font-size: 1.5rem;

    font-weight: 700;

    letter-spacing: -0.5px;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.nav-links {

    display: flex;

    gap: 2.5rem;

}



.nav-links a {

    font-weight: 500;

    color: var(--text-muted);

}



.nav-links a:hover,

.nav-links a.active {

    color: var(--text-main);

}



.mobile-toggle {

    display: none;

    cursor: pointer;

    margin-left: auto;

    /* Push to right on mobile */

    z-index: 1002;

    /* Ensure above overlay */

}



.staggered-menu {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 5px;

    width: 28px;

}



.staggered-menu span {

    display: block;

    height: 3px;

    background: white;

    border-radius: 2px;

    transition: var(--transition);

}



.staggered-menu span:nth-child(1) {

    width: 70%;

}



.staggered-menu span:nth-child(2) {

    width: 100%;

}



.staggered-menu span:nth-child(3) {

    width: 40%;

}



/* Hero Section */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 11rem;
    /* Increased for transparent header + 50px gap */
}



.subpage-hero {

    min-height: 35vh;

    display: flex;

    align-items: center;

    position: relative;

    overflow: hidden;

}



/* White overlay with blur for blog hero images */

.subpage-hero::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(255, 255, 255, 0.85);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    z-index: 0;

}



/* Dark mode overlay - darker and more blur for better contrast */

[data-theme="dark"] .subpage-hero::before {

    background: rgba(5, 5, 5, 0.85);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

}



/* Ensure content stays above overlay */

.subpage-hero .container {

    position: relative;

    z-index: 1;

}



.hero-btns {

    display: flex;

    gap: 1.5rem;

    justify-content: flex-start;

    margin-top: 2rem;

    /* Added margin between text and buttons */

}



#hero-canvas {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    z-index: 1;

    pointer-events: none;

}



.hero-video {

    position: absolute;

    top: 50%;

    left: 50%;

    min-width: 100%;

    min-height: 100%;

    width: auto;

    height: auto;

    z-index: -2;

    transform: translate(-50%, -50%);

    object-fit: cover;

    transition: opacity 1s ease;

}



.video-overlay {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(5, 5, 5, 0.6);

    z-index: -1;

}



.hero::before {

    content: '';

    position: absolute;

    top: -20%;

    right: -10%;

    width: 600px;

    height: 600px;

    background: var(--primary-color);

    filter: blur(150px);

    opacity: 0.2;

    border-radius: 50%;

    z-index: -1;

}



.hero::after {

    content: '';

    position: absolute;

    bottom: -20%;

    left: -10%;

    width: 500px;

    height: 500px;

    background: var(--secondary-color);

    filter: blur(150px);

    opacity: 0.15;

    border-radius: 50%;

    z-index: -1;

}



.hero-content {

    max-width: 800px;

    text-align: center;

    margin: 0 auto;

}



.hero-scroll-indicator {

    display: none;

    /* Hidden on desktop */

}



.hero-scroll-indicator i {

    font-size: 1.5rem;

    color: var(--primary-color);

    filter: drop-shadow(0 0 8px var(--primary-color));

}



@keyframes heroBounce {



    0%,

    100% {

        transform: translateY(-50%) translateY(0);

    }



    50% {

        transform: translateY(-50%) translateY(15px);

    }

}



@media (max-width: 1100px) {

    .hero-scroll-indicator {

        left: -40px;

    }

}



@media (max-width: 900px) {

    .hero-scroll-indicator {

        position: relative;

        bottom: auto;

        left: auto;

        transform: none;

        margin-top: 60px;

        /* Space below the View our Work button */

        margin-bottom: 20px;

        display: flex;

        justify-content: center;

        animation: heroBounceMobile 2s infinite ease-in-out;

    }



    @keyframes heroBounceMobile {



        0%,

        100% {

            transform: translateY(0);

        }



        50% {

            transform: translateY(10px);

        }

    }

}



/* Pilot Hero Redesign */

.pilot-hero .container {

    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    gap: 4rem;

    align-items: center;

    text-align: left;

}



.pilot-hero .hero-content {

    text-align: left;

    margin: 0;

    max-width: 100%;

}



.pilot-hero-image {

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

}



.pilot-hero-image img {

    width: 100%;

    max-width: 500px;

    filter: drop-shadow(0 20px 50px rgba(139, 92, 246, 0.3));

    animation: floating 6s ease-in-out infinite;

}



@keyframes floating {

    0% {

        transform: translateY(0px);

    }



    50% {

        transform: translateY(-20px);

    }



    100% {

        transform: translateY(0px);

    }

}



@media (max-width: 992px) {

    .pilot-hero .container {

        grid-template-columns: 1fr;

        text-align: center;

        gap: 2rem;

    }



    .pilot-hero .hero-content {

        text-align: center;

    }



    .pilot-hero-image {

        order: -1;

    }

}



.hero h1 {

    font-size: clamp(2.5rem, 8vw, 4.5rem);

    font-weight: 800;

    margin-bottom: 1.5rem;

    letter-spacing: -2px;

    line-height: 1.1;

}



.hero p {

    font-size: clamp(1rem, 4vw, 1.25rem);

    color: var(--text-muted);

    margin-bottom: 2.5rem;

    max-width: 600px;

    margin-left: auto;

    margin-right: auto;

}



.hero-btns {

    display: flex;

    gap: 1rem;

    justify-content: center;

}



/* Services */

.services-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 2rem;

    margin-top: 3rem;

}



.grid-2,

.grid-3 {

    display: grid;

    gap: 2rem;

    align-items: center;

}



.grid-2 {

    grid-template-columns: 1fr 1fr;

}



.grid-3 {

    grid-template-columns: repeat(3, 1fr);

}



/* Hero Button Outline */

.hero-btn-outline {

    border: 1px solid white !important;

    color: white !important;

}



[data-theme="light"] .hero-btn-outline {

    border: 1px solid #000 !important;

    color: #000 !important;

}



.google-reviews-badge:hover {

    transform: translateY(-3px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;

}



.grid-sidebar {

    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 3rem;

    align-items: start;

}



/* Portfolio Grid */

.portfolio-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 2rem;

    margin-top: 2rem;

}



.project-card {

    position: relative;

    border-radius: 1rem;

    overflow: hidden;

    aspect-ratio: 4/3;

    transition: var(--transition);

    border: 1px solid var(--border-color);

}



.project-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

}



.project-img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;

}



.project-card:hover .project-img {

    transform: scale(1.05);

}



.project-overlay {

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    padding: 1.5rem;

    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);

    color: white;

    transform: translateY(20px);

    transition: var(--transition);

    opacity: 0;

}



.project-card:hover .project-overlay {

    transform: translateY(0);

    opacity: 1;

}



/* Ensure mobile overrides */

@media (max-width: 900px) {



    .grid-2,

    .grid-3,

    .grid-sidebar,

    .portfolio-grid {

        grid-template-columns: 1fr;

        gap: 2rem;

    }

}



.subpage-hero {
    min-height: 40vh !important;
    padding-top: clamp(12rem, 18vh, 15rem) !important;
    /* Increased for 50px gap */
    padding-bottom: clamp(4rem, 8vw, 6rem) !important;
    display: flex;
    align-items: center;
    text-align: center;
}



.subpage-hero h1 {

    font-size: clamp(2.5rem, 8vw, 4rem);

    margin-bottom: 1rem;

}



.subpage-hero p {

    font-size: clamp(1rem, 3vw, 1.25rem);

    max-width: 800px;

    margin: 0 auto;

}



.service-card {

    background: var(--surface-color);

    padding: 2.5rem;

    border-radius: 1rem;

    border: 1px solid var(--border-color);

    transition: var(--transition);

    position: relative;

    overflow: hidden;

}



.service-card:hover {

    transform: translateY(-5px);

    border-color: var(--primary-color);

    background: var(--surface-color-light);

}



.service-icon {

    width: 60px;

    height: 60px;

    background: rgba(139, 92, 246, 0.1);

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.5rem;

    color: var(--primary-color);

    margin-bottom: 1.5rem;

}



.service-card h3 {

    margin-bottom: 1rem;

    font-size: 1.25rem;

}



.service-card p {

    color: var(--text-muted);

    font-size: 0.95rem;

}



/* Portfolio */

.portfolio-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));

    gap: 2rem;

    margin-top: 3rem;

}



.project-card {

    border-radius: 1rem;

    overflow: hidden;

    position: relative;

    aspect-ratio: 4/3;

}



.project-img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;

}



.project-card:hover .project-img {

    transform: scale(1.1);

}



.project-overlay {

    position: absolute;

    bottom: 0;

    left: 0;

    width: 100%;

    padding: 2rem;

    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);

    transform: translateY(20px);

    opacity: 0;

    transition: var(--transition);

}



.project-card:hover .project-overlay {

    transform: translateY(0);

    opacity: 1;

}



/* Stats */

.stats-section {

    background: var(--surface-color);

    margin: 4rem 0;

}



.stats-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    text-align: center;

    gap: 2rem;

}



.stat-item h2 {

    font-size: 3rem;

    color: var(--primary-color);

    margin-bottom: 0.5rem;

}



.stat-item p {

    color: var(--text-muted);

}



/* Footer */

footer {

    background: var(--surface-color);

    padding: 4rem 0 2rem;

    border-top: 1px solid var(--border-color);

}



.footer-grid {

    display: grid;

    grid-template-columns: 1.5fr 1fr 1fr 1fr;

    gap: 3rem;

    margin-bottom: 3rem;

}



.footer-info p {

    color: var(--text-muted);

    margin: 1.5rem 0;

}



.footer-col h4 {

    margin-bottom: 1.5rem;

    font-weight: 600;

}



.footer-col ul li {

    margin-bottom: 0.8rem;

}



.footer-col ul li a {

    color: var(--text-muted);

}



.footer-col ul li a:hover {

    color: var(--primary-color);

}



.copyright {

    text-align: center;

    padding-top: 2rem;

    border-top: 1px solid var(--border-color);

    color: var(--text-muted);

    font-size: 0.9rem;

}



/* Responsive */

@media (max-width: 900px) {

    .nav-links {

        display: none;

        flex-direction: column;

        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        background: transparent;

        backdrop-filter: blur(15px);

        padding: 2rem;

        border-bottom: 1px solid transparent;

        z-index: 1000;

        transition: var(--transition);

    }



    .nav-links.active {

        display: flex;

        background: rgba(5, 5, 5, 0.9);

        border-bottom: 1px solid var(--border-color);

    }



    header.scrolled .nav-links {

        background: rgba(5, 5, 5, 0.95);

        border-bottom: 1px solid var(--border-color);

    }



    .header-btn {

        display: none !important;

    }



    .mobile-actions {

        display: flex !important;

    }



    .nav-container {

        padding: 0 1.25rem !important;

        display: flex !important;

        justify-content: space-between !important;

        align-items: center !important;

        position: relative !important;

    }



    .mobile-toggle {

        display: block;

        cursor: pointer;

        margin-left: 0 !important;

        order: 1 !important;

    }



    header .logo,

    .nav-container .logo {

        position: absolute !important;

        left: 50% !important;

        transform: translateX(-50%) !important;

        margin: 0 !important;

        order: 2 !important;

    }



    .header-action-btns {

        order: 3 !important;

    }



    .hero-content {

        padding: 0 1rem;

    }



    .footer-grid {

        grid-template-columns: 1fr 1fr;

    }

}



@media (max-width: 600px) {

    .footer-grid {

        grid-template-columns: 1fr;

    }



    .hero-btns {

        flex-direction: column;

    }



    .btn {

        width: 100%;

        text-align: center;

    }



    .section-header h2 {

        font-size: 1.75rem;

    }

}



/* Blog Specific Styles */

.blog-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 2.5rem;

    justify-content: center;

}



.blog-card {

    background: var(--surface-color);

    border-radius: 1rem;

    overflow: hidden;

    border: 1px solid var(--border-color);

    transition: var(--transition);

    cursor: pointer;

    position: relative;

    display: flex;

    flex-direction: column;

}



.blog-card:hover {

    transform: translateY(-5px);

    border-color: var(--primary-color);

}



.pilot-list-card {

    border: 2px solid var(--primary-color) !important;

    background: var(--surface-color-light) !important;

    min-height: 500px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    position: relative;

    overflow: hidden;

    cursor: pointer;

    text-align: center;

}



.pilot-list-card::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), transparent 70%);

    pointer-events: none;

}



.pilot-list-card:hover {

    box-shadow: 0 15px 45px rgba(139, 92, 246, 0.3);

    transform: translateY(-10px);

}



.pilot-list-card h3 {

    font-size: clamp(1.8rem, 4vw, 2.2rem) !important;

    margin-bottom: 1.5rem !important;

    font-weight: 800;

}



.pilot-list-card p {

    font-size: 1.1rem !important;

    color: var(--text-muted);

    max-width: 450px;

    margin: 0 auto 2.5rem !important;

    line-height: 1.6;

}



.pilot-list-card .tag-badge {

    text-transform: uppercase;

    letter-spacing: 2px;

    font-weight: 800;

    line-height: 1.4;

    transition: var(--transition);

}



.blog-card:hover .blog-card-content h3 {

    color: var(--primary-color);

}



.blog-card-content p {

    color: var(--text-muted);

    font-size: 0.95rem;

    margin-bottom: 1.5rem;

    line-height: 1.6;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

}



.post-tags {

    margin-bottom: 1.5rem;

    display: flex;

    flex-wrap: wrap;

    gap: 0.6rem;

}



.blog-card-footer {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: auto;

    padding-top: 1.2rem;

    border-top: 1px solid var(--border-color);

}



.blog-card-footer span {

    font-size: 0.85rem;

    color: var(--text-muted);

}



.blog-card-footer .btn-outline {

    padding: 0.4rem 1rem !important;

    font-size: 0.85rem !important;

}



/* Blog Post Detail */

.blog-content-wrapper {

    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 3rem;

}



.blog-post-content {

    font-size: 1.1rem;

    line-height: 1.8;

    min-width: 0;

    /* Critical fix for grid item overflow */

    overflow-wrap: break-word;

    word-wrap: break-word;

}



.blog-post-content p {

    margin-bottom: 1.5rem;

}



.blog-post-content h2,

.blog-post-content h3 {

    margin-top: 2rem;

}



.blog-post-content a {

    color: var(--primary-color);

    text-decoration: underline;

}



.blog-post-content a:hover {

    color: var(--secondary-color);

}



.post-meta {

    display: flex;

    gap: 1.5rem;

    justify-content: center;

    margin-top: 1rem;

    font-size: 0.9rem;

    color: var(--text-muted);

}



.blog-sidebar {

    position: sticky;

    top: 100px;

}



.sidebar-widget {

    background: var(--surface-color);

    padding: 2rem;

    border-radius: 1rem;

    border: 1px solid var(--border-color);

    margin-bottom: 2rem;

}



.sidebar-widget h3 {

    font-size: 1.25rem;

    margin-bottom: 1rem;

}



.sidebar-widget .btn-primary {

    margin-top: 1.5rem;

    display: block;

    text-align: center;

}



.social-share {

    display: flex;

    gap: 1rem;

}



.social-share a {

    width: 40px;

    height: 40px;

    background: var(--surface-color-light);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.2rem;

    transition: var(--transition);

}



.social-share a:hover {

    background: var(--primary-color);

    color: white;

}



@media (max-width: 900px) {

    .blog-content-wrapper {

        grid-template-columns: 1fr;

    }



    .blog-sidebar {

        position: static;

    }

}



/* Blog Filters */

.blog-filters {

    display: flex;

    gap: 1rem;

    justify-content: center;

    flex-wrap: wrap;

    margin-bottom: 3rem;

}



.filter-btn {

    padding: 0.6rem 1.5rem;

    background: var(--surface-color);

    border: 1px solid var(--border-color);

    border-radius: 50px;

    color: var(--text-main);

    font-size: 0.9rem;

    font-weight: 500;

    cursor: pointer;

    transition: var(--transition);

}



.filter-btn:hover {

    border-color: var(--primary-color);

    color: var(--primary-color);

}



.filter-btn.active {

    background: var(--accent-gradient);

    border-color: transparent;

    color: white;

}



/* Tag Badges */

.post-tags {

    display: flex;

    gap: 0.5rem;

    flex-wrap: wrap;

    margin-top: 1rem;

    justify-content: center;

}



.tag-badge {

    display: inline-block;

    padding: 0.3rem 0.8rem;

    background: rgba(139, 92, 246, 0.15);

    border: 1px solid rgba(139, 92, 246, 0.3);

    border-radius: 20px;

    color: var(--primary-color);

    font-size: 0.75rem;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



.blog-card .post-tags {

    justify-content: flex-start;

    margin-top: 0.5rem;

}



.blog-card .tag-badge {

    font-size: 0.7rem;

    padding: 0.25rem 0.6rem;

}



/* Hide filtered posts */

.blog-card.hidden {

    display: none;

}



/* Search Bar */

/* Search styles consolidated — see line 3631 */



/* Pagination & Load More */

.pagination-container,

.load-more-container {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 0.75rem;

    margin-top: 5rem;

}



.load-more-btn {

    padding: 1rem 2.5rem;

    border-radius: 50px;

    background: var(--accent-gradient);

    color: #fff;

    border: none;

    font-weight: 600;

    cursor: pointer;

    transition: var(--transition);

    box-shadow: var(--neon-shadow);

}



.load-more-btn:hover {

    transform: translateY(-3px);

    box-shadow: 0 8px 25px rgba(138, 58, 255, 0.4);

}



.load-more-btn:disabled {

    opacity: 0.5;

    cursor: not-allowed;

    transform: none;

}



.page-btn {

    width: 45px;

    height: 45px;

    border-radius: 50%;

    border: 1px solid var(--border-color);

    background: var(--surface-color);

    color: var(--text-main);

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: var(--transition);

    font-weight: 600;

}



.page-btn:hover:not(:disabled) {

    border-color: var(--primary-color);

    color: var(--primary-color);

    transform: translateY(-2px);

}



.page-btn.active {

    background: var(--accent-gradient);

    border-color: transparent;

    color: #fff;

    box-shadow: var(--neon-shadow);

}



.page-btn:disabled {

    opacity: 0.4;

    cursor: not-allowed;

}



/* Blog Filter Adjustments */

.blog-filters {

    margin-bottom: 3.5rem;

}



/* WhatsApp Floating Button */

.whatsapp-float {

    position: fixed;

    bottom: 30px;

    right: 30px;

    width: 60px;

    height: 60px;

    background-color: #25d366;

    color: #FFF;

    border-radius: 50px;

    display: none;

    /* Desktop hidden */

    align-items: center;

    justify-content: center;

    font-size: 30px;

    z-index: 10000;

    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);

    transition: var(--transition);

}



.whatsapp-float:hover {

    transform: scale(1.1);

    background-color: #128c7e;

}



@media (max-width: 900px) {

    .whatsapp-float {

        display: none !important;

    }

}



/* Mobile Header Alignment Fixes */

@media (max-width: 900px) {

    .header-action-btns .btn {

        display: none !important;

    }



    .header-action-btns {

        display: flex !important;

        /* Allow toggle to remain visible */

    }



    .nav-container {

        padding: 0 1.5rem !important;

    }

}



/* Seamless mobile hero transition to black */

@media (max-width: 900px) {

    .hero::after {

        content: '';

        position: absolute;

        bottom: 0;

        left: 0;

        width: 100%;

        height: 15vh;

        background: linear-gradient(to bottom, transparent, #050505);

        z-index: 2;

        pointer-events: none;

    }

}



/* Premium Header Smart Blur */

@keyframes headerSmartBlur {

    from {

        background: transparent;

        backdrop-filter: blur(0px);

    }



    to {

        background: rgba(5, 5, 5, 0.7);

        backdrop-filter: blur(20px);

    }

}



header.scrolled {

    background: var(--surface-color) !important;

    backdrop-filter: blur(20px) !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;

    animation: headerSmartBlur 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;

}



/* WhatsApp Button Styling */

.btn-whatsapp {

    background: #25d366 !important;

    color: white !important;

    border: none;

}



.btn-whatsapp:hover {

    background: #20ba5a !important;

    transform: translateY(-2px);

}



/* Dark mode button text colors - black for visibility on colored backgrounds */

[data-theme="dark"] .btn-primary,

[data-theme="dark"] .btn-whatsapp {

    color: #000000 !important;

}



/* Hide WhatsApp on homepage in nav */

.hide-whatsapp {

    display: none !important;

}



/* Mobile Menu Scroll Fix - Lock position */

@media (max-width: 900px) {

    .nav-links {

        background: rgba(5, 5, 5, 0.98) !important;

        backdrop-filter: blur(20px) !important;

        align-items: flex-end !important;

        text-align: right !important;

        padding: 2rem 1.5rem !important;

    }



    header.scrolled .nav-links {

        position: fixed;

        top: 0;

        right: -100%;

    }



    header.scrolled .nav-links.active {

        right: 0;

    }

}





/* Specificity Boost for Light Mode Mobile Menu */

@media (max-width: 900px) {

    html[data-theme="light"] body .nav-links {

        background: rgba(255, 255, 255, 0.98) !important;

        color: var(--text-main) !important;

        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);

    }

}



/* Theme Toggle - Circular Mobile Style */

.theme-toggle {

    background: var(--surface-color);

    border: 1px solid var(--border-color);

    width: 40px;

    height: 40px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: var(--transition);

    position: relative;

    /* Changed from absolute for flex integration */

    margin-left: 10px;

    z-index: 1001;

}



.theme-toggle i {

    color: var(--text-main);

    transition: color 0.3s ease;

}



/* Light icon in dark mode */

[data-theme="dark"] .theme-toggle i {

    color: #f5f5f5;

}



/* Dark icon in light mode */

[data-theme="light"] .theme-toggle i {

    color: #1a1a1a;

}



.theme-toggle:hover {

    background: var(--surface-color-light);

    transform: scale(1.1);

}



/* Header theme toggle: visible on desktop, hidden on mobile (mobile uses fixed toggle) */

.header-theme-toggle {

    display: flex !important;

}



/* Fixed bottom-right toggle: hidden on desktop (header has it), shown on mobile */

.theme-toggle.universal {

    display: none !important;

}



@media (max-width: 900px) {

    .header-theme-toggle {

        display: none !important;

    }



    .theme-toggle.universal {

        display: flex !important;

    }



    .theme-toggle {

        position: fixed !important;

        right: 15px !important;

        bottom: 10px !important;

        left: auto !important;

        top: auto !important;

        transform: none !important;

        margin: 0 !important;

        z-index: 10000 !important;

        background: var(--surface-color) !important;

        border-color: var(--border-color) !important;

        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;

        width: 40px !important;

        height: 40px !important;

    }



    .theme-toggle:hover,

    .theme-toggle:active {

        transform: scale(1.1) !important;

        background: var(--surface-color-light) !important;

    }



    /* Centered hero with ample space around it on mobile */

    .hero {

        padding-top: 160px !important;

        padding-bottom: 160px !important;

        min-height: auto !important;

    }



    .hero-scroll-indicator {

        display: flex !important;

        position: relative;

        bottom: auto;

    }



    .mobile-toggle.active .staggered-menu span:nth-child(3) {

        transform: translateY(-9px) rotate(-45deg);

    }



    /* Ensure spans have transition */

    .staggered-menu {

        display: flex;

        flex-direction: column;

        align-items: flex-start !important;

    }



    .staggered-menu span {

        display: block;

        width: 25px;

        height: 3px;

        background: var(--text-main);

        margin: 3px 0 3px 0 !important;

        transition: all 0.3s ease-in-out;

    }



    /* Dropdown Menu Styles Mobile Override */

    .dropdown {

        display: block;

        width: 100%;

    }



    .dropdown-content {

        position: relative;

        box-shadow: none;

        background: transparent;

        border: none;

        padding-left: 1rem;

    }



    /* Grid Utilities Mobile Override */

    .grid-2,

    .grid-3 {

        display: flex;

        flex-direction: column;

    }

}



/* Dropdown Menu Styles */

.dropdown {

    position: relative;

    display: inline-block;

}



.dropdown-content {

    display: none;

    position: absolute;

    background-color: var(--background-alt);

    min-width: 200px;

    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);

    z-index: 1000;

    border-radius: 0.5rem;

    border: 1px solid var(--border-color);

    top: 100%;

    left: 0;

    margin-top: 0.5rem;

}



/* Bridge the gap so hover persists */

.dropdown-content::before {

    content: "";

    position: absolute;

    top: -0.5rem;

    left: 0;

    width: 100%;

    height: 0.5rem;

    background: transparent;

}



.dropdown-content a {

    color: var(--text-color);

    padding: 12px 16px;

    text-decoration: none;

    display: block;

    font-size: 0.95rem;

    transition: background-color 0.3s;

}



.dropdown-content a:hover {

    background-color: var(--surface-color);

    color: var(--primary-color);

}



.dropdown:hover .dropdown-content {

    display: block;

}



.dropdown:hover .dropbtn {

    color: var(--primary-color);

}



/* Mobile Dropdown Adjustments */

@media (max-width: 900px) {

    .dropdown {

        display: block;

        width: 100%;

    }



    .dropdown-content {

        position: relative;

        box-shadow: none;

        background: transparent;

        border: none;

        padding-left: 1rem;

    }

}



/* Theme-aware utilities */

.theme-img-light {

    display: none;

}



[data-theme="light"] .theme-img-dark {

    display: none;

}



[data-theme="light"] .theme-img-light {

    display: block;

}



/* Pilot Hero Background */

.pilot-hero-bg {

    background: linear-gradient(rgba(13, 12, 34, 0.9), rgba(13, 12, 34, 0.8)), url('../assets/pilot_hero.png');

    background-size: cover;

    background-position: center;

}



[data-theme="light"] .pilot-hero-bg {

    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)), url('../assets/pilot_hero_light.png');

    background-size: cover;

    background-position: center;

}



/* Grid Utilities */

.grid-2 {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 2rem;

}



.grid-3 {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 2rem;

}



@media (max-width: 900px) {





    .grid-2,

    .grid-3 {

        display: flex;

        flex-direction: column;

    }

}



/* Lead Magnet Section (Footer) */

.lead-magnet-footer {

    background: var(--surface-color-light);

    border: 1px solid var(--primary-color);

    border-radius: 1.5rem;

    padding: 3rem;

    margin-top: -6rem;

    position: relative;

    z-index: 10;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 2rem;

    flex-wrap: wrap;

}



.lead-magnet-content h3 {

    font-size: 2rem;

    margin-bottom: 0.5rem;

}



.lead-magnet-content p {

    color: var(--text-muted);

}



/* Exit Intent Popup */

.exit-intent-overlay {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.85);

    backdrop-filter: blur(8px);

    z-index: 10000;

    display: none;

    align-items: center;

    justify-content: center;

    opacity: 0;

    transition: opacity 0.5s ease;

}



.exit-intent-overlay.active {

    display: flex;

    opacity: 1;

}



.exit-intent-content {

    background: var(--surface-color);

    padding: 4rem;

    border-radius: 2rem;

    max-width: 600px;

    width: 90%;

    text-align: center;

    border: 1px solid var(--primary-color);

    position: relative;

    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.2);

}



.exit-intent-close {

    position: absolute;

    top: 1.5rem;

    right: 1.5rem;

    background: none;

    border: none;

    color: var(--text-muted);

    font-size: 1.5rem;

    cursor: pointer;

}



@media (max-width: 768px) {

    .lead-magnet-footer {

        padding: 2rem;

        text-align: center;

        margin-top: -3rem;

    }



    .lead-magnet-footer .btn {

        width: 100%;

    }

}

/* --- REFINED BLOG STYLES (CreativHouz Standard) --- */

@keyframes float-subtle {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.02);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    backdrop-filter: blur(5px);
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.blog-card-img-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    max-height: 250px;
    background: var(--surface-color-light);
    display: block;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-img {
    transform: scale(1.1);
}

.roll-down-img {
    transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.blog-card:hover .roll-down-img {
    transform: translateY(10%);
}

.blog-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 700;
}

.blog-card-content h3 a {
    transition: var(--transition);
}

.blog-card-content h3 a:hover {
    color: var(--primary-color);
}

.blog-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag-badge {
    background: var(--surface-color-light);
    color: var(--text-main);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.blog-card:hover .tag-badge {
    border-color: var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
}

.blog-card-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.blog-card-footer span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Search & Filters --- */
.search-container {
    max-width: 600px;
    margin: 2rem auto 0;
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

#blog-search {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

#blog-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .subpage-hero {
        padding-top: 11rem;
    }

    .subpage-hero h1 {
        font-size: 2.5rem;
    }
}

/* --- BLOG DETAIL PAGE (Premium Standard) --- */
.blog-post-detail {
    overflow-x: hidden;
}

.blog-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    margin-bottom: 4rem;
}

.blog-post-content {
    font-size: 1.15rem;
    line-height: 1.8;
}

.featured-image-container {
    margin-bottom: 3rem;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.featured-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.post-tags {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

@media (max-width: 1024px) {
    .blog-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .blog-sidebar {
        order: 2;
    }

    .blog-post-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .blog-post-content {
        font-size: 1.1rem;
    }

    .subpage-hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .featured-image-container {
        border-radius: 1.5rem;
        margin-bottom: 2rem;
    }

    .sidebar-widget {
        padding: 1.5rem;
    }

    .post-tags {
        margin-top: 3rem;
    }
}

/* Primary Category and Metadata Refinement */
.primary-category {
    margin-bottom: 1.5rem;
}

.cat-pill {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: inline-block;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.meta-sep {
    color: rgba(255, 255, 255, 0.3);
}

/* Secondary Tags Row */
.post-tags-sub {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.sub-tag-pill {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.sub-tag-pill:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #fff;
    border-color: rgba(139, 92, 246, 0.4);
}

@media (max-width: 768px) {
    .post-meta {
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    .primary-category {
        margin-bottom: 1rem;
    }

    .cat-pill {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
}