:root {
    --primary-color: #033e6c;
    --secondary-color: #85b6e4;
    --tertiary-color: #03375e;
    --accent-color: #dba622;
    --hower-color: #ffcf27;
    --text-color: #333;
    --light-text: #f4f4f4;
    --bg-color: #ffffff;
    --light-bg: #f9f9f9;
    --lighter-bg: #EDF1F6;
    --font-family: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --section-padding: 100px 0;
}

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

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

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

ul {
    list-style: none;
}

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

::selection {
    background: #dba622;
    color: #041a38;
}

::-moz-selection {
    background: #dba622;
    color: #041a38;
}


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

.section-padding {
    padding: var(--section-padding);
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

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

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary-color);
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    /* Ensure proper alignment */
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

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

.nav-links a {
    color: var(--light-text);
    font-weight: 500;
    position: relative;
}

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

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(4, 26, 56, 0.7), rgba(4, 26, 56, 0.7)), url('../assets/hero-bg.webp');
    /* Placeholder image needed */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Logo */
.hero-logo {
    height: 120px;
    width: auto;
    max-width: 80vw;
    margin: 0 auto 30px auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    .hero-logo {
        height: auto;
        width: 60%;
        max-width: 250px;
    }
}

/* Pattern Background Watermark */
.bg-pattern {
    position: relative;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/brand/pattern.svg');
    background-repeat: repeat;
    background-size: 1400px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text);
    font-size: 0.9rem;
    opacity: 0.8;
}

.scroll-indicator .arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--light-text);
    border-bottom: 2px solid var(--light-text);
    transform: rotate(45deg);
    margin-top: 5px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    40% {
        transform: translateY(-10px) rotate(45deg);
    }

    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header .line {
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

/* About Section */
#about p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* Experience Section */
.dark-bg {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    padding: 20px 0px;
}

.stat-item .count {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 10px;
}

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

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

.service-card {
    background-color: var(--light-bg);
    padding: 40px 30px;
    border-radius: 8px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--accent-color);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Visual Break */
.visual-break {
    height: 400px;
    background-image: url('../assets/break-bg.webp');
    /* Placeholder */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-break .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 26, 56, 0.6);
}

.visual-break .content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--light-text);
}

.visual-break h2 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.footer-top {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.footer-top .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Aligns all columns to the top */
    text-align: left;
}

.footer-brand {
    flex: 2;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-address {
    flex: 1;
    padding-left: 20px;
    padding-top: 20px;
    /* Pushes this column down */
    text-align: left;
}

.footer-social {
    flex: 1;
    padding-top: 20px;
    /* Pushes this column down */
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}



.social-icon {
    color: var(--light-text);
    transition: color 0.3s ease;
    display: flex;
    /* Fix for SVG spacing */
}

.social-icon:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding: 20px 0;
    font-size: 0.9rem;
    opacity: 1;
    background-color: var(--tertiary-color);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Works Page Styles */
.page-header {
    background-color: var(--tertiary-color);
    padding: 120px 0 60px;
    color: var(--light-text);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.work-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 50px;
}

.work-item.reverse {
    flex-direction: row-reverse;
}

.work-info {
    flex: 1;
}

.work-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.work-info p {
    margin-bottom: 25px;
    color: #666;
}

.work-image {
    flex: 1;
    height: 300px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
}

.work-item:hover .work-image {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        left: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(-100%);
        transition: transform 0.5s ease-in;
        padding-top: 50px;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
        order: -1;
    }

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

    .work-item,
    .work-item.reverse {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: relative;
        min-height: 400px;
        justify-content: flex-end;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-bottom: 40px;
    }

    /* 
     * EXPLANATION FOR USER:
     * 1. Position Absolute: We take the image out of the normal flow
     *    and stick it to the edges of the card (inset: 0).
     * 2. Z-Index: We send it to the back (-1) so text sits on top.
     */
    .work-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        background-size: cover;
        background-position: center;
    }

    /*
     * EXPLANATION FOR USER:
     * We create an overlay using a pseudo-element (::after).
     * This adds the white fade without needing extra HTML.
     * linear-gradient(...) goes from transparent at top to solid white at bottom.
     */
    .work-image::after {
        content: '';
        position: absolute;
        inset: 0;
        /* Stronger gradient: starts fading earlier and becomes solid white behind the text */
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 1) 80%);
    }

    .work-info {
        position: relative;
        z-index: 1;
        padding: 180px 20px 10px;
        /* Increased top padding to push text down into the white area */
        text-align: center;
    }

    .work-info p {
        color: #000;
        font-weight: 500;
    }

    .footer-top .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

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

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

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

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

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.fade-in-up {
    transform: translateY(30px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Micro-interactions */
.btn:active {
    transform: scale(0.98);
}

/* Parallax Effect Class */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* =========================================
   NEW STYLES FOR REDESIGN (ADAPTED)
   ========================================= */

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

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Image Column */
.about-image-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    min-height: 300px;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    min-height: 300px;
    transition: transform 0.7s ease;
}

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

.about-logo {
    height: 200px;
    width: auto;
    margin: 0 auto;
    padding: 1rem;
}

/* Badges */
.cert-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Lightbox Navigation */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2001;
    /* Ensure above image */
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media (min-width: 992px) {
    .cert-badge {
        right: auto;
        min-width: 250px;
    }
}

.cert-badge .icon {
    padding: 0.5rem;
    background-color: rgba(231, 227, 28, 0.2);
    /* Accent with opacity */
    border-radius: 50%;
    color: #bfae00;
}

.cert-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
}

.cert-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Content Column Text */
.about-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify !important;
}

.about-cta {
    margin-top: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* --- Services Section Redesign --- */
.relative-section {
    position: relative;
    overflow: hidden;
    background-color: var(--light-bg);
}

.relative-z {
    position: relative;
    z-index: 10;
}

/* Blobs for light effect */
.blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    /* heavier blur for smoother background */
    opacity: 0.15;
    /* very subtle */
    width: 30rem;
    height: 30rem;
    z-index: 0;
    pointer-events: none;
}

.blob-1 {
    top: -10rem;
    right: -10rem;
    background-color: var(--primary-color);
}

.blob-2 {
    bottom: -10rem;
    left: -10rem;
    background-color: var(--accent-color);
}