:root {
    /* Vertical Precision Theme Palette */
    --primary-blue: #0A2342;
    /* Deep Navy Blue - Professionalism & Depth */
    --accent-orange: #FF6600;
    /* Safety Orange - Visibility & Action */
    --steel-grey: #4A5568;
    /* Structural Grey */
    --concrete-light: #F7F9FC;
    /* Off-white Background */

    --bg-color: #FFFFFF;
    --bg-light: var(--concrete-light);
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --line-color: #E2E8F0;

    --font-main: 'Inter', sans-serif;
    --nav-height: 60px;
    --border-radius: 8px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 300;
    padding-top: var(--nav-height);
    /* Offset for fixed nav */
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

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

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

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 60px;
    font-weight: 300;
    color: var(--text-primary);
}

.apple-img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    /* Removed saturate(0) to keep images colorful always */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-img:hover {
    transform: scale(1.02);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.nav-logo {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--accent-orange);
}

.nav-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.nav-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

/* HERO SECTION */
.hero {
    background-image: url('images/hero_main.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax feel */
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* Removed negative margin to let hero sit naturally below fixed nav (body padding handles offset) */
}

/* TRUST BAR "PIPE" */
.trust-bar {
    background-color: var(--primary-blue);
    /* Match hero theme or maybe slightly darker/lighter */
    color: #FFF;
    padding: 24px 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-bar-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.trust-item i {
    color: var(--accent-orange);
    font-size: 1.4rem;
}

/* Override body padding for this page if needed or just handle here. 
   Actually, body has padding-top var(--nav-height). 
   To make hero full screen behind nav, we might need a specific adjustment, 
   but for now let's just make it look good. 
*/

.hero-container-centered {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-content-wrapper {
    max-width: 900px;
    margin: 0 auto;

    /* iOS Liquid Gloss Card Style */
    background: rgba(10, 35, 66, 0.35);
    /* Dark gloss to maintain text contrast */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 30px;
    padding: 60px 40px;
}

.hero-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    font-weight: 600;
}

.hero-title {
    font-size: 5rem;
    color: #FFFFFF;
    margin-bottom: 32px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -2px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Cleaned up area */

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--accent-orange);
    color: #FFF;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #E65100;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    margin-left: 16px;
}

.btn-secondary-white {
    display: inline-block;
    padding: 16px 40px;
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-secondary-white:hover {
    background-color: #FFFFFF;
    color: var(--primary-blue);
}

/* PHILOSOPHY */
.philosophy {
    padding: 100px 0;
}

.philosophy-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.35rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.philosophy-text p {
    margin-bottom: 32px;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--bg-color);
    padding: 40px;
    border: 1px solid var(--line-color);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: transparent;
}

/* Icon Styles */
.icon-wrapper {
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--text-primary);
}

.service-icon {
    display: inline-block;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    font-weight: 500;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* TECHNICAL / SPLIT LAYOUT */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.inventory-features {
    list-style: none;
    margin-top: 32px;
    display: grid;
    gap: 20px;
}

.inventory-features li {
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 15px;
    /* Space between icon and text */
}

.tech-icon {
    font-size: 1.2rem;
    color: var(--text-primary);
    width: 25px;
    /* Fixed width for alignment */
    text-align: center;
}

/* PORTFOLIO LIST */
.portfolio-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Feature Sections */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: #FFF;
    padding: 32px;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--primary-blue);
    /* Theme accent */
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-orange);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 24px;
}

.section-subtitle {
    display: block;
    color: var(--accent-orange);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 16px;
}in nav bar

.cta-section {
    background-color: var(--primary-blue);
    color: #FFF;
    padding: 80px 0;
    text-align: center;
    border-radius: 0;
    /* Full width usually */
}

.cta-section h2 {
    color: #FFF;
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.portfolio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid var(--line-color);
    transition: padding 0.3s ease;
}

.portfolio-item:first-child {
    border-top: 1px solid var(--line-color);
}

.portfolio-item:hover {
    padding-left: 16px;
    padding-right: 16px;
    border-color: var(--text-primary);
}

.project-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.project-type {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FOOTER */
footer {
    padding: 80px 0;
    background-color: var(--primary-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-block h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #FFFFFF;
}

.footer-block a {
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid transparent;
}

.footer-block a:hover {
    color: #FFFFFF;
    border-color: #FFFFFF;
}

/* Gallery Base Styles */
.gallery-section {
    padding-bottom: 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #000;
    height: 300px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.95;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
    opacity: 1;
}

/* Overlay Effect */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    color: white;
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-icon {
    transform: translateY(0);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--accent-orange);
}

/* RESPONSIVE */

/* Tablet & Smaller Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .split-layout,
    .services-grid {
        gap: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Tablet Portrait & Mobile Landscape (max-width: 900px) */
@media (max-width: 900px) {

    .hero-layout,
    .split-layout,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-content-wrapper {
        padding: 40px 30px;
    }
}

/* Featured Video Section */
.featured-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background: #000;
    margin-top: 20px;
}

.featured-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Devices (max-width: 600px) */
@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }

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

    .hero-title {
        font-size: 2.5rem;
        /* Significantly reduced for mobile */
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-secondary-white {
        width: 100%;
        /* Full width buttons for easier tapping */
        padding: 14px 20px;
        margin-left: 0;
        margin-bottom: 15px;
        /* Stack buttons */
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .trust-bar-content {
        flex-direction: column;
        gap: 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        /* Force single column */
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        /* Smaller grid items */
        gap: 15px;
    }

    .gallery-item {
        height: 200px;
        /* Reduced height */
    }

    .video-container {
        border-radius: 16px;
    }
}