/* -------------------- BASE RESET AND CORE TYPOGRAPHY ---------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/Inter-VariableFont_opsz,wght.woff2') format('truetype-variations');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/Inter-Italic-VariableFont_opsz,wght.woff2') format('truetype-variations');
}
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --text-light: #ffffff;
    --text-muted: #8e8e93;
    --accent-orange: #ff6600;
    --gradient-warm: linear-gradient(90deg,rgba(207, 86, 0, 1) 0%, rgba(122, 53, 0, 1) 50%, rgba(71, 43, 0, 1) 100%);
    --site-padding: 10rem 6rem;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}


/* ================================================================= */
/* MAIN NAVIGATION                                                   */
/* ================================================================= */


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.navbar {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.logo {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -1px;
    text-decoration: none !important;
}
.logo a {
    text-decoration: none !important;
    color: white !important;
}
.logo a.active {
        color: white !important;
}
.logo span {
    color: var(--accent-orange);
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 3.5rem;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-light);
}

details {
  position: relative;
  display: inline-block;
}

summary {
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  list-style: none; /* Removes the default arrow in some browsers */
  border-radius: 4px;
}

summary::-webkit-details-marker {
  display: none; /* Removes the default arrow in Chrome/Safari */
}


/* ================================================================= */
/* MOBILE NAVIGATION                                */
/* ================================================================= */



/* Ensure Header holds the toggle */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

/* Close Button Style */
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
}
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #050505;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transform: translateY(-100%); /* Hidden state */
    transition: transform 0.4s ease-in-out;
}
.mobile-nav.active {
    transform: translateY(0); /* Visible state */
}
.mobile-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}
.mobile-nav ul li {
    margin: 30px 0;
}
.mobile-nav ul li a {
    color: #fff;
    font-size: 2rem;
    text-decoration: none;
    font-weight: 300;
}
/* --- Toggle Animation (Optional "X" effect) --- */
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile CTA (Visible only in Drawer) --- */
.btn-nav-mobile {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-nav-mobile:hover {
    background: var(--text-light);
    color: var(--bg-dark);
    transform: translateY(-2px);
}




/* ================================================================= */
/* GLOBAL NAVIGATION DROPDOWN SYSTEM                                 */
/* ================================================================= */




/* Desktop Specific Constraints */
@media (min-width: 951px) {
    .nav-links li.dropdown {
        position: relative; /* Anchors the absolute positioned child menu */
    }

    .dropdown-toggle .arrow {
        font-size: 0.65rem;
        margin-left: 4px;
        transition: transform 0.2s ease;
        display: inline-block;
        vertical-align: middle;
    }

    /* Hidden state overlay card */
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background-color: #121212; /* Matches your --bg-card surface color */
        border: 1px solid #242424;  /* Matches your dark-border layout lines */
        min-width: 220px;
        border-radius: 8px;
        padding: 10px 0;
        list-style: none;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease, visibility 0.2s;
        z-index: 99999;
    }

    /* Arrow pointer block */
    .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -6px;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
        width: 10px;
        height: 10px;
        background-color: #121212;
        border-left: 1px solid #242424;
        border-top: 1px solid #242424;
    }

    .dropdown-menu li {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .dropdown-menu li a {
        display: block;
        padding: 12px 20px;
        color: #aaaaaa;
        font-size: 0.95rem;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
        text-align: left;
    }

    /* Active Interactive Hover States */
    .nav-links li.dropdown:hover .dropdown-menu {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transform: translateX(-50%) translateY(5px);
    }

    .nav-links li.dropdown:hover .dropdown-toggle .arrow {
        transform: rotate(180deg);
        color: #ff6600; /* --accent-orange */
    }

    .dropdown-menu li a:hover {
        background-color: #1a1a1a;
        color: #ffffff;
    }
}

/* Mobile Drawer Constraints */
@media (max-width: 950px) {
    .mobile-services-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: left;
    }

    .mobile-group-title {
        color: #fff;
        font-size: 1.5rem;
        font-weight: 700;
        padding: 15px 0 5px 0;
        margin-bottom: 5px;
        border-bottom: 1px solid #1a1a1a;
    }
}



/* ================================================================= */
/* GLOBAL BUTTIONS                                                   */
/* ================================================================= */



.btn {
    padding: 0.9rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-nav {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-nav:hover {
    background: var(--text-light);
    color: var(--bg-dark);
    transform: translateY(-2px);
}
.btn-primary {
    background-color: var(--accent-orange);
    color: black;
}
.btn-primary:hover {
    background-color: #e04f0f;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 91, 20, 0.2);
}

/* ================================================================= */
/* HERO IMAGE                                                        */
/* ================================================================= */


.hero-wrapper {
    background: var(--gradient-warm);
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    padding: 14rem 6rem 8rem 6rem;
    
    /* Establish stacking context */
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.hero-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background-image: url("images/guelph-marketing-web-design-services.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    mix-blend-mode: screen; 
    opacity: 0.09;
}
.hero-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 80%;
    pointer-events: none;
    z-index: 3;
    background-image: url("images/our-lady-wireframe.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right center;
    mix-blend-mode: overlay;
    opacity: 0.75;
}
.hero-content {
    position: relative;
    z-index: 4;
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
}
.hero-text h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    color: var(--text-light);
}
/* --- Inner Layout Elements --- */
.greeting {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}
h1 {
    font-size: 6.5rem;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 6rem;
    color: var(--text-light);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
}
.service-item .number {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}
.service-item p {
    font-size: 0.95rem;
    font-weight: 600;
}
.hero-visual {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-height: 450px;
}
/* Hide the element on mobile devices */
@media (max-width: 768px) {
    .hero-visual {
        display: none;
    }
}
.quote-card {
    max-width: 320px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.quote-card h3 {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}
.quote-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}
.trusted-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5rem 6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.trusted-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 180px;
}
.logo-container {
    display: flex;
    gap: 4rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.3rem;
}



/* ================================================================= */
/* ABOUT SECTION                                                     */
/* ================================================================= */


.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    padding: var(--site-padding);
    max-width: 1440px;
    margin: 0 auto;
}
.accent-title {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1.5rem;
}
.about-left h2 {
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
}
.about-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.about-right p {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}
.about-right .sub-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}




/* ================================================================= */
/* CLIENT LOGO SECTION                                               */
/* ================================================================= */



.client-logo-section {
    background-color: var(--bg-dark);
    padding: 100px 20px;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.logo-section-title {
    text-align: center;
    font-size: 2rem;
    letter-spacing: 0.2rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.logo-section-detail {
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.2rem;
    color: #a0a0a0;
    margin-bottom: 20px;
}
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 20px;
}
.logo-item {
    width: 200px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-item img {
    width: 100px;
    height: auto;
    filter: grayscale(1) brightness(0.7);
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.logo-item:hover img {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}
/* Mobile-Specific Adjustment */
@media (max-width: 768px) {
    .logo-grid { gap: 30px; }
    .logo-item { width: 100px; height: 60px; }
}



/* ---------------------------- TECH STACK  ---------------------------- */
.tech-stack-section {
    background-color: var(--bg-dark);
    color: #ffffff;
    padding: 80px 20px;
    overflow: hidden;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
}
.client-logo-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-bottom: 15px;
    color: #ffffff;
}
.section-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    max-width: 100%;
    margin: 0 auto 80px auto;
    line-height: 1.6;
}
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}
.carousel-stage {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}
.carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 340px;
    perspective: 1000px;
    transform-style: preserve-3d;
}
.card {
    position: absolute;
    width: 240px;
    height: 320px;
    opacity: 0; 
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, z-index 0s linear;
    will-change: transform, opacity;
}
.card[style*="transform"] {
    opacity: 1;
}
.card-inner {
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(184, 70, 0, 0.08);
    border-radius: 16px;
    padding: 28px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}
.card-inner:hover {
    border-color: rgba(184, 70, 0, 0.4);
    box-shadow: 0 0 30px rgba(184, 70, 0, 0.15);
}
.card img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-bottom: 20px;
}
.card h3 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #fff;
}
.card p {
    font-size: 0.85rem;
    color: #a3a3a3;
    line-height: 1.5;
    margin: 0;
}
.card.active .card-inner {
    border-color: rgba(184, 70, 0, 0.4);
    box-shadow: 0 0 30px rgba(184, 70, 0, 0.15);
    transform: translateY(-5px);
}
/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100; /* Ensure buttons stay clickable over absolute cards */
    transition: all 0.3s ease;
}
.nav-btn:hover {
    background: rgba(184, 70, 0, 0.2);
    border-color: rgba(184, 70, 0, 0.5);
    color: #ffffff;
}
.prev-btn { left: 10px; }
.next-btn { right: 10px; }







/* ---------------------------- SERVICES SECTION -------------------- */
.services-section {
    position: relative;
    padding: 8rem 0;
    background-color: var(--bg-dark); theme */
    z-index: 10;
}
.services-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 4rem;
}
.section-header {
    text-align: left;
    margin-bottom: 5rem;
    max-width: 650px;
}
.section-header h2 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.services-grid-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(184, 70, 0, 0.4);
    border-radius: 24px;
    box-shadow: 
        0 4px 15px rgba(184, 70, 0, 0.2),
        0 20px 60px rgba(184, 70, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 3rem;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 94, 0, 0.3); /* Orange border tint on hover */
}
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 94, 0, 0.08) 0%, transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1;
}
.service-card:hover .card-glow {
    opacity: 1;
}
.card-content {
    position: relative;
    z-index: 2;
}
.service-number {
    display: inline-block;
    color: var(--accent-orange);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 94, 0, 0.2);
    width: 40px;
}
.service-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.card-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
}
.service-card:hover .card-link {
    color: var(--accent-orange);
    transform: translateX(5px); /* Arrow slides right slightly on hover */
}




/* ---------------------------- PACKEGES SECTION -------------------- */

.iwc-pricing-wrapper-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.iwc-pricing-header {
  text-align: center;
  padding: 60px 20px 20px 20px;
  background: #0a0a0a;
  color: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.iwc-section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 800;
}
.iwc-section-subtext {
  font-size: 1.1rem;
  color: #a0a0a0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.iwc-pricing-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 60px 20px;
  background: #0a0a0a;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.iwc-pricing-card {
  background: #161616;
  border: 1px solid #2d2d2d;
  box-shadow: 
        0 4px 15px rgba(184, 70, 0, 0.2),
        0 20px 60px rgba(184, 70, 0, 0.1);
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 350px;
  color: #ffffff;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.iwc-pricing-card:hover {
  transform: translateY(-15px);
  border-color: var(--accent-orange);
}
.iwc-featured {
  border-color: var(--accent-orange);
}
.iwc-plan-title { 
    font-size: 1.5rem; 
    margin-bottom: 12px; 
}
.iwc-price { 
    font-size: 3rem; 
    font-weight: 800; 
    margin-bottom: 8px; 
}
.iwc-price span { 
    font-size: 1rem; 
    color: #888; 
    font-weight: 400; 
}
.iwc-description { 
    color: #a0a0a0; 
    margin-bottom: 30px; 
    line-height: 1.5; 
}

.iwc-features { 
    list-style: none; 
    padding: 0; margin: 0 0 40px 0; 
}
.iwc-features li { 
    margin-bottom: 16px; 
    display: flex; 
    align-items: center; 
    color: #e0e0e0; 
}
.iwc-features li::before { 
    content: "✓"; 
    color: #ff914d; 
    margin-right: 12px; 
    font-weight: bold; 
}
.iwc-badge {
  background: #ff914d;
  color: #000;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 900;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: 15px;
}
.iwc-btn {
  background: #2d2d2d;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: auto;
}
.iwc-btn:hover { 
    background: #404040; 
}
.iwc-btn-active { 
    background: var(--accent-orange); 
    color: #000; 
}
.iwc-btn-active:hover { 
    color: black;
    background: #ff7b29;
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .iwc-pricing-card:hover { transform: none; } /* Disable lift on touch devices */
}




/* ---------------------------- CONTACT FORM -------------------- */
.contact-section {
    background-color: var(--bg-dark);
    padding: 10rem 0;
    position: relative;
    z-index: 3;
    overflow: hidden;
}
.contact-section::before {
    content: "";
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 94, 0, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}
.contact-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 6rem;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 8rem;
    position: relative;
    z-index: 2;
}
/* --- Left Column Info --- */
.contact-badge {
    color: var(--accent-orange);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.5rem;
}
.contact-info h2 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    color: var(--text-light);
}
.contact-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 4rem;
}
.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2.5rem;
}
.info-item .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.4rem;
}
.info-item a, 
.info-item p {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.info-item a:hover {
    color: var(--accent-orange);
}
/* --- Right Column: Glassmorphic Form Card --- */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3.5rem;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}
/* Universal Inputs & Elements */
.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.1rem 1.2rem;
    border-radius: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 400;
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}
/* Smooth Focus States matching the warm scheme */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: rgba(255, 94, 0, 0.5);
    background: rgba(255, 94, 0, 0.02);
    box-shadow: 0 0 0 4px rgba(255, 94, 0, 0.15);
}
/* Custom Select styling reset over dark backdrop */
.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.select-wrapper {
    position: relative;
}
.select-wrapper::after {
    content: "↓";
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.btn-submit {
    background: var(--text-light);
    color: #000;
    border: none;
    padding: 1.2rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.btn-submit span {
    transition: transform 0.3s ease;
}
.btn-submit:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}
.btn-submit:hover span {
    transform: translateX(4px);
}


/*================================================================*/
/* -------------------- WEB DEVELOPMENT PAGE -------------------- */
/*================================================================*/

/* Root configuration variables scoped tightly to this layout to block conflicts */
.webdev-hero, .webdev-services, .webdev-portfolio, .webdev-conversion-cta {
    --brand-orange: #ff6600;
    --brand-orange-hover: #ff8533;
    --dark-base: #0d0d0d;
    --dark-surface: #141414;
    --dark-border: #242424;
    --text-muted: #aaaaaa;
    --nav-height-offset: 80px; /* MATCHES FIXED NAV BAR HEIGHT */
}

/* ========================================== */
/* HERO AREA DESIGN                           */
/* ========================================== */
.webdev-hero {
    position: relative;
    width: 100%;
    padding-top: calc(var(--nav-height-offset) + clamp(60px, 10vw, 140px));
    padding-bottom: clamp(60px, 8vw, 120px);
    background-color: var(--dark-base);
    overflow: hidden;
}

/* Radical Ambient Radial Background Glow */
.webdev-hero-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(300px, 60vw, 800px);
    height: clamp(300px, 60vw, 800px);
    background: radial-gradient(circle, rgba(255, 102, 0, 0.12) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.webdev-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.webdev-hero-content {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.webdev-badge {
    display: inline-block;
    color: var(--brand-orange);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 1px solid rgba(255, 102, 0, 0.3);
    background: rgba(255, 102, 0, 0.05);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.webdev-hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0 0 24px 0;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--brand-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.webdev-hero p {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 40px auto;
}

.webdev-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary-glow {
    display: inline-block;
    background: var(--brand-orange);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.25);
    transition: all 0.2s ease;
}

.btn-primary-glow:hover {
    background: var(--brand-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 102, 0, 0.4);
}

.btn-secondary-outline {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 30px;
    border-radius: 6px;
    border: 2px solid var(--dark-border);
    transition: all 0.2s ease;
}

.btn-secondary-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

/* ========================================== */
/* SERVICES MATRIX SECTION                    */
/* ========================================== */
.webdev-services {
    padding: clamp(60px, 8vw, 100px) 0;
    background-color: var(--dark-surface);
    border-top: 1px solid var(--dark-border);
}

.web-services-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header-centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px auto;
}

.webdev-section-subtitle {
    display: block;
    color: var(--brand-orange);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.webdev-services h2, .portfolio-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.services-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.matrix-card {
    background: var(--dark-base);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    padding: 40px 24px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.matrix-card:hover {
    border-color: var(--brand-orange);
    transform: translateY(-4px);
}

.matrix-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.matrix-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.matrix-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ========================================== */
/* ASYMMETRIC PORTFOLIO SHOWCASE             */
/* ========================================== */
.webdev-portfolio {
    padding: clamp(60px, 8vw, 120px) 0;
    background-color: var(--dark-base);
}

.webdev-portfolio .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: clamp(40px, 6vw, 65px);
}

.portfolio-lead-text {
    max-width: 500px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.portfolio-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.showcase-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    min-height: 340px;
    width: 100%;
}

/* Asymmetric Grid Spanning Logic */
.item-featured {
    grid-row: span 2;
    min-height: 710px;
}

.item-wide {
    grid-column: span 2;
    min-height: 400px;
}

.showcase-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.showcase-overlay-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(13,13,13, 0.95) 0%, rgba(13,13,13, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: clamp(20px, 4vw, 40px);
    opacity: 0.9;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.showcase-details {
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    align-items: center;
}

.showcase-tags {
    display: block;
    color: var(--brand-orange);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.showcase-details h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.showcase-details p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 20px 0;
    max-width: 100%;
}

.showcase-view-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    display: inline-block;
    transition: color 0.2s ease;
}

/* Hover Automation Matrix */
@media (hover: hover) {
    .showcase-overlay-mask {
        background: linear-gradient(0deg, rgba(13,13,13, 0.98) 0%, rgba(13,13,13, 0.2) 40%, transparent 100%);
        opacity: 0;
    }
    .showcase-item:hover .showcase-overlay-mask {
        opacity: 1;
        background: linear-gradient(0deg, rgba(13,13,13, 0.95) 0%, rgba(13,13,13, 0.7) 100%);
    }
    .showcase-item:hover .showcase-img {
        transform: scale(1.04);
    }
    .showcase-item:hover .showcase-details {
        transform: translateY(0);
    }
    .showcase-item:hover .showcase-view-link {
        color: var(--brand-orange);
    }
}

/* ========================================== */
/* BOTTOM CONVERSION PANEL                    */
/* ========================================== */
.webdev-conversion-cta {
    padding: clamp(60px, 6vw, 100px) 0;
    background: var(--dark-surface);
}

.webdev-conversion-cta .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-panel-wrapper {
    background: linear-gradient(135deg, #171717 0%, #0d0d0d 100%);
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    padding: clamp(40px, 6vw, 70px) clamp(20px, 4vw, 50px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-panel-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-orange), transparent);
}

.cta-panel-wrapper h2 {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.cta-panel-wrapper p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 35px auto;
    line-height: 1.6;
}

/* ========================================== */
/* REVISED MEDIA QUERIES (NO SIDE OVERFLOWS)  */
/* ========================================== */

@media (max-width: 992px) {
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 40px;
    }
    .webdev-header-content {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .portfolio-lead-text {
        max-width: 100%;
    }
    .showcase-details p {
        max-width: 100%;
    }
}

@media (max-width: 875px) {
    /* Safe stack execution without forced margins or broken widths */
    .portfolio-showcase-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .showcase-item {
        min-height: 360px;
    }
    
    .item-featured, .item-wide {
        grid-row: auto;
        grid-column: auto;
        min-height: 360px;
    }
    
    .showcase-overlay-mask {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .webdev-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .webdev-hero-actions a {
        text-align: center;
        width: 100%;
    }
}

/* ========================================== */
/* CARD LOOPING VIDEO WRAPPER STRUCTURE       */
/* ========================================== */
.card-square.video-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.card-square.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}







/*================================================================*/
/* ------------------ INDUSTRY INSIGHTS PAGE -------------------- */
/*================================================================*/

.insights-visual-hero {
    /* ADJUST THIS VALUE: Set to match your fixed navigation bar height */
    --nav-height: 80px; 
    
    position: relative;
    width: 100%;
    /* Combines fixed nav gap with large vertical padding for authentic hero height */
    padding-top: calc(var(--nav-height) + clamp(80px, 10vw, 140px));
    padding-bottom: clamp(80px, 10vw, 140px);
    
    /* Base background color matching your dark theme */
    background-color: #0d0d0d;
    
    /* Layout properties to force strict horizontal/vertical centering */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 1. Deep Orange-to-Dark Gradient Overlay Background Layer */
.mini-hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 
       Blends your brand orange (#ff6600) from the top-left, fading out 
       deeply into a rich dark charcoal (#121212) toward the bottom right.
    */
    background: radial-gradient(circle at 20% 30%, rgba(255, 102, 0, 0.25) 0%, rgba(13, 13, 13, 0.95) 70%),
                linear-gradient(135deg, #161616 0%, #0d0d0d 100__);
    z-index: 1;
}

/* 2. Abstract Geometric/Mesh SVG Texture Layer */
.hero-svg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 
       Creates a high-end abstract geometric line mesh directly via a CSS-embedded SVG. 
       Adjust the stroke opacity (rgba 255,255,255, 0.03) to make the lines sharper or subtler.
    */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M0 60L30 0L60 60Z' fill='none' stroke='rgba(255, 255, 255, 0.03)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 120px 120px;
    z-index: 2;
    pointer-events: none; /* Allows clicks to pass through safely */
}

/* Content Container Wrapper */
.mini-hero-content-wrapper {
    position: relative;
    z-index: 2; /* Pushes text layer cleanly on top of the dark overlay background */
    text-align: center; /* Forces total horizontal alignment */
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px; /* Essential mobile viewport padding edge safety */
}

/* Accent Tag above header */
.mini-hero-tag {
    display: inline-block;
    color: #ff6600; /* Brand Orange */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 18px;
}

.insights-visual-hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.6rem); /* Scalable, large format hero title */
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 18px 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Enhances readability on backgrounds */
}

.insights-visual-hero p {
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    color: #e0e0e0;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 32px auto; /* Centers the paragraph block and spaces out the CTA button */
}

/* Center-aligned CTA button layout */
.mini-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mini-hero-btn {
    display: inline-block;
    background: #ff6600; /* Brand Orange */
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.2);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-hero-btn:hover {
    background: #ff8533; /* Slightly lighter orange accent */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.35);
}

/* Anchor Target Offset fix to prevent nav bar from clipping your grid when clicked */
#latest-insights {
    scroll-margin-top: calc(var(--nav-height) + 30px);
}

/* Ensure the grid alignment sits nicely beneath the mini hero */
.insights-grid {
    margin-top: clamp(30px, 6vw, 50px);
}

/* Grid Layout */
.insights-container {
    padding-bottom: clamp(40px, 8vw, 80px);
}

.insights-grid {
    display: grid;
    /* 
       RESPONSIVE MECHANICS: 
       auto-fill dynamically calculates how many cards fit.
       minmax(280px, 1fr) guarantees cards look crisp on tiny screens (like an iPhone SE),
       but expand nicely to fill available space on mid-size tablets before creating new rows.
    */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(20px, 4vw, 30px); /* Reduces space between cards slightly on smaller viewports */
    margin-top: 20px;
}

/* Individual Article Cards */
.insight-card {
    background: #1a1a1a; /* Dark gray slate card background to match dark theme */
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Only apply hover animation on desktop screens to prevent sticky hover states on touch mobile */
@media (hover: hover) {
    .insight-card:hover {
        transform: translateY(-5px);
        border-color: #ff6600; /* Subtle orange glow on hover */
    }
}

/* Image Wrapper and Badges */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: clamp(180px, 25vh, 220px); /* Keeps image ratio balanced on small and tall mobile screens */
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff6600; /* Brand Orange */
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

/* Content Area inside Cards */
.card-content {
    padding: clamp(15px, 4vw, 20px); /* Tighter inner padding on small phones */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-date {
    font-size: 0.8rem;
    color: #888888;
    margin-bottom: 8px;
}

.card-title {
    font-size: clamp(1.15rem, 3.5vw, 1.35rem); /* Fluid title size */
    margin-bottom: 12px;
    line-height: 1.4;
    color: #ffffff;
}

.card-excerpt {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes the CTA link neatly to the bottom of uneven cards */
}

/* Link Styling */
.card-link {
    color: #ff6600; /* Brand Orange link text */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    align-self: flex-start; /* Keeps the click target size local to the text width */
}

.card-link:hover {
    color: #ff8533; /* Slightly lighter orange on hover */
    text-decoration: underline;
}


.featured-insight-section {
    padding-top: clamp(30px, 5vw, 50px);
    padding-bottom: 10px;
}

/* Small section label tag above the card */
.section-label {
    display: block;
    color: #ff6600; /* Brand Orange */
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

/* Main Featured Card Container */
.featured-card {
    background: #161616; /* Secondary dark slate */
    border: 1px solid #262626;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: row; /* Desktop horizontal alignment */
    min-height: 400px;
    transition: border-color 0.3s ease;
}

.featured-card:hover {
    border-color: #ff6600; /* Signature subtle orange glow on card hover */
}

/* Left Side: Visual Image Wrapper */
.featured-image-wrapper {
    position: relative;
    flex: 1.2; /* Allocates slightly more width ratio to the image on desktop */
    min-height: 300px;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Premium Absolute Badge */
.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #4b90ad;
    color: #ffffff;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Right Side: Content Area */
.featured-content {
    flex: 1; /* Content side spacing balance */
    padding: clamp(25px, 5vw, 45px);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically centers the text content panel */
}

/* Metadata Layer */
.featured-meta {
    font-size: 0.85rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-source {
    color: #ff6600; /* Accent highlighting */
    font-weight: 600;
}

.featured-date {
    color: #888888;
}

.featured-divider {
    color: #444444;
}

/* Headings & Text */
.featured-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem); /* Dynamic fluid scaling text */
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.featured-excerpt {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: #cccccc;
    line-height: 1.6;
    margin: 0 0 28px 0;
}

/* Call to Action Button */
.featured-footer {
    margin-top: auto; /* Aligns button to base if text runs short */
}

.featured-btn {
    display: inline-block;
    border: 2px solid #ff6600;
    color: #ffffff;
    background: transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.featured-btn:hover {
    background: #ff6600;
    color: #ffffff;
    transform: translateX(3px); /* Subtle forward shift layout feel */
}

/* Grid Section Break Divider Line */
.section-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, #262626 0%, transparent 100%);
    margin-top: clamp(40px, 8vw, 60px);
    margin-bottom: 10px;
}

/* ========================================== */
/* RESPONSIVE BREAKPOINT SWITCH (TABLET/MOBILE) */
/* ========================================== */

@media (max-width: 900px) {
    .featured-card {
        flex-direction: column; /* Flips horizontal side-by-side layout into a perfect vertical stack */
        min-height: auto;
    }
    
    .featured-image-wrapper {
        height: 260px; /* Locks down standard hero image thickness constraints on mobile */
        flex: none;
    }
    
    .featured-content {
        flex: none;
        padding: 30px 20px; /* Shifts to tighter mobile padding spacing standards */
    }
    .insights-container {
        width: 90vw !important;
        margin: 20px;
    }
    .featured-insight-section {
      width: 90vw !important;
        margin: 20px;  
    }
}







/* -------------------- ALL MOBILE RESPONSIVENESS CSS ---------------------- */

/* ---------------CORE LAYOUT MOBILE RESPONSIVENESS -------------- */
@media (max-width: 1200px) {
    :root { --site-padding: 7rem 3rem; }
    .navbar { padding: 1.5rem 3rem; }
    .hero-wrapper { padding: 12rem 3rem 6rem 3rem; }
    h1 { font-size: 5rem; }
}

@media (max-width: 992px) {
    h1 { font-size: 4.2rem; }
    .hero-content { grid-template-columns: 1fr; gap: 4rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-section { grid-template-columns: 1fr; gap: 4rem; }
    .about-left h2, .section-header h2 { font-size: 3rem; }
    .trusted-strip { flex-direction: column; gap: 3rem; text-align: center; padding: 4rem 3rem; }
    .logo-container { flex-wrap: wrap; justify-content: center; gap: 2.5rem; }
}

@media (max-width: 768px) {
    :root { --site-padding: 5rem 1.5rem; }
    .navbar { padding: 1.2rem 1.5rem; }
    .hero-wrapper { padding: 10rem 1.5rem 5rem 1.5rem; border-radius: 40px; }
    h1 { font-size: 3.2rem; letter-spacing: -1.5px; margin-bottom: 4rem; }
    .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------------SERVICES MOBILE RESPONSIVENESS -------------- */
@media (max-width: 1200px) {
    .services-grid-main { grid-template-columns: 1fr; gap: 1.5rem; }
}


@media (max-width: 1024px) {
    .services-container { padding: 0 2rem; }
    .section-header h2 { font-size: 2.8rem; }
    .services-grid-main { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
    .services-section { padding: 5rem 0; }
    .section-header { margin-bottom: 3rem; }
    .section-header h2 { font-size: 2.2rem; }
    /* Stacks the cards into a single column on phones */
    .services-grid-main { grid-template-columns: 1fr; gap: 1.5rem; }
    .service-card { padding: 2rem; }
}


/* ---------------SERVICES MOBILE RESPONSIVENESS -------------- */
@media (max-width: 1024px) {
    .services-canvas {
        flex-direction: column;
        height: auto;
        gap: 1.5rem;
    }
    .service-panel {
        flex: none !important; 
        padding: 2.5rem 2rem;
        justify-content: flex-start;
        gap: 0;
    }
    .service-panel h3 {
        white-space: normal;
        font-size: 1.7rem;
    }
    .panel-transition-engine {
        display: grid;
        grid-template-rows: 0fr; 
        opacity: 1;
        transform: none;
        will-change: grid-template-rows;
        transition: grid-template-rows 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: 0s;
    }
    .service-panel.active .panel-transition-engine {
        grid-template-rows: 1fr;
        transition-delay: 0s;
    }
    .panel-content {
        width: 100%;
        min-height: 0;
    }
    .panel-desc {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    .panel-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ---------------SERVICES MOBILE RESPONSIVENESS -------------- */
@media (max-width: 1024px) {
    .services-canvas {
        flex-direction: column;
        height: auto;
        gap: 1.5rem;
    }
    .service-panel {
        flex: none !important;
        height: 120px;
        padding: 2rem;
        justify-content: flex-start;
        gap: 2rem;
        transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .service-panel.active {
        height: auto;
        background: #16161a;
    }
    .service-panel h3 {
        font-size: 1.6rem;
    }
    .panel-content {
        margin-top: 1rem;
    }
    .panel-list {
        grid-template-columns: 1fr;
    }
}

/* ---------------TECH STACK MOBILE RESPONSIVENESS -------------- */
@media (max-width: 768px) {
    .carousel-container {
        min-height: auto;
    }
    .carousel-track {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        gap: 20px;
        padding: 0 10px;
    }
    .card {
        position: relative !important;
        width: 100%;
        max-width: 400px;
        height: auto;
        opacity: 1 !important;
        transform: none !important;
    }
    .nav-btn {
        display: none;
    }
}


/* ---------------PRICING PACKEGES MOBILE RESPONSIVENESS -------------- */
@media (max-width: 768px) {
  .iwc-pricing-card:hover { transform: none; } /* Disable lift on touch devices */
}



/* ---------------CONTACT FORM MOBILE RESPONSIVENESS -------------- */
@media (max-width: 1200px) {
    .contact-container { padding: 0 3rem; gap: 4rem; }
    .contact-info h2 { font-size: 3.2rem; }
}

@media (max-width: 1024px) {
    .contact-container { grid-template-columns: 1fr; gap: 5rem; }
    .contact-subtitle { max-width: 100%; margin-bottom: 2.5rem; }
    .contact-form-wrapper { padding: 2.5rem; }
}

@media (max-width: 768px) {
    .contact-section { 
        padding: 6rem 0; 
    }
    .contact-container { 
        padding: 0 1.5rem; 
    }
    .contact-info h2 { 
        font-size: 2.5rem; 
        letter-spacing: -1px; 
    }
    .contact-form-wrapper { 
        padding: 2rem 1.5rem; 
        border-radius: 24px; 
    }
    .work-gallery {
        background-color: var(--bg-dark);
        padding: 0 6rem 8rem 6rem;
        z-index: 3;
        position: relative;
    }
    .gallery-container {
        max-width: 1320px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .gallery-item {
        position: relative;
        border-radius: 24px;
        overflow: hidden;
        aspect-ratio: 4 / 5;
        background: #111;
    }
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        filter: grayscale(20%) brightness(0.9); 
    }
    .gallery-item:hover img {
        transform: scale(1.04);
        filter: grayscale(0%) brightness(1);
    }
}
@media (max-width: 968px) {
    .gallery-container { 
        grid-template-columns: 1fr; 
        gap: 1rem; 
    }
    .work-gallery { 
        padding: 0 1.5rem 6rem 1.5rem; 
    }
}










/* ---------------MOBILE NAVIGATION RESPONSIVENESS -------------- */

/* --- Desktop CTA (Hide on Mobile) --- */
@media (max-width: 951px) {
    .nav-cta-desktop { 
        display: none !important; }
}



/* 1. Desktop Nav (Hidden on Mobile) */
@media (min-width: 951px) {
    .menu-toggle, .mobile-nav { display: none !important; }
    .nav-links { display: flex; gap: 30px; list-style: none; }
    
    .nav-links a { 
        color: #fff; 
        text-decoration: none; 
        transition: color 0.3s ease; 
    }
    .nav-links a:hover { color: #b84600; }
}

/* 2. Mobile Nav Drawer Logic */
/* --- Mobile Nav Drawer (Fixed & Unified) --- */
@media (max-width: 950px) {
    .nav-container { display: none !important; }
    
    .menu-toggle { 
        display: block; 
        background: none; 
        border: none; 
        cursor: pointer; 
        z-index: 10000; 
    }
    .bar { 
        display: block; 
        width: 25px; 
        height: 2px; 
        background: #fff; 
        margin: 5px 0; 
        transition: 0.3s;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Start fully hidden to the right */
        width: 80%;
        height: 100vh;
        background-color: #050505;
        border-left: 1px solid #1a1a1a;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        transition: right 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* Active State */
    .mobile-nav.active {
        right: 0; /* Slide in from the right */
    }
    
    .mobile-nav ul { list-style: none; padding: 0; text-align: center; }
    .mobile-nav ul li { margin: 30px 0; }
    .mobile-nav ul li a { color: #fff; font-size: 1.5rem; text-decoration: none; }
}


