/* Glassmorphism Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    overflow-x: hidden;
}

#canvas-container {
	position: fixed; /* Changed from absolute to fixed */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
	display: block;
    width: 100vw !important; /* 100% of Viewport Width */
    height: 100vh !important; /* 100% of Viewport Height */
    max-width: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(45deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Buttons */
.cta-group {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

/* Stats */
.stats-container {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
}

.stat-box h3 {
    font-size: 2.5rem;
    display: inline;
}
/* --- Inner Pages Layout --- */
.page-container {
    padding: 120px 10% 50px 10%; /* Accounts for fixed navbar */
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-header h1 {
    font-size: 3.5rem;
}

/* Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.glass-card h3, .glass-card h4 {
    margin-bottom: 1rem;
    color: var(--accent);
}

/* Timeline */
.timeline {
    border-left: 2px solid var(--accent);
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0.2rem;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
}

/* Before/After Layout */
.before-after {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.ba-box {
    flex: 1;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    border: 1px dashed var(--glass-border);
}

/* Form Styling */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary); /* Ensures labels swap clearly between light/dark */
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Force dropdown options to use theme backgrounds instead of browser defaults */
.form-group select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

/* --- Single Page Smooth Scrolling --- */
html {
    scroll-behavior: smooth;
}

/* Offset for fixed navbar so it doesn't overlap section titles */
section.page-container {
    scroll-margin-top: 80px; 
}

/* --- Floating Buttons --- */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s, opacity 0.3s;
    text-decoration: none;
    border: none;
}

.float-btn:hover {
    transform: scale(1.1);
}

.top-btn {
    background-color: #0d6efd;
    opacity: 0;
    pointer-events: none; /* Hidden by default */
}

.top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.wa-btn {
    background-color: #25D366;
}

/* --- Custom Footer (Matching Image) --- */
.custom-footer {
    background-color: #081121; /* Dark navy from image */
    color: #a0aec0;
    padding: 60px 10% 20px 10%;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 40px;
}

.footer-column h3, 
.footer-column h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-column h3 {
    font-size: 1.4rem;
}

.footer-column p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.footer-column a {
    display: block;
    color: #a0aec0;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #0d6efd;
}

.contact-col p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a0aec0;
}

.contact-col p svg {
    color: #0d6efd;
}

/* Social Icons Placeholder */
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #a0aec0;
    text-decoration: none;
}
/* Restrict the size of the navbar logo */
.brand-logo {
    height: 60px;  /* This shrinks it to fit the navbar */
    width: auto;   /* This keeps the image from stretching */
    display: block;
}

/* Dark Mode Magic: Inverts the logo, sharpens edges, and hides the box */
[data-theme="dark"] .brand-logo {
    filter: invert(1) grayscale(100%) contrast(300%);
    mix-blend-mode: screen;
}
/* =========================================
   About Section & Founder Card Styles
   ========================================= */

.about-wrapper {
    align-items: start;
    gap: 4rem;
}

/* Left Side: Text */
.about-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.about-underline {
    width: 50px;
    height: 4px;
    background-color: #0d6efd;
    margin-bottom: 2rem;
    border-radius: 2px;
}

.about-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Left Side: Timeline */
.custom-timeline {
    /* Swapped hardcoded white for the adaptive glass-border variable */
    border-left: 2px solid var(--glass-border); 
    padding-left: 20px;
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.timeline-step {
    position: relative;
}

.step-dot {
    position: absolute;
    left: -25px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.blue-dot { background-color: #0d6efd; }
.teal-dot { background-color: #0dcaf0; }

.step-year {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-detail {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Right Side: Founder Card (Adaptive for Light/Dark Mode) */
.founder-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem;
}

.founder-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Perfect Circular Image Masking */
.founder-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.founder-heading {
    font-size: 1.3rem;
    color: var(--text-primary); /* Now adapts to light/dark */
    margin-bottom: 0.5rem;
}

.founder-name {
    color: #0d6efd;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.founder-role {
    color: var(--text-secondary); /* Now adapts to light/dark */
    font-size: 0.85rem;
}

/* Progress Bars */
.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-primary); /* Now adapts to light/dark */
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.skill-percent {
    color: #0d6efd;
}

.skill-bar-bg {
    width: 100%;
    height: 8px;
    background-color: var(--glass-border); /* Now adapts to light/dark */
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background-color: #0d6efd;
    border-radius: 4px;
}

/* Experience Badge */
.experience-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: rgba(13, 110, 253, 0.1); /* Soft transparent blue looks great in both modes */
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
    color: var(--text-primary); /* Now adapts to light/dark */
    font-weight: 600;
    font-size: 0.9rem;
}

.experience-badge svg {
    color: #0d6efd;
}

/* =========================================
   Services Section (Locked & Strict)
   ========================================= */

/* Centered Header */
.section-header-center {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.center-underline {
    width: 60px;
    height: 4px;
    background-color: #0d6efd;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 1rem;
}

/* STRICT 4-Column Grid */
.services-grid {
    display: grid;
    /* Forces exactly 4 columns. Prevents ultra-wide stretching */
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem;
    max-width: 1200px; /* Absolutely prevents the grid from exceeding 1200px */
    margin: 0 auto;
    width: 100%;
}

/* Service Card Strict Layout */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    height: 100%;
    /* Prevents the card from ever exceeding a normal width */
    max-width: 350px; 
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

/* Locked Icon Box */
.service-icon-box {
    /* flex: 0 0 45px forces it to stay exactly 45px, never growing or shrinking */
    flex: 0 0 45px !important; 
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    background-color: rgba(13, 110, 253, 0.1); 
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #0d6efd;
    overflow: hidden;
}

/* Locked SVG File */
.service-icon-box svg {
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    display: block !important;
}

.service-title {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.service-link:hover {
    color: #0a58ca;
    transform: translateX(5px);
}

/* Media Queries to safely stack the strict grid on smaller screens */
@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media screen and (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 column on phones */
    }
}

/* =========================================
   Hardware & Products Section
   ========================================= */

/* Header & Tags Layout */
.products-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
}

.products-header-text {
    flex: 1;
    min-width: 300px;
}

/* Category Pills Layout */
.products-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    flex: 1;
    min-width: 300px;
}

/* Pill Styling */
.pill {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.pill:hover {
    background: rgba(13, 110, 253, 0.2);
}

/* Carousel Container */
.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    /* This creates a fade-out effect on the left and right edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* Carousel Animation Track */
.carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scroll-left 35s linear infinite; /* Adjust '35s' to make it faster/slower */
}

/* Pauses the carousel when the user hovers over it with their mouse */
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

/* Floating Brand Cards */
.brand-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #0d6efd; /* Updated to match theme blue */
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

/* Updated Hover Effect: Inverts colors for a premium feel */
.brand-card:hover {
    transform: translateY(-5px);
    border-color: #0d6efd;
    background-color: #0d6efd; 
    color: #ffffff; 
}

/* Infinite Scroll Keyframes */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Translates exactly half the track width to create a perfect invisible loop */
        transform: translateX(calc(-50% - 0.75rem)); 
    }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .products-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    .products-category-pills {
        justify-content: flex-start;
    }
}

/* =========================================
   Project Experience & Industries Section
   ========================================= */

/* Industry Pills Layout */
.industry-pills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 3.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.industry-pill {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: default;
}

.industry-pill svg {
    width: 16px;
    height: 16px;
    color: inherit;
}

.industry-pill:hover {
    border-color: #0d6efd;
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
}

/* Projects Grid Layout */
.projects-grid {
    display: grid;
    /* 3 Columns by default */
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Specific Card Styling (Gradient Top Border & Centered Text) */
.project-card {
    position: relative;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* Changed from flex-start to center */
    text-align: center;  /* Ensures multi-line paragraphs are centered */
    overflow: hidden; 
}

/* The Gradient Bar */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px; /* Thickness of the top bar */
    background: linear-gradient(90deg, #0d6efd, #00d2ff); /* Blue to Cyan gradient */
}

.project-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Rules for Projects Grid */
@media screen and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr; /* 1 column on phones */
    }
}

/* =========================================
   Projects Section Specific Overrides
   ========================================= */

/* 1. Force absolute centering for the Projects title and subtitle */
#projects .section-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 2.5rem;
}

#projects .center-underline {
    margin: 0.5rem auto 1.5rem auto !important; /* Locks the line in the middle */
}

#projects .section-subtitle {
    margin: 0 auto !important;
    text-align: center;
    max-width: 600px;
}

/* 2. Make ONLY the Project Cards 75% transparent (0.25 opacity) */
/* Light Mode (Default) */
#projects .project-card {
    background: rgba(255, 255, 255, 0.25) !important;
}

/* Dark Mode */
[data-theme="dark"] #projects .project-card {
    background: rgba(18, 18, 18, 0.25) !important;
}

/* =========================================
   Contact Section (Side-by-Side Layout)
   ========================================= */

.contact-grid {
    display: grid;
    /* Forces 2 equal columns on desktop */
    grid-template-columns: repeat(2, 1fr); 
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0 auto;
    width: 100%;
}

/* Glass Card Styling for both sides */
.contact-form-container, .schedule-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.contact-heading {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* --- Form Styles (Left Side) --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Adaptive Form Inputs */
.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(0, 0, 0, 0.05); /* Slight dark tint for Light Mode */
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

/* Dark Mode form input adjustments */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: rgba(255, 255, 255, 0.05); /* Slight white tint for Dark Mode */
}

/* Dropdown Options Styling Fix */
.form-group select option {
    background-color: var(--glass-bg);
    color: #333; /* Ensures text is visible in standard browser dropdowns */
}

[data-theme="dark"] .form-group select option {
    background-color: #1a1a1a;
    color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0d6efd;
}

.submit-btn {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: #0a58ca;
}

/* --- Schedule Consultation Styles (Right Side) --- */
.schedule-container {
    justify-content: center;
    text-align: center;
}

.schedule-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.schedule-icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.schedule-icon svg {
    width: 30px;
    height: 30px;
}

.schedule-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 90%;
}

.calendly-btn {
    display: inline-block;
    background: transparent;
    color: #0d6efd;
    border: 2px solid #0d6efd;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.calendly-btn:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-3px);
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stacks the two boxes on phones */
        gap: 1.5rem;
    }
}

/* =========================================
   Footer Social & Contact Links
   ========================================= */

/* Social Icons */
.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05); /* Faint background ring */
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    background: #0d6efd; /* Theme Blue */
    color: #ffffff;
    transform: translateY(-3px);
}

/* Contact Links */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-contact-link svg {
    width: 18px;
    height: 18px;
    color: #0d6efd; /* Keep icons blue so they stand out */
    flex-shrink: 0;
}

.footer-contact-link:hover {
    color: #0d6efd;
}

/* =========================================
   Footer Surgical Fixes 
   ========================================= */

/* 1. Center the Social SVGs perfectly in their circles */
.footer-socials a, 
.social-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 2. Contact Info Fixes (Locked side-by-side) */
.footer-contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    
    /* Strict layout rules to prevent stacking */
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important; /* Forces them to stay on one line */
    
    gap: 12px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    white-space: nowrap; /* Prevents long emails from breaking to a new line */
}

.footer-contact-link svg {
    flex-shrink: 0 !important; /* Prevents the icon from squishing */
    display: block !important;
}

.footer-contact-link:hover {
    color: #0d6efd !important; 
}

/* =========================================
   Mobile Landing Page Adjustments
   ========================================= */
@media screen and (max-width: 768px) {
    /* Adjust your main hero titles for smaller screens */
    .hero-title, h1 {
        font-size: 2.2rem !important; 
        line-height: 1.2;
        padding: 0 1rem;
    }

    .hero-subtitle, .section-subtitle {
        font-size: 1rem !important;
        padding: 0 1rem;
    }

    /* Add more padding to the sides of the page container */
    .page-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* =========================================
   ULTIMATE MOBILE RESCUE FIX
   ========================================= */

/* 1. Universal Box-Sizing (Stops padding from adding to width) */
*, *::before, *::after {
    box-sizing: border-box !important;
}

/* 2. Global Overflow Kill-Switch */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* 3. Force Canvas & Media to Shrink */
img, video, canvas, iframe, spline-viewer {
    max-width: 100% !important;
}

/* MOBILE ONLY RULES */
@media screen and (max-width: 768px) {
    
    /* 4. Force Header/Navbar to Wrap (Prevents pushing off-screen) */
    header, nav, .navbar, .header-container {
        flex-wrap: wrap !important;
        height: auto !important;
        padding: 1rem !important;
        justify-content: center !important;
    }
    
    /* 5. Force Footer Columns to Stack Vertically */
    footer, .footer, footer > div, .footer-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem !important;
        width: 100% !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    /* 6. Stop long text (like emails/links) from breaking the layout */
    p, a, span, h1, h2, h3, h4, li {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }

    /* 7. Constrain the 3D Canvas height so you can scroll past it */
    canvas, .canvas-container {
        height: 60vh !important; /* Limits it to 60% of screen height */
        object-fit: cover !important;
    }
}

/* =========================================
   MOBILE HEADER OVERLAP FIX
   ========================================= */
@media screen and (max-width: 768px) {
    
    /* 1. Stop the header from floating over the text */
    header, nav, .navbar, .header-container {
        position: relative !important; /* This forces it to sit in the normal page flow and push content down */
    }

    /* 2. Add some breathing room between the header and your 3D text */
    .hero-section, #home, .hero, main {
        padding-top: 2rem !important;
    }

    /* 3. Center your navigation links nicely */
    .nav-links, .nav-menu, ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px 20px !important; /* Adds nice spacing between Home, About, etc. */
        padding: 0 !important;
        margin: 1rem 0 !important;
    }
}