/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
    /* Colors */
    --clr-primary: #1e3a8a;      /* Deep Forest Green */
    --clr-primary-light: #1e40af;
    --clr-accent: #dc2626;       /* Gold */
    --clr-accent-hover: #b91c1c;
    --clr-text: #334155;
    --clr-text-light: #64748b;
    --clr-heading: #0f172a;
    --clr-white: #ffffff;
    --clr-bg: #f8fafc;
    --clr-bg-alt: #f1f5f9;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadow & Glass */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Accounts for fixed navbar */
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-heading);
    line-height: 1.2;
}

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

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

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

.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--clr-bg);
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--clr-accent);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header p {
    color: var(--clr-text-light);
    font-size: 1.125rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-white);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3); /* Gold shadow */
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--clr-white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

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

.navbar.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 60px; /* Slightly taller for Omega logo visibility */
    width: auto;
    border-radius: 8px; /* Depending on the logo shape */
    box-shadow: var(--shadow-sm);
}

/* Specific styling for the OMEGA LOGO to crop out the text above if present */
.omega-logo {
    object-fit: cover;
    object-position: bottom;
    /* Adjust height and max-width if cropping is needed */
    aspect-ratio: 1; /* crops into a square prioritizing the bottom */
}

.navbar.scrolled .brand-logo {
    height: 50px;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--clr-primary);
    letter-spacing: -0.5px;
}

.navbar:not(.scrolled) .brand-name {
    color: var(--clr-white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    color: var(--clr-primary);
    position: relative;
}

.navbar:not(.scrolled) .nav-links a:not(.btn-primary) {
    color: var(--clr-white);
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-accent);
    transition: var(--transition-base);
}

.nav-links a:not(.btn-primary):hover::after,
.nav-links a:not(.btn-primary).active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--clr-primary);
    border-radius: 3px;
    transition: var(--transition-base);
}

.navbar:not(.scrolled) .mobile-menu-btn span {
    background-color: var(--clr-white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--clr-primary);
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.80) 0%, rgba(15, 23, 42, 0.90) 100%), url('BG.png') center/cover no-repeat;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 1;
}

.glow-1 {
    top: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, rgba(0,0,0,0) 70%); /* Gold glow */
}

.glow-2 {
    bottom: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(30,58,138,0.4) 0%, rgba(0,0,0,0) 70%); /* Green glow */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero h1 .accent {
    color: var(--clr-accent);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

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

.about-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
    transition: transform 0.7s ease;
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background: var(--clr-primary);
    color: var(--clr-white);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--clr-white);
    z-index: 2;
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--clr-accent);
}

.experience-badge .label {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-top: 0.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-light);
    font-weight: 500;
    margin-bottom: 2rem;
}

.lead-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
}

.about-content p:not(.lead-text) {
    margin-bottom: 1.5rem;
    color: var(--clr-text-light);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--clr-white);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--clr-bg-alt);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
    z-index: -1;
    transition: height 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(212, 175, 55, 0.15); /* Light gold bg */
    color: var(--clr-accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    background-color: var(--clr-accent);
    color: var(--clr-white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-base);
}

.service-card p {
    color: var(--clr-text-light);
    transition: var(--transition-base);
}

.service-card:hover h3,
.service-card:hover p {
    color: var(--clr-white);
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1/1;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.8) 0%, rgba(11, 74, 42, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .item-overlay {
    opacity: 1;
}

/* Different sizes for grid styling */
.portfolio-item:nth-child(1),
.portfolio-item:nth-child(4),
.portfolio-item:nth-child(8) {
    grid-column: span 1;
}

@media(min-width: 768px) {
    .portfolio-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .portfolio-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
    .portfolio-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
    .portfolio-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
}

/* ==========================================================================
   Clients Section
   ========================================================================== */
.clients-title {
    text-align: center;
    color: var(--clr-text-light);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    background: white;
    padding: 2rem 0;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    gap: 4rem;
    animation: scroll 30s linear infinite;
    padding: 0 2rem;
}

.client-logo {
    flex: 0 0 auto;
}

.client-logo img {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition-base);
}

.client-logo:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 2rem));
    }
}

/* ==========================================================================
   Footer & Contact
   ========================================================================== */
.footer {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: inline-flex;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    /* filter: brightness(0) invert(1);  Removed so the actual logo shows */
}

.footer-logo span {
    color: var(--clr-white);
    font-size: 1.75rem;
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
}

.footer h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--clr-white);
    font-weight: 600;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-list svg {
    color: var(--clr-accent);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

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

.contact-info strong {
    color: var(--clr-white);
    margin-bottom: 0.25rem;
}

.whatsapp-link {
    color: var(--clr-accent);
    font-weight: 500;
}

.whatsapp-link:hover {
    color: var(--clr-accent-hover);
    text-decoration: underline;
}

.contact-list a:not(.whatsapp-link) {
    color: rgba(255, 255, 255, 0.8);
}

.contact-list a:hover {
    color: var(--clr-white);
}

.location-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-icon {
    color: var(--clr-accent);
    margin-bottom: 1rem;
}

address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.map-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.map-link:hover {
    background: var(--clr-accent);
    color: var(--clr-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

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

/* Scroll Reveals */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
}

.reveal-up.active {
    animation: fadeInUp 0.8s ease forwards;
}

.reveal-left.active {
    animation: fadeInLeft 0.8s ease forwards;
}

.reveal-right.active {
    animation: fadeInRight 0.8s ease forwards;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .about-grid { gap: 2rem; }
    .experience-badge { right: 1rem; bottom: -2rem; padding: 1.5rem; }
}

@media (max-width: 768px) {
    .section-padding { padding: 4rem 0; }
    .section-title { font-size: 2rem; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--clr-primary);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease-in-out;
    }

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

    .nav-links a:not(.btn-primary) {
        color: var(--clr-white);
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: var(--clr-white);
    }

    .mobile-menu-btn.toggle span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -8px);
        background-color: var(--clr-white);
    }

    .hero-bg {
         /* Darkens background a bit for better readability on small devices */
        background: linear-gradient(135deg, rgba(11,74,42,0.92) 0%, rgba(6,40,22,0.95) 100%), url('BG.png') center/cover no-repeat;
    }

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

    .hero-actions {
        flex-direction: column;
    }

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

    .about-image-wrapper {
        margin-bottom: 3rem;
        max-width: 500px;
        margin-inline: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}



