/* Import fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Krona+One&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Basic Resets and Body Styles */
:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --gradient-start: #FAA71F; /* Start color for text and button gradients */
    --gradient-end: #DC6927; /* End color for text and button gradients */
    --text-color: #ffffff;
    --nav-link-hover: #FAA71F; /* Using the start color for navigation link hover */

    --main-gradient: linear-gradient(to right, var(--gradient-start), var(--gradient-end));

    /* Slider specific variables */
    --projects-slider-gap: 40px;
    --testimonial-slider-gap: 30px;
    --testimonial-dot-active: #FFB347;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-black);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: auto;
}

/* Header/Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo img {
    height: 40px;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    pointer-events: auto;
}

.nav-links a.active {
    color: var(--gradient-start);
}

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

.nav-links a:hover {
    color: var(--gradient-start);
}

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

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

/* Dropdown Menu Styling (Desktop) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    padding: 10px 0;
    flex-direction: column;
}

.dropdown-content a {
    color: var(--primary-white);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #333;
    color: var(--gradient-start);
}

.dropdown:hover .dropdown-content {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


/* Hamburger Button Styling (Hidden on desktop) */
.hamburger-button {
    display: none; /* Default state: hidden on desktop */
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-white);
    cursor: pointer;
    z-index: 101;
}

/* Free Consultation Button */
.consultation-btn button {
    background-image: var(--main-gradient);
    color: var(--primary-white);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: auto;
}

.consultation-btn button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 167, 31, 0.4);
}

/* Spline Background Container */
.spline-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: auto;
    background-color: var(--primary-black);
}

spline-viewer {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    background-color: transparent;
    padding-top: 80px;
}


/* Main Hero Section Styling */
.hero-section {
    height: 750px;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding-top: 0; 

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
    position: relative;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Krona One', sans-serif;
    font-size: 6.5vw;
    line-height: 0.9;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--primary-white);
    margin-bottom: 20px;
    display: flex;
    
    flex-direction: column;
    align-items: center;
}

.hero-content h1 .first-line {
    color: var(--primary-white);
    line-height: 1;
}

.hero-content h1 .highlight-line {
    display: inline-block;
    line-height: 1;
    position: relative;
    min-width: 100%;
    overflow: hidden;
}

.hero-content h1 .highlight {
    /* TEXT GRADIENT MAGIC */
    background-image: var(--main-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    display: inline-flex;
    flex-wrap: nowrap;
}

/* Style for individual letters */
.hero-content h1 .highlight span {
    display: inline-block;
    opacity: 0; /* Hidden initially */
    transform: translateX(100%); /* Start off-screen to the right */
}

/* ANIMATION KEYFRAMES for letter-by-letter effect */

@keyframes fadeOutLetter {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes fadeInLetter {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.letter-fade-out {
    animation: fadeOutLetter 0.3s forwards;
}

.letter-fade-in {
    animation: fadeInLetter 0.3s forwards;
}

.hero-content .tagline {
    font-size: 2.5vw;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.hero-content .description {
    font-size: 1.1rem;
    color: var(--primary-white);
    margin-bottom: 40px;
    max-width: 400px;
    opacity: 0.8;
    font-family: 'Montserrat', sans-serif;
    margin: 0 auto 40px auto;
}

/* Explore Our Work Button */
.explore-btn {
    background-color: transparent;
    color: var(--primary-white);
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin: 0 auto;
    display: block;
}

.explore-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--main-gradient);
    border-radius: inherit;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.explore-btn:hover {
    color: var(--primary-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 167, 31, 0.4);
}

.explore-btn:hover::before {
    transform: scale(1.05);
    opacity: 1;
    -webkit-mask: none;
    mask: none;
    background: var(--main-gradient);
}


/* Hero Image Container - Note: Removed from index.html */
.hero-image-container {
    display: none;
}


/* Scrolling Outline Text Section Styling */
.scrolling-text-section {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

.scrolling-text-container {
    white-space: nowrap;
    font-family: 'Krona One', sans-serif;
    font-size: 8vw;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-white);
    text-stroke: 1px var(--primary-white);
    pointer-events: none;
}

.scrolling-text-content {
    display: inline-block;
    will-change: transform;
    animation: scrollText 30s linear infinite;
}

.scrolling-text-content span {
    display: inline-block;
}


@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* Client Logos Section Styling */
.client-logos-section {
    width: 100%;
    padding: 60px 0;
    background-color: var(--primary-white);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.client-logos-track {
    display: flex;
    white-space: nowrap;
    animation: scrollLogos 60s linear infinite;
    will-change: transform;
    pointer-events: none;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 0 40px;
    flex-shrink: 0;
}

.client-logos-track img {
    height: 60px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(0%) brightness(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-logos-track img:hover {
    filter: grayscale(0%) brightness(100%);
    opacity: 1;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* Featured Projects Slider Section Styling */
.projects-section {
    padding: 80px 5%;
    background-color: var(--primary-white);
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.projects-section .section-title {
    margin-bottom: 60px;
    color: var(--primary-black);
}

.slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 40px;
}

.projects-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--projects-slider-gap);
    transition: transform 0.5s ease-in-out;
    padding-bottom: 15px;
}

.project-card {
    background-color: #111;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;

    flex-shrink: 0;
    width: calc(33.33% - (2 * var(--projects-slider-gap) / 3));
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6),
                0 0 30px rgba(250, 167, 31, 0.4);
}

.project-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
    overflow: hidden;
}

.project-thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail-wrapper img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-case-study-btn {
    background-image: var(--main-gradient);
    color: var(--primary-white);
    padding: 10px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.view-case-study-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(250, 167, 31, 0.5);
}

.project-info {
    padding: 25px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-family: 'Krona One', sans-serif;
    font-size: 1.35rem;
    color: var(--primary-white);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.project-client-industry {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--gradient-start);
    margin-bottom: 15px;
    font-weight: 600;
}

.project-summary {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--primary-white);
    line-height: 1.5;
    opacity: 0.8;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech-icons {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.project-tech-icons i {
    font-size: 24px;
    color: var(--primary-white);
    opacity: 0.6;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.project-tech-icons i:hover {
    opacity: 1;
    color: var(--gradient-start);
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-black);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.slider-button:hover {
    background-color: var(--gradient-start);
    color: var(--primary-black);
    transform: translateY(-50%) scale(1.1);
}

.slider-button.prev-button {
    left: 0;
}

.slider-button.next-button {
    right: 0;
}

.slider-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: rgba(0, 0, 0, 0.05);
}


/* About Us Section Styling */
.about-us-section {
    padding: 80px 5%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('path/to/your/image.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: transparent;
    color: var(--primary-white);
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-us-section .section-title {
    color: var(--primary-white);
    margin-bottom: 20px;
    font-size: 4vw;
}

.about-us-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-white);
    max-width: 900px;
    margin: 0 auto 60px auto;
    line-height: 1.6;
    opacity: 0.9;
}

.about-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    text-align: left;
}

.about-text-content {
    flex: 1;
    min-width: 300px;
}

.about-text-content h3 {
    font-family: 'Krona One', sans-serif;
    font-size: 2.2rem;
    color: var(--primary-white);
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-text-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.about-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-portfolio {
    background-image: var(--main-gradient);
    color: var(--primary-white);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    display: inline-block;
}

.btn-portfolio:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(250, 167, 31, 0.5);
}

.btn-start-project {
    background-color: transparent;
    color: var(--primary-white);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-start-project:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-white);
    transform: translateY(-3px);
}

.about-stats-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    min-width: 300px;
}

.stat-card {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3),
                0 0 15px rgba(250, 167, 31, 0.2);
}

.stat-icon {
    font-size: 3rem;
    color: var(--gradient-start);
    margin-bottom: 15px;
}

.stat-number {
    font-family: 'Krona One', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-white);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* NEW SECTION: Work with Us Scrolling Section Styling */
#work-with-us-section {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

#work-with-us-section .scrolling-text-container {
    white-space: nowrap;
    font-family: 'Krona One', sans-serif;
    font-size: 8vw;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-white);
    text-stroke: 1px var(--primary-white);
    pointer-events: none;
}

.scrolling-text-content {
    display: inline-block;
    will-change: transform;
    animation: scrollText 30s linear infinite;
}

.scrolling-text-content span {
    display: inline-block;
}


@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* Testimonials Section Styling */
.testimonials-section {
    padding: 80px 5%;
    background-color: var(--primary-white);
    color: var(--primary-black);
    text-align: center;
    position: relative;
    z-index: 1;
}

.testimonials-section .section-title {
    color: var(--primary-black);
    margin-bottom: 60px;
}

.testimonials-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 40px;
}

.testimonial-track {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--testimonial-slider-gap);
    transition: transform 0.5s ease-in-out;
    padding-bottom: 15px;
}

.testimonial-card {
    background-color: #f8f8f8;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    width: calc(33.33% - (2 * var(--testimonial-slider-gap) / 3));
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2),
                0 0 30px rgba(250, 167, 31, 0.1);
}

.client-info-top {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.company-initials {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Krona One', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-white);
    margin-right: 15px;
    flex-shrink: 0;
}

.company-details {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 5px;
}

.industry-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
    display: inline-block;
    align-self: flex-start;
}

.stars {
    color: gold;
    font-size: 1.1rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.client-feedback {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
    flex-grow: 1;
}

.client-signature {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-black);
    text-align: right;
    opacity: 0.8;
}

.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: var(--testimonial-dot-active);
    transform: scale(1.2);
}

.btn-all-testimonials {
    background-image: var(--main-gradient);
    color: var(--primary-white);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-all-testimonials:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(250, 167, 31, 0.5);
}


/* Contact Us Section Styling */
.contact-us-section {
    padding: 80px 0;
    background-color: #000000;
    color: #f0f0f0;
}

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

.contact-us-section .section-title {
    font-family: 'Krona One', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #fff;
    text-transform: uppercase;
}

.contact-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.map-container {
    flex: 1;
    height: 100%;
    min-width: 0;
}

.map-placeholder {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
}

.map-placeholder iframe {
    display: block;
}

.contact-form-container {
    flex: 1;
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #333;
    transition: border-bottom-color 0.3s ease;
}

.form-group:focus-within {
    border-image: linear-gradient(to right, #FAA71F, #DC6927) 1;
    border-bottom: 2px solid transparent;
    border-image-slice: 1;
}

.input-icon {
    color: #777;
    font-size: 1.2rem;
    padding-right: 15px;
    transition: color 0.3s ease;
}

.form-group:focus-within .input-icon {
    color: #FAA71F;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    background: transparent;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    outline: none;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
    opacity: 1;
}

.submit-btn {
    background-image: linear-gradient(to right, #FAA71F, #DC6927);
    color: #ffffff;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    background-image: linear-gradient(to right, #FAA71F, #DC6927);
}

.social-icons-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.social-icons-contact a {
    color: #777;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons-contact a:hover {
    color: #FAA71F;
}


/* Social Icons Section Before Footer */
.social-section-before-footer {
    padding: 40px 5%;
    background-color: transparent;
    text-align: center;
    position: relative;
    z-index: 1;
}

.social-icons-centered {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.social-icons-centered a {
    color: var(--primary-white);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons-centered a:hover {
    color: var(--gradient-start);
    transform: translateY(-5px);
}

/* Footer Section Styling */
.footer {
    background-color: transparent;
    color: var(--primary-white);
    padding: 80px 5% 30px 5%;
    position: relative;
    z-index: 1;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    text-align: left;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    font-family: 'Krona One', sans-serif;
    font-size: 1.2rem;
    color: var(--gradient-start);
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.footer-branding .footer-logo {
    height: 50px;
    margin-bottom: 15px;
}

.footer-branding .branding-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

footer-social-icons {
    display: flex;
    /* ADDED GAP */
    gap: 50px; 
    justify-content: flex-start;
}

.footer-social-icons a {
    color: var(--primary-white); /* FIXED TO WHITE */
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-icons a:hover {
    color: var(--gradient-start); 
    transform: translateY(-3px);
}

.footer-nav ul {
    list-style: none;
    padding-left: 0;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: var(--primary-white);
}

.footer-contact-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.footer-contact-info p i {
    color: var(--gradient-start);
    font-size: 1.1rem;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-newsletter p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    border-color: var(--gradient-start);
}

.newsletter-form button {
    background-image: var(--main-gradient);
    color: var(--primary-white);
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 167, 31, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal-links {
    margin-top: 10px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--primary-white);
}

/* === Case Study Page Specific Styles === */
.case-study-content {
    padding-top: 100px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: transparent;
    position: relative;
    z-index: 2;
}

.section-container {
    padding: 0 5%;
    margin: 0 auto;
}

.case-study-hero {
    text-align: center;
    padding: 50px 0;
    margin-bottom: 50px;
    padding-left: 5%;
    padding-right: 5%;
}

.case-study-hero .page-title {
    font-family: 'Krona One', sans-serif;
    font-size: 4rem;
    color: var(--primary-white);
    margin-bottom: 15px;
    line-height: 1.1;
}

.case-study-hero .project-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.project-details {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.detail-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gradient-start);
    margin-bottom: 5px;
}

.detail-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-white);
    opacity: 0.9;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    max-width: 900px;
}

.hero-image img:hover {
    transform: scale(1.01);
}

.narrative-section {
    padding: 40px 0;
    margin-bottom: 30px;
}

.section-title {
    font-family: 'Krona One', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--primary-white);
    margin-bottom: 30px;
    text-align: center;
    padding: 0 5%;
}

.text-block p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.solution-highlights ul {
    list-style-type: none;
    padding-left: 0;
    max-width: 800px;
    margin: 30px auto;
}

.solution-highlights ul li {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-white);
    line-height: 2;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.solution-highlights ul li i {
    color: var(--gradient-start);
    font-size: 1.3rem;
    margin-right: 15px;
    flex-shrink: 0;
    padding-top: 5px;
}

.image-showcase {
    margin: 50px 0;
    text-align: center;
    padding: 0 5%;
}

.image-showcase img {
    width: 100%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.image-caption {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 5%;
}

.stat-item {
    background-color: #1a1a1a;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-family: 'Krona One', sans-serif;
    font-size: 3rem;
    background-image: var(--main-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.testimonial-section {
    padding: 50px 5%;
    background-color: #0c0c0c;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.testimonial-quote blockquote {
    font-family: 'Krona One', sans-serif;
    font-size: 1.5rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--primary-white);
    margin-bottom: 20px;
    position: relative;
    padding: 0 20px;
}

.testimonial-quote blockquote::before {
    content: "\201C"; 
    font-size: 4rem;
    color: var(--gradient-start);
    opacity: 0.5;
    position: absolute;
    top: -20px;
    left: -10px;
    line-height: 0.5;
}

.testimonial-quote .quote-source {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gradient-start);
    display: block;
}

.next-project-cta {
    padding: 80px 5%;
    text-align: center;
}

.next-project-cta .section-title {
    margin-bottom: 40px;
}

/* Responsive Design Adjustments */
@media (max-width: 1024px) {
    .case-study-hero .page-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    /* --- Hamburger Menu VISIBILITY FIX --- */
    .hamburger-button {
        display: block; /* MUST be block on mobile/tablet */
    }

    /* --- Mobile Menu Toggle --- */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 99;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav-links.open {
        transform: translateX(0);
    }
    
    .nav-links ul {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .nav-links a {
        font-size: 1.5rem;
        padding: 10px 0;
        display: block;
        color: var(--primary-white);
    }

    .nav-links a::after {
        display: none;
    }

    .consultation-btn {
        display: none;
    }
}


@media (max-width: 768px) {
    .case-study-content {
        padding-top: 100px;
    }
    .case-study-hero .page-title {
        /* Mobile Heading FIX for overflow */
        font-size: 1.8rem;
        line-height: 1.1;
        word-break: break-word;
        white-space: normal;
    }
    .case-study-hero .project-tagline {
        font-size: 1.1rem;
    }
    .project-details {
        flex-direction: column;
        gap: 20px;
    }
    .section-title {
        font-size: 2rem;
    }
    .text-block p {
        font-size: 1rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .testimonial-quote blockquote {
        font-size: 1.3rem;
    }
    .testimonial-quote blockquote::before {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .case-study-hero .page-title {
        /* Small Phone Heading FIX */
        font-size: 1.5rem;
        padding: 0 5%;
    }
    .case-study-hero .project-tagline {
        font-size: 0.9rem;
    }
    .stats-grid {
        gap: 15px;
    }
    .stat-number {
        font-size: 2rem;
    }
    .narrative-section, .testimonial-section, .next-project-cta {
        padding-left: 0;
        padding-right: 0;
    }
}