/* Custom Color Palette & Variables */
:root {
    --primary-color: #0d9488;
    --primary-hover: #0f766e;
    --secondary-color: #1e293b;
    --accent-color: #f59e0b;
    --bg-light: #ffffff;
    --bg-alt: #eef2ff; /* Vibrant indigo tint for distinct contrast */
    --bg-reviews: #e0f2fe; /* Distinct light sky blue tint */
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-footer: #cbd5e1; /* Lighter, highly legible footer text */
    --border-color: #cbd5e1;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 4.5rem; /* Offsets scroll position for sticky header on desktop */
}

/* Body & Typography Customizations */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
}

/* Header Navigation Styles */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* Top Menu Link Base Styles */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none !important; /* Ensures no bullets in any browser */
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0;
    margin: 0;
}

.nav-links li::before {
    content: none !important; /* Removes Pico CSS default list markers */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-btn-nav {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    border: none;
    transition: background-color 0.2s, transform 0.2s;
    display: inline-block;
}

.cta-btn-nav:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Mobile Hamburger Toggle Button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0.5rem;
    margin: 0;
    width: auto;
    box-shadow: none;
}

.mobile-toggle:focus {
    box-shadow: none;
}

/* Section Layout Wrappers */
.section-padding {
    padding: 4.5rem 0;
    scroll-margin-top: 4.5rem; /* Ensures smooth target offset across all browsers */
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #dbeafe 0%, #dcfce7 100%);
    padding: 5rem 0 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
}

.btn-outline:hover {
    background-color: rgba(13, 148, 136, 0.1);
}

.tech-card-3d {
    position: relative;
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
}

.tech-card-inner {
    border: 2px dashed var(--primary-color);
    padding: 3rem 1.5rem;
    border-radius: 0.5rem;
    background-color: #ffffff;
}

.company-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--primary-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* Company Overview Section */
.company-section {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.company-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
}

.company-avatar-box {
    text-align: center;
}

.company-avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Services Accordion Section */
.chapter-accordion details {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--card-bg);
}

.chapter-accordion summary {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.chapter-content {
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Reviews Section */
.reviews-section {
    background-color: var(--bg-reviews);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.review-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rating-stars {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.reviewer-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.reviewer-details h4 {
    margin: 0;
    font-size: 1rem;
}

.reviewer-details p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact & Newsletter Section */
.newsletter-box {
    background: linear-gradient(135deg, #1e293b 0%, #0284c7 100%);
    color: white;
    padding: 3.5rem 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.newsletter-box h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-box p {
    color: #e2e8f0;
    max-width: 550px;
    margin: 0 auto 2rem auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form label {
    color: white;
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    background-color: #ffffff;
    color: var(--text-dark);
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 0.5rem;
}

/* Responsive Iframe Wrapper */
.iframe-wrapper {
    width: 100%;
    max-width: 600px; /* Default desktop max width */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
    transition: width 0.3s ease;
}

.iframe-wrapper iframe {
    width: 100%;
    min-height: 450px;
    border: none;
    display: block;
}

/* Footer */
.site-footer {
    background-color: #0f172a;
    color: var(--text-footer);
    padding: 3rem 0 1.5rem 0;
    border-top: 1px solid #1e293b;
}

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

.footer-brand h3 {
    color: white;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    color: var(--text-footer);
}

.footer-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: disc;
    list-style-position: inside;
    padding-left: 0.5rem;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.footer-links a {
    color: var(--text-footer);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #38bdf8;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #1e293b;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-grid, .company-grid {
        grid-template-columns: 1fr;
    }

    .company-avatar-box {
        margin-bottom: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Responsive Navigation Dropdown */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 4rem; /* Adjusted offset for smaller mobile sticky navbar height */
    }

    .section-padding {
        scroll-margin-top: 4rem;
    }

    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        padding: 1rem 0;
        margin-top: 0.75rem;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .cta-btn-nav {
        display: block;
        width: 100%;
        margin-top: 0.5rem;
    }

    .footer-links ul {
        padding-left: 1.25rem; /* Prevents bullets from sticking to screen edge on mobile */
        list-style-position: outside;
    }

    .form-row {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .newsletter-box {
        padding: 1.5rem;
    }
    
    .iframe-wrapper {
        width: 100%; /* 100% width on mobile screens */
    }
}