/* ============================================
   JM2 ENGINEERING - MAIN STYLES
   Cinematic, GTA VI-inspired design
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Colors */
    --primary: #2f5596;
    --primary-dark: #1e3a6e;
    --primary-light: #4a7bc7;
    --accent: #00d4ff;
    --accent-glow: rgba(0, 212, 255, 0.5);

    /* Darker palette */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-section: #111118;
    --bg-card: #1a1a24;
    --bg-overlay: rgba(0, 0, 0, 0.7);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b8;
    --text-muted: #6a6a75;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(10, 10, 15, 0.9) 0%, rgba(47, 85, 150, 0.3) 50%, rgba(0, 212, 255, 0.1) 100%);

    /* Spacing */
    --header-height: 100px;
    --header-height-scrolled: 70px;
    --section-padding: 100px;
    --container-max: 1400px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-dramatic: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Shadows */
    --shadow-glow: 0 0 30px var(--accent-glow);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* --- Font Face --- */
@font-face {
    font-family: 'Boldfinger';
    src: url('../assets/fonts/boldfinger.ttf') format('truetype'),
         url('../Font/boldfinger.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Boldfinger', 'Impact', sans-serif;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    color: var(--text-secondary);
    max-width: 65ch;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-primary);
}

/* --- Loading Screen --- */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-logo {
    max-width: 300px;
    width: 80%;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.7));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    position: relative;
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition-smooth);
    background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(190,190,190,0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 3px solid #000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.header.scrolled {
    height: var(--header-height-scrolled);
    background: rgba(10, 10, 15, 0.95);
    border-bottom-color: var(--primary);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    height: 80%;
    transition: transform var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 100%;
    width: auto;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 70px;
    padding: 0 1.5rem;
    background: var(--primary);
    color: var(--text-primary);
    font-family: 'Boldfinger', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    text-shadow: -2px 2px 0 rgba(0,0,0,0.5);
    border: none;
    cursor: pointer;
    transform: skewX(-20deg);
    transition: all var(--transition-smooth);
    overflow: hidden;
}

.nav-button span {
    transform: skewX(20deg);
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.nav-button:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-glow);
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button.active {
    background: var(--accent);
    color: var(--bg-dark);
    text-shadow: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-darker);
}

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

.hero-background-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-background-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: skewX(-20deg);
    transform-origin: top right;
    margin-right: -10%;
    border-left: 8px solid var(--primary);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 2;
}

/* Animated gradient background */
.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(47, 85, 150, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 212, 255, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 100%, rgba(47, 85, 150, 0.2) 0%, transparent 50%);
    z-index: 1;
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Floating particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--header-height) 2rem 2rem;
}

.hero-logo {
    max-width: 700px;
    width: 90%;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero-tagline {
    font-family: 'Boldfinger', Impact, sans-serif !important;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--accent);
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-tagline.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease-out 0.5s;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #ffffff;
    font-weight: 600;
    line-height: 1.8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
}

.hero-description.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease-out 0.7s;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: color var(--transition-fast);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.scroll-indicator:hover {
    color: var(--accent);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(0, 157, 255, 0.5));
}

.scroll-indicator-arrow {
    width: 30px;
    height: 50px;
    border: 3px solid currentColor;
    border-radius: 20px;
    position: relative;
}

.scroll-indicator-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        top: 8px;
        opacity: 1;
    }
    50% {
        top: 25px;
        opacity: 0.3;
    }
}

/* --- Services Section --- */
.services {
    background: var(--bg-section);
    scroll-margin-top: var(--header-height);
    overflow-x: clip; /* Allow panels to extend to edges without horizontal scroll */
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-header h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.services-header p {
    margin: 0 auto;
}

.service-panel {
    position: relative;
    width: 100%;
    min-height: 350px;
    overflow: visible;
    margin-bottom: 0;
}

.service-panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease-out;
}

.service-panel:hover .service-panel-bg {
    transform: scale(1.05);
}

.service-panel-content {
    position: relative;
    z-index: 2;
    min-height: 350px;
    width: 100%;
    display: flex;
}

/* Service skew - the blue diagonal background */
.service-panel .service-skew {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100vw;
    opacity: 0;
    display: flex;
    align-items: center;
    background: var(--primary);
    background: linear-gradient(90deg, rgba(0,212,255,1) 0%, rgba(47,85,150,1) 10%, rgba(47,85,150,1) 90%, rgba(0,212,255,1) 100%);
    border: 6px solid #000;
}

/* LEFT panels: Blue on LEFT side, diagonal edge near center
   Blue content area on left, image visible on right */
.service-panel.left .service-skew {
    right: 40%;
    left: auto;
    transform: skewX(15deg);
    justify-content: flex-end;
    padding-right: 8vw;
    border-left: none;
    border-bottom: none;
}

/* RIGHT panels: Blue on RIGHT side, diagonal edge near center
   Image visible on left, blue content area on right */
.service-panel.right .service-skew {
    left: 40%;
    right: auto;
    transform: skewX(-15deg);
    justify-content: flex-start;
    padding-left: 8vw;
    border-right: none;
    border-bottom: none;
}

/* First panel needs top border, last panel needs bottom border */
.service-panel:first-of-type .service-skew {
    border-top: 6px solid #000;
}

.service-panel:last-of-type .service-skew {
    border-bottom: 6px solid #000;
}

.service-panel .service-inner {
    max-width: 500px;
    padding: 2rem;
}

/* Counter-skew to straighten text */
.service-panel.left .service-inner {
    transform: skewX(-15deg);
    text-align: right;
}

.service-panel.right .service-inner {
    transform: skewX(15deg);
    text-align: left;
}

.service-inner h3 {
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.service-inner p {
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-size: 1.1rem;
    max-width: none;
    line-height: 1.7;
}

/* --- Projects Section --- */
.projects {
    background: var(--bg-darker);
    scroll-margin-top: var(--header-height);
}

.projects-header {
    text-align: center;
    margin-bottom: 3rem;
}

.projects-header h2 {
    margin-bottom: 1rem;
}

.projects-header p {
    margin: 0 auto;
}

/* Filter buttons */
.projects-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text-primary);
    font-family: 'Boldfinger', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-smooth);
    transform: skewX(-10deg);
}

.filter-btn span {
    display: block;
    transform: skewX(10deg);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy), var(--shadow-glow);
}

.project-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease-out;
}

.project-card:hover .project-card-image {
    transform: scale(1.1);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

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

.project-card-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.project-card-title {
    font-family: 'Boldfinger', sans-serif;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.project-card-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* --- About / Team Section --- */
.about {
    background: var(--bg-section);
    scroll-margin-top: var(--header-height);
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h2 {
    margin-bottom: 1rem;
}

.about-header p {
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-intro p {
    max-width: none;
    margin: 0 auto;
}

/* Team carousel wrapper */
.carousel-wrapper {
    width: 100%;
    max-width: 1800px;
    margin: 3rem auto 0;
    padding: 0 100px;
    position: relative;
}

/* Team carousel - Custom fade carousel */
.team-carousel {
    width: 100%;
    padding: 50px 0 100px; /* Top padding for dots */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 950px; /* Accommodate tallest card (~800px) + padding */
}

.team-member {
    position: absolute;
    top: 50px; /* Below the dots, cards grow downward */
    width: 280px;
    max-width: 85vw;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid transparent;
    transform-origin: top center;
    /* Smooth fade transitions */
    transition:
        opacity 0.5s ease-out,
        transform 0.5s ease-out,
        filter 0.5s ease-out,
        border-color 0.5s ease-out,
        box-shadow 0.5s ease-out;
}

/* Distance-based styling for carousel - 5 visible cards */
/* Center card - larger with glow */
.team-member.distance-0 {
    filter: brightness(1);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow:
        0 0 30px rgba(0, 212, 255, 0.6),
        0 0 60px rgba(0, 212, 255, 0.3),
        0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Adjacent cards - slightly dimmed */
.team-member.distance-1 {
    filter: brightness(0.75);
}

/* Outer cards - more dimmed */
.team-member.distance-2 {
    filter: brightness(0.55);
}

/* Hidden cards */
.team-member.distance-3 {
    pointer-events: none;
}

/* Carousel navigation buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: transparent;
    border: 3px solid var(--accent);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.carousel-btn:hover {
    background: var(--primary);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
    width: 30px;
    height: 30px;
}

.carousel-btn .arrow {
    fill: var(--accent);
    transition: fill 0.3s ease;
}

.carousel-btn:hover .arrow {
    fill: var(--text-primary);
}

.carousel-btn-prev {
    left: -80px;
}

.carousel-btn-next {
    right: -80px;
}

/* Carousel dots - positioned above the cards */
.carousel-dots {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    opacity: 0.7;
}

.carousel-dot.is-selected {
    opacity: 1;
    background: var(--accent);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.team-member-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    border: 4px solid var(--primary);
    transition: transform var(--transition-smooth);
}

.team-member:hover .team-member-image {
    transform: scale(1.05);
}

.team-member-name {
    text-align: center;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    font-size: clamp(1rem, 4vw, 1.5rem);
    line-height: 1.2;
    max-width: 100%;
}

.team-member-title {
    text-align: center;
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.team-member-bio {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Contact Section --- */
.contact {
    background: var(--bg-darker);
    scroll-margin-top: var(--header-height);
    position: relative;
    z-index: 10;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    margin-bottom: 1rem;
}

.contact-header p {
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: var(--accent);
    margin-bottom: 2rem;
}

.contact-details {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.contact-details svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-details a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.contact-details a:hover {
    color: var(--accent);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-section);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--text-primary);
    font-family: 'Boldfinger', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

.submit-btn.loading .spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form feedback */
.form-feedback {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-feedback.success {
    display: block;
    background: rgba(0, 200, 100, 0.2);
    border: 1px solid rgba(0, 200, 100, 0.5);
    color: #00c864;
}

.form-feedback.error {
    display: block;
    background: rgba(255, 100, 100, 0.2);
    border: 1px solid rgba(255, 100, 100, 0.5);
    color: #ff6464;
}

/* --- Footer --- */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    max-width: 200px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-links h4,
.footer-social h4 {
    color: var(--text-primary);
    font-family: 'Boldfinger', sans-serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--primary);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* --- Mobile Navigation Overlay --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-dark);
    z-index: 1000;
    padding: 100px 2rem 2rem;
    transition: right var(--transition-smooth);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-list li {
    margin-bottom: 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'Boldfinger', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
    background: var(--primary);
    transform: translateX(10px);
}

/* ============================================
   SERVICE DETAIL OVERLAY
   Rockstar-style expandable service panels
   ============================================ */

/* Body state when detail is open */
body.detail-open {
    overflow: hidden;
}

body.detail-open .header {
    opacity: 0;
    pointer-events: none;
}

body.detail-open .service-detail-back {
    opacity: 1;
    visibility: visible;
}

/* Service panel explore hint */
.service-explore {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid var(--accent);
    border-radius: 30px;
    color: var(--accent);
    font-family: 'Boldfinger', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.service-panel:hover .service-explore {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow);
}

/* Service Detail Overlay */
.service-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    z-index: 10000;
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.service-detail-overlay.active {
    pointer-events: all;
}

.service-detail-overlay.active .service-detail-content {
    visibility: visible;
}

/* Back Button */
.service-detail-back {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--accent);
    border-radius: 30px;
    color: var(--accent);
    font-family: 'Boldfinger', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.service-detail-back:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.service-detail-back svg {
    width: 20px;
    height: 20px;
}

/* Detail Content Container */
.service-detail-content {
    min-height: 100vh;
}

/* Hero Section */
.service-detail-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 4rem;
    overflow: hidden;
}

.service-detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 8, 0.3) 0%,
        rgba(5, 5, 8, 0.7) 60%,
        rgba(5, 5, 8, 1) 100%
    );
}

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

.service-detail-title {
    font-family: 'Boldfinger', Impact, sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(0, 157, 255, 0.5);
}

.service-detail-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--accent);
    font-weight: 300;
}

/* Detail Body */
.service-detail-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    background: var(--bg-darker);
}

.service-detail-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.service-detail-section-title {
    font-family: 'Boldfinger', Impact, sans-serif;
    font-size: 1.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Capabilities Grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.capability-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(47, 85, 150, 0.2) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-smooth);
}

.capability-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(47, 85, 150, 0.4) 100%);
}

.capability-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.capability-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.capability-card h3 {
    font-family: 'Boldfinger', sans-serif;
    font-size: 1.2rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.capability-card p {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Additional Services / Benefits Lists */
.service-detail-additional,
.service-detail-software,
.service-detail-benefits {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(47, 85, 150, 0.15) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.additional-list,
.software-list,
.benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.additional-list li,
.software-list li,
.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    padding: 0.5rem 0;
    font-size: 1rem;
}

.additional-list li::before,
.software-list li::before,
.benefits-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.approach-text {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
}

/* CTA Section */
.service-detail-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--bg-card) 100%);
    border-radius: 12px;
    margin-top: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-detail-cta p {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--accent);
    color: var(--bg-dark);
    font-family: 'Boldfinger', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 30px;
    transition: all var(--transition-fast);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-detail-hero {
        height: 50vh;
        padding: 2rem;
    }

    .service-detail-body {
        padding: 2rem 1rem 4rem;
    }

    .service-detail-back {
        top: 15px;
        left: 15px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-intro {
        font-size: 1.1rem;
    }
}
