/* 
   National AV - Premium Stying
   Colors: Primary (#2B3990), Cyan (#27A9E1), Orange (#FF5A22), Lime (#8DC63F), Black (#000000)
*/

:root {
    --primary: #2B3990;
    --logo-cyan: #27A9E1;
    --logo-orange: #FF5A22;
    --logo-lime: #8DC63F;
    --bg-black: #000000;
    --bg-dark: #0A0A0A;
    --text-white: #ffffff;
    --text-gray: #94a3b8;

    --font-heading: 'Lexend', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.home-body {
    overflow: hidden;
    height: 100vh;
}

@media (max-width: 768px) {
    body.home-body {
        overflow: auto;
        height: auto;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-lime {
    color: var(--logo-lime);
}

.text-cyan {
    color: var(--logo-cyan);
}

.text-orange {
    color: var(--logo-orange);
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 9999px; /* Pill */
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.825rem;
    cursor: pointer;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--logo-orange), #ff7e52);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 90, 34, 0.25), 
                inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff7e52, var(--logo-orange));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 90, 34, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 0.6rem 1.8rem;
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .btn-lg {
        padding: 1.1rem 2.8rem;
        font-size: 0.95rem;
    }
}

.btn .material-symbols-outlined {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.btn:hover .material-symbols-outlined {
    transform: translateX(3px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 50px;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .navbar {
        height: 90px;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    height: 28px;
    width: auto;
}

@media (min-width: 768px) {
    .nav-logo {
        height: 50px;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-item {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-gray);
}

.nav-item:hover {
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
    z-index: 1;
    /* Above video, below content */
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 50px; /* Match mobile navbar height */
}

@media (min-width: 768px) {
    .hero-content {
        padding-top: 90px;
    }
}

.hero-text-wrapper {
    max-width: 1200px;
}

.accent-line {
    width: 60px;
    height: 3px;
    background-color: var(--logo-cyan);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .accent-line {
        margin-bottom: 1.5rem;
    }
}

.hero-subtitle {
    color: var(--logo-cyan);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        margin-bottom: 1rem;
    }
}

.hero-title {
    font-size: clamp(1.2rem, 6vw, 2.5rem);
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5rem;
        margin-bottom: 1.5rem;
    }
}

/* Rotating Text Logic */
.rotating-text-wrapper {
    display: inline-block; 
    position: relative;
    /* Use 'em' to scale with the large font-size */
    min-width: 7em; 
    height: 1em;
    vertical-align: middle; 
    margin-left: 0.2rem;
    top: -18px; /* Final fine-tune upward to match 'Seamless' perfectly */
}

@media (max-width: 768px) {
    .rotating-text-wrapper {
        display: block;
        min-width: auto;
        height: 1.2em;
        margin-left: 0;
        top: 0;
    }
    
    .rotating-word {
        position: relative;
    }
}

.rotating-word {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    white-space: nowrap;
}

.rotating-word.active {
    opacity: 1;
    transform: translateY(0);
}

.rotating-word.exit {
    opacity: 0;
    transform: translateY(-20px);
}

.hero-description {
    font-size: clamp(0.85rem, 3vw, 1.1rem);
    color: var(--text-gray);
    margin-bottom: clamp(0.5rem, 3vh, 2rem);
    max-width: 500px;
    font-weight: 500;
}

@media (max-width: 375px) {
    .hero-description {
        line-height: 1.4;
    }
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Services Section */
.services-section {
    background-color: var(--bg-black);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.5rem;
    }
}

.title-underline {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-primary {
    background: var(--primary);
}

.dot-cyan {
    background: var(--logo-cyan);
}

.dot-orange {
    background: var(--logo-orange);
}

.dot-lime {
    background: var(--logo-lime);
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 1.5rem;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.card-cyan:hover {
    border-color: var(--logo-cyan);
}

.card-orange:hover {
    border-color: var(--logo-orange);
}

.card-lime:hover {
    border-color: var(--logo-lime);
}

.card-primary:hover {
    border-color: var(--primary);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.card-cyan .icon-box {
    color: var(--logo-cyan);
    background: rgba(39, 169, 225, 0.1);
}

.card-orange .icon-box {
    color: var(--logo-orange);
    background: rgba(255, 90, 34, 0.1);
}

.card-lime .icon-box {
    color: var(--logo-lime);
    background: rgba(141, 198, 63, 0.1);
}

.card-primary .icon-box {
    color: white;
    background: rgba(43, 57, 144, 0.4);
}

.material-symbols-outlined {
    font-size: 2.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .nav-links {
        display: none;
        /* Hide desktop nav */
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: white;
    font-weight: 600;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--bg-dark);
    border-radius: 2rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--logo-orange);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-gray);
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--logo-cyan);
    background: rgba(39, 169, 225, 0.05);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

/* Footer */
.footer {
    padding: 100px 0 50px; 
    background: #000; 
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.footer .container {
    text-align: center;
}

.footer-cta {
    margin-bottom: 80px;
}

.footer .section-title {
    letter-spacing: -0.02em;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-item {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
}

.close-menu-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}