/* ============== CUSTOM PROPERTIES ============== */
:root {
    /* Color Palette - Modern Tech Theme */
    --clr-primary: #00d2ff;
    --clr-primary-dark: #007bb5;
    --clr-secondary: #ff007b;
    --clr-bg-dark: #0a0e17;
    --clr-bg-card: rgba(16, 23, 38, 0.6);
    --clr-text-main: #f0f4f8;
    --clr-text-muted: #94a3b8;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    --gradient-glow: linear-gradient(90deg, #00d2ff, #3a7bd5, #00d2ff);
    
    /* Glassmorphism setup */
    --glass-bg: rgba(16, 23, 38, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Fonts */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Typography */
    --fs-h1: clamp(2.5rem, 5vw, 4rem);
    --fs-h2: clamp(2rem, 4vw, 3rem);
    --fs-h3: clamp(1.25rem, 2vw, 1.75rem);
    --fs-p: 1rem;
    
    /* Spacing & Utilities */
    --section-padding: 5rem 0;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ============== RESET & GLOBAL ============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.05) 0%, transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(255, 0, 123, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ============== GLASSMORPHISM UTILITIES ============== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: rgba(10, 14, 23, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    padding: 2.5rem;
}

/* ============== BUTTONS ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-primary);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.btn-primary {
    background: var(--clr-primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--clr-text-main);
    border: 1px solid var(--clr-primary);
}

.btn-secondary:hover {
    background: rgba(0, 210, 255, 0.1);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ============== PRELOADER ============== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner-container {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circular-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(0, 210, 255, 0.1);
    border-top: 3px solid var(--clr-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--clr-primary);
    z-index: 2;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============== NAVIGATION ============== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px;
    transition: var(--transition);
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link.btn-contact {
    background: rgba(255,255,255,0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-link.btn-contact::after {
    display: none;
}

.nav-link.btn-contact:hover {
    background: var(--clr-primary);
    color: #000;
    border-color: var(--clr-primary);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============== HERO SECTION ============== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 8s linear;
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    transform: scale(1.05); /* Slow zoom effect */
}

/* Placeholder gradients if banners are absent */
.slide:nth-child(1) { background: linear-gradient(135deg, #1e3c72, #2a5298); }
.slide:nth-child(2) { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }
.slide:nth-child(3) { background: linear-gradient(135deg, #141e30, #243b55); }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10,14,23,0.9) 0%, rgba(10,14,23,0.6) 50%, rgba(10,14,23,0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 650px;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #9ce5ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.slider-controls {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.slider-controls button {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.slider-controls button:hover {
    background: var(--clr-primary);
    color: #000;
}

.slider-indicators {
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.indicator {
    width: 30px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--clr-primary);
    width: 40px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============== SERVICES ============== */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.services-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 1rem 0 3rem 0;
    width: 100%;
}

.services-slider::-webkit-scrollbar {
    display: none;
}

.services-slider .service-card {
    flex: 0 0 calc((100% - 6rem) / 4);
    min-width: calc((100% - 6rem) / 4);
    scroll-snap-align: start;
    margin: 0;
}

.services-nav-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--clr-primary);
    color: #000;
    border: none;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.services-nav-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.services-nav-btn.prev {
    left: -20px;
}

.services-nav-btn.next {
    right: -20px;
}

.service-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--clr-primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--clr-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.service-card p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.service-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ============== ABOUT ============== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    margin-bottom: 0.5rem;
}

.about-text .subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

.stats-container {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-primary);
    display: inline;
}

.stat-item span {
    font-size: 1.5rem;
    color: var(--clr-primary);
    font-weight: bold;
}

.stat-item p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.image-placeholder {
    font-size: 8rem;
    color: rgba(255,255,255,0.05);
    background: radial-gradient(circle, rgba(0,210,255,0.1) 0%, transparent 60%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-badge {
    position: absolute;
    background: rgba(10, 14, 23, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: float 4s ease-in-out infinite;
}

.floating-badge.badge-1 {
    top: 40px;
    left: -30px;
    color: #00d2ff;
}

.floating-badge.badge-2 {
    bottom: 60px;
    right: -20px;
    animation-delay: 2s;
    color: #00e676;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ============== CONTACT ============== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.contact-info {
    padding: 2.5rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.contact-info > p {
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

.info-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-list i {
    width: 40px;
    height: 40px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-list strong {
    display: block;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.info-list span {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

.social-links {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--clr-primary);
    color: #000;
    transform: translateY(-3px);
}

.contact-form-container {
    padding: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ddd;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    background: rgba(0, 210, 255, 0.05);
}

.form-group select option {
    background-color: #0a0e17;
    color: #ffffff;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.form-status.success {
    display: block;
    background: rgba(0, 230, 118, 0.1);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.form-status.error {
    display: block;
    background: rgba(255, 23, 68, 0.1);
    color: #ff1744;
    border: 1px solid rgba(255, 23, 68, 0.3);
}

/* ============== FOOTER ============== */
.footer {
    background: #06090f;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a:hover {
    color: var(--clr-primary);
}

/* ============== SCROLL TO TOP ============== */
.scroll-to-top {
    position: fixed;
    bottom: -50px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--clr-primary);
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.active {
    bottom: 30px;
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.6);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 992px) {
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-top: 3rem;
    }
    
    .services-slider .service-card {
        flex: 0 0 calc((100% - 2rem) / 2);
        min-width: calc((100% - 2rem) / 2);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: rgba(10, 14, 23, 0.95);
        backdrop-filter: blur(15px);
        border-left: 1px solid rgba(255,255,255,0.1);
        padding-top: 80px;
        transition: var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .services-slider .service-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}
