/* CSS variables for consistent premium design system */
:root {
    /* Color Palette */
    --bg-dark: #0b0f17;
    --bg-dark-alt: #121824;
    --cornerstone-blue: #007fba;
    --cornerstone-blue-rgb: 0, 127, 186;
    --slate-gray: #353f47;
    --blue-accent-glow: #00b4d8;
    --text-white: #ffffff;
    --text-gray-light: #f3f4f6;
    --text-gray-muted: #9ca3af;
    --border-glass: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-blue-glow: 0 0 20px rgba(0, 127, 186, 0.2);

    /* Fonts & Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout Variables */
    --header-height: 90px;
    --header-height-shrink: 70px;
    --container-max-width: 1200px;
}

/* Global Reset & Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-gray-light);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-gray);
    border: 2px solid var(--bg-dark);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cornerstone-blue);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-gray-muted);
}

p.lead-text {
    font-size: 1.2rem;
    color: var(--text-gray-light);
    font-weight: 300;
}

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

.section-padding {
    padding: 8rem 0;
}

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

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

.highlight {
    color: var(--cornerstone-blue);
    background: linear-gradient(120deg, var(--cornerstone-blue), var(--blue-accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(var(--cornerstone-blue-rgb), 0.1);
    border: 1px solid rgba(var(--cornerstone-blue-rgb), 0.3);
    color: var(--cornerstone-blue);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.section-tag {
    color: var(--cornerstone-blue);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 3.5rem;
    color: var(--text-gray-muted);
    font-size: 1.1rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 3rem;
}

.grid-2-col {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3-col {
    grid-template-columns: repeat(3, 1fr);
}

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

/* Glassmorphism Styling */
.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-premium);
}

.glass-card:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-premium), var(--shadow-blue-glow);
}

/* Button Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--cornerstone-blue), #006da0);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(0, 127, 186, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 127, 186, 0.5), var(--shadow-blue-glow);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-white);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-nav {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    background: rgba(var(--cornerstone-blue-rgb), 0.1);
    border: 1px solid rgba(var(--cornerstone-blue-rgb), 0.3);
    color: var(--cornerstone-blue);
}

.btn-nav:hover {
    background: var(--cornerstone-blue);
    color: var(--text-white);
    border-color: var(--cornerstone-blue);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

/* Header & Navigation Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

/* Shrink header class applied by script/animation */
.main-header.shrink {
    height: var(--header-height-shrink);
    background: rgba(11, 15, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
}

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

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: height 0.4s ease;
}

.main-header.shrink .logo-img {
    height: 38px;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.25rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-gray-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--text-white);
}

/* Active underline animation on hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cornerstone-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile Nav Toggle hamburger button */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    height: 24px;
    justify-content: center;
    z-index: 1001;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated Hamburger Open state */
.mobile-nav-toggle.open .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.02);
    animation: zoomHero 20s infinite alternate ease-in-out;
}

@keyframes zoomHero {
    to { transform: scale(1.08); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
    height: calc(100% - var(--header-height) - 100px);
    padding-bottom: 2rem;
}

.hero-content {
    max-width: 100%;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray-light);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    width: 100%;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.stat-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(var(--cornerstone-blue-rgb), 0.1);
    border: 1px solid rgba(var(--cornerstone-blue-rgb), 0.25);
    border-radius: 10px;
    color: var(--cornerstone-blue);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-icon-container {
    background: var(--cornerstone-blue);
    color: var(--text-white);
    transform: scale(1.05);
}

.stat-icon {
    width: 24px;
    height: 24px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.15rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray-muted);
    font-weight: 500;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 5;
}

.scroll-mouse {
    width: 26px;
    height: 44px;
    border: 2px solid var(--text-gray-muted);
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--cornerstone-blue);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.5s infinite ease-in-out;
}

@keyframes scrollMouse {
    0% { opacity: 0; transform: translate(-50%, 0); }
    30% { opacity: 1; }
    80% { opacity: 0; transform: translate(-50%, 15px); }
    100% { opacity: 0; }
}

/* About Section Styles */
.about-text-content {
    padding-right: 2rem;
}

.lead-text {
    margin-bottom: 1.5rem;
}

.body-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.quote-box {
    border-left: 3px solid var(--cornerstone-blue);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
}

.quote-box blockquote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-white);
    font-weight: 300;
}

.about-image-showcase {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/5;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-frame:hover .showcase-img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    text-align: center;
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--cornerstone-blue);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.badge-text {
    font-size: 0.75rem;
    color: var(--text-gray-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Values Section Styles */
.value-card {
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(var(--cornerstone-blue-rgb), 0.1);
    border: 1px solid rgba(var(--cornerstone-blue-rgb), 0.25);
    border-radius: 12px;
    color: var(--cornerstone-blue);
    margin-bottom: 1.75rem;
    transition: all 0.3s ease;
}

.value-card:hover .card-icon-container {
    background: var(--cornerstone-blue);
    color: var(--text-white);
    transform: scale(1.05);
}

.card-icon {
    width: 28px;
    height: 28px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-gray-muted);
    margin-bottom: 0;
}

/* Services Section Styles */
.services-container {
    overflow: hidden;
    padding: 0;
}

.services-nav-scroll {
    overflow-x: auto;
    border-bottom: 1px solid var(--border-glass);
}

/* Custom horizontal tabbar styles */
.services-nav {
    display: flex;
    width: max-content;
    min-width: 100%;
}

.service-tab {
    background: none;
    border: none;
    color: var(--text-gray-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    white-space: nowrap;
}

.service-tab:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.01);
}

.service-tab.active {
    color: var(--cornerstone-blue);
    border-bottom-color: var(--cornerstone-blue);
    background: rgba(var(--cornerstone-blue-rgb), 0.02);
}

.services-content {
    padding: 3.5rem;
}

.service-panel {
    display: none;
}

.service-panel.active {
    display: block;
    animation: fadeInTab 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.service-detail h3 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-detail p {
    margin-bottom: 1.5rem;
}

.sub-list-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.features-list {
    list-style: none;
}

.features-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-gray-light);
}

/* Custom list bullet dots */
.features-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--cornerstone-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cornerstone-blue);
}

.service-visual {
    display: flex;
    justify-content: center;
    position: relative;
    min-height: 300px;
}

.panel-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    object-fit: cover;
    max-height: 350px;
}

/* Floating dynamic badge showcase for CM */
.floating-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-content: center;
    width: 100%;
}

.feature-badge {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-white);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-premium);
}

.feature-badge:hover {
    background: rgba(var(--cornerstone-blue-rgb), 0.05);
    border-color: rgba(var(--cornerstone-blue-rgb), 0.3);
    transform: translateY(-3px);
}

/* Stepper timeline visual for PM */
.timeline-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.t-node {
    padding: 0.75rem 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-white);
    min-width: 140px;
    text-align: center;
    box-shadow: var(--shadow-premium);
}

.t-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--border-glass), var(--cornerstone-blue), var(--border-glass));
}

/* Blueprint animation for Architecture */
.blueprint-grid {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    border: 1px dashed rgba(var(--cornerstone-blue-rgb), 0.3);
    border-radius: 12px;
    background: radial-gradient(circle, rgba(var(--cornerstone-blue-rgb), 0.05) 10%, transparent 80%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blueprint-line {
    position: absolute;
    background-color: rgba(var(--cornerstone-blue-rgb), 0.2);
}

.blueprint-line.vertical {
    width: 1px;
    height: 100%;
    left: 50%;
    animation: gridPulse 4s infinite linear;
}

.blueprint-line.horizontal {
    height: 1px;
    width: 100%;
    top: 50%;
}

.blueprint-circle {
    width: 60%;
    height: 60%;
    border: 1px dashed rgba(var(--cornerstone-blue-rgb), 0.25);
    border-radius: 50%;
    animation: spin 20s infinite linear;
}

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

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Quantity Surveying Chart visual for Cost Management */
.cost-breakdown-chart {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    align-self: center;
    padding: 1rem;
}

.chart-bar {
    height: 48px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding-left: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.chart-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: -1;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-bar.bar-1::after { width: 75%; background: rgba(var(--cornerstone-blue-rgb), 0.2); }
.chart-bar.bar-2::after { width: 15%; background: rgba(53, 63, 71, 0.5); }
.chart-bar.bar-3::after { width: 10%; background: rgba(var(--cornerstone-blue-rgb), 0.1); }

/* Brand standards mockup visuals */
.brand-spec-book {
    width: 240px;
    height: 320px;
    background: var(--slate-gray);
    border-radius: 8px 16px 16px 8px;
    border: 1px solid var(--border-glass);
    position: relative;
    transform: rotate(-5deg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    justify-content: flex-end;
}

.spec-page {
    position: absolute;
    top: 15px;
    right: 0;
    width: 93%;
    height: 90%;
    background: var(--bg-dark-alt);
    border: 1px solid var(--border-glass);
    border-radius: 0 12px 12px 0;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-white);
}

.spec-page.page-1 { transform: rotate(2deg); z-index: 3; background: var(--cornerstone-blue); }
.spec-page.page-2 { transform: rotate(6deg); z-index: 2; }
.spec-page.page-3 { transform: rotate(10deg); z-index: 1; }

/* Interactive Roadmap Section Styles */
.roadmap-interactive {
    max-width: 1000px;
    margin: 0 auto;
}

/* Mobile selector hidden on desktop */
.roadmap-select-container {
    display: none;
    margin-bottom: 2rem;
}

.roadmap-select {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

.roadmap-select:focus {
    border-color: var(--cornerstone-blue);
}

.roadmap-stepper {
    position: relative;
    margin-bottom: 4rem;
    padding: 1rem 0;
}

.roadmap-progress {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--bg-glass);
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 10px;
}

.roadmap-progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--cornerstone-blue);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px var(--cornerstone-blue);
}

.stepper-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step-node {
    width: 44px;
    height: 44px;
    background: var(--bg-dark-alt);
    border: 2px solid var(--border-glass);
    border-radius: 50%;
    color: var(--text-gray-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-node:hover {
    border-color: rgba(var(--cornerstone-blue-rgb), 0.5);
    color: var(--text-white);
}

.step-node.active {
    background: var(--cornerstone-blue);
    border-color: var(--cornerstone-blue);
    color: var(--text-white);
    box-shadow: 0 0 15px var(--cornerstone-blue);
}

.roadmap-details-viewport {
    min-height: 250px;
    position: relative;
}

.roadmap-details-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.roadmap-details-card.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    z-index: 2;
}

.phase-number-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(var(--cornerstone-blue-rgb), 0.15);
    color: var(--cornerstone-blue);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.phase-title {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.phase-description {
    font-size: 1.05rem;
    color: var(--text-gray-light);
    margin-bottom: 2rem;
}

.phase-bullets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
}

.phase-bullets li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.95rem;
    color: var(--text-gray-muted);
}

.phase-bullets li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--cornerstone-blue);
    border-radius: 50%;
}

/* Comparison Table Section Styles */
.table-container {
    overflow-x: auto;
    padding: 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 700px;
}

.comparison-table th, .comparison-table td {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--border-glass);
}

.comparison-table thead th {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.01);
}

/* Highlight column styling for CM */
.comparison-table th.highlight-col {
    background: rgba(var(--cornerstone-blue-rgb), 0.05);
    color: var(--cornerstone-blue);
    border-bottom: 2px solid var(--cornerstone-blue);
}

.comparison-table th.col-feature {
    width: 25%;
}

.comparison-table th.col-cm {
    width: 40%;
}

.comparison-table th.col-traditional {
    width: 35%;
}

.comparison-table tbody th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-white);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.005);
}

.comparison-table tbody td {
    font-size: 0.95rem;
}

.comparison-table tbody td.td-cm {
    color: var(--text-gray-light);
    background: rgba(var(--cornerstone-blue-rgb), 0.01);
}

.comparison-table tbody td.td-trad {
    color: var(--text-gray-muted);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Contact Section Styles */
.contact-info-panel {
    padding-right: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3.5rem;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.method-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    color: var(--cornerstone-blue);
}

.method-icon {
    width: 24px;
    height: 24px;
}

.method-details {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 0.8rem;
    color: var(--text-gray-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.method-link, .method-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-white);
}

.method-link:hover {
    color: var(--cornerstone-blue);
}

/* Contact Details Layout */
.contact-details-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 127, 186, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 127, 186, 0.1);
}

.card-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(0, 127, 186, 0.1);
    border: 1px solid rgba(0, 127, 186, 0.25);
    border-radius: 50%;
    color: var(--cornerstone-blue);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover .card-icon-container {
    background: var(--cornerstone-blue);
    color: var(--text-white);
    transform: scale(1.1);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-label {
    font-size: 0.8rem;
    color: var(--text-gray-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-link {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--cornerstone-blue);
}

.card-address {
    font-style: normal;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-white);
}

.card-address strong {
    color: var(--cornerstone-blue);
    font-weight: 600;
}

/* Footer Section Styles */
.main-footer {
    background-color: var(--bg-dark);
    padding: 5rem 0 3rem;
    border-top: 1px solid var(--border-glass);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-tagline {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-gray-muted);
    max-width: 400px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
    flex-wrap: wrap-reverse;
    gap: 1.5rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-gray-muted);
}

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

/* Scroll reveal initial states */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Progressive enhancement: CSS Scroll-driven animations for modern browsers */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @media (prefers-reduced-motion: no-preference) {
        .main-header {
            animation: shrinkHeader auto linear both;
            animation-timeline: scroll(block root);
            animation-range: 0px 100px;
        }

        @keyframes shrinkHeader {
            to {
                height: var(--header-height-shrink);
                background: rgba(11, 15, 23, 0.92);
                backdrop-filter: blur(20px);
                border-bottom: 1px solid var(--border-glass);
                box-shadow: var(--shadow-premium);
            }
        }
    }
}

/* Portfolio Section Styles */
.portfolio-filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 0.65rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-gray-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.filter-btn.active {
    background: var(--cornerstone-blue);
    border-color: var(--cornerstone-blue);
    color: var(--text-white);
    box-shadow: var(--shadow-blue-glow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 2rem;
    width: 100%;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dynamic filter animations */
.portfolio-item.hide {
    display: none;
}

.portfolio-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 23, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.portfolio-zoom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(var(--cornerstone-blue-rgb), 0.1);
    border: 2px solid var(--cornerstone-blue);
    border-radius: 50%;
    color: var(--cornerstone-blue);
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-image-wrapper img {
    transform: scale(1.06);
}

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

.portfolio-item:hover .portfolio-zoom-icon {
    transform: scale(1);
    background: var(--cornerstone-blue);
    color: var(--text-white);
    box-shadow: 0 0 15px var(--cornerstone-blue);
}

.portfolio-info {
    padding: 1.5rem 1.75rem;
}

.portfolio-item-category {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cornerstone-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.portfolio-item-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.3;
}

/* Lightbox Modal Styles */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 10, 16, 0.97);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 3.5rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 10002;
}

.lightbox-close:hover {
    color: var(--text-white);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    outline: none;
}

.lightbox-prev {
    left: 2.5rem;
}

.lightbox-next {
    right: 2.5rem;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--cornerstone-blue);
    border-color: var(--cornerstone-blue);
    box-shadow: var(--shadow-blue-glow);
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

#lightboxImg {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
    border: 1px solid var(--border-glass);
    animation: zoomLightbox 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes zoomLightbox {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-caption {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-white);
    margin-top: 1.5rem;
    text-align: center;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .section-padding {
        padding: 6rem 0;
    }

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

    .grid-3-col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-content {
        padding: 2.5rem;
    }
    
    .service-detail h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu Drawer Logic */
    .mobile-nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: rgba(11, 15, 23, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        border-left: 1px solid var(--border-glass);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-premium);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 2.5rem;
        width: 100%;
        padding: 2rem;
        text-align: center;
    }

    .nav-menu .nav-link {
        font-size: 1.25rem;
    }

    .nav-menu .btn-nav {
        font-size: 1.1rem;
        padding: 0.85rem 2rem;
        width: 100%;
    }

    /* Layout Adaptations */
    .grid-2-col, .grid-3-col {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 3rem;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
    }

    .stat-card {
        padding: 1.25rem 1.75rem;
    }

    .about-text-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .about-image-showcase {
        margin-top: 1rem;
        order: 2;
    }

    .experience-badge {
        bottom: -1rem;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Tab Layout on Mobile */
    .services-content {
        padding: 2rem 1.5rem;
    }

    .service-detail {
        margin-bottom: 2rem;
    }

    .service-visual {
        min-height: auto;
    }
    
    .floating-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Roadmap Adaptations */
    .roadmap-stepper {
        display: none; /* Hide visual stepper on mobile */
    }

    .roadmap-select-container {
        display: block; /* Show simple select dropdown instead */
    }

    .roadmap-details-card {
        padding: 2rem 1.5rem;
    }

    .phase-bullets {
        grid-template-columns: 1fr;
    }

    /* Table Adaptations */
    .comparison-table th, .comparison-table td {
        padding: 1.25rem 1rem;
    }

    /* Contact Adaptations */
    .contact-info-panel {
        padding-right: 0;
        margin-bottom: 3.5rem;
    }

    .contact-form-container {
        padding: 2.25rem 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Portfolio & Lightbox Adaptations */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-filter-container {
        gap: 0.5rem;
        margin-bottom: 2.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .lightbox-close {
        top: 1.5rem;
        right: 1.5rem;
        font-size: 3rem;
    }

    .lightbox-prev, .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .lightbox-content {
        max-width: 90%;
    }

    #lightboxImg {
        max-height: 60vh;
    }

    .lightbox-caption {
        font-size: 1.1rem;
        margin-top: 1rem;
    }
}
