/* --- GLOBAL STYLES --- */
:root {
    --primary-color: #45bff1;
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f1f5f9;
    color: #334155;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- THE TECH LOGO --- */
.logo-box {
    position: relative;
    width: 45px;
    height: 45px;
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-r {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: #fff;
    z-index: 2;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
    animation: powerOn 1.5s ease-out forwards;
}

/* --- CIRCUIT ANIMATIONS --- */
.circuit-line {
    position: absolute;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--accent-glow);
    opacity: 0;
}

.line-1 {
    width: 100%;
    height: 2px;
    top: 20%;
    left: -100%;
    animation: slideIn 2s 0.5s infinite;
}

.line-2 {
    width: 2px;
    height: 100%;
    right: 20%;
    top: -100%;
    animation: slideDown 2s 1s infinite;
}

/* --- KEYFRAMES --- */
@keyframes powerOn {
    0% {
        opacity: 0;
        filter: brightness(0);
    }

    50% {
        opacity: 0.5;
        filter: brightness(2);
    }

    100% {
        opacity: 1;
        filter: brightness(1);
    }
}

@keyframes slideIn {
    0% {
        left: -100%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes slideDown {
    0% {
        top: -100%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* --- LOGO TEXT --- */
.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
}

.logo-sub {
    font-size: 0.65rem;
    letter-spacing: 6.5px;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 4px;
}

/* --- HOVER EFFECT --- */
.logo-container:hover .logo-box {
    background: var(--primary-color);
    border-color: var(--accent-glow);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
    transform: translateY(-2px);
}

.logo-container:hover .logo-r {
    transform: scale(1.1);
}

@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 0 5px var(--primary-color));
        transform: scale(1);
    }

    100% {
        filter: drop-shadow(0 0 15px var(--primary-color));
        transform: scale(1.1);
    }
}

/* --- NAVIGATION --- */
.modern-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-sizing: border-box;
    border-bottom: 2px solid rgba(250, 219, 20, 0.2);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

    .nav-links a {
        color: white;
        text-decoration: none;
        font-weight: bold;
        transition: 0.3s;
    }

        .nav-links a:hover {
            color: var(--primary-color);
        }

/* --- HAMBURGER --- */
.menu-toggle {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 10001;
}

    .menu-toggle .bar {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--primary-color);
        margin-bottom: 5px;
        transition: 0.3s;
        border-radius: 2px;
    }

/* --- HERO & BUTTONS --- */
.parallax-hero {
    height: 100vh;
    background-image: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)), url('../background.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.glowing-text {
    font-size: 4.5rem;
    color: #fff;
    font-weight: 900;
    text-shadow: 0 0 30px var(--primary-color);
    margin-bottom: 1rem;
}

.hero-subtext {
    color: #fff !important;
    font-size: 2.0rem;
    margin-bottom: 2rem;
    font-weight:600;
    
    
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.call-btn {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    padding: 15px 30px;
    min-width: 260px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .call-btn:hover {
        background: var(--primary-color) !important;
        color: var(--bg-dark) !important;
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(250, 219, 20, 0.4);
    }

/* --- SECTIONS --- */
.section-padding {
    padding: 100px 5%;
}

.section-title {
    font-size: 2.5rem;
    color: var(--bg-dark);
    text-align: center;
    margin-bottom: 3rem;
}

.text-heavy {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 20px auto;
    text-align: justify;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-card {
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: 0.4s;
}

    .portfolio-card:hover {
        transform: translateY(-10px);
    }

    .portfolio-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

.portfolio-info {
    padding: 20px;
}

/* --- FORM --- */
.quote-section {
    background: var(--bg-dark);
    color: white;
}

.custom-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-input {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #64748b;
    color: white;
    outline: none;
}

.form-label {
    position: absolute;
    top: 15px;
    left: 10px;
    color: #94a3b8;
    transition: 0.3s;
    pointer-events: none;
}

.form-input:focus ~ .form-label, .form-input:valid ~ .form-label {
    top: -10px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

    .submit-btn:hover {
        background: white;
        box-shadow: 0 0 15px var(--primary-color);
    }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

        /* Hamburger Animation */
        .menu-toggle.is-active .bar:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle.is-active .bar:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .menu-toggle.is-active .bar:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        transition: 0.5s;
        z-index: 10000;
        justify-content: center;
    }

        .nav-links.active {
            display: flex;
            right: 0;
        }

        .nav-links a {
            font-size: 1.5rem;
            opacity: 0;
            transform: translateX(50px);
            transition: 0.4s;
        }

        .nav-links.active a {
            opacity: 1;
            transform: translateX(0);
            transition-delay: calc(0.1s * var(--i));
        }

    /* --- HERO TEXT SCALING --- */
    .glowing-text {
        font-size: 2.5rem !important;
    }

    .hero-subtext {
        font-size: 1.1rem !important;
    }

    /* --- COMPACT BUTTONS ON MOBILE --- */
    .hero-buttons {
        flex-direction: column; /* Stacked but not stretched */
        gap: 15px;
    }

        .hero-buttons .call-btn {
            width: fit-content !important; /* Shrinks to the size of the text */
            min-width: 240px !important; /* Keeps a nice uniform look */
            padding: 12px 25px !important;
            font-size: 1.1rem !important;
        }

    /* --- GRID SCALING --- */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .parallax-hero {
        background-attachment: scroll;
        height: auto;
        padding: 120px 20px;
    }

    .section-padding {
        padding: 60px 5%;
    }
}

/* --- ABOUT FLEX LAYOUT --- */
.about-flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1150px;
    margin: 0 auto;
}

.about-text-block {
    flex: 1.8;
}

.about-flag-grid {
    flex: 1.2;
    display: grid;
    /* Forces 4-in-a-row on Desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    justify-items: center;
    align-items: center;
}

/* --- FLAG CIRCLES --- */
.flag-circle {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    flex-shrink: 0;
}

    .flag-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.1);
    }

    .flag-circle:hover {
        transform: scale(1.2) translateY(-8px);
        border-color: var(--primary-color);
        box-shadow: 0 15px 30px rgba(250, 219, 20, 0.4);
    }

/* --- LICENSE BANNER --- */
.license-banner {
    text-align: center;
    color: var(--primary-color);
    font-weight: bold;
    background: var(--bg-dark);
    padding: 25px;
    border-radius: 12px;
    margin-top: 60px;
    letter-spacing: 2px;
    /* Ensures visibility before/during AOS animation */
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* --- RESPONSIVE UPDATES --- */
@media (max-width: 992px) {
    .about-flex-container {
        flex-direction: column;
        text-align: left;
    }

    .about-flag-grid {
        grid-template-columns: repeat(4, 1fr); /* Keep 4-in-line on mobile */
        width: 100%;
        margin-top: 30px;
    }

    .flag-circle {
        width: 60px;
        height: 60px;
    }

    .license-banner {
        font-size: 0.9rem;
        padding: 15px;
    }
}
/* --- HERO OVERLINE (The Stamp) --- */
.hero-overline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 5px; /* Wide spacing for a luxury/corporate feel */
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

    .hero-overline .divider {
        opacity: 0.4;
        color: #fff;
    }

/* --- MAIN HEADING --- */
.glowing-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.0rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px; /* Tight tracking is very modern and "bold" */
    color: #fff;
}

.blue-accent {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

/* --- HERO SUBTEXT --- */
.hero-subtext {
    max-width: 650px;
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: #94a3b8; /* Muted slate for a high-end look */
    line-height: 1.7;
    margin: 20px 0 40px 0;
}

    .hero-subtext strong {
        color: #45bff1; /* Highlights the core services */
        font-weight: 600;
    }

/* --- BUTTON TWEAK --- */
.btn-outline {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

    .btn-outline:hover {
        border-color: var(--primary-color) !important;
    }
.form-alert {
    position: relative;
    padding: 25px 25px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #eef2f8;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

    .form-alert i {
        font-size: 1.4rem;
    }
/* --- MOBILE LOGO STYLING --- */
.mobile-nav-branding {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(69, 191, 241, 0.2);
    width: 100%;
}

@media (max-width: 768px) {
    .nav-links.active .mobile-nav-branding {
        display: flex;
    }

    /* Force the animations to trigger only when menu is active */
    .nav-links.active .logo-r {
        animation: powerOn 1.5s ease-out forwards;
    }

    .nav-links.active .line-1 {
        animation: slideIn 2s 0.5s infinite;
    }

    .nav-links.active .line-2 {
        animation: slideDown 2s 1s infinite;
    }

    /* Adjust layout to push logo to the top */
    .nav-links.active {
        padding-top: 60px;
        justify-content: flex-start;
    }

    .mobile-nav-branding .logo-text-group {
        align-items: center;
        margin-top: 10px;
    }
}

/* --- ENSURE COLOR CONSISTENCY (#45bff1) --- */
.logo-box {
    border-color: #45bff1 !important;
}

.circuit-line {
    background: #45bff1 !important;
    box-shadow: 0 0 10px #45bff1 !important;
}

.logo-sub {
    color: #45bff1 !important;
}
/* --- ABOUT SECTION ENHANCEMENTS --- */
.about-dark-theme {
    background: #ffffff; /* Contrast against the dark hero */
    position: relative;
    overflow: hidden;
}

.tech-spec-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    border-left: 4px solid #45bff1;
    background: rgba(69, 191, 241, 0.03);
    border-radius: 0 15px 15px 0;
    transition: 0.3s ease;
}

    .tech-spec-item:hover {
        background: rgba(69, 191, 241, 0.08);
        transform: translateX(10px);
    }

.spec-icon {
    font-size: 1.8rem;
    color: #45bff1;
    text-shadow: 0 0 10px rgba(69, 191, 241, 0.3);
}

.spec-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.25rem;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- THE FLAG ZONE GLOW --- */
.flag-zone {
    position: relative;
    padding: 40px;
}

.grid-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(69, 191, 241, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.license-banner-v2 {
    text-align: center;
    background: #0f172a;
    color: #45bff1;
    /* Padding & Font */
    padding: 15px 25px;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.85rem; /* Slightly smaller for mobile safety */
    /* Centering Fix */
    display: block;
    width: fit-content;
    margin: 50px auto 0 auto; /* This centers it perfectly without pushing the screen */
    /* Visuals */
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(69, 191, 241, 0.2); /* Subtle blue border */
}

/* Mobile Tweak */
@media (max-width: 480px) {
    .license-banner-v2 {
        font-size: 0.7rem; /* Shrink text on very small phones */
        letter-spacing: 1px;
        padding: 12px 20px;
        width: 90%; /* Let it take up most of the width but not overflow */
    }
}
.logo-container, .logo-text-group, .logo-main, .logo-sub {
    text-decoration: none !important;
    border-bottom: none !important;
}
/* --- HERO OVERLINE ADJUSTMENT --- */
.hero-overline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--primary-color);
    text-transform: uppercase;
    /* Pushes the text down */
    margin-top: 80px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center; /* Ensures it stays centered while moving down */
    gap: 15px;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .hero-overline {
        margin-top: 40px; /* Less margin on mobile so it doesn't hit the heading */
        font-size: 0.7rem;
        letter-spacing: 3px;
    }
}