/* ==========================================================================
   Redhood Technologies CSS Design System
   Sleek Dual-Theme Premium Styling (Dark / Light Mode Toggle)
   ========================================================================== */

/* Theme Variables Definition */
:root {
    /* Dark Mode Defaults */
    --bg-primary: #07080a;
    --bg-secondary: #0f1015;
    --bg-tertiary: #171921;
    --accent-red: #ff003c;
    --accent-red-rgb: 255, 0, 60;
    --accent-red-deep: #950740;
    --accent-red-glow: rgba(255, 0, 60, 0.35);
    --text-white: #ffffff;
    --text-muted: #8a8d9a;
    --text-gray-light: #e2e4e9;
    --border-color: rgba(255, 255, 255, 0.05);
    --border-red: rgba(255, 0, 60, 0.2);
    
    --glass-bg: rgba(15, 16, 21, 0.65);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-glow: rgba(255, 0, 60, 0.3);
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Syne', var(--font-sans);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    --container-width: 1200px;
    --header-height: 80px;
    --logo-white: #ffffff;
}

/* Light Theme Variables Switch */
html[data-theme="light"] {
    --bg-primary: #f5f6f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ebf0;
    --accent-red: #d60032;
    --accent-red-rgb: 214, 0, 50;
    --accent-red-deep: #8a001b;
    --accent-red-glow: rgba(214, 0, 50, 0.2);
    --text-white: #101216;
    --text-muted: #626574;
    --text-gray-light: #1f2229;
    --border-color: rgba(0, 0, 0, 0.07);
    --border-red: rgba(214, 0, 50, 0.15);
    
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-glow: rgba(214, 0, 50, 0.2);
    --logo-white: #101216;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-gray-light);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.5s ease;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* Typography Rules */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

p {
    font-weight: 400;
    color: var(--text-muted);
}

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

ul {
    list-style: none;
}

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

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

/* Grid overlay background for premium layout feel */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, var(--border-color) 1px, transparent 1px),
                      linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
    pointer-events: none;
    z-index: 1;
}

/* Ambient glow cursor (Desktop only pointer action) */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(var(--accent-red-rgb), 0.07) 0%, rgba(var(--accent-red-rgb), 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent-red);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(var(--accent-red-rgb), 0.25);
}

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

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

.btn-primary:hover {
    background-color: var(--accent-red-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(var(--accent-red-rgb), 0.45);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border-color: var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(var(--accent-red-rgb), 0.05);
    border-color: var(--accent-red);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.1rem 2.2rem;
    font-size: 1.05rem;
}

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

.btn-full-width {
    width: 100%;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(var(--accent-red-rgb), 0.1);
    border: 1px solid var(--border-red);
    color: var(--accent-red);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

/* Shared Section Headers */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 5rem auto;
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
}

.section-title.text-left {
    text-align: left;
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
}

.section-subtitle.text-left {
    text-align: left;
}

/* Floating Quote Button and Back to Top */
.floating-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.floating-quote {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.back-to-top {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.back-to-top.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background-color: rgba(var(--accent-red-rgb), 0.05);
}

/* ==========================================================================
   Header Navigation Layout
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(7, 8, 10, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

html[data-theme="light"] .navbar {
    background-color: rgba(245, 246, 248, 0.75);
}

.navbar.scrolled {
    height: 70px;
    background-color: rgba(7, 8, 10, 0.9);
    border-bottom-color: rgba(var(--accent-red-rgb), 0.15);
}

html[data-theme="light"] .navbar.scrolled {
    background-color: rgba(245, 246, 248, 0.9);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-white);
    letter-spacing: 0.05em;
}

.logo-text {
    background: linear-gradient(135deg, var(--text-white) 50%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-center {
    fill: var(--logo-white);
}

.logo:hover .logo-icon path {
    fill: var(--accent-red);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-red);
    transition: var(--transition-fast);
}

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

.nav-link:hover::after {
    width: 100%;
}

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

/* Light/Dark Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-white);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.theme-toggle:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* Hide correct icon based on data-theme */
html[data-theme="dark"] .sun-icon {
    display: block;
}
html[data-theme="dark"] .moon-icon {
    display: none;
}
html[data-theme="light"] .sun-icon {
    display: none;
}
html[data-theme="light"] .moon-icon {
    display: block;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
}

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-white);
    transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section Layout
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: calc(var(--header-height) + 2rem);
    background-color: var(--bg-primary);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(var(--accent-red-rgb), 0.04) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 4.5rem;
    max-width: 950px;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.highlight-text {
    color: var(--accent-red);
    text-shadow: 0 0 40px rgba(var(--accent-red-rgb), 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 650px;
    margin-bottom: 3rem;
}

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

/* Hero abstract 3D visual styles */
.hero-visual-wrapper {
    width: 100%;
    max-width: 700px;
    margin-top: 1rem;
}

.hero-svg-anim {
    width: 100%;
    height: auto;
}

.node-anim {
    transform-origin: center;
    animation: pulseNode 3s ease-in-out infinite;
}

.node-2 { animation-delay: 0.7s; }
.node-3 { animation-delay: 1.4s; }
.node-4 { animation-delay: 2.1s; }

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

.white-glow {
    filter: drop-shadow(0px 0px 8px #FFFFFF);
}

/* ==========================================================================
   About Us Section Layout
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: flex-start;
}

.about-story {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
}

.mv-block h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--accent-red);
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.why-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.why-card:hover {
    border-color: rgba(var(--accent-red-rgb), 0.2);
    transform: translateY(-4px);
}

.why-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.why-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Services Matrix Extended Layout
   ========================================================================== */
.services-grid-extended {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.services-grid-extended .service-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.services-grid-extended .service-card:hover {
    border-color: rgba(var(--accent-red-rgb), 0.25);
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.services-grid-extended .service-icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.services-grid-extended h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.services-grid-extended p {
    font-size: 0.9rem;
    line-height: 1.6;
}



/* ==========================================================================
   Portfolio Grid Layout
   ========================================================================== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    color: var(--text-white);
    border-color: var(--accent-red);
    background-color: rgba(var(--accent-red-rgb), 0.05);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.portfolio-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: var(--bg-secondary);
}

.portfolio-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 8, 10, 0.95) 10%, rgba(7, 8, 10, 0.2) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
}

html[data-theme="light"] .portfolio-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 10%, rgba(255, 255, 255, 0.3) 100%);
}

.portfolio-item:hover {
    border-color: rgba(var(--accent-red-rgb), 0.3);
    box-shadow: 0 12px 30px rgba(var(--accent-red-rgb), 0.15);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

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

.portfolio-meta {
    width: 100%;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.portfolio-meta h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-metric {
    font-size: 0.875rem;
    color: var(--text-gray-light);
    margin-bottom: 1.5rem;
}

.portfolio-meta .view-project-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    transition-delay: 0.1s;
}

.portfolio-item:hover .view-project-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Hidden elements filtering animation helper */
.portfolio-item.hidden {
    display: none;
}

/* ==========================================================================
   Protocol / Process Timeline
   ========================================================================== */
.process-timeline-extended {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    transition: var(--transition-smooth);
}

.process-card:hover {
    border-color: rgba(var(--accent-red-rgb), 0.25);
    transform: translateY(-4px);
}

.proc-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(var(--accent-red-rgb), 0.1);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.process-card:hover .proc-num {
    color: var(--accent-red);
}

.process-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.process-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================================================
   Tech Matrix Layout
   ========================================================================== */
.tech-matrix {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.tech-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-smooth);
}

.tech-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(var(--accent-red-rgb), 0.1);
}

.tech-logo {
    display: flex;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: rgba(var(--accent-red-rgb), 0.05);
    border: 1px solid var(--border-red);
    color: var(--accent-red);
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
}

.tech-card h4 {
    font-size: 1rem;
}



/* ==========================================================================
   Testimonials Layout
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.testimonial-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3.5rem;
    position: relative;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: rgba(var(--accent-red-rgb), 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.quote-icon {
    font-family: var(--font-display);
    font-size: 6rem;
    color: rgba(var(--accent-red-rgb), 0.08);
    position: absolute;
    top: 0px;
    left: 20px;
    pointer-events: none;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    margin-bottom: 2.5rem;
    color: var(--text-gray-light);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.client-name {
    font-size: 1.05rem;
    font-weight: 600;
}

.client-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonials-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

.testimonials-logos span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(var(--text-white), 0.15);
}

/* ==========================================================================
   FAQ Section Layout
   ========================================================================== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    text-align: left;
    cursor: pointer;
}

.faq-question:hover {
    color: var(--accent-red);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-red);
    transition: var(--transition-fast);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 2rem;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Open FAQ items state */
.faq-item.active {
    border-color: rgba(var(--accent-red-rgb), 0.25);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Safe upper bound */
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* ==========================================================================
   Contact / Lead Generation Layout
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 4fr 5fr;
    gap: 6rem;
    align-items: center;
}

.contact-details-list {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.c-icon {
    font-size: 1.25rem;
}

.maps-placeholder {
    margin-top: 3rem;
    height: 200px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maps-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(var(--accent-red-rgb), 0.2);
    border: 2px solid var(--accent-red);
    animation: radar-pulse 2s infinite;
}

@keyframes radar-pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(var(--accent-red-rgb), 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(var(--accent-red-rgb), 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(var(--accent-red-rgb), 0); }
}

.maps-overlay-text {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.contact-form-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

.input-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-gray-light);
}

.input-group input, .input-group textarea {
    width: 100%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(var(--accent-red-rgb), 0.15);
}

/* Budget options */
.budget-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.budget-btn {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.8rem 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.budget-btn:hover {
    color: var(--text-white);
    border-color: var(--accent-red);
}

.budget-btn.active {
    color: #ffffff;
    border-color: var(--accent-red);
    background-color: rgba(var(--accent-red-rgb), 0.1);
    box-shadow: 0 0 10px rgba(var(--accent-red-rgb), 0.15);
}

/* Success submit style state */
.form-success-container {
    text-align: center;
    padding: 3rem 0;
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: rgba(0, 255, 100, 0.1);
    border: 1px solid rgba(0, 255, 100, 0.2);
    color: #00FF64;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
}

.form-success-container h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.form-success-container p {
    color: var(--text-muted);
    font-size: 0.975rem;
}

/* ==========================================================================
   Footer Layout
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 6rem 0 3rem 0;
    background-color: var(--bg-primary);
}

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

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    max-width: 280px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links-group h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-white);
    margin-bottom: 1.75rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Project Details Modal Layout
   ========================================================================== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 8, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

html[data-theme="light"] .project-modal {
    background-color: rgba(245, 246, 248, 0.95);
}

.project-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
    z-index: 2001;
}

.modal-close:hover {
    color: var(--accent-red);
    transform: scale(1.1);
}

.modal-content {
    max-width: 800px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    transform: scale(0.95);
    transition: var(--transition-smooth);
}

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

.modal-image-view {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-details {
    text-align: left;
}

.modal-details h3 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.modal-metrics-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.modal-m-box strong {
    font-size: 0.8rem;
    color: var(--accent-red);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.modal-m-box p {
    font-size: 0.925rem;
    line-height: 1.5;
    color: var(--text-gray-light);
}

/* ==========================================================================
   Scroll-Triggered Reveal Animations Setup
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero elements initial fade-in delay setup */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content .badge {
    animation-delay: 0.1s;
}

.hero-title {
    animation-delay: 0.25s;
}

.hero-subtitle {
    animation-delay: 0.4s;
}

.hero-actions {
    animation-delay: 0.55s;
}

.hero-visual-wrapper {
    animation-delay: 0.7s;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Media Queries & Responsiveness Setup (Mobile First)
   ========================================================================== */

/* Large screens (up to 1200px) */
@media (max-width: 1200px) {
    .services-grid-extended {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-timeline-extended {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tech-matrix {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet Portrait Breakpoint (up to 992px) */
@media (max-width: 992px) {
    .section-padding {
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .services-grid-extended {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline-extended {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile & Small Tablets Breakpoint (up to 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 3rem;
        transform: translateX(100%);
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-links {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .nav-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 1.5rem;
        gap: 1.5rem;
    }
    
    .nav-cta {
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .services-grid-extended {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-timeline-extended {
        grid-template-columns: 1fr;
    }
    
    .tech-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
    

    .testimonial-card {
        padding: 2.5rem;
    }
    
    .contact-form-card {
        padding: 2rem;
    }
    
    .budget-options {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 4rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .modal-metrics-summary {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}
