@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&family=Poppins:wght@300;400;600&display=swap');

/* --- HOLO ANIMATIONS & PROPERTIES --- */
@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes holographic-glow {
    0% { --glow-angle: 0deg; }
    100% { --glow-angle: 360deg; }
}

@keyframes subtle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- COLOR SYSTEM & ACCESSIBILITY FIX --- */
:root {
    --color-primary: #377dc8;
    --color-secondary: #d6561f;
    --color-accent: #c7b70a;

    /* Accessible variants for text/backgrounds */
    --color-primary-accessible: #3772b8; /* Darkened for better contrast */
    --color-secondary-accessible: #c24e1c; /* Darkened for better contrast */

    --color-primary-text: #ffffff;
    --color-secondary-text: #ffffff;
    --color-accent-text: #0a0a14;

    --color-primary-light: color-mix(in srgb, #377dc8 30%, white 70%);
    --color-primary-dark: color-mix(in srgb, #377dc8 70%, black 30%);
    --color-primary-soft: color-mix(in srgb, #377dc8 15%, white 85%);
    --color-secondary-light: color-mix(in srgb, #d6561f 30%, white 70%);
    --color-secondary-dark: color-mix(in srgb, #d6561f 70%, black 30%);
    --color-accent-light: color-mix(in srgb, #c7b70a 30%, white 70%);
    --color-accent-dark: color-mix(in srgb, #c7b70a 70%, black 30%);

    --color-bg-dark: #0a0a14;
    --color-bg-light-transparent: rgba(20, 25, 40, 0.5);
    --color-border-holo: rgba(255, 255, 255, 0.15);
    --color-text-light: #e0e0e0;
    --color-text-muted: #a0a0b0;

    --font-header: 'Rajdhani', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

/* --- BASE & TYPOGRAPHY --- */
body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    font-family: var(--font-body);
    background-image:
        radial-gradient(circle at 1% 1%, rgba(55, 125, 200, 0.2) 0, transparent 25%),
        radial-gradient(circle at 99% 99%, rgba(214, 86, 31, 0.2) 0, transparent 25%);
    background-attachment: fixed;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 {
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--color-primary-text);
    text-shadow: 0 0 8px rgba(55, 125, 200, 0.3);
}

p {
    line-height: 1.7;
    color: var(--color-text-light);
}

.lead {
    color: var(--color-text-muted);
    font-weight: 300;
}

a {
    color: var(--color-primary-light);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--color-primary-text);
    text-shadow: 0 0 5px var(--color-primary-light);
}

section {
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--color-border-holo);
}

.text-accent {
    color: var(--color-accent);
}

/* --- STICKY HEADER & NAVIGATION --- */
.header, .navbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: all 0.4s ease-in-out;
    background: rgba(10, 10, 20, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-holo);
    padding: 0.5rem 0;
}

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

section[id], .section[id], *[id]:not(nav):not(header):not(footer) {
    scroll-margin-top: 100px;
}

#home, .hero-section {
    scroll-margin-top: 0;
}

.navbar-brand {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary-text) !important;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px var(--color-primary);
}
.navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px var(--color-primary), 0.5px 0 1px #ff00ff, -0.5px 0 1px #00ffff;
}
.navbar-brand .fa-cogs  {
    color: var(--color-primary);
    animation: rotate-gradient 8s linear infinite;
    will-change: transform, opacity;
}

.navbar-toggler {
    border: 1px solid var(--color-border-holo);
    transition: all 0.3s ease;
}
.navbar-toggler:hover {
    background-color: rgba(55, 125, 200, 0.2);
    border-color: var(--color-primary);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    font-family: var(--font-header);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--color-text-muted) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
    transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--color-primary-text) !important;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 70%;
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    background: var(--color-bg-dark);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 50px;
}
.hero-section::before  {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: conic-gradient(from var(--glow-angle), at 50% 50%,
        var(--color-primary) 0deg,
        var(--color-secondary) 90deg,
        var(--color-accent) 180deg,
        var(--color-primary) 360deg);
    opacity: 0.08;
    animation: holographic-glow 20s linear infinite;
    z-index: 0;
    will-change: transform, opacity;
}
.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section .display-3 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    text-transform: uppercase;
    background: linear-gradient(120deg, var(--color-primary-light), var(--color-primary-text), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(55, 125, 200, 0.5);
}

/* --- BUTTONS --- */
.btn {
    font-family: var(--font-header);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    min-height: 44px;
}

.btn-primary, #hero-cta, #contact-form button {
    background-color: var(--color-primary-accessible);
    color: var(--color-primary-text);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(55, 125, 200, 0.4);
}

.btn-primary:hover, #hero-cta:hover, #contact-form button:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-light);
    box-shadow: 0 0 25px rgba(55, 125, 200, 0.7);
    transform: translateY(-3px);
}

/* Service Card Button */
#services .btn {
    background-color: transparent;
    color: var(--color-primary-light);
    border: 2px solid var(--color-primary);
}
#services .btn:hover {
    background-color: var(--color-primary);
    color: var(--color-primary-text);
    border-color: var(--color-primary-light);
}

/* --- ABOUT SECTION --- */
#about .fa-network-wired  {
    color: var(--color-primary);
    opacity: 0.2 !important;
    animation: subtle-float 6s ease-in-out infinite;
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: transform, opacity;
}/* --- SERVICES & CARDS --- */
#services {
    background-color: rgba(0,0,0,0.2);
}

.card {
    background: var(--color-bg-light-transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--color-border-holo);
    border-radius: 15px;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before  {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 15px;
    border: 2px solid transparent;
    background: conic-gradient(from var(--glow-angle), transparent 20%, var(--color-primary), var(--color-secondary), transparent 80%) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: holographic-glow 5s linear infinite;
    will-change: transform, opacity;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.feature-icon-lg {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-primary-text);
    box-shadow: 0 0 20px rgba(55, 125, 200, 0.5);
    transition: all 0.3s ease;
}
.card:hover .feature-icon-lg {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 0 30px var(--color-primary);
}

.card-title {
    color: var(--color-primary-light);
}
.card-text {
    color: var(--color-text-muted);
    font-weight: 300;
}

/* --- TESTIMONIALS SECTION --- */
#testimonials .card {
    background: var(--color-bg-light-transparent);
}
#testimonials .fa-star {
    color: var(--color-accent);
    margin-right: 2px;
    text-shadow: 0 0 5px var(--color-accent);
}
#testimonials .blockquote {
    font-size: 1.1rem;
    font-weight: 300;
}
#testimonials .blockquote-footer {
    color: var(--color-primary-light);
    font-weight: 400;
}
#testimonials .blockquote-footer cite {
    font-style: normal;
}

/* --- PARTNERS SECTION --- */
#partners {
    background-color: rgba(0,0,0,0.2);
}
#partners a {
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}
#partners a:hover {
    color: var(--color-primary-text);
    transform: translateY(-5px);
}
#partners a:hover i {
    color: var(--color-primary);
    text-shadow: 0 0 15px var(--color-primary);
}
#partners i {
    transition: all 0.3s ease;
}

/* --- CONTACT SECTION --- */
.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border-holo);
    color: var(--color-primary-text);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-height: 44px;
}
.form-control::placeholder {
    color: var(--color-text-muted);
}
.form-control:focus {
    background-color: rgba(55, 125, 200, 0.1);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(55, 125, 200, 0.5);
    color: var(--color-primary-text);
}
textarea.form-control {
    font-size: 16px;
}

.social-icons .btn-social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid var(--color-border-holo);
    color: var(--color-text-muted);
}
.social-icons .btn-social:hover {
    color: var(--color-primary-text);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 0 10px var(--color-primary);
}
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border: 1px solid var(--color-border-holo);
    border-radius: 15px;
}
.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    filter: grayscale(1) invert(0.9) contrast(0.8);
}

/* --- FOOTER --- */
footer {
    background-color: #06060c;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border-holo);
}
footer h5 {
    color: var(--color-primary-text);
}
footer a {
    color: var(--color-text-muted);
}
footer a:hover {
    color: var(--color-primary-light);
    text-decoration: underline !important;
}
footer hr {
    border-color: var(--color-border-holo);
}
.social-icons-footer a {
    font-size: 1.2rem;
}

/* --- BACK-TO-TOP BUTTON --- */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1020;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--color-primary);
    color: var(--color-primary-text);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--color-primary);
}
#back-to-top:hover {
    background: var(--color-primary-dark);
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--color-primary);
}

/* --- MODALS & COOKIE CONSENT --- */
.modal-content, .cookie-consent-banner {
    background: rgba(15, 20, 35, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--color-border-holo);
    color: var(--color-text-light);
    border-radius: 15px;
}
.modal-header, .modal-footer {
    border-color: var(--color-border-holo);
}
.modal-title {
    color: var(--color-primary-light);
}
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
.cookie-consent-banner {
    border-radius: 0;
}
#cookie-accept-btn {
    background-color: var(--color-primary-accessible);
    color: var(--color-primary-text);
    border: 1px solid var(--color-primary);
}
#cookie-decline-btn {
    background-color: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border-holo);
}

/* --- SCROLL ANIMATIONS --- */
.scroll-animation {
    opacity: 0;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    transform: translateY(20px);
}
.scroll-animation.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .navbar-collapse {
        background: rgba(10, 10, 20, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid var(--color-border-holo);
    }
    .nav-link {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }
    section[id], .section[id], *[id]:not(nav):not(header):not(footer) {
        scroll-margin-top: 80px;
    }
    section {
        padding: 3rem 0;
    }
    .hero-section {
        min-height: 80vh;
    }
    h1, .h1 { font-size: 2.5rem; }
    h2, .h2 { font-size: 2rem; }
    h3, .h3 { font-size: 1.75rem; }
    .container, .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    #back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
}