/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    /* Color Palette (Cinematic Dark Tech Theme) */
    --bg-color: #060e1f;      
    --surface-color: rgba(11, 46, 89, 0.5); 
    --surface-hover: rgba(11, 46, 89, 0.7);
    --accent-color: #E53935;  /* Vibrant Red */
    --accent-hover: #b71c1c;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --nav-bg: rgba(6, 14, 31, 0.85);
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 100px 0;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color); /* Real dark background */
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Live Background Effects
   ========================================================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    /* Dark animated grid layout */
    background-image: 
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    background-color: var(--bg-color);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.blob {
    display: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-align: center;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #e53935, #b71c1c);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(229, 57, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(229, 57, 53, 0.6);
    background: #ffffff;
    color: #e53935;
}

.btn-secondary {
    background-color: rgba(255,255,255,0.07);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.12);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    display: block;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 1000;
    transition: all var(--transition-medium);
    background-color: transparent;
}

#navbar.scrolled-hero {
    background-color: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

#navbar.scrolled-white {
    background-color: #ffffff;
    color: #1a1a1a;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled-white .mobile-menu-btn .bar {
    background-color: #1a1a1a;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent-color);
    transition: width var(--transition-medium);
}

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

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 6px 0;
    transition: 0.4s;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(11, 12, 16, 0.95) 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    padding-top: 80px;
    color: #ffffff;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-content h1 span {
    color: var(--accent-color);
    font-style: italic;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: var(--surface-color);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.4s ease;
    position: relative;
    z-index: 1;
    overflow: hidden; /* To keep pseudo-element within borders */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e53935 0%, #ff6b35 100%);
    z-index: -1;
    clip-path: circle(0% at 0% 0%); /* Starts empty at top-left */
    transition: clip-path 1s ease; /* 1 second duration */
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(229, 57, 53, 0.3);
    border-color: transparent;
    transition-delay: 0.05s;
}

.service-card:hover::before {
    clip-path: circle(125% at 0% 0%); /* Fills ~85% of the card area, leaving just the bottom-right corner */
}

.service-card h3,
.service-card p {
    transition: color 0.4s ease;
}

.service-card:hover h3,
.service-card:hover p {
    color: #ffffff;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background-color: rgba(229, 57, 53, 0.12); /* Red glow accent */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), 
                background-color 0.4s ease, color 0.4s ease;
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    background: #ffffff;
    color: #e53935;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    transition-delay: 0.1s;
}

.service-card .btn-secondary,
.service-card .btn-primary {
    transition: all 0.4s ease 0.1s;
}

.service-card:hover .btn-secondary {
    border-color: #ffffff;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.service-card:hover .btn-secondary:hover {
    background-color: #ffffff;
    color: #e53935;
}

.service-card:hover .btn-primary {
    background: #ffffff;
    color: #e53935;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    border: none;
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* ==========================================================================
   Trends Section
   ========================================================================== */
.trends-section {
    padding: var(--section-padding);
    background-color: rgba(11, 46, 89, 0.2); /* Darker alternating color */
}

.chart-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--surface-color);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

canvas {
    width: 100% !important;
    height: 400px !important;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding: var(--section-padding);
    background-color: transparent;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.about-features {
    margin-bottom: 40px;
}

.about-features li {
    margin-bottom: 16px;
    position: relative;
    padding-left: 30px;
    color: var(--text-primary);
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.about-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(197, 160, 89, 0.2), transparent);
    pointer-events: none;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: var(--section-padding);
    background-color: rgba(11, 46, 89, 0.2); /* Alternating color */
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.info-item {
    margin-bottom: 24px;
}

.info-item strong {
    display: block;
    color: var(--accent-color);
    margin-bottom: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    color: var(--text-secondary);
}

.contact-form {
    background-color: var(--surface-color);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 24px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background-color: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 16px;
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-group select option {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.map-container {
    margin-top: 60px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.map-container iframe {
    display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--surface-color);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 80px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   WhatsApp Float
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: #FFF;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrapper {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background-color: var(--surface-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 16px auto;
    }
}

/* ==========================================================================
   Carousel Styling
   ========================================================================== */
.carousel-container {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0 60px 0;
    scroll-behavior: smooth;
    /* Hide scrollbar for a clean UI */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.carousel-track {
    display: flex;
    gap: 30px;
    padding: 0 24px;
    width: max-content;
    margin: 0 auto;
}

.carousel-card {
    width: 350px;
    flex-shrink: 0;
    white-space: normal;
}
