/* ==========================================================================
   First Section: Services Grid
   ========================================================================== */
.services-section {
    padding: 120px 5%; /* Optimized down from 200px to maintain consistent layout flow */
    background: #0a192f;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: #112240;
    border: 1px solid rgba(0, 210, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    position: relative;
    /* Hardware acceleration layer configuration */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, border-color, box-shadow;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px) translateZ(0);
    border-color: var(--sky-blue);
    box-shadow: 0 12px 30px rgba(0, 210, 255, 0.15);
}

.service-card h3 {
    font-family: var(--orbitron);
    color: var(--sky-blue);
    margin: 20px 0 12px 0;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.6;
}

.icon, .h-icon {
    font-size: 3.5rem !important; /* Forces the emoji size up instantly */
    margin-bottom: 20px;
    display: inline-block;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.2));
}

/* --- Click to Open / Accordion Logic --- */
.toggle-input {
    display: none; 
}

.details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 0px solid var(--sky-blue);
    margin-top: 0;
}

.details ul {
    list-style: none;
    padding: 20px 0 10px 0;
}

.details li {
    color: var(--white);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.details li::before {
    content: '▹';
    color: var(--sky-blue);
    margin-right: 10px;
}

/* Trigger panel display upon check verification */
.toggle-input:checked ~ .card-content .details {
    max-height: 300px; /* Elevated buffer height to safely prevent text clipping */
    border-top: 1px solid rgba(0, 210, 255, 0.2);
    margin-top: 20px;
}

.btn-more {
    display: inline-block;
    margin-top: 25px;
    color: var(--sky-blue);
    font-family: var(--orbitron);
    font-size: 0.75rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, text-shadow 0.3s ease;
}

.btn-more:hover {
    border-bottom-color: var(--sky-blue);
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
}

/* ==========================================================================
   Second Section: Featured Services (Tiers)
   ========================================================================== */
.featured-services {
    padding: 100px 5%;
    background-color: #050a15; 
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.f-card {
    height: 450px;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, border-color, box-shadow;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.f-card:hover {
    transform: scale(1.02) translateZ(0);
}

/* --- Tier Variations --- */

/* 1. Cyber Customization Layout */
.tier-cyber {
    background: linear-gradient(135deg, #0a192f 0%, #050b14 100%); /* FIXED: Replaced open blank parameter */
    box-shadow: inset 0 0 50px rgba(0, 210, 255, 0.05);
}
.tier-cyber .f-btn {
    background: var(--navy-deep);
    color: var(--white);
    border-color: var(--sky-blue);
}
.tier-cyber:hover { 
    border-color: var(--sky-blue); 
    box-shadow: 0 12px 30px rgba(0, 210, 255, 0.2); 
}

/* 2. Build Structural Layout */
.tier-build {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
}
.tier-build h3, .tier-build p, .tier-build .f-tag { 
    color: #0a192f !important;
}
.tier-build .f-btn { 
    background: #0a192f; 
    color: #fff; 
}

/* 3. Lab Layer (Glassmorphism Matrix) */
.tier-lab {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 210, 255, 0.2);
}
.tier-lab .f-btn {
    background: var(--navy-deep);
    color: var(--white);
    border-color: var(--sky-blue);
}
.tier-lab:hover { 
    background: rgba(255, 255, 255, 0.07); 
}

/* --- Inner Card Composition Elements --- */
.f-tag {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sky-blue);
    margin-bottom: 15px;
}

.f-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.f-card p {
    font-size: 0.9rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.f-btn {
    text-decoration: none;
    font-family: var(--orbitron);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 12px 25px;
    border: 1px solid currentColor;
    width: fit-content;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.f-btn:hover {
    background: var(--sky-blue);
    color: var(--navy-deep);
    border-color: var(--sky-blue);
}

/* ==========================================================================
   Third Section: Hardware Services Array
   ========================================================================== */
.hardware-services {
    padding: 100px 5%;
    background-color: #0a192f; 
    border-top: 1px solid rgba(0, 210, 255, 0.1);
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.h-card {
    background: #112240; 
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(0, 210, 255, 0.05);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, border-color, box-shadow;
}

.h-card:hover {
    border-color: var(--sky-blue);
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* FIXED: Configured explicit emoji scaling layer */
.h-icon {
    font-size: 3.5rem; 
    margin-bottom: 20px;
    display: inline-block;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.2));
}

.h-card h3 {
    font-family: var(--orbitron);
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.h-card p {
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.h-list {
    list-style: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.h-list li {
    font-family: var(--orbitron);
    font-size: 0.75rem;
    color: var(--sky-blue);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.h-list li::before {
    content: ">>";
    margin-right: 10px;
    font-size: 0.6rem;
}

/* ==========================================================================
   Global Form Action Elements & Messaging Matrix
   ========================================================================== */
.btn-glow, .btn-outline {
    padding: 16px 35px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px; 
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, background, box-shadow;
    display: inline-block;
    text-align: center;
    min-width: 180px; 
    border: 2px solid var(--sky-blue); 
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn-glow {
    background: var(--sky-blue);
    color: var(--navy-deep);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.btn-glow:hover {
    background: #5cdfff; 
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--sky-blue);
}

.btn-outline:hover {
    background: rgba(0, 210, 255, 0.08); 
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.15);
}

.general-speach {
    padding: 120px 20px;
    background: linear-gradient(180deg, #0a192f 0%, #112240 100%); 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top: 1px solid rgba(0, 210, 255, 0.1);
    border-bottom: 1px solid rgba(0, 210, 255, 0.1);
}

.container-speach {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.badge-mini {
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--sky-blue);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.general-speach h1 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--white);
    text-transform: uppercase;
}

.text-glow {
    color: var(--sky-blue);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.general-speach p {
    font-size: 1.1rem;
    color: var(--slate);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 750px; 
}

.tech-divider {
    width: 60px;
    height: 4px;
    background: var(--sky-blue);
    box-shadow: 0 0 15px var(--sky-blue);
    border-radius: 2px;
}

/* ==========================================================================
   Consolidated Responsive Layout System
   ========================================================================== */
@media (max-width: 992px) {
    /* Tablet Profile Grid Adaptations */
    .services-grid, 
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .hardware-grid {
        grid-template-columns: 1fr;
    }
    .f-card {
        height: 400px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    /* Mobile Device Profile Adaptations */
    .services-section, 
    .featured-services, 
    .hardware-services {
        padding: 80px 4%;
    }
    .services-grid, 
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .general-speach h1 {
        font-size: 1.8rem;
    }
    .general-speach p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Narrow Screens / Small Smartphone Formats */
    .cta-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px; /* Added native flex tracking spacing instead of custom margins */
        width: 100%;
    }
    .btn-glow, .btn-outline {
        width: 100%;
        min-width: unset;
    }
}