/* Basic Reset & Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #E0E0E0; /* Light Gray */
    background-color: #121212; /* Dark Charcoal */
    line-height: 1.6;
    scroll-behavior: smooth;
}

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

.section-padding {
    padding: 80px 0;
}

/* Headings */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 3.5em;
    line-height: 1.1;
}

h2 {
    font-size: 2.5em;
    text-align: center;
}

.section-title {
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1em;
    color: #B0B0B0;
    margin-bottom: 40px;
    text-align: center;
}

.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #007bff; /* Electric Blue / Primary Accent */
    color: #FFFFFF;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: transparent;
    color: #007bff;
    border-color: #007bff;
}

.btn-secondary {
    background-color: transparent;
    color: #007bff; /* Electric Blue */
    border-color: #007bff;
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: #007bff;
    color: #FFFFFF;
}

/* Header & Navigation */
.header {
    background-color: rgba(18, 18, 18, 0.8); /* Slightly transparent dark */
    padding: 15px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(5px); /* Modern frosted glass effect */
    -webkit-backdrop-filter: blur(5px);
}

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

.logo img {
    height: 40px; /* Adjust logo size */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: #E0E0E0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #007bff; /* Electric Blue hover */
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.8em;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    text-align: center;
    overflow: hidden; /* Important for video background */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Ensures video covers the area */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 1;
    background-size: cover; /* For fallback image */
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4.5em; /* Larger on desktop */
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 3em;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons .btn {
    font-size: 1.1em;
    padding: 15px 35px;
}

/* Services Overview Section */
.services-overview-section {
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.service-card {
    background-color: #242424;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.2); /* Subtle accent border */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2); /* Accent shadow on hover */
}

.service-card .icon-large {
    font-size: 3.5em;
    color: #007bff; /* Electric Blue icon */
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.service-card p {
    color: #B0B0B0;
    font-size: 0.95em;
    margin-bottom: 20px;
}

.service-card .card-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-card .card-link:hover {
    text-decoration: underline;
}

/* Featured Projects Section */
.featured-projects-section {
    background-color: #121212;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on large screens */
    gap: 20px;
    margin-top: 50px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block; /* Ensure the link covers the whole item */
    text-decoration: none; /* Remove underline from link */
    color: inherit;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-item-large {
    grid-column: span 2;
    grid-row: span 2; /* Make it take 2x2 grid space */
}

/* Example: Adjusting for a more dynamic look, feel free to change */
.project-grid .project-item:nth-child(1) { /* First item large */
    grid-column: span 2;
    grid-row: span 2;
}
.project-grid .project-item:nth-child(2) { /* Second item medium, e.g., 2x1 */
    grid-column: span 2;
}
.project-grid .project-item:nth-child(3) { /* Third item medium, e.g., 2x1 */
    grid-column: span 2;
}
/* The following items would then flow into the remaining spots */


.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    color: #FFFFFF;
}

.project-item:hover .project-info {
    transform: translateY(0);
}

.project-item:hover img {
    transform: scale(1.05);
}

.project-info h3 {
    font-size: 1.3em;
    margin-bottom: 5px;
    color: #FFFFFF;
}

.project-info p {
    font-size: 0.9em;
    color: #B0B0B0;
}

/* Footer */
.footer {
    background-color: #0a0a0a; /* Even darker footer */
    color: #B0B0B0;
    padding: 60px 0 30px;
    font-size: 0.9em;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: #B0B0B0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #007bff;
}

.social-links a {
    color: #B0B0B0;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

/* --- Responsive Design (Basic Media Queries) --- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5em;
    }
    .hero-content h2 {
        font-size: 2.2em;
    }
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .project-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
    .project-grid .project-item:nth-child(1),
    .project-grid .project-item:nth-child(2),
    .project-grid .project-item:nth-child(3) { /* Reset specific column spans for smaller screens */
        grid-column: span 1;
        grid-row: span 1;
    }
    .project-item-large { /* Maintain some large items, but adjust */
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .header .main-nav {
        display: none; /* Hide desktop nav */
        position: absolute;
        top: 70px; /* Below header */
        left: 0;
        width: 100%;
        background-color: #121212;
        box-shadow: 0 5px 10px rgba(0,0,0,0.5);
        z-index: 999;
    }
    .header .main-nav.active { /* Class added by JS for mobile menu */
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        padding: 20px 0;
    }
    .main-nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    .hamburger-menu {
        display: block; /* Show hamburger */
    }

    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content h2 {
        font-size: 1.8em;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-buttons .btn {
        margin: 10px 0 !important; /* Override margin-left */
    }
    .section-title, .section-subtitle {
        font-size: 2em;
        margin-bottom: 20px;
    }
    .services-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
    .project-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .project-item-large, .project-item-medium, .project-item-small {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col {
        margin-bottom: 30px;
    }
    .footer-col ul {
        padding: 0;
    }
    .social-links {
        margin-top: 15px;
    }
}

/* Add this to your style.css */

/* Scrolled Header Styling */
.header.scrolled {
    background-color: #0a0a0a; /* Solid darker background when scrolled */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Hamburger Icon Animation (Optional) */
.hamburger-menu.active .fa-bars:before {
    content: "\f00d"; /* Changes to 'X' icon when active */
}

/* Ensure mobile nav is hidden by default and appears with .active */
.main-nav ul {
    /* ... existing styles ... */
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.main-nav ul.active {
    max-height: 300px; /* Or a value large enough to show all links */
}

/* --- Global Styles --- */
/* ... (Your existing global styles) ... */

/* Page Header Sections (for About and Contact) */
.page-header-section {
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    text-align: center;
    padding: 150px 0 80px; /* More padding at top to clear fixed header */
    position: relative;
    z-index: 1;
}

.page-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: -1;
}

.page-header-section h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
}

.page-header-section p {
    font-size: 1.2em;
    font-weight: 300;
}

/* Specific background for About page header */
.page-header-about {
    background-image: url('images/about-header-bg.jpg'); /* Replace with your image */
}

/* Specific background for Contact page header */
.page-header-contact {
    background-image: url('images/contact-header-bg.jpg'); /* Replace with your image */
}


/* --- About Page Styles --- */
.story-layout {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

.story-image {
    flex: 1;
    min-width: 400px; /* Ensure image doesn't get too small */
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.story-content {
    flex: 1.2; /* Slightly more space for text */
}

.story-content p {
    margin-bottom: 15px;
    color: #E0E0E0;
}

.story-content .section-title {
    text-align: left;
    margin-top: 0;
}


.bg-darker {
    background-color: #1a1a1a;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.philosophy-item {
    background-color: #242424;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.15);
}

.philosophy-item .icon-medium {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 20px;
}

.philosophy-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.philosophy-item p {
    color: #B0B0B0;
    font-size: 0.9em;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background-color: #242424;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #007bff;
}

.team-member h3 {
    font-size: 1.4em;
    margin-bottom: 5px;
    color: #FFFFFF;
}

.team-member .role {
    color: #B0B0B0;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.social-links-small a {
    color: #B0B0B0;
    font-size: 1.2em;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.social-links-small a:hover {
    color: #007bff;
}

.cta-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1em;
    color: #B0B0B0;
    margin-bottom: 40px;
}


/* --- Contact Page Styles --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Form takes more space than info */
    gap: 60px;
    margin-top: 50px;
    align-items: flex-start; /* Align content to the top */
}

.contact-form-col .section-title,
.contact-form-col .section-subtitle {
    text-align: left;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #FFFFFF;
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    color: #E0E0E0;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
}

.contact-form .btn-primary {
    width: auto;
    padding: 15px 30px;
    font-size: 1.1em;
    cursor: pointer;
}

.contact-info-col .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item .icon-medium {
    font-size: 2em;
    color: #007bff;
    margin-right: 20px;
    min-width: 40px; /* Prevent icon from shrinking */
    text-align: center;
}

.info-item h4 {
    font-size: 1.3em;
    margin-bottom: 5px;
    color: #FFFFFF;
    font-weight: 600;
}

.info-item p {
    font-size: 1em;
    color: #B0B0B0;
}

.info-item a {
    color: #007bff;
    text-decoration: none;
}
.info-item a:hover {
    text-decoration: underline;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.map-container iframe {
    border: 0;
    width: 100%;
    height: 300px;
    display: block; /* Remove extra space below iframe */
}

/* --- Responsive Adjustments (Add to your existing @media queries) --- */
@media (max-width: 992px) {
    /* About Page */
    .story-layout {
        flex-direction: column;
        text-align: center;
    }
    .story-image {
        min-width: unset; /* Remove min-width on smaller screens */
        max-width: 600px; /* Constrain image width */
        margin: 0 auto 30px auto;
    }
    .story-content .section-title {
        text-align: center;
    }

    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 40px;
    }
    .contact-form-col .section-title,
    .contact-form-col .section-subtitle,
    .contact-info-col .section-title {
        text-align: center; /* Center titles on mobile */
    }
    .info-item {
        justify-content: center; /* Center align info items */
    }
}

@media (max-width: 768px) {
    .page-header-section {
        padding: 120px 0 60px;
    }
    .page-header-section h1 {
        font-size: 2.8em;
    }
    .page-header-section p {
        font-size: 1em;
    }
    .story-layout {
        gap: 30px;
    }
    .philosophy-grid, .team-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .team-member img {
        width: 100px;
        height: 100px;
    }
    .contact-form .btn-primary {
        width: 100%; /* Full width button */
    }
    .info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .info-item .icon-medium {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* --- Global Styles --- */
/* ... (Your existing styles) ... */

/* Specific background for Portfolio page header */
.page-header-portfolio {
    background-image: url('images/portfolio-header-bg.jpg'); /* Replace with your image */
}

/* --- Portfolio Page Styles --- */
.portfolio-filters {
    text-align: center;
    margin-bottom: 50px;
}

.portfolio-filters .filter-btn {
    background-color: #2a2a2a;
    color: #B0B0B0;
    border: 1px solid #3a3a3a;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-weight: 600;
}

.portfolio-filters .filter-btn:hover {
    background-color: #3a3a3a;
    color: #FFFFFF;
}

.portfolio-filters .filter-btn.active {
    background-color: #007bff; /* Primary Accent color */
    color: #FFFFFF;
    border-color: #007bff;
}

.portfolio-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
}

.portfolio-item img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    padding: 20px;
    color: #FFFFFF;
    /* Optional: Hide info and show on hover */
    /* transform: translateY(100%);
    transition: transform 0.3s ease; */
}

/* .portfolio-item:hover .portfolio-info {
    transform: translateY(0);
} */


.portfolio-info h3 {
    font-size: 1.3em;
    margin-bottom: 5px;
    color: #FFFFFF;
}

.portfolio-info p {
    font-size: 0.9em;
    color: #B0B0B0;
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .portfolio-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .portfolio-filters .filter-btn {
        flex: 1 1 auto; /* Allow buttons to wrap and take available space */
        max-width: 48%; /* Adjust for 2 columns */
    }
    .portfolio-items-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .portfolio-item img {
        height: 200px; /* Adjust height for smaller screens */
    }
}

/* --- Particles Background Styling --- */
.particles-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Ensures particles are behind hero content but potentially over video */
    /* If you want particles over the video, increase this z-index */
    /* If you want particles INSTEAD of the video, remove .video-background from HTML */
}

/* Adjust hero-section's z-index to ensure content is above particles */
.hero-content {
    position: relative; /* Ensure hero content is positioned relative to hero-section */
    z-index: 3; /* Higher than particles and video/overlay */
    max-width: 800px;
}

/* If you want particles to be the ONLY background, you can remove/comment out
   the .video-background and .video-overlay CSS, and make particles-background
   z-index -1. */
.video-background {
    z-index: 1; /* Make sure video is between particles and content */
}

.video-overlay {
    z-index: 2; /* Make sure overlay is between video and content */
}