/* --- 0. Global Reset and Variables (Professional Palette) --- */
:root {
    /* Main Color: Deep Blue/Cyan (Trust, Tech, Professionalism) */
    --color-primary: #0077b6;      /* Main Blue: 0077b6 */
    --color-primary-dark: #005f90; /* Darker Blue for hover */
    --color-accent: #fca311;       /* Amber/Gold for strong highlight/CTA */
    
    /* Backgrounds & Text */
    --color-dark-bg: #14213d;      /* Dark Navy/Charcoal for contrast sections */
    --color-text: #333333;         /* Near Black for body text */
    --color-light-bg: #f8f9fa;     /* Light Gray/Off-White */
    --color-white: #ffffff;
    
    /* Font (Inter: Modern, highly readable) */
    --font-family: 'Inter', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 600;
    --font-weight-bold: 800;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3 {
    line-height: 1.2;
    color: var(--color-dark-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}


/* --- Utility Classes --- */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}
.section-padding {
    padding: 100px 0;
}


/* --- 0. Top Contact Bar (New Styling) --- */
.top-bar {
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    padding: 8px 0; /* Creates the 30px height visually */
    font-size: 0.85rem;
}

.top-bar .container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.top-bar-left, .top-bar-center, .top-bar-right {
    text-align: left;
}

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

.top-bar-right {
    text-align: right;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--color-accent);
}

.top-bar i {
    margin-right: 8px;
    color: var(--color-accent);
}
/* --- 1. Header & Navigation (Improved Z-index and Structure) --- */
.header {
    background-color: var(--color-white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000; /* Highest Z-index for being in front of everything */
    transition: padding 0.3s, box-shadow 0.3s;
}

/* JavaScript class for scrolled state */
.header.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 5px 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
}

/* Main Navigation Links (More noticeable) */
.nav-main-links {
    margin-bottom: 5px; 
}

.nav-main-links a {
    color: var(--color-text);
    text-decoration: none;
    margin-left: 30px;
    font-weight: var(--font-weight-bold); /* Bolder for main links */
    font-size: 1rem; /* Slightly larger/more noticeable text */
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

.nav-main-links a:hover,
.nav-main-links a.active {
    color: var(--color-primary);
}

.nav-main-links a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    bottom: -5px;
    left: 0;
}

/* Separator/Link Break */
.nav-separator {
    width: 100%;
    height: 1px;
    background-color: var(--color-light-bg);
    margin: 5px 0;
}

/* Section Links (Smaller, breadcrumb format, out of the way) */
.nav-section-links {
    display: flex;
    align-items: center;
    padding: 2px 0;
    text-align: center;
}

.nav-section-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.7rem; /* Even smaller text */
    opacity: 0.5; /* Very subtle */
    font-weight: var(--font-weight-regular);
    transition: opacity 0.3s, color 0.3s;
}

.nav-section-links a:hover {
    opacity: 1;
    color: var(--color-primary);
}


/* Breadcrumb-style separators for section links */
.nav-section-links a::after {
    content: ' / ';
    color: var(--color-text);
    opacity: 0.3;
    margin: 0 3px;
}

/* Remove the separator after the last link */
.nav-section-links a:last-child::after {
    content: '';
    margin: 0;
}


/* Start Project Button (Smaller, white text, primary background) */
.btn-start-project {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 6px 15px; /* Smaller padding */
    font-size: 0.8rem; /* Smaller font size */
    margin-left: 15px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-start-project:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* --- 10. Responsive Design (Media Queries) --- */

@media (max-width: 1024px) {
    /* Hide top bar on tablets for cleaner look */
    .top-bar {
        display: none;
    }
    .header .container {
        padding: 10px 0;
    }

    /* Keep main links centered and hide section links */
    .nav {
        flex-direction: row;
        width: auto;
        justify-content: flex-end;
        align-items: center;
    }
    .nav-main-links {
        display: flex;
        align-items: center;
        margin-bottom: 0;
    }
    .nav-section-links, .nav-separator {
        display: none; 
    }
    .btn-start-project {
        display: inline-block; /* Ensure button is visible */
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        padding: 15px 0;
    }
    .logo {
        margin-bottom: 10px;
    }
    .nav {
        width: 100%;
    }
    .nav-main-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-main-links a {
        margin: 5px 10px;
    }
    .btn-start-project {
        display: none; /* Hide button on smallest screens to save space */
    }
}

/* Remove the separator after the last breadcrumb link before the button */
.nav-section-links a:nth-last-child(2)::after {
    content: '';
    margin: 0;
}


/* --- 3. Hero Section --- */
.hero {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    text-align: center;
    padding: 150px 0 120px;
}

.tagline {
    display: block;
    font-size: 0.95rem;
    color: var(--color-accent);
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    font-weight: 900;
    color: var(--color-white);
}

.hero h1 strong {
    color: var(--color-accent);
    padding-bottom: 0px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    font-weight: 300;
}

/* --- 4. Breadcrumb (Below Hero) --- */
.breadcrumb-container {
    background-color: var(--color-light-bg);
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--color-text);
}


/* --- 5. Full-Stack Difference Section (4 Cards) --- */
.difference {
    background-color: var(--color-white);
}

.difference-rows {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between the two rows */
    max-width: 1000px; /* Constrain the width slightly for better appearance */
    margin: 0 auto;
}

.difference-row-top,
.difference-row-bottom {
    /* Set each row to be a 2-column grid */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-content: center;
}

.card {
    padding: 30px;
    border-radius: 10px;
    background-color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 15px;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

/* --- 6. Technology Stack Section (Reorganized Grid Structure) --- */
.stack {
    background-color: var(--color-light-bg);
    border-top: 1px solid #e0e0e0;
}

.stack-rows {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Row 1: Core Front-end & Frameworks (2 columns) - Restored previous layout class */
.stack-row-top {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for top row */
    gap: 30px;
}

/* Row 2: Backend, Database & Infrastructure (3 columns) - Restored previous layout class */
.stack-row-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for bottom row */
    gap: 30px;
}

.stack-item {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--color-primary);
    transition: transform 0.3s;
}

.stack-item:hover {
    transform: translateY(-3px);
    border-top-color: var(--color-accent);
}

.stack-icon {
    font-family: var(--font-family);
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    display: block;
    margin-bottom: 5px;
}

.stack-icon-front {
    color: var(--color-accent);
    font-size: 1.1rem;
}

.stack-item p {
    font-size: 0.9rem;
    color: var(--color-text);
    opacity: 0.7;
}

/* --- 7. Portfolio/Case Studies Section --- */
.portfolio {
    text-align: center;
}

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

.portfolio-item {
    height: 220px;
    border-radius: 8px;
    background: var(--color-dark-bg);
    color: var(--color-white);
    text-align: left;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.industry-tag {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-dark-bg);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.portfolio-item h3 {
    color: var(--color-white);
    font-weight: var(--font-weight-bold);
    font-size: 1.4rem;
}


/* --- 8. Contact Section --- */
.contact {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.contact h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--color-white);
}

.contact p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.contact-form {
    max-width: 650px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    border-color: #eaeaeb; /* Lighten the border */
    box-shadow: 0 0 5px rgba(156, 163, 175, 0.5);
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-family);
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
}

.contact-form button {
    width: 100%;
    margin-top: 10px;
}

/* --- 9. Footer (Revised Layout) --- */
.main-footer {
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-testimonial .quote {
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--color-white);
}

.footer-testimonial .client {
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
}

.footer-search-form {
    display: flex;
    margin-bottom: 20px;
}

.footer-search-form input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 0.9rem;
}

.footer-search-form button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.footer-search-form button:hover {
    background-color: var(--color-primary-dark);
}

/* Copyright Row Styling (Moved below the line break) */
.footer-copyright-row {
    background-color: #1e2d4c; 
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright-info {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- 10. Scroll to Top Button Styling (Improved with White Shadow) --- */
#scrollToTopBtn {
    display: none; 
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: var(--color-primary); 
    color: var(--color-white);
    cursor: pointer;
    
    width: 55px;
    height: 55px; 
    padding: 0;
    border-radius: 8px; 
    
    font-size: 28px; 
    line-height: 55px; 
    text-align: center;
    font-weight: var(--font-weight-bold);
    
    /* UPDATED: Added a subtle white glow and reduced the dark shadow opacity */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), /* Subtle white glow */
                0 4px 8px rgba(0, 0, 0, 0.15); /* Soft dark shadow */
    transition: background-color 0.3s, opacity 0.3s, transform 0.2s;
}

#scrollToTopBtn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    /* OPTIONAL: Enhance the white shadow on hover for a lift effect */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7),
                0 6px 12px rgba(0, 0, 0, 0.25);
}


/* --- 11. Responsive Design (Media Queries) --- */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    .difference-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Ensure expertise section also collapses nicely on tablets/smaller screens */
    .difference-row-top,
    .difference-row-bottom {
        grid-template-columns: 1fr; /* Stack into a single column */
    }
    .stack-row-top {
        grid-template-columns: 1fr;
    }
    .stack-row-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Responsive Navigation adjustments */
    .nav-section-links {
        display: none; /* Hide section links on tablet to save space */
    }
    .nav {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
    .nav-main-links {
        width: 100%;
        text-align: center;
        justify-content: space-around;
        display: flex;
        margin-bottom: 0;
    }
    .nav-main-links a {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        padding: 15px 0;
    }
    .logo {
        margin-bottom: 10px;
    }
    .nav-main-links {
        flex-wrap: wrap;
    }
    .nav-main-links a {
        margin: 5px 10px;
    }
    .section-padding {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .difference-grid, .stack-row-top, .stack-row-bottom, .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-search-form {
        max-width: 350px;
        margin: 0 auto 20px;
    }
}











/*  --- About us page section --- */










/* --- NEW SECTIONS: ABOUT US PAGE STYLING --- */

/* About Hero Specifics (Inherits general .hero styles but ensures main menu is NOT active) */
.about-hero {
    /* No major changes needed, inherits dark blue background from .hero */
}

/* Story and Mission Section */
.story {
    background-color: var(--color-white);
}

.story-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    align-items: center;
}

.section-title-left {
    text-align: left;
    margin-bottom: 25px;
}
.section-title-left::after {
    margin: 15px 0 0 0; /* Align separator left */
}

.lead-paragraph {
    font-size: 1.2rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 20px;
    color: var(--color-dark-bg);
}

.story-image .image-placeholder {
    height: 350px;
    background-color: var(--color-light-bg);
    border-radius: 10px;
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-style: italic;
    opacity: 0.8;
}

/* Core Values Section (Matches the Expertise/Card Style) */
.values {
    background-color: var(--color-light-bg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Reusing .card and .icon styles for consistency */


/* Meet the Team Section (Dark Contrast Section) */
.team {
    background-color: var(--color-dark-bg);
}

.section-title-white {
    color: var(--color-white);
}

.section-title-white::after {
    background-color: var(--color-accent);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.team-member {
    color: var(--color-white);
}

.team-member h3 {
    color: var(--color-accent);
    margin-top: 15px;
    font-size: 1.5rem;
}

.member-title {
    display: block;
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    margin-bottom: 10px;
}

.member-image-placeholder {
    width: 100%;
    height: 250px;
    background-color: #334466; /* Darker blue shade */
    border-radius: 50%; /* Circle image placeholder */
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    border: 3px solid var(--color-accent);
}


/* --- RESPONSIVE ADJUSTMENTS FOR ABOUT PAGE --- */

@media (max-width: 1024px) {
    .story-grid {
        grid-template-columns: 1fr; /* Stack story text and image */
    }
    .story-image {
        order: -1; /* Move image above text on smaller screens */
        margin-bottom: 30px;
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    }
    .member-image-placeholder {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
    .team-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
    .section-title-left {
        text-align: center;
    }
    .section-title-left::after {
        margin: 15px auto 0;
    }
}











/* --- NEW SECTION: 404 ERROR PAGE STYLING --- */













.body-404 {
    /* Ensures the body takes up the full viewport height */
    height: 100vh;
    display: flex;
    align-items: center; /* Vertically center the content */
    justify-content: center; /* Horizontally center the content */
    background-color: var(--color-light-bg);
    text-align: center;
    padding: 20px;
    overflow: hidden; /* Prevent scrolling */
}

.error-container {
    max-width: 700px;
    padding: 40px;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.error-code {
    font-size: 8rem; /* Large, dominant text */
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0 rgba(0, 119, 182, 0.1); /* Slight shadow for depth */
}

.error-container h1 {
    font-size: 2.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-dark-bg);
    margin-bottom: 25px;
}

.error-container h1 strong {
    color: var(--color-accent);
}

.error-message {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

/* Reusing existing button styles (.btn-primary and .btn-secondary) */

.error-hint {
    border-top: 1px solid var(--color-light-bg);
    padding-top: 25px;
}

.error-hint p {
    font-size: 0.95rem;
    color: var(--color-text);
    opacity: 0.7;
    margin-bottom: 15px;
}

.error-nav-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    margin: 0 5px;
    transition: color 0.3s;
}

.error-nav-links a:hover {
    color: var(--color-accent);
}

/* Responsive adjustment for small screens */
@media (max-width: 600px) {
    .error-code {
        font-size: 6rem;
    }
    .error-container h1 {
        font-size: 1.8rem;
    }
    .error-actions {
        flex-direction: column;
        gap: 15px;
    }
    .error-container {
        padding: 30px 20px;
    }
}












/* --- PROJECTS CATALOGUE SPECIFIC STYLING --- */








.projects-hero {
    /* Inherits styling from .hero on index.html */
}

/* Main Layout: Sidebar and Content */
.projects-catalogue {
    background-color: var(--color-light-bg);
}

.projects-grid-container {
    display: grid;
    grid-template-columns: 280px 1fr; /* Fixed width sidebar, flexible content */
    gap: 40px;
}

/* Sidebar Styling */
.projects-sidebar {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: fit-content; /* Ensure the sidebar doesn't extend unnecessarily */
}

.projects-sidebar h3 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.filter-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-light-bg);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h4 {
    font-size: 1rem;
    color: var(--color-dark-bg);
    margin-bottom: 10px;
}

.filter-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text);
    padding: 5px 0;
    cursor: pointer;
    transition: color 0.2s;
}

.filter-group label:hover {
    color: var(--color-primary);
}

.filter-group input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--color-accent); /* Custom checkbox color */
}

/* Project Grid Styling (Content Area) */
.projects-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--color-dark-bg);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3-wide grid */
    gap: 30px;
}

.project-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--color-primary);
}

/* Hover Effect (Grows slightly bigger) */
.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-top-color: var(--color-accent);
}

.project-image-placeholder {
    height: 180px;
    background-color: var(--color-light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--color-text);
    opacity: 0.6;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.2rem;
    color: var(--color-dark-bg);
    margin-bottom: 5px;
}

.tech-stack {
    display: block;
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    margin-bottom: 10px;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--color-text);
    opacity: 0.8;
}

/* --- DYNAMIC UTILITY BUTTON (STATIC SEARCH) --- */
.static-utility-btn {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 998; 
    
    background-color: var(--color-primary); 
    color: var(--color-white); 
    
    border: none;
    
    /* MODIFIED: Change to horizontal padding for the pill shape */
    padding: 12px 22px 12px 18px; 
    border-radius: 50px; /* Pill shape */
    
    font-size: 1rem; 
    cursor: pointer;
    display: flex; /* Allow content inside (icon and text) to align */
    align-items: center;
    
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Slightly softer shadow */
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s, width 0.3s;
}

/* Pseudo-element or text to explicitly label it */
.static-utility-btn::after {
    content: "Search"; /* Add the text label */
    font-weight: var(--font-weight-bold);
    margin-left: 10px; /* Space between icon and text */
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.static-utility-btn i.fas.fa-search {
    font-size: 1.1rem; /* Adjust icon size */
}

.static-utility-btn:hover {
    background-color: #0088cc; 
    transform: translateY(-50%) scale(1.03); /* Reduced scale for a smoother hover on a wider object */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); 
}

/* Optional: Subtle pulse animation for high visibility */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 119, 182, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 119, 182, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 119, 182, 0); }
}

.static-utility-btn {
    /* Apply the pulse effect subtly */
    animation: pulse 2s infinite; 
}

/* --- GLOBAL OVERLAY/MODAL STYLING (The core of the dynamic features) --- */


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.overlay-content {
    background-color: var(--color-white);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--color-primary);
}

/* Specific Search Modal Styling */
.search-box {
    width: 90%;
    max-width: 500px;
    padding: 40px 30px;
    text-align: center;
}

.search-box h3 {
    color: var(--color-dark-bg);
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid var(--color-light-bg);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Specific Project Detail Modal Styling */
.project-detail-box {
    width: 95%;
    max-width: 800px; /* Standard professional width */
    
    /* REVERTED: Back to block layout */
    display: block; 
    gap: 0;
    
    padding: 30px; /* Reduced internal padding */
    max-height: 90vh;
    overflow-y: auto; 
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); 
}

/* Modal Header Content (Visual identity/summary) */
.modal-project-header {
    display: flex; /* Keep image and info side-by-side at the top */
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    
    /* Clean divider under the header */
    border-bottom: 2px solid var(--color-light-bg); 
    border-right: none;
    padding-right: 0;
}

.modal-image-placeholder {
    width: 200px; /* Fixed width for the thumbnail */
    height: 150px;
    background-color: var(--color-light-bg);
    border-radius: 4px;
    flex-shrink: 0;
    margin-bottom: 0;
    border-left: 5px solid var(--color-accent); /* Accent color touch */
}

.modal-header-info {
    padding-top: 0;
    flex-grow: 1;
}

.modal-header-info h2 {
    font-size: 2rem; 
    color: var(--color-primary); /* Primary color for the main title */
    margin-bottom: 10px;
    line-height: 1.2;
}

.modal-tech-stack, .modal-category {
    display: inline-block; /* Tags side-by-side */
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px; /* Pill shape for tags */
    margin-right: 10px; 
    margin-bottom: 0; 
    font-weight: var(--font-weight-medium);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-tech-stack {
    background-color: var(--color-accent);
    color: var(--color-dark-bg);
}

.modal-category {
    background-color: var(--color-dark-bg);
    color: var(--color-white);
}


/* Modal Body Content (The extended information) */
.modal-project-body {
    padding-left: 0; /* Full width content */
}

.modal-project-body h3 {
    color: var(--color-dark-bg);
    margin-top: 30px;
    margin-bottom: 12px;
    
    /* Sleek divider for sub-headers */
    border-left: 3px solid var(--color-primary); 
    padding-left: 10px;
    
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    text-transform: capitalize;
}

.modal-project-body h3:first-child {
    margin-top: 0;
}

.modal-project-body p {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
}

.modal-project-link {
    /* Ensure the button is styled as primary action */
    margin-top: 30px;
    text-align: right; 
    display: inline-block; /* Make it fit-content */
    padding: 12px 25px;
}

.modal-project-body > div:last-child {
    text-align: right;
    padding-top: 20px;
    border-top: 1px solid var(--color-light-bg); /* Divider above the link/action */
}

/* Responsive Adjustments for Modal */
@media (max-width: 600px) {
    .project-detail-box {
        max-width: 95%;
        padding: 20px;
    }
    .modal-project-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .modal-image-placeholder {
        width: 100%;
        height: 180px;
    }
    .modal-header-info h2 {
        text-align: center;
    }
    .modal-tech-stack, .modal-category {
        margin-left: 0;
        margin-right: 10px;
    }
    .modal-project-body h3 {
        font-size: 1.2rem;
    }
}













/* --- UTILITY ADJUSTMENT FOR SMALLER PADDING PROJECTS STORY --- */










.section-padding-small {
    padding: 60px 0; /* Slightly smaller padding than the main sections */
}








/* --- NEW PROJECTS STORY SECTION STYLING --- */






.story-projects {
    background-color: var(--color-white); 
    border-bottom: 1px solid var(--color-light-bg);
}

/* New Grid Class to Swap Columns */
.story-grid-projects-swapped {
    display: grid;
    /* Swaps column order: Accordion (3fr) on left, Text (2fr) on right */
    grid-template-columns: 2fr 3fr; 
    gap: 60px;
    align-items: center;
}

/* Accordion Specific Styling */
.story-accordion {
    padding: 0; /* Remove inner padding */
    background-color: var(--color-white); /* White background for clean look */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-light-bg); /* Subtle outside border */
}

.accordion-item {
    /* Use a stronger, cleaner divider */
    border-bottom: 1px solid var(--color-light-bg); 
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 25px; /* Increased horizontal padding */
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.accordion-header:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.2); /* Focus ring using primary color */
}

/* Hover and Expanded State Styling */
.accordion-header:hover, 
.accordion-header[aria-expanded="true"] {
    background-color: var(--color-light-bg); /* Clean light gray background on hover/active */
}

.accordion-header h3 {
    font-size: 1.15rem; /* Slightly larger text */
    font-weight: var(--font-weight-medium);
    color: var(--color-dark-bg);
    margin: 0;
}

.accordion-header[aria-expanded="true"] h3 {
    color: var(--color-primary); /* Primary color text when active */
}

.accordion-header i.fas:first-child { /* Icon next to text (code, rocket, shield) */
    color: var(--color-primary);
    margin-right: 15px;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.accordion-header[aria-expanded="true"] i.fas:first-child {
    color: var(--color-accent); /* Accent color icon when active */
}

.toggle-icon {
    font-size: 0.9rem;
    color: var(--color-text); /* Standard text color for chevron */
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
    color: var(--color-accent) !important; /* Amber accent color for the active chevron */
}

.accordion-panel {
    padding: 0 25px; /* Match header horizontal padding */
    background-color: var(--color-white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion-panel p {
    font-size: 0.95rem;
    color: var(--color-text);
    padding-top: 0px; /* Removed top padding */
    padding-bottom: 15px; /* Padding for the bottom of the content */
}

/* State for open panel - controlled by JS */
.accordion-panel.open {
    max-height: 300px; /* Increased max-height for safety */
    padding-bottom: 15px;
}





/* New: Wrapper for Left Content */


.header-content-left {
    display: flex;
    align-items: center;
}

/* New: Wrapper for Right Content */


.header-content-right {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between "Click Me" and chevron */
}

/* Arrow Guide Styling (Left of Header Name) */


.arrow-left-guide {
    color: var(--color-primary) !important; /* Ensure blue color */
    margin-right: 10px;
    font-size: 1rem !important;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s;
    display: none; 
}

.accordion-header[aria-expanded="true"] .arrow-left-guide {
    opacity: 1; /* Visible when expanded */
}

/* "Click Me" Text Styling (Right Side) */


.click-me-text {
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    opacity: 0.7;
    transition: opacity 0.3s;
}

/* NEW: Styling for the Arrow next to "Click Me" */
.header-content-right .fas.fa-arrow-left {
    color: var(--color-primary); /* Blue color */
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s;
    /* This arrow should be visible when the text is visible */
}

.accordion-header[aria-expanded="true"] .header-content-right .fas.fa-arrow-left {
    opacity: 0; /* Hide when expanded */
}







/* --- RESPONSIVE ADJUSTMENTS (Ensure the swap works on mobile) --- */

@media (max-width: 1024px) {
    /* Reset the grid to a single column stack on smaller screens */
    .story-grid-projects-swapped {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    /* On small screens, keep text above accordion for best readability */
    .story-accordion {
        order: 1; 
    }
    .story-text {
        order: 0;
    }
    
}


















/* --- GLOBAL OVERLAY/MODAL STYLING (The core of the dynamic features) --- */










.global-overlay {
    display: none; /* Hide by default, without !important */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 2000; 
    backdrop-filter: blur(8px); 
    /* IMPORTANT: Use a transition on opacity for a smooth fade, and rely solely on JS for display: flex */
    opacity: 0; 
    transition: opacity 0.3s ease; 
    pointer-events: none; /* Ignore clicks when hidden */
    
    /* Ensure center alignment, which should already be correct, but confirm */
    align-items: center; 
    justify-content: center;
}




/* New: State applied by JS when modal is open */
.global-overlay.open-modal {
    display: flex;
    opacity: 1;
    pointer-events: auto; /* Allow clicks when open */
}

















/* --- MAIN LAYOUT FOR CONTACT PAGE --- */



.contact-main {
    padding: 80px 0;
    background-color: var(--color-bg-dark); 
    min-height: 100vh;
    color: var(--color-white);
}

.contact-container {
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    border-radius: 12px;
    overflow: hidden;
    min-height: 800px; 
}

/* --- LEFT SIDE: FORM STYLES --- */
.contact-form-section {
    flex: 3; /* Takes up 60% width */
    padding: 60px;
    background: var(--color-gray-dark); /* Slightly lighter background than main */
    display: flex;
    flex-direction: column;
}

.form-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 1.1em;
    color: #9ca3af;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-primary-dark);
    padding-bottom: 15px;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    flex: 1 1 calc(50% - 10px); /* Two columns */
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1 1 100%;
}

label {
    margin-bottom: 8px;
    font-size: 0.95em;
    font-weight: 600;
    color: #d1d5db;
}



textarea {
    resize: vertical;
}

.submit-btn {
    flex: 1 1 100%;
    padding: 16px 25px;
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    font-size: 1.15em;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.submit-btn:hover {
    background-color: #1c4b8b; /* Slightly darker shade on hover */
    transform: translateY(-2px);
}

.submit-btn i {
    margin-left: 10px;
}

.form-footer-note {
    font-size: 0.8em;
    color: #9ca3af;
    margin-top: 15px;
    text-align: right;
}

/* --- RIGHT SIDE: INFO & MAP STYLES --- */
.contact-info-section {
    flex: 2; /* Takes up 40% width */
    padding: 40px;
    background: var(--color-bg-dark); 
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-block h2 {
    font-size: 1.8em;
    color: var(--color-secondary);
    border-bottom: 1px solid #374151;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    line-height: 1.6;
}

.info-item i {
    color: var(--color-primary-dark);
    font-size: 1.3em;
    margin-right: 15px;
    padding-top: 3px;
}

.address {
    font-style: normal;
}

.map-container {
    flex-grow: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
}
.map-placeholder iframe {
    /* Ensure the map fills the container */
    display: block; 
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .contact-container {
        flex-direction: column;
        width: 90%;
        max-width: 900px;
    }
    .contact-form-section, .contact-info-section {
        flex: auto;
    }
    .contact-form-section {
        padding: 40px;
    }
    .form-group {
        flex: 1 1 100%; /* Stack all fields vertically on smaller screens */
    }
}
@media (max-width: 600px) {
    .contact-main {
        padding: 40px 0;
    }
    .contact-form-section {
        padding: 30px;
    }
    .form-title {
        font-size: 2em;
    }
}










/* --- CONTACT PAGE FORM --- */

.contact-form-page input:not([type="checkbox"]), 
.contact-form-page select, 
.contact-form-page textarea {
    padding: 14px;
    border: 2px solid #9CA3AF; 
    border-radius: 6px;
    color: #5e5e5e;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}



.contact-form-page input:not([type="checkbox"]):hover, 
.contact-form-page select:hover, 
.contact-form-page textarea:hover {
    border-color: #9CA3AF; 
    box-shadow: 0 0 5px rgba(156, 163, 175, 0.5); 
    cursor: text;
}



.contact-form-page input:not([type="checkbox"]):focus, 
.contact-form-page select:focus, 
.contact-form-page textarea:focus {
    border-color: var(--color-primary-dark); 
    outline: none;
    box-shadow: 0 0 0 3px #629edb; 
}