/* Page-Specific Styles for Portfolio.html */
/* 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; /* Gap between project cards in the projects slider */
    --testimonial-slider-gap: 30px; /* Gap between testimonial cards */

    /* Testimonial dot active color */
    --testimonial-dot-active: #FFB347; /* Orange-yellow as requested */

    /* Services Section - Mobile Specific Variable (This variable is now only used in services.css) */
    --service-card-mobile-width: 90%;
}

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

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: 'Montserrat', sans-serif; /* General text font throughout the body */
    background-color: var(--primary-black); /* Solid black background */
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from overflow content */
    position: relative; /* Positioning context for absolute elements like bokeh light */
    cursor: auto; /* Default cursor for the rest of the page */
}

/* Global Bokeh Light Effect (REMOVED from HTML, so these CSS rules effectively do nothing, but are kept for completeness) */
.bokeh-light {
    display: none; /* Explicitly hide if HTML element is still present for some reason */
}

@keyframes pulseBokeh {
    /* No longer needed if .bokeh-light is removed or hidden */
}


/* Header/Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    width: 100%;
    position: fixed; /* FIXED so it stays on top of the scrolling content */
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for navbar over Spline */
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
}

.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; /* Allows dropdown to sit next to other nav items */
}

.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #1a1a1a; /* Dark background for dropdown */
    min-width: 220px; /* Adjust width as needed */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1; /* Ensure it appears above other content */
    border-radius: 8px;
    overflow: hidden; /* Ensures rounded corners apply to content */
    top: calc(100% + 10px); /* Position below the Services link */
    left: 50%; /* Center dropdown relative to parent li */
    transform: translateX(-50%); /* Adjust for left: 50% to truly center */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    padding: 10px 0; /* Vertical padding for items */
    display: flex; /* Use flex to stack items vertically */
    flex-direction: column;
}

.dropdown-content a {
    color: var(--primary-white); /* White text for dropdown items */
    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; /* Darker background on hover */
    color: var(--gradient-start); /* Highlight color on hover */
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: flex; /* Show as flex column */
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* Reset Y transform on hover */
}


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

/* 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);
}

/* General Page Hero Section */
.page-hero-section {
    background-color: var(--primary-black); /* Default dark background */
    color: var(--primary-white);
    /* ADJUSTED TOP PADDING FOR NAVBAR CLEARANCE */
    padding: 200px 5% 80px 5%; /* Increased top padding to ensure content is below fixed navbar */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50vh; /* Base min-height for desktop */
    position: relative;
    overflow: hidden; /* Ensure hero section itself doesn't cause overflow */
}

.portfolio-hero .page-title {
    font-family: 'Krona One', sans-serif;
    font-size: 5vw; /* Responsive hero title */
    color: var(--primary-white);
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
    line-height: 1.1;
}

.portfolio-hero .page-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-white);
    max-width: 600px;
    margin: 0 auto 15px auto;
    line-height: 1.6;
    opacity: 0.9;
}

.portfolio-hero .page-subtext {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.portfolio-hero .hero-ctas {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.portfolio-hero .btn-primary,
.portfolio-hero .btn-secondary {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: none; /* Reset button borders */
    cursor: pointer;
}

.portfolio-hero .btn-primary {
    background-image: var(--main-gradient);
    color: var(--primary-white);
    box-shadow: 0 5px 15px rgba(250, 167, 31, 0.4);
}

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

.portfolio-hero .btn-secondary {
    background-color: transparent;
    color: var(--primary-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

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


/* Scrolling Text Section */
.scrolling-text-section {
    width: 100%;
    overflow: hidden; /* IMPORTANT: This section itself should hide overflow for its animated content */
    padding: 40px 0;
    background-color: var(--primary-black); /* Changed from transparent for solid background */
    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;
    /* Ensure content inside doesn't exceed 100vw, but is animated */
    display: inline-block; /* Helps contain the text for animation */
    width: 200%; /* Make it wider than viewport to allow animation across */
}

.scrolling-text-content {
    display: inline-block;
    will-change: transform;
    animation: scrollText 30s linear infinite;
    /* Ensure content inside this animation is not too wide */
    width: 50%; /* Each span set to half of container's width (100% of viewport) */
}


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


/* Portfolio Categories Filter */
.portfolio-filter-section {
    background-color: var(--primary-black);
    padding: 40px 5%; /* Keep padding for desktop */
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky; /* Make filter sticky */
    top: 0; /* Stick to top */
    z-index: 50; /* Ensure it's above other content when scrolling */
    overflow-x: hidden; /* Crucial: Prevents horizontal scroll on this section */
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on desktop/larger tablets */
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.filter-button {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-button:hover:not(.active) {
    background-color: #333;
    color: var(--primary-white);
}

.filter-button.active {
    background-image: var(--main-gradient);
    color: var(--primary-white);
    border-color: transparent; /* Remove border when active */
    box-shadow: 0 3px 10px rgba(250, 167, 31, 0.4);
}


/* Project Showcase Grid */
.project-showcase-grid-section {
    background-color: var(--primary-black);
    padding: 80px 5%;
    color: var(--primary-white);
    overflow-x: hidden; /* Crucial: Prevents horizontal scroll on this section */
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive masonry-like grid: 3 columns desktop, 2 tablet, 1 mobile */
    gap: 30px; /* Space between project tiles */
}

.project-tile {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    background-color: #1a1a1a; /* Placeholder background */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 20px rgba(250, 167, 31, 0.3);
}

.project-tile img {
    width: 100%;
    height: 300px; /* Fixed height for consistency, adjust as needed */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.project-tile:hover img {
    transform: scale(1.05); /* Subtle zoom on image hover */
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: var(--primary-white);
    padding: 20px;
    transform: translateY(100%); /* Initially hidden below */
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    height: 100%; /* Cover entire tile */
    opacity: 0; /* Also hide with opacity */
}

.project-tile:hover .project-overlay {
    transform: translateY(0); /* Slide up */
    opacity: 1;
}

.project-name {
    font-family: 'Krona One', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--primary-white);
    text-transform: uppercase;
    line-height: 1.2;
}

.project-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    line-height: 1.4;
}

.view-case-study-link {
    background-image: var(--main-gradient);
    color: var(--primary-white);
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-self: flex-start; /* Align button to left */
}

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


/* Featured Projects Carousel (on Portfolio Page) */
.featured-projects-carousel-section {
    background-color: var(--primary-black); /* Black background */
    padding: 80px 5%; /* Keep padding for desktop */
    text-align: center;
    color: var(--primary-white);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: hidden; /* Crucial: Prevents horizontal scroll on this section */
}

.featured-projects-carousel-section .section-title {
    color: var(--primary-white);
    margin-bottom: 20px;
}
.featured-projects-carousel-section .section-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 60px auto;
    line-height: 1.6;
}

.portfolio-slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden; /* This is good to contain slides */
    padding: 0 40px; /* Space for slider buttons on desktop/larger tablets */
}

/* UPDATED: Mobile optimized grid */
.portfolio-projects-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--projects-slider-gap);
    transition: transform 0.5s ease-in-out;
    padding-bottom: 15px;
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; /* Enable scroll snapping */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

/* Hide scrollbar for Webkit browsers */
.portfolio-projects-grid::-webkit-scrollbar {
    display: none;
}

/* UPDATED: Card styles to match new HTML structure */
.portfolio-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;
    flex-shrink: 0; /* Prevents cards from shrinking */
    width: calc(33.33% - (2 * var(--projects-slider-gap) / 3)); /* Default 3 cards per view */
    display: flex;
    flex-direction: column;
    scroll-snap-align: center; /* Snap card to center */
}

.portfolio-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);
}

/* New Wrapper for Image and Overlay */
.portfolio-project-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 60%; /* Aspect Ratio */
    overflow: hidden;
}

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

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

/* New Overlay Styles */
.portfolio-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;
    pointer-events: none;
}

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

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

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

.portfolio-project-summary {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.portfolio-view-case-study-btn {
    background-image: var(--main-gradient);
    color: var(--primary-white);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
}

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

/* Slider Buttons */
.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; }


/* Awards & Recognitions Section */
.awards-recognition-section {
    background-color: var(--primary-white);
    color: var(--primary-black);
    padding: 80px 5%;
    text-align: center;
    overflow-x: hidden; /* Crucial: Prevents horizontal scroll on this section */
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.award-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.award-item img {
    max-width: 100px;
    height: auto;
    margin-bottom: 15px;
}

.award-item h4 {
    font-family: 'Krona One', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-black);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.award-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: rgba(0,0,0,0.7);
}

/* Media Section Styling */
.media-section {
    background-color: var(--primary-black); /* Dark background to match theme */
    padding: 80px 5%; /* Consistent padding */
    text-align: center;
    color: var(--primary-white);
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle top border */
    min-height: 400px; /* Minimum height for the media section as requested */
    display: flex; /* Use flex to center content */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden; /* Crucial: Prevents horizontal scroll on this section */
}

.media-section .section-title {
    color: var(--primary-white);
    margin-bottom: 20px;
}

.media-section .section-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 40px auto; /* Margin below description */
    line-height: 1.6;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (height / width * 100%) */
    height: 0;
    overflow: hidden;
    max-width: 1000px; /* Limit max width of video */
    margin: 0 auto; /* Center the video wrapper */
    border-radius: 10px; /* Rounded corners for the video player */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); /* Shadow for depth */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px; /* Apply border-radius to iframe itself if supported */
}


/* Social Icons Section Before Footer */
.social-section-before-footer {
    padding: 40px 5%; /* Adjust padding as needed for spacing above and below */
    background-color: transparent; /* Keep consistent with transparent background over your main content/Spline */
    text-align: center; /* Ensures text-based content (if any) and inline-block elements are centered */
    position: relative; /* Useful for z-index if you have overlapping elements */
    z-index: 1; /* Ensures it's above any background elements like Spline viewer */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.social-icons-centered {
    display: flex; /* Use flexbox for easy centering of icons */
    justify-content: center; /* Horizontally center the icons within the flex container */
    gap: 30px; /* Space between individual social icons */
    font-size: 2.5rem; /* Adjust icon size as desired. Larger for prominence. */
    max-width: 800px; /* Example: Limit width to keep icons grouped */
    margin: 0 auto; /* Center the flex container itself if max-width is set */
}

.social-icons-centered a {
    color: var(--primary-white); /* White color for icons to match your theme */
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
}

.social-icons-centered a:hover {
    color: var(--gradient-start); /* Orange highlight on hover, using your defined gradient-start color */
    transform: translateY(-5px); /* Slight lift effect on hover for interactivity */
}


/* Footer Section Styling */
.footer {
    background-color: transparent; /* CHANGED TO 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;
    gap: 15px;
    justify-content: flex-start;
}

.footer-social-icons a {
    color: var(--primary-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);
}

/* Responsive Adjustments for Portfolio.css */
@media (max-width: 1024px) {
    .page-hero-section {
        padding: 120px 5% 60px 5%; /* Adjusted padding for tablet */
        min-height: 40vh; /* Adjusted min-height */
    }
    .portfolio-hero .page-title {
        font-size: 4rem;
    }
    .portfolio-hero .page-tagline {
        font-size: 1.3rem;
    }
    .portfolio-hero .page-subtext {
        font-size: 1rem;
    }

    .portfolio-filter-section {
        padding: 30px 5%;
    }
    .filter-tabs {
        flex-wrap: wrap; /* Allow wrapping on larger tablets */
    }
    .filter-button {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    .project-name {
        font-size: 1.2rem;
    }
    .project-tagline {
        font-size: 0.85rem;
    }

    .featured-projects-carousel-section {
        padding: 60px 5%; /* Adjust padding for tablet */
    }
    .featured-projects-carousel-section .section-title {
        font-size: 3.5rem;
    }
    .featured-projects-carousel-section .section-description {
        font-size: 1rem;
    }
    .portfolio-slider-container {
        padding: 0 20px; /* Reduced from 40px for tablet */
    }
    .portfolio-project-card {
        width: calc(50% - (var(--projects-slider-gap) / 2)); /* 2 cards per view */
    }
    .portfolio-project-title {
        font-size: 1.1rem;
    }
    .portfolio-project-summary {
        font-size: 0.85rem;
    }
    .portfolio-view-case-study-btn {
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .awards-recognition-section {
        padding: 60px 5%; /* Adjust padding for tablet */
    }
    .awards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }
    .award-item {
        padding: 25px;
    }
    .award-item h4 {
        font-size: 1.1rem;
    }
    .award-item p {
        font-size: 0.8rem;
    }

    /* Media Section Responsive Adjustments for Tablet */
    .media-section {
        padding: 100px 5%; /* Adjusted padding */
        min-height: 0px; /* Adjusted min-height for tablet */
    }
    .media-section .section-title {
        font-size: 3.5rem; /* Adjusted title size */
    }
    .media-section .section-description {
        font-size: 1rem; /* Adjusted description size */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    /* Hamburger Button Styling (Visible on mobile/tablet) */
    .hamburger-button {
        display: block; /* Ensure it's visible */
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--primary-white);
        cursor: pointer;
        z-index: 101; /* Above navbar content */
        position: relative; /* To position correctly when toggled */
    }

    /* Navigation Links (Mobile/Tablet Menu) */
    .nav-links {
        position: fixed;
        top: 0; /* Changed from 80px to 0 to cover entire screen from top */
        right: 0;
        width: 100%;
        height: 100vh; /* Full viewport height */
        background-color: rgba(0, 0, 0, 0.95); /* Darker overlay */
        transform: translateX(100%); /* Hidden by default */
        transition: transform 0.3s ease-in-out;
        z-index: 99;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center content vertically */
        align-items: center; /* Center content horizontally */
        overflow-y: auto; /* Allow scrolling if menu content is too long */
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.open {
        transform: translateX(0); /* Show menu */
    }

    .nav-links ul {
        flex-direction: column;
        text-align: center;
        gap: 25px; /* Space between main nav items */
        width: 100%; /* Ensure full width for list items */
    }

    .nav-links ul li {
        width: 100%; /* Full width for each list item */
    }

    .nav-links a {
        font-size: 1.5rem; /* Larger font for tap targets */
        padding: 15px 0; /* More padding for tap targets */
        display: block;
        color: var(--primary-white);
        text-align: center; /* Center align text in mobile menu */
    }

    .nav-links a::after {
        display: none; /* Hide underline effect in mobile menu */
    }

    /* Dropdown Specifics for Mobile Menu */
    .dropdown {
        width: 100%; /* Make dropdown parent span full width in mobile menu */
        text-align: center; /* Center the "Services" link */
    }

    .dropdown-content {
        position: static; /* Change to static positioning in mobile menu flow */
        width: 100%; /* Take full width of parent in mobile */
        min-width: unset; /* Remove min-width */
        background-color: rgba(26, 26, 26, 0.9); /* Slightly different background for dropdown items */
        box-shadow: none; /* Remove shadow in mobile */
        border-radius: 0; /* No border-radius for nested menu */
        padding: 0; /* Remove padding from container, add to links below */
        opacity: 1; /* Always visible if parent is active (controlled by max-height) */
        visibility: visible; /* Always visible if parent is active (controlled by max-height) */
        transform: none; /* Remove any transforms */
        max-height: 0; /* Initially hidden, will be controlled by JS */
        overflow: hidden; /* Hide overflow for animation */
        transition: max-height 0.3s ease-out; /* Smooth transition for expand/collapse */
    }

    .dropdown-content.open { /* Class added by JS when dropdown is open in mobile */
        max-height: 300px; /* Adjust as needed to fit all dropdown items. Use a large enough value. */
    }

    .dropdown-content a {
        padding: 10px 20px; /* Padding for individual dropdown items */
        font-size: 1.2rem; /* Slightly smaller font for sub-items */
        text-align: center; /* Center align sub-items */
        color: rgba(255, 255, 255, 0.8); /* Slightly less prominent color */
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .dropdown-content a:hover {
        background-color: rgba(51, 51, 51, 0.9);
        color: var(--gradient-start);
    }

    /* END Hamburger & Mobile Menu Specifics */


     .hero-section {
        flex-direction: column; /* Stack content vertically on mobile */
        text-align: center;
        min-height: 80vh; /* Adjust hero height for mobile */
        padding-top: 100px; /* Add padding to push content below fixed navbar */
        padding-bottom: 40px; /* Add some bottom padding for mobile */
        justify-content: center; /* Center content in column */
        align-items: center; /* Center horizontally in column */
    }

    .hero-content h1 {
        font-size: 3.5rem;
        margin-bottom: 10px;
        align-items: center; /* Center h1 lines on mobile */
    }
    .portfolio-hero .page-title {
        font-size: 3rem;
    }
    .portfolio-hero .page-tagline {
        font-size: 1.1rem;
    }
    .portfolio-hero .page-subtext {
        font-size: 0.9rem;
    }
    .portfolio-hero .hero-ctas {
        flex-direction: column; /* Stack buttons */
        align-items: center;
    }
    .portfolio-hero .btn-primary,
    .portfolio-hero .btn-secondary {
        width: 100%;
        max-width: 250px; /* Limit button width */
    }

    .scrolling-text-section {
        padding: 20px 0; /* Adjusted padding for mobile */
        font-size: 2rem; /* Adjusted font size for mobile */
    }

    .portfolio-filter-section {
        /* Remove horizontal padding entirely from section to allow filter-tabs to use full width */
        padding: 20px 0;
    }
    .filter-tabs {
        flex-wrap: nowrap; /* Keep tabs in a single row for horizontal scroll */
        justify-content: flex-start; /* Align tabs to start */
        gap: 10px;
        padding-bottom: 10px; /* Space for potential hidden scrollbar */
        overflow-x: auto; /* Enable horizontal scroll for the tabs themselves */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS Safari */
        scrollbar-width: none; /* Hide scrollbar for Firefox */
    }
    /* Hide scrollbar for Chrome, Safari, Opera */
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    .filter-button {
        flex-shrink: 0; /* Prevent shrinking */
        font-size: 0.8rem;
        padding: 8px 12px;
        scroll-snap-align: start; /* Snap to start of button when scrolling */
        /* Add specific margins to the first/last child to create visual padding */
    }
    .filter-tabs .filter-button:first-child {
        margin-left: 20px; /* Visual padding from the left edge */
    }
    .filter-tabs .filter-button:last-child {
        margin-right: 20px; /* Visual padding from the right edge */
    }


    .project-showcase-grid-section {
        padding: 60px 5%;
    }
    .project-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        /* No extra horizontal padding needed here as section padding handles it */
    }
    .project-tile img {
        height: 250px; /* Keep consistent height or adjust as needed */
    }
    .project-name {
        font-size: 1.2rem;
    }
    .project-tagline {
        font-size: 0.8rem;
    }

    .featured-projects-carousel-section {
        padding: 60px 0; /* Remove horizontal padding from section */
    }
    .featured-projects-carousel-section .section-title {
        font-size: 2.5rem;
    }
    .featured-projects-carousel-section .section-description {
        font-size: 0.9rem;
        margin-bottom: 40px;
    }
    .portfolio-slider-container {
        padding: 0; /* Remove internal padding here, will rely on grid padding below */
    }
    .portfolio-projects-grid {
        padding-left: 5%; /* Add padding directly to the grid for content spacing */
        padding-right: 5%;
        box-sizing: border-box; /* Include padding in width calculation */
    }
    /* UPDATED: Full width for mobile card */
    .portfolio-project-card {
        width: 100%;
        min-width: 100%;
    }
    /* Adjust slider buttons to overlay over the content, not push it */
    .slider-button {
        background-color: rgba(0, 0, 0, 0.4); /* Make them more visible */
        color: var(--primary-white); /* Ensure they stand out */
        width: 40px; /* Smaller buttons */
        height: 40px;
        font-size: 20px;
        left: 5px; /* Adjusted position */
        right: 5px; /* Adjusted position */
        transform: translateY(-50%); /* Re-center vertically */
    }
    .slider-button.prev-button {
        left: 5px; /* Position closer to the edge */
    }
    .slider-button.next-button {
        right: 5px; /* Position closer to the edge */
    }


    .awards-recognition-section {
        padding: 60px 5%;
    }
    .awards-grid {
        grid-template-columns: 1fr; /* Stack awards on mobile */
        gap: 20px;
    }
    .award-item h4 {
        font-size: 1rem;
    }
    .award-item p {
        font-size: 0.8rem;
    }

    /* Media Section Responsive Adjustments for Mobile */
    .media-section {
        padding: 40px 5%; /* Adjusted padding */
        min-height: 300px; /* Adjusted min-height for smaller mobile */
    }
    .media-section .section-title {
        font-size: 2.5rem; /* Adjusted title size */
    }
    .media-section .section-description {
        font-size: 0.9rem; /* Adjusted description size */
        margin-bottom: 20px;
    }
    .video-wrapper {
        padding-bottom: 56.25%; /* Keep 16:9 aspect ratio */
    }
}

@media (max-width: 480px) {
    .page-hero-section {
        padding: 50px 5% 30px 5%;
        min-height: 250px; /* Further reduced min-height for very small screens */
    }
    .portfolio-hero .page-title {
        font-size: 2.5rem;
    }
    .portfolio-hero .page-tagline {
        font-size: 1rem;
    }
    .portfolio-hero .page-subtext {
        font-size: 0.85rem;
    }
    .portfolio-hero .hero-ctas {
        gap: 10px;
    }

    .scrolling-text-section {
        padding: 15px 0; /* Adjusted padding for very small mobile */
        font-size: 1.8rem; /* Adjusted font size for very small mobile */
    }
    .scrolling-text-container {
        /* No change needed here, as it relies on section padding and internal logic */
    }


    .portfolio-filter-section {
        padding: 15px 0; /* Adjust padding again */
    }
    .filter-tabs .filter-button:first-child {
        margin-left: 15px; /* Adjust based on overall section padding */
    }
    .filter-tabs .filter-button:last-child {
        margin-right: 15px; /* Adjust based on overall section padding */
    }

    .project-showcase-grid-section {
        padding: 40px 5%;
    }
    .project-grid {
        /* No changes needed here, as it relies on section padding */
    }
    .project-tile img {
        height: 200px;
    }
    .project-name {
        font-size: 1.1rem;
    }
    .project-tagline {
        font-size: 0.8rem;
    }

    .featured-projects-carousel-section {
        padding: 40px 0; /* Adjust padding again */
    }
    .featured-projects-carousel-section .section-title {
        font-size: 2rem;
    }
    .featured-projects-carousel-section .section-description {
        font-size: 0.8rem;
        margin-bottom: 30px;
    }
    .portfolio-projects-grid {
        padding-left: 4%; /* Slightly less padding for very small screens */
        padding-right: 4%;
    }
    /* UPDATED: Ensure full width */
    .portfolio-project-card {
        width: 100%;
        min-width: 100%;
    }
    .portfolio-project-card img {
        height: 150px;
    }
    .portfolio-project-title {
        font-size: 0.95rem;
    }
    .portfolio-project-summary {
        font-size: 0.75rem;
    }
    .portfolio-view-case-study-btn {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .awards-recognition-section {
        padding: 40px 5%;
    }
    .award-item {
        padding: 20px;
    }
    .award-item h4 {
        font-size: 0.95rem;
    }
    .award-item p {
        font-size: 0.75rem;
    }

    /* Media Section Responsive Adjustments for Small Mobile */
    .media-section {
        padding: 100px 5%; /* Further adjusted padding */
        min-height: 250px; /* Adjusted min-height for very small mobile */
    }
    .media-section .section-title {
        font-size: 2rem; /* Further adjusted title size */
    }
    .media-section .section-description {
        font-size: 0.8rem; /* Further adjusted description size */
        margin-bottom: 15px;
    }

    /* Social Icons Section Before Footer (Mobile) */
    .social-section-before-footer {
        padding: 20px 5%; /* Even less padding on very small screens */
    }
    .social-icons-centered {
        font-size: 1.8rem; /* Even smaller icons on very small screens */
        gap: 15px;
    }
}