/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-color: #0d1b2a;
    /* Deep Navy */
    --secondary-color: #1b263b;
    /* Dark Blue */
    --accent-color: #e0b1cb;
    /* Soft Pink/Gold-ish accent, or could go for Gold #CCA43B */
    --gold-color: #CCA43B;
    --text-light: #e0e1dd;
    --text-dark: #333;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #0d1b2a, #1b263b);
}

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

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Loading Screen Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Prevent scrolling while loading */
body.loading-active {
    overflow: hidden;
}

.loader-content {
    text-align: center;
    position: relative;
}

.loader-content img {
    width: 150px;
    margin-bottom: 2rem;
    animation: pulse 2s infinite ease-in-out;
    filter: brightness(0) invert(1);
    /* Ensure logo is white on dark background */
}

.loader-content h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

h1,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

h2 {
    font-family: 'Playfair Display', serif;
    color: var(--gold-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Header & Hero */
header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
    /* Enable smooth hiding */
}

header.nav-hidden {
    transform: translateY(-100%);
    /* Hide header by moving it up */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    /* Make logo white if it's dark */
}

.nav-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a:hover {
    color: var(--gold-color);
}

.hero {
    background: linear-gradient(rgba(13, 27, 42, 0.8), rgba(13, 27, 42, 0.8)), url('assets/logo.png');
    /* Placeholder hero image */
    background-size: cover;
    background-position: center;
    color: var(--white);
    height: 100vh;
    display: flex;
    align-items: flex-end;
    /* Align content to bottom */
    text-align: center;
    justify-content: center;
    padding: 0 1rem 2rem 1rem;
    /* Add bottom padding to lift text slightly */
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: var(--gold-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(204, 164, 59, 0.4);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.btn-secondary:hover {
    background: var(--gold-color);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(204, 164, 59, 0.3);
}

/* Sections General */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold-color);
}

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

.mission-vision-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Statistics Section */
.stats-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.stat-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stats-section {
        padding: 3rem 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        /* Force single column on smaller screens */
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
        /* Smaller font for mobile */
    }
}

/* Message from CEO */
.ceo-quote {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 6rem 2rem;
}

blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.ceo-name {
    color: var(--gold-color);
    font-weight: bold;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns on large screens */
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }
}

.product-card {
    background: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.product-card:hover {
    border-color: var(--gold-color);
    transform: scale(1.02);
}

.product-card ul {
    list-style: none;
    margin-top: 1rem;
    text-align: left;
    padding-left: 1rem;
}

.product-card li::before {
    content: "•";
    color: var(--gold-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Services */
.services-section {
    background: #f1f3f5;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.service-item {
    background: white;
    padding: 1.5rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

/* Team & Locations */
.team-container,
.locations-container {
    text-align: center;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.team-grid .card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.location-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Contact */
.contact-section {
    background: var(--primary-color);
    color: white;
}

.contact-section h2 {
    color: white;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
}

.contact-item-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--gold-color);
}

.contact-item-box i {
    font-size: 2rem;
    color: var(--gold-color);
    width: 40px;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info strong {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-color);
    margin-bottom: 0.2rem;
}

.contact-info a,
.contact-info span {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-info a:hover {
    color: var(--gold-color);
}

.contact-content a {
    color: var(--gold-color);
    font-weight: bold;
}

/* Footer */
footer {
    background: #000;
    color: #888;
    text-align: center;
    padding: 3rem 1rem;
    font-size: 0.9rem;
}

footer strong {
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add hover scale to service items */
.service-item {
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: var(--white);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10001;
    /* On top of everything */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80%;
    object-fit: contain;
    animation: zoomIn 0.3s;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--gold-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* Cursor pointer for clickable images */
section img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

section img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .mission-vision-cards {
        grid-template-columns: 1fr;
    }
}

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

    .section-title {
        font-size: 2rem;
    }
}

/* Client Logos Marquee Section */
.clients-section {
    background: var(--white);
    padding: 4rem 0;
    overflow: hidden;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.marquee-container {
    display: flex;
    width: 200%;
    /* Double the width to ensure seamless loop */
}

.marquee-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    animation: marquee 20s linear infinite;
}

.marquee-content img {
    height: 100px;
    /* Increased from 60px */
    width: auto;
    margin: 0 4rem;
    /* Increased spacing slightly */
    opacity: 1;
    /* Full opacity by default */
    transition: 0.3s ease;
    filter: none;
    /* Removed grayscale */
}

.marquee-content img:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover for better UX */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}