/* Ensure about page intro and highlight texts are always centered */
.centered-story-intro, .highlight-text {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
/* Ensure CTA text is always centered */
.cta-text {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
/* =============== EXPERTISE SECTION STYLES =============== */
.expertise-section {
    background-color: #0d0d0d;
    padding-top: 100px;
    padding-bottom: 40px;
    color: #fff;
.trust-signals-section {
    padding-top: 40px;
}
}
.expertise-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.expertise-header {
    text-align: center;
    margin-bottom: 60px;
}
.expertise-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.expertise-subtitle-centered {
    font-size: 1.15rem;
    color: #ccc;
    margin: 0 auto 2rem auto;
    text-align: center;
}
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.expertise-card {
    background-color: #1a1a1a;
    padding: 40px;
    border: 1px solid #222;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    .expertise-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .expertise-header h2 {
        font-size: 2.5rem;
    }
}
.trust-signals-section {
    background: #262b33;
}
.principles-section {
    background: #232323;
}
.faq-section {
    background: #101113;
}
.section-divider {
    line-height: 0;
    margin: 0;
    padding: 0;
}
/* FAQ Accordion Styles */
.faq-accordion-container {
    background: #101113;
    border-radius: 16px;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.13);
    padding: 2.5rem 2rem 2.5rem 2rem;
    max-width: 750px;
    margin: 3rem auto 3rem auto;
    border: 1.5px solid #232323;
    transition: box-shadow 0.2s, border 0.2s;
}
.faq-title {
  text-align: center;
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 2.2rem;
  letter-spacing: 0.01em;
}
.faq-accordion {
    border-bottom: 1px solid #232323;
    background: transparent;
    transition: background 0.2s;
}
.faq-accordion.open {
    background: #181a1b;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    font-size: 1.18rem;
    font-weight: 600;
    padding: 1.2rem 0 1.2rem 0;
    cursor: pointer;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}
.faq-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}
.faq-accordion.open .faq-arrow {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
    color: #ccc;
    padding: 0 0;
}
.faq-accordion.open .faq-answer {
    max-height: 200px;
    margin-bottom: 1.2rem;
    padding: 0.5rem 0 1.2rem 0;
}

/* Improved spacing for about page story container */
.improved-story-spacing {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

/* Center the intro paragraph on about page */
.centered-story-intro {
    text-align: center;
    font-size: 1.22rem;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
}
/* Centered subtitle for expertise section */
.expertise-subtitle-centered {
    text-align: center;
    margin: 0 auto 2rem auto;
    max-width: 700px;
    font-size: 1.15rem;
    color: #ccc;
}
/* Centered subtitle for principles section */
.principles-subtitle-centered {
    text-align: center;
    margin: 0 auto 2rem auto;
    max-width: 700px;
    font-size: 1.15rem;
    color: #ccc;
}
/* =============== EXPERTISE SECTION STYLES =============== */

.expertise-section {
    width: 100%;
    padding: 70px 0 60px 0;
    text-align: center;
    background-color: #101113;
    color: #fff;
}

.expertise-header {
    margin-bottom: 50px;
}

.expertise-header h2 {
    font-size: 2.4rem;
    margin-bottom: 1.2rem;
}

.expertise-header p, .expertise-subtitle-centered {
    color: #bdbdbd;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.expertise-card {
    background-color: #181a1b;
    padding: 36px 28px;
    border: 1.5px solid #232323;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
}

.expertise-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.expertise-card i {
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
}

@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    .expertise-section {
        padding: 60px 5%;
    }
    .expertise-header h2 {
        font-size: 2.1rem;
    }
}

.trust-signals-section {
    background: #101113;
    padding: 2.5rem 0 2.5rem 0;
}
.trust-signals-container {
    max-width: 900px;
    text-align: center;
}
.trust-signals-title {
    margin-bottom: 1.5rem;
    color: #fff;
}

/* --- About Page Story Section Upgrade --- */
.story-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2.5rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.08);
  text-align: center;
}
.section-header {
  margin-bottom: 2.2rem;
  text-align: center;
}
.story-content {
  text-align: center;
  font-size: 1.18rem;
  color: var(--color-text-primary);
  line-height: 1.8;
}
.story-content p {
    margin-bottom: 1.5rem;
}
.story-content .highlight-text {
    color: #0078d4;
    font-weight: 600;
    background: linear-gradient(90deg,rgba(0,120,212,0.08),rgba(0,120,212,0.02));
    border-left: 4px solid #0078d4;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    max-width: 90%;
}

/* Always center about page intro and highlight texts */
.centered-story-intro, .highlight-text {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* --- Hero Background Image --- */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: auto;
    opacity: 0.6;
    filter: brightness(0.9);
    z-index: var(--z-hero-bg);
    pointer-events: none;
    transition: opacity 0.7s var(--transition-smooth);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* --- Hero Overlay: subtle dark gradient for text readability --- */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.75) 100%);
    z-index: var(--z-hero-overlay);
    pointer-events: none;
}
@media (min-width: 1200px) {
  .hero-bg-image {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    max-height: 1200px;
  }
}
@media (max-width: 768px) {
  .hero-bg-image {
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    max-height: 600px;
    filter: brightness(0.95);
  }
}
/**
 * ===================================================================
 * Elite Install - Awwwards Edition Final Stylesheet (Reverted Nav)
 * Version: 9.1
 * ===================================================================
 *
 * This stylesheet implements an award-worthy professional design with
 * the original navigation structure. It includes styles for all core
 * components and new Awwwards-level features like the project gallery.
 *
 * ===================================================================
 */


/* --- 1. CSS Variables (Root) --- */
:root {
    --color-primary: #007BFF; /* A slightly more vibrant blue */
    --color-primary-rgb: 0, 123, 255;
    --color-background-dark: #0A0A0A; /* Darker, richer black */
    --color-background-med: #141414;
    --color-background-light: #1C1C1C;
    --color-text-primary: #EAEAEA;
    --color-text-secondary: #A0A0A0;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-translucent: rgba(255, 255, 255, 0.05);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 1240px;
    --container-padding: 2rem;
    --header-main-height: 80px; /* Slightly shorter header */
    --section-padding: 7rem 0;
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --focus-outline: 2px solid var(--color-primary);
    --focus-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.2);
    --z-header: 1000;
    --z-hero-content: 3;
    --z-hero-overlay: 2;
    --z-hero-bg: 1;
    --z-backtotop: 2000;
    --z-skiplink: 10000;
}

/* --- 2. Global Styles & Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    background-color: var(--color-background-dark); /* Set base background color */
}
body {
    font-family: var(--font-primary);
    background-color: var(--color-background-dark);
    background-image: linear-gradient(180deg, var(--color-background-dark) 0%, #000000 100%), url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231A1A1A' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}
body.mobile-nav-open {
    overflow: hidden;
}
img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 3. Typography --- */
h1, h2, h3, h4 {
    color: var(--color-white);
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
}
h1 { font-size: clamp(3rem, 6vw + 1rem, 5.5rem); }
h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h3 { font-size: 1.5rem; }
p {
    margin-bottom: 1.5rem;
    max-width: 65ch;
    color: var(--color-text-secondary);
}
p:last-child { margin-bottom: 0; }
a {
    color: var(--color-text-primary);
    text-decoration: none;
}

/* --- 4. Layout & Grid --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ADD THESE STYLES FOR THE SKIP LINK */
.skip-link {
    position: absolute;
    top: -100px; /* Hides the link off-screen */
    left: 1rem;
    background: var(--color-white);
    color: var(--color-black);
    padding: 1rem 1.5rem;
    z-index: var(--z-skiplink);
    border-radius: 6px;
    font-weight: 600;
    transition: top 0.3s ease;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
}
.skip-link:focus, .skip-link:focus-visible {
    top: 1rem; /* Brings the link into view when it receives keyboard focus */
    outline: var(--focus-outline);
    box-shadow: 0 4px 24px 0 rgba(0,191,255,0.13);
}

.section {
    padding: var(--section-padding);
}
/* --- 5. Header & Navigation (Reverted) --- */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: var(--z-header);
    background-color: rgba(10, 10, 10, 0.7); /* Darker, more translucent base */
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--color-border-translucent);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.main-header.is-scrolled {
    background-color: rgba(10, 10, 10, 0.85);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-main-height);
}
.logo {
    display: flex;
    align-items: center;
}
.site-logo-image {
    height: 100px;
    width: auto;
}
.nav-links {
    display: none;
    list-style: none;
    gap: 2.5rem;
}
@media (min-width: 769px) {
    .nav-links { display: flex; }
}
.nav-links a {
    color: var(--color-text-secondary); /* Softer color for inactive links */
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0.25rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
    color: var(--color-text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; /* Give it some space */
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
    background: var(--color-text-primary); /* Different color for the current page */
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    z-index: 1001;
    padding: 0.75rem;
    margin: -0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
    background-color: rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        font-size: 1.5rem;
        transform: translateX(100%);
        transition: transform var(--transition-smooth);
    }
    .mobile-nav-open .nav-links {
        transform: translateX(0);
    }
    .mobile-menu-toggle .icon-close { display: none; }
    .mobile-menu-toggle .icon-open { display: block; }
    .mobile-nav-open .mobile-menu-toggle .icon-close { display: block; }
    .mobile-nav-open .mobile-menu-toggle .icon-open { display: none; }
}

/* --- 6. Hero Section --- */
.hero {
    position: relative;
    display: flex;
    align-items: center; /* Vertically center content */
    min-height: 90vh; /* Reduced height slightly */
    padding: 6rem 0;
    overflow: hidden;
    background: transparent; /* The body now has the gradient */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(10, 10, 10, 0.1) 0%, var(--color-background-dark) 80%);
    z-index: var(--z-hero-overlay);
}

#hero-canvas-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: var(--z-hero-bg);
    opacity: 0.15; /* Softer particles */
    pointer-events: none;
    transition: opacity 0.7s var(--transition-smooth);
}
.hero-content {
    position: relative;
    z-index: var(--z-hero-content);
    text-align: left;
    padding-top: 0; /* Remove padding as we are using flex alignment */
    padding-bottom: 0;
}

.hero-text-container {
    max-width: 700px; /* Wider for more impact */
    margin: 0;
}

.hero-headline-deconstruct {
    font-size: clamp(3rem, 6vw, 5rem); /* Slightly adjusted size */
    line-height: 1.15;
    font-weight: 700; /* Bolder */
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
}

.hero-headline-deconstruct span {
    white-space: nowrap;
    display: inline-block; /* This was changed from block */
    opacity: 0; /* Set initial opacity for animation */
    visibility: hidden; /* Hide until animation starts */
}

.hero-headline-deconstruct .accent-text {
    color: var(--color-primary);
    text-shadow: 0 0 25px rgba(var(--color-primary-rgb), 0.3);
}

.hero .subtitle {
    font-size: 1.125rem; /* Slightly smaller for better hierarchy */
    max-width: 55ch; /* More readable line length */
    margin: 0 0 2.5rem 0;
    text-align: left;
    color: var(--color-text-primary);
    opacity: 0.85;
    line-height: 1.8;
}

/* --- 7. Buttons --- */
.btn {
    display: inline-flex;
    padding: 0.9rem 2.2rem; /* Adjusted padding */
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease; /* Smoother transition */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    will-change: transform, box-shadow;
    outline: none;
    min-width: 160px;
    justify-content: center;
    letter-spacing: 0.01em;
}
.btn:hover, .btn:focus-visible {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.2);
    outline: var(--focus-outline);
    outline-offset: 2px;
}
.btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.btn-primary {
    background: linear-gradient(45deg, var(--color-primary) 0%, #0056b3 100%);
    color: var(--color-white);
    border: none;
}
.btn-outline {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text-primary);
}

.btn-outline:hover, .btn-outline:focus-visible {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.cta-buttons {
    display: flex;
    justify-content: flex-start; /* Changed from center to flex-start */
    gap: 1.5rem;
}

/* --- 8. Core Sections --- */
.section-accented { 
    background-color: var(--color-background-med);
    border-top: 1px solid var(--color-border-translucent);
    border-bottom: 1px solid var(--color-border-translucent);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.feature-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--color-border-translucent);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.feature-icon { margin-bottom: 1.5rem; }
.feature-icon svg { width: 40px; height: 40px; color: var(--color-white); }
.feature-card h3 { margin-bottom: 1rem; }
.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(var(--color-primary-rgb), 0.5);
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb),0.1) 0%, rgba(255,255,255,0.03) 100%);
}
.cta-section {
    padding: 8rem 0;
    text-align: center;
}
.cta-section h2 { margin-bottom: 1.5rem; }
.cta-section p { max-width: 60ch; margin: 0 auto 3rem auto; }

.section-full-width {
    padding-left: 0;
    padding-right: 0;
}

.section-full-width .container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.testimonial-section {
    background-color: var(--color-background-med);
    padding: 6rem 0;
    text-align: center;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-quote {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
    position: relative;
    padding: 0 2rem;
}

.testimonial-quote::before,
.testimonial-quote::after {
    content: '“';
    font-size: 5rem;
    color: rgba(var(--color-primary-rgb), 0.3);
    position: absolute;
    line-height: 1;
}

.testimonial-quote::before {
    top: -1rem;
    left: -1rem;
}

.testimonial-quote::after {
    content: '”';
    bottom: -3rem;
    right: -1rem;
}

.testimonial-author {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.testimonial-author span {
    color: var(--color-text-primary);
    font-weight: 700;
}

/* --- 9. Footer --- */
.main-footer {
    padding: 3.5rem 0 1.5rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.2rem;
    margin-bottom: 1.5rem;
}
.footer-column h4 { margin-bottom: 1.5rem; }
.site-logo-image-footer { max-width: 180px; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 1rem; }
.footer-column ul a { color: var(--color-text-secondary); }
.footer-column ul a:hover { color: var(--color-white); }
.footer-column address { font-style: normal; line-height: 1.8; }
.footer-bottom {
    text-align: center;
    padding-top: 0.8rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.98rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.01em;
    margin-top: 0.5rem;
}

/* --- 10. Animation Primitives (Unified) --- */
.anim-fade-in-up {
    opacity: 0;
    transform: translateY(60px) translate3d(0,0,0);
    transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.anim-fade-in-up.visible {
    opacity: 1;
    transform: none;
}
.anim-slide-in-left {
    opacity: 0;
    transform: translateX(-60px) translate3d(0,0,0);
    transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.anim-slide-in-left.visible {
    opacity: 1;
    transform: translate3d(0,0,0);
}
.anim-slide-in-right {
    opacity: 0;
    transform: translateX(60px) translate3d(0,0,0);
    transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.anim-slide-in-right.visible {
    opacity: 1;
    transform: none;
}

/* Focus and Accessibility */
a:focus, a:focus-visible, button:focus, button:focus-visible, input:focus, input:focus-visible, textarea:focus, textarea:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 2px;
    box-shadow: var(--focus-shadow);
    background: rgba(0,191,255,0.08);
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: var(--z-backtotop);
  display: flex;
  background: #0078d4;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s, box-shadow 0.2s;
  outline: none;
}
#backToTop:hover, #backToTop:focus-visible {
  background: #005fa3;
  transform: translateY(-4px) scale(1.08);
  outline: var(--focus-outline);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Sticky CTA Mobile Styles */
.sticky-cta {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 1000;
  padding: 1.1em 2.2em;
  background: #0078d4;
  color: #fff;
  border-radius: 32px;
  font-weight: 700;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.sticky-cta:hover, .sticky-cta:focus-visible {
  background: #005fa3;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

  .sticky-cta.sticky-cta-hidden {
    transform: translateY(200%);
  }

  .trust-signals-section {
    background: #101113;
    padding: 2.5rem 0 3rem 0;
  }

  .trust-signals-container {
      max-width: 900px;
      text-align: center;
  }

  .trust-signals-title {
      margin-bottom: 1.5rem;
      color: #fff;
  }

  .trust-signals-list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      list-style: none;
      padding: 0;
      margin: 0 auto 2.5rem auto;
      max-width: 700px;
  }

  .trust-signals-list-item {
      text-align: left;
      color: #fff;
      font-size: 1.13rem;
  }

  .trust-signals-button {
      min-width: 220px;
  }

  .faq-section {
      background: var(--color-gray-light);
      padding: 4rem 0 3rem 0;
  }

  .faq-container {
      max-width: 900px;
  }

  .faq-title {
      text-align: center;
      margin-bottom: 2rem;
  }

  .faq-list {
      display: grid;
      gap: 2rem;
  }

  .cta-section-bottom {
      background: var(--color-black);
      padding: 4rem 0 3rem 0;
  }

  .cta-container {
      max-width: 700px;
      text-align: center;
  }

  .cta-title {
      margin-bottom: 1.2rem;
      color: #fff;
  }

  .cta-text {
      margin-bottom: 2.2rem;
      color: #fff;
  }

  .cta-button {
      min-width: 220px;
  }

  .principles-section .section-header {
      margin-bottom: 3.5rem;
      text-align: center;
  }

  .principles-section .section-header h2 {
      margin-bottom: 1.2rem;
  }

  .principles-section .section-header p {
      margin-bottom: 0;
  }

  .principles-grid {
      gap: 2.5rem;
  }

  .principle-card {
      padding: 2.5rem 2rem;
  }

  .principle-icon {
      margin-bottom: 1.2rem;
  }

  .principle-card h3 {
      margin-bottom: 0.7rem;
  }

  .principle-card p {
      margin-bottom: 0;
  }

/* Hero Particle Effects */
#hero-canvas-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

/* Hero Text Animation */
.hero-headline-deconstruct span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-headline-deconstruct.visible span {
  opacity: 1;
  transform: translateY(0);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* FAQ Section */
.faq-list {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-list h3 {
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.faq-list p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Trust Signals Section */
.trust-signals {
  background: var(--color-gray-dark);
  padding: 4rem 0;
}

.trust-signals ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
}

.trust-signals li {
  color: #fff;
  font-size: 1.13rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-signals li::before {
  content: "✔";
  color: #0078d4;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .trust-signals ul {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .sticky-cta {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.9em 1.8em;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .sticky-cta,
  .service-card,
  #backToTop,
  .hero-headline-deconstruct span,
  #hero-canvas-container {
    transition: none !important;
    animation: none !important;
  }

  .anim-fade-in-up,
  .anim-slide-in-left,
  .anim-slide-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- 11. Accessibility Enhancements --- */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .anim-fade-in-up { opacity: 1; transform: none; }
}

/* Back to Top Button Styles */
#backToTop {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: var(--z-backtotop);
    width: 48px;
    height: 48px;
    background: var(--color-white);
    color: var(--color-black);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: var(--color-gray-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Mobile Navigation Enhancement */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: var(--color-black);
    padding: 5rem 2rem;
    z-index: 999;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
}

/* Animation Enhancements */
.anim-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Canvas Container Enhancement */
#hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

/* --- 12. Responsive Design --- */

/* --- 12. Responsive Design: Mobile Optimization (iPhone & Small Screens) --- */
@media (max-width: 768px) {
    html {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    body {
        padding: 0;
        font-size: 1rem;
        line-height: 1.6;
        -webkit-tap-highlight-color: transparent;
    }
    .main-header {
        height: auto;
        min-height: 60px;
        padding: 0 0.5rem;
        box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
    }
    .nav-container {
        height: auto;
        min-height: 60px;
        padding: 0 0.5rem;
    }
    .site-logo-image {
        height: 60px;
        max-width: 120px;
    }
    .hero {
        min-height: 70vh;
        padding: 3rem 0 2rem 0;
    }
    .hero h1 {
        font-size: 2.1rem;
        word-break: break-word;
    }
    .hero .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .container {
        padding: 0 1rem;
    }
    .section {
        padding: 3rem 0;
    }
    .features-grid, .services-grid, .projects-grid, .project-gallery-grid, .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
    .feature-card, .service-card, .project-card, .project-gallery-card {
        padding: 1.25rem;
    }
    .cta-section {
        padding: 3rem 0;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .cta-buttons .btn {
        width: 100%;
        max-width: 100%;
        font-size: 1.1rem;
        padding: 1.1rem 0;
    }
    .btn {
        min-height: 48px;
        font-size: 1.1rem;
        padding: 1.1rem 1.5rem;
    }
    .main-footer {
        padding: 3rem 0 2rem 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .footer-column {
        margin-bottom: 1.5rem;
    }
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.95rem;
    }
    .project-card-content, .project-card-title {
        padding: 1rem;
        font-size: 1.1rem;
    }
    .project-card-title {
        font-size: 1.2rem;
    }
    .project-image {
        height: 160px;
        font-size: 1.1rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        font-size: 1rem;
        padding: 0.9rem;
    }
    .header-actions {
        gap: 0.5rem;
    }
    .header-phone, .btn-header-quote {
        font-size: 1rem;
        padding: 0.7rem 1.1rem;
    }
    .skip-link {
        left: 0.5rem;
        padding: 0.7rem 1rem;
        font-size: 1rem;
    }
    #backToTop {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* --- 13. Awwwards: Project Gallery & Case Study --- */
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.project-gallery-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    color: var(--color-white);
    transition: transform 0.5s var(--transition-smooth);
}
.project-gallery-card:hover { transform: translateY(-10px); }
.project-card-image {
    position: absolute;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.8s var(--transition-smooth);
}
.project-gallery-card:hover .project-card-image { transform: scale(1.05); }
.project-card-overlay {
    position: absolute;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%);
}
.project-card-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 2.5rem;
}
.project-card-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.project-card-cta {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s var(--transition-smooth);
}
.project-gallery-card:hover .project-card-cta {
    opacity: 1;
    transform: translateY(0);
}
.case-study-hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: flex-end;
    color: var(--color-white);
    padding-bottom: 8rem;
}
.case-study-hero-bg {
    position: absolute;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}
.case-study-hero-bg::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
}
.project-overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5rem;
}
.project-stats {
    background: var(--color-gray-dark);
    padding: 2.5rem;
    border-radius: 16px;
    position: sticky;
    top: 120px;
}
.project-stats ul { list-style: none; }
.full-width-image-showcase {
    height: 80vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: var(--section-padding) 0;
}
@media (max-width: 768px) {
    .project-gallery-grid { grid-template-columns: 1fr; }
    .project-overview-grid { grid-template-columns: 1fr; }
}

/* --- 14. Contact Page Styles --- */

.contact-page-header {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/contact-hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 8rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Make the form column slightly wider */
    gap: 4rem;
    align-items: start;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-gray-dark);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item .icon {
    margin-right: 1.5rem;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.contact-info-item h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-info-item p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments for the contact page */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* --- 15. Services Page Styles --- */

.services-grid {
    display: grid;
    /* Creates 3 columns on desktop, 2 on tablet, and 1 on mobile */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-gray-dark);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border-hover);
    background-color: rgba(255, 255, 255, 0.05);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--color-white);
    font-size: 1.5rem;
}

.service-card p {
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* --- 16. Projects Page Styles --- */

.projects-grid {
    display: grid;
    /* Creates 2 columns on desktop and 1 on mobile */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--color-gray-dark);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: hidden; /* Ensures the image placeholder doesn't bleed out */
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border-hover);
}

.project-image {
    background-color: #333; /* A placeholder color */
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px; /* Gives the placeholder a consistent size */
    border-bottom: 1px solid var(--color-border);
}

.project-content {
    padding: 2.5rem;
}

.project-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.project-content p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    word-break: keep-all;
    white-space: normal;
    hyphens: none;
    overflow-wrap: normal;
    line-break: strict;
    text-wrap: balance;
    letter-spacing: -0.01em;
}

.hero-headline-deconstruct {
    word-break: keep-all;
    white-space: normal;
    hyphens: none;
    overflow-wrap: normal;
    line-break: strict;
    text-wrap: balance;
    letter-spacing: -0.01em;
}

.project-content p strong {
    color: var(--color-text-primary);
    font-weight: 500;
}

.project-highlight {
    background-color: rgba(0,0,0,0.2);
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--color-border-hover);
    border-radius: 4px;
    font-style: italic;
    color: var(--color-text-secondary);
}

/* --- 17. Header Action Buttons --- */

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-phone {
    color: var(--color-text-primary);
    font-weight: 500;
    display: none; /* Hidden on mobile by default */
}

.btn-header-quote {
    display: none; /* Hidden on mobile by default */
}

@media (min-width: 992px) {
    /* Show on screens larger than tablets */
    .header-phone {
        display: inline-block;
    }
    .btn-header-quote {
        display: inline-flex;
        padding: 0.75rem 1.5rem; /* Make it a little smaller than other buttons */
    }
}

@media (max-width: 768px) {
    .header-actions {
        gap: 1rem; /* Adjust gap for mobile */
    }
}