/* 
   -------------------------------------------------
   TELECONNECT DESIGN SYSTEM
   Theme: Premium, Clinical, Light Mode (White + Blue)
   -------------------------------------------------
*/

:root {
    --primary: #007bff;
    --primary-dark: #0b2a4a;
    --accent: #00c6ff;
    --bg-light: #f8fbff;
    --text-main: #1a1a1a;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    scroll-behavior: smooth;
    overflow-x: hidden;
    line-height: 1.6;
}

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

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* HEADER */
header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: 120px; /* Increased to fit the 95px logo comfortably */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0 4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 95px;
    /* BIGGER LOGO */
    transition: var(--transition);
}

.logo span {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary-dark);
    font-family: 'Outfit', sans-serif;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary);
}

.cta-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
    transition: var(--transition);
}

.cta-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--primary-dark);
    background-image:
        linear-gradient(to right, rgba(248, 251, 255, 0.9) 30%, rgba(248, 251, 255, 0.4) 100%),
        url('herosection.webp');
    background-size: cover;
    background-position: center;
    padding-top: 150px; /* More padding to clear the 120px header */
    padding-bottom: 60px;
}

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

.hero h1 {
    font-size: 4.5rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.3);
}

/* SECTIONS */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.about-img img {
    width: 100%;
    display: block;
    object-fit: cover;
    min-height: 450px;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--white);
    padding: 0;
    border-radius: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 123, 255, 0.05);
    overflow: hidden;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
    z-index: 0;
}

.card:hover .card-bg {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 42, 74, 0.95) 20%, rgba(11, 42, 74, 0.2) 100%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
    color: var(--white);
}

.card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
}

.card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card p {
    color: #e2e8f0;
    font-size: 0.9rem;
}

/* CONTACT */
.contact {
    position: relative;
    background-image:
        linear-gradient(rgba(248, 251, 255, 0.95), rgba(248, 251, 255, 0.9)),
        url('https://images.unsplash.com/photo-1576671081837-49000212a370?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
}

/* PROCESS */
.process {
    background: var(--primary-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.process-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1581594693702-fbdc51b2763b?auto=format&fit=crop&q=80&w=1920') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.process .container {
    position: relative;
    z-index: 1;
}

.process .section-header h2,
.process .section-header p {
    color: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 4rem;
}

.step {
    text-align: center;
}

.step-num {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin: 0 auto 2rem;
}

/* TESTIMONIALS */
.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.testimonial {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.testimonial img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 2rem;
    border: 3px solid var(--primary);
}

.testimonial p {
    font-style: italic;
    color: #475569;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.testimonial strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.contact-form {
    background: var(--white);
    padding: 4rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1.25rem;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    outline: none;
    transition: var(--transition);
    font-size: 1rem;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.checkbox-wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin: 1.5rem 0;
    text-align: left;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 4px;
    accent-color: var(--primary);
}

.checkbox-wrapper label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.checkbox-wrapper a {
    color: var(--primary);
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 1.25rem;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
}

/* LEGAL PAGES */
.legal-content {
    background: var(--white);
    padding: 80px 100px;
    border-radius: 40px;
    margin-top: 50px;
    box-shadow: var(--shadow);
}

.legal-content h1 {
    font-size: 3.5rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content h2 {
    color: var(--primary);
    margin: 40px 0 20px;
    font-size: 1.8rem;
}

.legal-content p,
.legal-content li {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 20px;
}

/* FOOTER */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 100px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-brand .logo img {
    filter: brightness(0) invert(1);
}

.footer-brand .logo span {
    color: var(--white);
}

.footer-brand p {
    margin-top: 2rem;
    color: #94a3b8;
    max-width: 350px;
}

.footer-links h4 {
    margin-bottom: 2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 1rem;
}

.footer-links ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 42, 74, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 5rem;
    border-radius: 40px;
    text-align: center;
    max-width: 550px;
}

/* RESPONSIVE */
@media(max-width: 1024px) {
    header {
        padding: 0 2rem;
        height: 100px;
    }

    .logo img {
        height: 70px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero {
        padding-top: 130px;
    }

    .about-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media(max-width: 768px) {
    nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-bottom: 0px;
        z-index: 999;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    nav ul.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
        z-index: 1001; /* Above the navbar overlay */
        font-size: 2rem;
    }

    /* Hide Get Tested button on mobile */
    .cta-header {
        display: none;
    }
}