/* ========================================
    BIGPRO SOLUTION - COMPLETE CSS THEME
    Modern, responsive, semiconductor brand
    FULLY OPTIMIZED FOR ALL DEVICES
======================================== */

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #0d141a;
    line-height: 1.5;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* ---------- CONTAINER SYSTEM ---------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 28px;
    }
}
@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 8vw, 4rem);
}
h2 {
    font-size: clamp(1.75rem, 6vw, 3.5rem);
}
h3 {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
}
h4 {
    font-size: clamp(1.35rem, 4vw, 2.2rem);
}
h5 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}
h6 {
    font-size: 1.125rem;
}

.body-large {
    font-size: clamp(1rem, 4vw, 1.125rem);
    line-height: 1.5;
}
.body {
    font-size: clamp(0.875rem, 3vw, 1rem);
    line-height: 1.5;
    color: #56585e;
}
.body-small {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #489bcf;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: clamp(0.875rem, 3vw, 1rem);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 44px;
}
.btn-primary:hover {
    background: #1e4a76;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15,43,61,0.3);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #f8fcff;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: clamp(0.875rem, 3vw, 1rem);
    text-decoration: none;
    border: 1.5px solid #f2faff;
    transition: all 0.3s ease;
    min-height: 44px;
}
.btn-outline:hover {
    background: #0f2b3d;
    color: white;
    transform: translateY(-3px);
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 20px;
    max-width: 1400px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .nav-container {
        padding: 0.75rem 32px;
    }
}
.logo {
    display: flex;
    align-items: center;
}
.logo a {
    display: inline-block;
    line-height: 0;
}
.logo-img {
    max-height: 38px;
    width: auto;
    display: block;
}
@media (min-width: 768px) {
    .logo-img {
        max-height: 42px;
    }
}
.logo h1 {
    font-size: 1.6rem;
    background: linear-gradient(135deg, #0f2b3d, #1e4a76);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* Navigation Links */
.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    padding: 1.25rem;
    gap: 1rem;
    box-shadow: 0 20px 30px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e2e8f0;
    z-index: 999;
}
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        background: transparent;
        width: auto;
        padding: 0;
        gap: 1.8rem;
        box-shadow: none;
        border-bottom: none;
    }
}
.nav-links.active {
    display: flex;
}
.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #1e293b;
    transition: 0.2s;
    font-size: clamp(0.875rem, 3vw, 1rem);
    text-align: center;
    padding: 0.6rem 0;
}
@media (min-width: 768px) {
    .nav-links a {
        padding: 0;
    }
}
.nav-links a:hover {
    color: #2c7da0;
}
/* Active Menu Styling */
.nav-links a.active {
    color: #2c7da0;
    font-weight: 700;
    position: relative;
}

/* Underline effect for active menu */
@media (min-width: 768px) {
    .nav-links a.active::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, #2c7da0, #489bcf);
        border-radius: 2px;
    }
    
    .nav-links a {
        position: relative;
    }
}

/* Get Quote Button */
.nav-cta {
    background: linear-gradient(135deg, #0f2b3d 0%, #1e4a76 100%);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(15,43,61,0.2);
    transition: all 0.3s ease;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15,43,61,0.3);
    background: linear-gradient(135deg, #1e4a76 0%, #0f2b3d 100%);
}
/* Mobile Menu */
.menu-icon {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0f2b3d;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 768px) {
    .menu-icon {
        display: none;
    }
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    padding: 120px 0 80px;
    color: white;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}
@media (min-width: 768px) {
    .hero {
        padding: 140px 0 100px;
    }
}
@media (min-width: 1024px) {
    .hero {
        min-height: 100vh;
    }
}

/* Video Background */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dark Overlay for better text readability */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 26, 47, 0.3);
    z-index: 1;
} 

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    color: white;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 40px;
    font-size: clamp(0.7rem, 3vw, 0.85rem);
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-gradient-text {
    background: linear-gradient(120deg, #a9a5ff, #5ab0d0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: clamp(0.9rem, 4vw, 1.125rem);
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.95);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 16px;
}

.hero-image {
    display: none;
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 60px 0;
}
@media (min-width: 768px) {
    .section {
        padding: 80px 0;
    }
}
.section-light {
    background: #f8fafc;
}
.section-title {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0 16px;
}
.section-sub {
    text-align: center;
    color: #56585e;
    max-width: 680px;
    margin: 0 auto 2rem auto;
    font-size: clamp(0.9rem, 4vw, 1.125rem);
    padding: 0 20px;
}
@media (min-width: 768px) {
    .section-sub {
        margin-bottom: 3rem;
    }
}

/* Cards Grid - Fully Responsive */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 16px;
}
@media (min-width: 480px) {
    .cards-grid {
        gap: 1.8rem;
    }
}
@media (min-width: 640px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}
@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Testimonials Grid - Fully Responsive */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 16px;
}
@media (min-width: 480px) {
    .testimonials-grid {
        gap: 1.8rem;
    }
}
@media (min-width: 640px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}
@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.service-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    border: 1px solid #eef2ff;
    transition: all 0.3s ease;
}
@media (min-width: 768px) {
    .service-card {
        padding: 2rem;
        border-radius: 28px;
    }
}
@media (min-width: 1024px) {
    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 35px -12px rgba(0,0,0,0.12);
        border-color: #cbd5e1;
    }
}

.service-icon {
    font-size: 2.2rem;
    color: #1e4a76;
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .service-icon {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
}
.service-card p {
    color: #56585e;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
}
@media (min-width: 768px) {
    .service-card p {
        font-size: 0.9rem;
    }
}

.testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    border: 1px solid #eef2ff;
    transition: all 0.3s ease;
}
@media (min-width: 768px) {
    .testimonial-card {
        padding: 2rem;
        border-radius: 28px;
    }
}
@media (min-width: 1024px) {
    .testimonial-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 35px -12px rgba(0,0,0,0.12);
        border-color: #cbd5e1;
    }
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: #334155;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
}
.client-name {
    font-weight: 700;
    color: #0f2b3d;
    margin-top: 1rem;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
}

/* Stats Section */
.stats-section {
    background: #0a1a2f;
    color: white;
    padding: 50px 0;
}
@media (min-width: 768px) {
    .stats-section {
        padding: 70px 0;
    }
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: center;
    padding: 0 16px;
}
@media (min-width: 480px) {
    .stats-grid {
        gap: 2rem;
    }
}
@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}
.stat-item h2 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.stat-item p {
    opacity: 0.8;
    font-size: clamp(0.75rem, 3vw, 0.95rem);
}

/* Two Column Layout */
.two-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    padding: 0 16px;
}
@media (min-width: 640px) {
    .two-col {
        gap: 2.5rem;
    }
}
@media (min-width: 768px) {
    .two-col {
        flex-direction: row;
        gap: 3rem;
    }
}
@media (min-width: 1024px) {
    .two-col {
        gap: 4rem;
    }
}
.expansion-content {
    flex: 1;
}
.expansion-img {
    flex: 1;
}
.expansion-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
}
@media (min-width: 768px) {
    .expansion-img img {
        border-radius: 28px;
    }
}
.expansion-badge {
    display: inline-block;
    background: #d9e8f5;
    color: #0f3b5c;
    padding: 0.25rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .expansion-badge {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(120deg, #0f2b3d, #155e75);
    border-radius: 28px;
    padding: 40px 24px;
    text-align: center;
    color: white;
    margin: 30px 16px;
}
@media (min-width: 640px) {
    .cta-section {
        margin: 40px 20px;
        border-radius: 32px;
    }
}
@media (min-width: 768px) {
    .cta-section {
        padding: 50px 40px;
        margin: 40px 0;
        border-radius: 40px;
    }
}
@media (min-width: 1024px) {
    .cta-section {
        padding: 60px 40px;
    }
}
.cta-section h3 {
    font-size: clamp(1.4rem, 5vw, 2rem);
    margin-bottom: 1rem;
}
.cta-btn {
    background: white;
    color: #0f2b3d;
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    font-weight: 700;
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(0.85rem, 3vw, 1rem);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: #0a1a2f;
    color: #cbd5e1;
    padding: 40px 0 20px;
}
@media (min-width: 768px) {
    footer {
        padding: 50px 0 20px;
    }
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 16px;
}
@media (min-width: 480px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
}
@media (min-width: 640px) {
    .footer-grid {
        gap: 2rem;
    }
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        padding: 0;
    }
}
.footer-col h4 {
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}
@media (min-width: 768px) {
    .footer-col h4 {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }
}
.footer-col a, .footer-col p {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.4rem;
    transition: color 0.2s;
    font-size: 0.8rem;
}
@media (min-width: 768px) {
    .footer-col a, .footer-col p {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
}
.footer-col a:hover {
    color: #2c7da0;
}
.social-icons {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.8rem;
}
@media (min-width: 768px) {
    .social-icons {
        gap: 1.5rem;
        margin-top: 1rem;
    }
}
.social-icons a {
    color: white;
    font-size: 1.2rem;
}
@media (min-width: 768px) {
    .social-icons a {
        font-size: 1.4rem;
    }
}
.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #1e2a3a;
    font-size: 0.7rem;
    margin: 0 16px;
}
@media (min-width: 768px) {
    .copyright {
        padding-top: 2rem;
        font-size: 0.85rem;
        margin: 0;
    }
}

/* Modal */
#contactModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
#contactModal > div {
    background: white;
    max-width: 500px;
    width: 90%;
    border-radius: 28px;
    padding: 1.5rem;
    position: relative;
    margin: 16px;
}
@media (min-width: 640px) {
    #contactModal > div {
        padding: 2rem;
        border-radius: 32px;
        margin: 0;
    }
}
#closeModal {
    position: absolute;
    right: 18px;
    top: 16px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 640px) {
    #closeModal {
        right: 24px;
        top: 20px;
        font-size: 1.8rem;
    }
}
#closeModal:hover {
    color: #b91c1c;
}
.modal-input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 1rem;
    border-radius: 40px;
    border: 1px solid #ccc;
    font-size: 16px;
    font-family: inherit;
}
@media (min-width: 640px) {
    .modal-input {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}
.modal-input:focus {
    outline: none;
    border-color: #0f2b3d;
}
textarea.modal-input {
    border-radius: 24px;
    resize: vertical;
}

/* Animation */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* ---------- TOUCH-FRIENDLY IMPROVEMENTS ---------- */
@media (max-width: 768px) {
    button, 
    a, 
    [role="button"],
    .menu-icon,
    .nav-links a {
        -webkit-tap-highlight-color: rgba(44, 125, 160, 0.2);
    }
    
    .service-card:active,
    .testimonial-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .btn-primary:active,
    .btn-outline:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }
}

/* ---------- SAFE AREA FOR MODERN PHONES ---------- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    
    footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
    
    #contactModal > div {
        margin-bottom: env(safe-area-inset-bottom);
    }
}