/* ==================== PRELOADER ==================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #020617 0%, #0c1a3d 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preloader::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    animation: preloaderPulse 3s ease-in-out infinite;
}

@keyframes preloaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.preloader-content {
    position: relative;
    text-align: center;
    z-index: 10;
}

.logo-reveal {
    margin-bottom: 3rem;
    opacity: 0;
    animation: logoFadeIn 1s ease-out 0.5s forwards;
}

@keyframes logoFadeIn {
    to {
        opacity: 1;
    }
}

.preloader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px var(--primary-glow));
    animation: logoFloat 2s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.preloader-title {
    font-size: 3rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.3em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
}

.loading-bar {
    width: 300px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 2rem auto 1rem;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 0.3s ease;
}

.loading-counter {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.1em;
}

.preloader-exit {
    animation: preloaderFadeOut 1s ease-out forwards;
}

@keyframes preloaderFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ==================== CORE STYLES ==================== */
:root {
    --bg-dark: #020617;
    --bg-card: rgba(30, 41, 59, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #0ea5e9;
    /* Sky 500 */
    --primary-glow: #0ea5e9aa;
    --secondary: #6366f1;
    /* Indigo 500 */
    --accent: #2dd4bf;
    /* Teal 400 */

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shine: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    /* Subtle grid background */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Interactive Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(2, 6, 23, 0.7);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 120px 5% 50px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Left text wider than graphic */
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Hero Left */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 10;
}

.hero-title {
    font-size: 4.5rem;
    /* Big impact */
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-pill {
    background: var(--glass-shine);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
}

.feature-pill svg {
    width: 16px;
    height: 16px;
    fill: var(--accent);
}

.hero-cta {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-display);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

/* Hero Right - Graphic Container */
.hero-graphic {
    position: relative;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Three.js Canvas Container */
#canvas-container {
    width: 600px;
    height: 600px;
    position: relative;
    cursor: grab;
    transition: transform 0.3s ease;
}

#canvas-container:active {
    cursor: grabbing;
}

#canvas-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Animations */
@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spin-reverse {
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
        gap: 3rem;
    }

    .hero-content {
        align-items: center;
    }

    .hero-subtitle {
        border-left: none;
        padding-left: 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* Keep it simple for now, can add mobile menu js if needed */
    }
}

/* Services Section */
.services {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--text-main);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--glass-shine);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.glass-card:hover::before {
    transform: translateX(100%);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.glass-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

color: var(--primary);
}

/* ==================== CONTACT FORM SECTION ==================== */
.contact-section {
    padding: 8rem 8%;
    max-width: 1600px;
    margin: 0 auto;
    scroll-margin-top: 100px;
}

.contact-container {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 4rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: stretch;
    margin: 0 2rem;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    height: 100%;
    justify-content: center;
}

.contact-title {
    font-size: 3.2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.step-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.step-item:hover {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateX(5px);
}

.step-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.step-icon svg {
    width: 28px;
    height: 28px;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-weight: 600;
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ==================== Large Steps (Premium) ==================== */
.steps-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4rem;
    /* Increased gap */
    height: 100%;
    padding: 2rem 0;
    /* Add padding to help fill height */
}

.large-step {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-line {
    width: 60px;
    height: 3px;
    /* Thicker line */
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.step-number {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.4rem;
    /* Larger number */
    text-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.step-body {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-icon-large {
    min-width: 80px;
    /* Larger icon */
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.5);
    flex-shrink: 0;
}

.step-icon-large svg {
    width: 40px;
    /* Larger icon svg */
    height: 40px;
}

.step-content-large h3 {
    color: white;
    font-size: 2.2rem;
    /* Much larger title */
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.1;
}

.step-content-large p {
    color: var(--text-color);
    font-size: 1.2rem;
    /* Larger text */
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
    max-width: 90%;
}

.contact-right {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    margin: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.3rem 1.8rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.4s ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.08);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
    transform: translateY(-2px);
}

.form-input:hover {
    border-color: rgba(14, 165, 233, 0.4);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%2394a3b8' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.8rem center;
    cursor: pointer;
    padding-right: 3.5rem;
}

.form-select option {
    background: #0c1a3d;
    color: var(--text-main);
    padding: 1rem;
}

.btn-submit {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    padding: 1.5rem 2.5rem;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.4);
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.6);
    background: linear-gradient(135deg, #15803d, #16a34a);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Responsive Contact Form */
@media (max-width: 968px) {
    .contact-section {
        padding: 5rem 5%;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 2.5rem;
    }

    .contact-left {
        padding-right: 0;
    }

    .contact-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .step-item {
        flex-direction: row;
        text-align: left;
    }

    .contact-right {
        padding: 2.5rem;
    }
}

@media (max-width: 600px) {
    .contact-section {
        padding: 4rem 4%;
    }

    .contact-container {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.2rem;
    }

    .contact-right {
        padding: 2rem 1.5rem;
    }

    .form-input {
        padding: 1.1rem 1.5rem;
    }
}

/* Footer */
.glass-footer {
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
    padding: 3rem 5%;
    text-align: center;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    color: var(--text-main);
}

.glass-footer p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.socials a {
    color: var(--text-main);
    text-decoration: none;
    opacity: 0.7;
    transition: 0.3s;
}

.socials a:hover {
    opacity: 1;
    color: var(--primary);
}/* ==================== EXPANDED CONTENT STYLES ==================== */

/* Enhanced Navbar Hover */
.nav-link {
    position: relative;
    padding: 0.7rem 1.2rem !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link:hover {
    background: rgba(14, 165, 233, 0.08) !important;
    transform: translateY(-2px);
}

/* Simplified Contact Button */
.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    color: white !important;
    font-weight: 600;
}

.nav-cta::before {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.1);
}

/* Navbar Scroll Behavior */
.navbar {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s ease,
        background 0.4s ease !important;
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

}

.navbar.navbar-scrolled {
    padding: 0.5rem 5% !important;
    background: rgba(10, 15, 30, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.navbar-scrolled .logo-container {
    font-size: 1.1rem !important;
}

.navbar-scrolled .nav-links {
    gap: 0.5rem !important;
}

.navbar-scrolled .btn-primary {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.85rem !important;
}

/* Larger Hero */
.hero-title {
    font-size: 5.5rem !important;
}

/* Services Grid - 3 Columns */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.service-card:hover .card-glow {
    opacity: 1;
    transform: translate(25%, 25%);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.3);
    border-color: rgba(14, 165, 233, 0.4);
}

/* About Section - Expanded */
.about-section {
    padding: 5rem 5% 6rem;
    max-width: 1400px;
    margin: 0 auto;
    scroll-margin-top: 100px;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-top: 3rem;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(14, 165, 233, 0.05);
    border-color: rgba(14, 165, 233, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.value-card:hover {
    background: rgba(14, 165, 233, 0.05);
    transform: translateY(-3px);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.value-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Second 3D Container */
.about-right {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: 3rem;
}

#canvas-container-2 {
    width: 100%;
    max-width: 500px;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    margin-right: -2rem;
    margin-bottom: -2rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    padding: 2.5rem;
    background: var(--glass-shine);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.3);
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.testimonial-author strong {
    color: var(--text-main);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Updates */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    #canvas-container-2 {
        height: 400px;
    }
}

@media (max-width: 968px) {
    .hero-title {
        font-size: 3.5rem !important;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}


/* About 3D Element */
#canvas-container-2 {
    width: 100%;
    height: 400px;
    position: relative;
    cursor: grab;
    min-height: 400px;
}

#canvas-container-2 canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}


/* EMERGENCY FIX */
.preloader { display: none !important; }


/* ==================== CONTACT FORM UPDATES (OVERRIDE) ==================== */
.contact-section {
    max-width: 1400px;
}

.contact-container {
    padding: 3rem;
    gap: 4rem;
}

.contact-title {
    font-size: 3.8rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.step-item {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Fancy Hover Effect */
.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.step-item:hover::before {
    left: 100%;
}

.step-item:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.5);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.3);
}

.step-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.step-line-top {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.step-number-top {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-body-centered {
    width: 100%;
}


/* ==================== CENTER ALIGNMENT UPDATE ==================== */
.contact-left {
    align-items: center !important;
    text-align: center !important;
}

.steps-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-item {
    align-items: center !important;
    text-align: center !important;
}

.step-header {
    align-items: center !important;
}


/* ==================== CONTAINER CENTERING FIX ==================== */
.contact-section {
    display: flex; /* Turn section into flex container */
    justify-content: center; /* Center the child container properly */
    width: 100%;
}

.contact-container {
    margin: 0 !important; /* Remove side margins that push it */
    width: 100%;
    max-width: 1200px; /* Ensure it has a max width so it can be centered */
}


/* ==================== FINAL CENTERING FIX ==================== */
.contact-section {
    display: block !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
}

.contact-container {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 90% !important; /* Use percentage width safely */
    max-width: 1200px !important;
    display: grid;
    /* Keep grid but ensure margins do the centering work */
}


/* ==================== REAL DEFINITIVE FIX ==================== */
html body .contact-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important; /* Small padding safe zone */
    padding-right: 1rem !important;
    box-sizing: border-box !important;
}

html body .contact-container {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 95% !important;
    max-width: 1200px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    float: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
}

/* Ensure everything inside left is centered */
html body .contact-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    width: 100% !important;
}

html body .steps-container {
    align-items: center !important;
}

html body .step-item {
    align-items: center !important;
    text-align: center !important;
}

@media (max-width: 968px) {
    html body .contact-container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
    }
}


/* ==================== TITLE SIZE FIX ==================== */
html body .contact-title {
    font-size: 2.5rem !important; /* Reduced from 3.8rem */
    margin-bottom: 1.5rem !important;
}


/* ==================== SPACING ADJUSTMENT ==================== */
html body .contact-left {
    gap: 1rem !important; /* Reduced from 3rem */
}

html body .contact-title {
    margin-bottom: 0.5rem !important; /* Reduced from 1.5rem/2rem */
}


/* ==================== COMPACT VERTICAL LAYOUT FIX ==================== */
html body .steps-container {
    gap: 1rem !important; /* Reduced from 2rem */
}

html body .step-item {
    padding: 1.5rem !important; /* Reduced from 2rem/2.5rem */
    gap: 0.8rem !important;
}

html body .contact-left {
    gap: 0.5rem !important; /* Minimal gap between title and steps */
}


/* ==================== GLOBAL SCALE REDUCTION ==================== */
html body .contact-container {
    max-width: 1000px !important; /* Reduced from 1200px */
    padding: 2.5rem !important; /* Reduced from 3rem */
    gap: 2.5rem !important; /* Reduced from 4rem */
}

html body .contact-section {
    padding: 6rem 2rem !important; /* Reduced vertical padding */
}

html body .form-input {
    padding: 1rem 1.2rem !important; /* Slightly smaller inputs */
    font-size: 0.95rem !important;
}

html body .step-content-large h3 {
    font-size: 1.3rem !important; /* Slightly smaller text */
}

html body .step-item {
    padding: 1.2rem !important; /* Even tighter packing */
    max-width: 450px !important;
}


/* ==================== VERTICAL ONLY REDUCTION (FIX) ==================== */
html body .contact-container {
    max-width: 1200px !important; /* Restore width */
    padding: 2rem 3rem !important; /* Reduce vertical padding only */
    gap: 1.5rem !important; /* Tighten grid gap vertically/horizontally */
}

html body .contact-section {
    padding: 4rem 2rem !important; /* Significantly reduce section vertical padding */
}

html body .form-input {
    padding: 0.8rem 1.2rem !important; /* Reduce input height */
    margin-bottom: 0 !important; /* Ensure no extra margin */
}

html body .contact-form {
    gap: 0.8rem !important; /* Tighten form fields */
}

html body .step-item {
    padding: 1rem 1.5rem !important; /* Reduce step card height */
}

html body .contact-title {
    margin-bottom: 0.2rem !important; /* Almost no gap below title */
    line-height: 1.1 !important;
}

html body .steps-container {
    gap: 0.8rem !important; /* Tighten steps */
}

