/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --primary-bg: #0a192f;
    --secondary-bg: #112240;
    --accent-color: #c0c0c0;
    /* Metallic Silver */
    --highlight-color: #ffcc00;
    /* Premium Yellow/Gold */
    --text-color: #e6f1ff;
    --text-muted: #8892b0;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-main: 'Poppins', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--highlight-color), var(--accent-color));
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--highlight-color), #fff200);
    color: var(--primary-bg);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--highlight-color);
    color: var(--highlight-color);
}

.btn-secondary:hover {
    background: var(--highlight-color);
    color: var(--primary-bg);
    transform: translateY(-3px);
}

/* Header */
header {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    /* Adjust based on logo proportions */
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--highlight-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--highlight-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--primary-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?q=80&w=1920&auto=format&fit=crop') no-repeat center center/cover;
    background-attachment: fixed;
    /* Parallax effect */
}

.hero-small {
    height: 50vh;
    min-height: 400px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.9));
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--highlight-color);
    margin-bottom: 10px;
    letter-spacing: 5px;
    animation: fadeInDown 1s ease;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: var(--accent-color);
    letter-spacing: 3px;
    animation: fadeInUp 1s ease 0.5s backwards;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 1s backwards;
}

/* Sections General */
.section-padding {
    padding: 80px 0;
}

/* About Preview */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Stats Section specifically for About/Home */
.stats-grid {
    grid-template-columns: repeat(3, 1fr);
}


.about-text p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.1);
    transition: transform 0.5s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Features (Why Choose Us) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--secondary-bg);
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--highlight-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card i {
    font-size: 3rem;
    color: var(--highlight-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    color: var(--white);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

.testimonial-card .stars {
    color: gold;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.testimonial-card h4 {
    color: var(--accent-color);
    text-align: right;
}

/* Social Media */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-icon.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
}

.social-icon.facebook {
    background: #1877F2;
    color: white;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-bg), var(--primary-bg));
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-details-mini p {
    color: var(--text-muted);
    margin: 5px 0;
}

/* Happy Customers Carousel (1-Image Auto Slider) */
.carousel-container {
    position: relative;
    max-width: 700px;
    /* Narrower to tightly fit the images */
    margin: 0 auto;
    padding: 0 60px;
    /* Arrows stay outside */
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    width: 100%;
    /* Important for percentage transform logic */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-behavior: auto;
    /* Handled by JS */
    overflow-x: visible;
    /* Let children overflow so we can translate them into view */
}

.carousel-item {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    /* Standard photo ratio for "exact" fit */
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.carousel-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Ensures the whole image is visible */
    border-radius: 10px;
    /* Added 10px radius as requested */
    transition: transform 0.3s ease;
}

.carousel-item.active img {
    transform: scale(1.02);
    /* Subtle zoom for active image */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--highlight-color);
    color: var(--primary-bg);
    border-color: var(--highlight-color);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--highlight-color);
    transform: scale(1.3);
}

@media (max-width: 1100px) {
    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        aspect-ratio: 4 / 3;
    }

    .carousel-btn {
        display: none;
    }
}

/* Footer */
footer {
    background: #020c1b;
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.footer-logo span {
    color: var(--highlight-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--highlight-color);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--highlight-color);
    color: var(--primary-bg);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {

    /* Global Spacing */
    .section-padding {
        padding: 50px 0;
    }

    .container {
        padding: 0 15px;
    }

    /* Typography */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        letter-spacing: 1px;
    }

    .section-title::after {
        width: 40px;
        height: 3px;
    }

    /* Hero Section Mobile */
    .hero {
        height: 80vh;
        /* Reduced height for better flow */
        min-height: 500px;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .hero h2 {
        font-size: 1.1rem;
        letter-spacing: 1px;
        margin-bottom: 30px;
    }

    .hero-small {
        height: 40vh;
        min-height: 300px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Grids & Layouts */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text {
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-socials {
        justify-content: center;
    }

    /* Happy Customers Carousel Mobile */
    .carousel-container {
        padding: 0 30px;
        /* More width for the image */
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .carousel-indicators {
        bottom: -25px;
    }

    .nav-links a {
        font-size: 1.2rem;
        margin: 15px 0;
    }

    /* Stats Grid fix */
    .stats-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        width: 100%;
        gap: 15px;
    }

    .stats-grid .feature-card h3 {
        font-size: 2rem !important;
        /* Slightly smaller numbers on mobile */
    }

    /* Carousel Image Size fix */
    .carousel-item {
        aspect-ratio: auto;
        height: 500px;
        /* Much larger for mobile visibility */
    }

    .carousel-item img {
        height: 100%;
        width: auto;
        object-fit: contain;
    }

    .section-title {
        font-size: 1.5rem;
        /* Even smaller for mobile */
        margin-bottom: 1.2rem;
        letter-spacing: 1px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}