:root {
    --black: #000000;
    --blue: #007BFF;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* --- Global Mobile & Tablet Protocol --- */

@media (max-width: 992px) {
    /* 1. Fluid Typography: Clamp prevents text overflow on small screens */
    h1 { font-size: clamp(2.2rem, 8vw, 4rem) !important; line-height: 1.1; }
    h2 { font-size: clamp(1.8rem, 6vw, 2.5rem) !important; }
    p { font-size: 1rem !important; opacity: 0.8; }

    /* 2. Navigation: Switch to a mobile-friendly layout */
    .glass-nav {
        padding: 15px 5%;
        justify-content: space-between;
    }
    .nav-links { display: none; } /* Recommended: Replace with a burger menu icon */

    /* 3. Hero Sections: Center everything for thumb-scrolling */
    .services-hero, .pricing-hero {
        padding: 140px 5% 60px !important;
        text-align: center;
    }

    /* 4. Unified Cards: Vertical Stacking with 5% Screen Margin */
    .unified-service-card, .pricing-card, .form-card {
        margin: 0 5% 40px 5% !important;
        border-radius: 30px !important;
    }

    /* 5. Internal Padding: 8% on desktop becomes 6% on mobile to save space */
    .card-inner-padding {
        padding: 40px 6% !important;
    }

    /* 6. Grid Fixes: Force all 2-column grids into 1-column */
    .master-header, .mini-grid, .pricing-layout, .form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }

    /* 7. Image Scaling: Ensure images don't look squashed */
    .master-image-box {
        width: 100% !important;
        height: 250px !important;
    }

    /* 8. Touch Targets: Make buttons easier to tap */
    .btn-blue, .btn-primary-3d, .select-plan {
        width: 100%;
        padding: 20px !important;
        font-size: 1.1rem;
    }

    /* 9. Form Inputs: Prevent iOS 'Auto-Zoom' on focus */
    input, select, textarea {
        font-size: 16px !important; /* Minimum for iOS to prevent zooming */
        padding: 18px !important;
    }
}

/* Glass Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
}

.glass-nav {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 15px 40px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.logo span { color: var(--blue); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--blue);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.15), transparent);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px; /* Prevents text from stretching too far */
    line-height: 1.6;
    margin-bottom: 30px; 
}

.highlight {
    color: var(--blue);
    text-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

.btn-blue, .btn-main {
    background: var(--blue);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-main:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--blue);
}
.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 40px; /* Gives the text room to breathe */
    align-items: center;
}

/* Primary "View Systems" Button */
.btn-primary {
    background: var(--blue);
    color: var(--white);
    padding: 16px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
    border: 2px solid var(--blue);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.7);
    background: #0062cc;
}

/* Secondary "Book Consultation" Button */
.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 16px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 2px solid var(--border);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}
.skills-matrix {
    padding: 60px 20%;
    background: #000;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.section-title span { color: var(--blue); }

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 60px;
}

.skills-container {
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    margin-bottom: 35px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.services-overview {
    padding: 100px 10%;
    background: #000;
}

.services-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-summary-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.4s ease;
    text-align: left; /* Aligns content professionally */
}

.service-summary-card:hover {
    background: rgba(0, 123, 255, 0.05);
    border-color: var(--blue);
    transform: translateY(-10px);
}

.service-icon {
    width: 50px;
    height: 50px;
    color: var(--blue);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(0, 123, 255, 0.5));
}

.service-summary-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.service-summary-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-size: 0.95rem;
}

.explore-link {
    display: inline-block;
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    transition: 0.3s;
}

.explore-link:hover {
    letter-spacing: 1px;
}

.center-btn { text-align: center; 
}

.progress-line {
    height: 8px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-line span {
    height: 100%;
    background: var(--blue);
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 10px;
    /* This makes it look 3D and glowing */
    transition: width 1.5s cubic-bezier(1, 0, 0, 1);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.price-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: 0.4s;
    position: relative;
}

.price-card.featured {
    border-color: var(--blue);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}

.popular-tag {
    background: var(--blue);
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 20px;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.price-card .tier { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; margin-bottom: 10px; }
.price-card .time { font-size: 2rem; font-weight: 900; color: var(--blue); margin-bottom: 20px; }

.price-features { list-style: none; margin-bottom: 30px; text-align: left; }
.price-features li { margin-bottom: 10px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.price-features li::before { content: "✓ "; color: var(--blue); }

/* System Status Bar */
.system-status-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.leadership {
    padding: 100px 5%;
    background: linear-gradient(to bottom, #000, #050505);
}

.leader-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

/* CEO Card highlighting */
.ceo-card {
    width: 320px;
    border: 2px solid var(--blue) !important;
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.2);
}

.sub-leaders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    width: 100%;
}

.leader-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.leader-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.leader-img-container {
    width: 100%;
    aspect-ratio: 1/1;
    background: #111; /* Placeholder color before you add images */
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.leader-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.role {
    color: var(--blue);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Trust Bar Styles */
.trust-bar {
    text-align: center;
    margin-bottom: 80px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.trust-bar p {
    color: var(--blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 30px;
}

.logo-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.partner-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
    margin: 0 40px;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Testimonial Cards */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testi-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    transition: 0.3s;
}

.testi-card:hover {
    background: rgba(0, 123, 255, 0.05);
    border-color: var(--blue);
}

.quote-icon {
    font-size: 4rem;
    color: var(--blue);
    position: absolute;
    top: 10px;
    right: 20px;
    opacity: 0.3;
}

.testi-card p {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.client-meta strong {
    color: var(--blue);
    display: block;
    font-size: 0.9rem;
}

.fiverr-integration {
    padding: 100px 10%;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
}

.fiverr-card-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.fiverr-glass-card {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.fiverr-glass-card:hover {
    transform: scale(1.02);
    border-color: #1dbf73; /* Fiverr Green subtle glow */
    box-shadow: 0 30px 60px rgba(29, 191, 115, 0.1);
}

.fiverr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.fiverr-badge {
    background: #1dbf73;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 15px;
    border-radius: 50px;
    letter-spacing: 1px;
}

.fiverr-mini-logo { height: 20px; opacity: 0.8; }

.fiverr-profile-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--blue);
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-meta h3 { font-size: 1.4rem; color: #fff; margin-bottom: 5px; }

.profile-meta p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }

.rating-stars { color: #ffb33e; margin-top: 5px; font-size: 0.9rem; }

.fiverr-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-bottom: 30px;
}

.stat span { display: block; font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; }

.stat strong { font-size: 1.2rem; color: #fff; }

.fiverr-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #000;
    text-decoration: none;
    padding: 18px;
    border-radius: 15px;
    font-weight: 700;
    transition: 0.3s;
}

.fiverr-cta:hover { background: #1dbf73; color: #fff; }

.arrow-icon { width: 18px; height: 18px; }

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    margin-bottom: 50px;
}

.bento-item {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.5s ease;
}

.bento-item.large { grid-column: span 2; grid-row: span 2; }
.bento-item.medium { grid-column: span 1; grid-row: span 2; }
.bento-item.small { grid-column: span 3; grid-row: span 1; }

.bento-item:hover {
    transform: scale(0.98);
    border-color: var(--blue);
}

.bento-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.5s;
}

.bento-item:hover img { opacity: 1; }

.bento-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
}

.bento-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    gap: 25px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.project-box {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 24px; /* Apple-style rounded corners */
    aspect-ratio: 1 / 1; /* Forces a perfect square */
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-box:hover {
    transform: translateY(-10px);
    border-color: var(--blue);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
}

.box-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.box-content img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures your past project images fill the square */
    opacity: 0.7;
    transition: transform 0.8s ease;
}

.project-box:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.box-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--white);
    z-index: 2;
}

.box-overlay h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.box-overlay p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .bento-row {
        grid-template-columns: 1fr; /* Stacks them on mobile */
    }
}

/* Footer Section */
footer {
    padding: 80px 10% 30px;
    background: #000;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

.footer-logo span { color: var(--blue); }

.footer-links h4 { margin-bottom: 20px; color: var(--blue); }

.footer-links ul { list-style: none; }

.footer-links ul li { margin-bottom: 10px; }

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: 0.3s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Initial state for Service Modules */
.service-module {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Class added by JS when scrolled into view */
.module-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Review Vault Styling */
.review-vault-section {
    padding: 100px 10%;
    text-align: center;
}

.section-header { margin-bottom: 60px; }

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3x2 grid on desktop */
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.review-card {
    perspective: 1000px;
}

.review-glass {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 25px;
    padding: 20px;
    backdrop-filter: blur(15px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.review-img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
    filter: grayscale(20%);
    transition: 0.4s;
}

.review-glass:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: var(--blue);
    background: rgba(0, 123, 255, 0.05);
}

.review-glass:hover .review-img {
    filter: grayscale(0%);
}

.star-rating {
    color: #ffb400; /* Fiverr Gold */
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.platform-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
}

/* Mobile Responsiveness for Reviews */
@media (max-width: 992px) {
    .review-grid {
        grid-template-columns: 1fr; /* Stack one by one on mobile */
        max-width: 400px;
    }
}

.system-story-section {
    padding: 100px 8%;
    background: #000;
}

.story-wrapper {
    display: flex;
    align-items: center; /* Centers the 450px card vertically against the 550px image */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    perspective: 2000px;
}

/* Image Box: Bigger & Dominant */
.story-image-panel {
    flex: 1.6; /* Takes up significantly more space than the text */
    max-width: 750px;
}

.image-3d-container {
    width: 100%;
    height: 550px; /* Your requested high-performance height */
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: -30px 30px 60px rgba(0,0,0,0.9);
}

/* Text Box: Smaller Overlay Card */
.story-text-panel {
    flex: 1; 
    height: 450px; /* Specific height for a compact, professional fit */
    margin-left: -180px; /* Deep overlap for that 3D layered look */
    
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    border-radius: 35px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically centers text inside the 450px card */
    box-shadow: 20px 20px 80px rgba(0,0,0,0.8);
}

.card-inner-content {
    padding: 50px;
}

/* Typography Adjustments for the smaller card */
.story-text-panel h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.story-subheading {
    font-size: 1rem;
    color: var(--blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.story-body-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
}

/* Responsive Fix */
@media (max-width: 1024px) {
    .story-wrapper { flex-direction: column; }
    .story-image-panel { max-width: 100%; margin-bottom: -50px; }
    .story-text-panel { 
        margin-left: 0; 
        width: 90%; 
        height: auto; /* Allow height to expand on mobile for readability */
    }
}

.image-3d-container {
    width: 100%;
    height: auto; /* Removes the forced 550px height */
    min-height: 450px; /* Keeps a professional minimum size */
    border-radius: 40px;
    overflow: hidden;
    /* ... keep your other border/shadow styles ... */
}

.image-3d-container img {
    width: 100%;
    height: auto; 
    display: block; /* Removes tiny gaps at the bottom */
}


/* --- Updated Skills Matrix Background --- */
.skills-matrix {
    position: relative;
    padding: 100px 0;
    /* Replace 'assets/tech-bg.jpg' with your actual background image path */
    background: url('assets/the1\ \(2\).png') no-repeat center center/cover;
    background-attachment: fixed; /* Parallax effect for that Apple feel */
    overflow: hidden;
}

/* The Frosted Glass Box */
.skills-matrix .container {
    background: rgba(0, 0, 0, 0.4); /* Dark tint */
    backdrop-filter: blur(25px) saturate(180%); /* THE BLUR: Pure Apple Style */
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle edge glow */
    border-radius: 40px;
    padding: 80px 10%; /* Small side padding for a good fit */
    max-width: 1000px; /* Ensures the box doesn't stretch too wide */
    margin: 0 auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

/* Ensuring text remains perfectly readable over the blur */
.section-title, .section-subtitle, .skill-info span {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.7);

}

/* --- Final Global Mobile & Tablet Refinement --- */

@media (max-width: 1024px) {
    /* Fix for the Image/Text Overlay Section */
    .story-wrapper {
        flex-direction: column !important;
        align-items: center;
        padding: 0 5%;
    }

    .story-image-panel {
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    .image-3d-container {
        height: 350px !important; /* Smaller height for mobile viewing */
        min-height: 300px;
        border-radius: 25px;
    }

    .story-text-panel {
        margin-left: 0 !important; /* Remove the overlap for mobile */
        width: 100% !important;
        height: auto !important; /* Let content dictate height */
        padding: 40px 25px !important;
        border-radius: 25px;
        margin-top: -40px; /* Slight overlap on the bottom of the image for 3D effect */
    }

    .card-inner-content {
        padding: 0 !important;
    }
}

@media (max-width: 768px) {
    /* Navigation Cleanup */
    .glass-nav {
        padding: 10px 20px;
        width: 95%;
        margin: 0 auto;
    }

    .nav-links {
        display: none; /* Hide standard links to prevent bunching */
    }

    /* Hero Section Spacing */
    .hero {
        padding: 0 5%;
        text-align: center;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem !important; /* Prevent text clipping */
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Skills Matrix Mobile Fit */
    .skills-matrix {
        padding: 60px 5%;
    }

    .skills-matrix .container {
        padding: 40px 20px !important;
        width: 100%;
    }

    /* Skills Progress Line logic */
    .skill-info {
        font-size: 0.75rem;
    }

    /* Pricing & Review Grid Fix */
    .pricing-grid, .review-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* System Status Bar - Move for mobile thumbs */
    .system-status-bar {
        bottom: 10px;
        left: 10px;
        font-size: 0.65rem;
        padding: 8px 15px;
    }
}

/* Fix for ultra-small screens */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .fiverr-glass-card {
        padding: 25px 15px;
    }

    .fiverr-stats {
        grid-template-columns: 1fr; /* Stack stats for narrow phones */
        text-align: center;
    }
}
