/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header and Navigation */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger animation when active */
.nav-menu.active ~ .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-menu.active ~ .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-menu.active ~ .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(59, 130, 246, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-item svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

.form-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.form-card h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.form-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

section ul li {
    color: var(--text-dark);
}

section p {
    color: var(--text-dark);
}

section h3 {
    color: var(--primary-color);
}

/* Ensure all divs with background also have readable text */
div[style*="background: var(--bg-light)"] p,
div[style*="background: var(--bg-light)"] li,
div[style*="background: var(--bg-light)"] span {
    color: var(--text-dark) !important;
}

div[style*="background: var(--bg-light)"] h2,
div[style*="background: var(--bg-light)"] h3 {
    color: var(--primary-color) !important;
}

div[style*="background: var(--bg-light)"] strong {
    color: var(--primary-color) !important;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

/* Services Overview */
.services-overview {
    background: var(--bg-light);
}

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

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 1.5rem 1.5rem 1rem;
}

.service-card p {
    margin: 0 1.5rem 1rem;
    color: var(--text-light);
}

.btn-link {
    display: inline-block;
    margin: 0 1.5rem 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* Why Choose Us */
.why-choose {
    background: var(--white);
}

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

.why-choose h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.why-choose p {
    color: var(--text-dark);
    line-height: 1.7;
}

.why-choose-text {
    color: var(--text-dark);
}

.why-choose-text p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.why-choose-text h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.why-choose-text ul {
    color: var(--text-dark);
}

.why-choose-text ul li {
    color: var(--text-dark);
    line-height: 1.8;
}

.why-choose-text li {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.benefits-list {
    list-style: none;
    margin-top: 2rem;
}

.benefits-list li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.benefits-list li strong {
    color: var(--primary-color);
}

.why-choose-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Video Section */
.video-section {
    background: var(--bg-light);
}

.video-section h2 {
    text-align: center;
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.video-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.video-card video {
    width: 100%;
    height: auto;
}

.video-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 1.5rem 1.5rem 0.75rem;
}

.video-card p {
    margin: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

/* Reviews */
.reviews {
    background: var(--bg-light);
}

.reviews h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

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

.review-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.review-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.reviewer strong {
    display: block;
    color: var(--primary-color);
    font-size: 1rem;
}

.reviewer span {
    color: var(--text-dark);
    font-size: 0.875rem;
}

/* Areas Covered */
.areas-covered {
    background: var(--white);
}

.areas-covered h2 {
    text-align: center;
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.areas-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.areas-text {
    color: var(--text-dark);
}

.areas-text p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.areas-text h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

.areas-list {
    margin: 1rem 0 2rem;
    padding-left: 1.5rem;
}

.areas-list li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

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

/* FAQ */
.faq {
    background: var(--bg-light);
}

.faq h2 {
    text-align: center;
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--text-dark);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content > p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.cta-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
}

.cta-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-col p {
    opacity: 0.8;
    line-height: 1.7;
}

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

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.7;
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.blog-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.blog-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Blog Article Page */
.article-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.875rem;
}

.article-image {
    max-width: 1000px;
    margin: 0 auto 3rem;
    border-radius: 12px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 2.5rem 0 1rem;
}

.article-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
    line-height: 1.8;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content strong {
    color: var(--primary-color);
}

.back-to-blog {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.back-to-blog:hover {
    color: var(--primary-color);
}

/* Team Page */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
}

.team-photo {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.team-photo img {
    width: 100%;
    height: auto;
}

.team-member h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member p {
    color: var(--text-dark);
    line-height: 1.7;
    text-align: left;
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Responsive Design */

/* Tablets and small laptops */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets portrait mode */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        padding: 0.5rem;
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .services-grid,
    .reviews-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .why-choose-content,
    .areas-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-header h2,
    .why-choose h2 {
        font-size: 1.75rem;
    }
    
    /* Better mobile image handling */
    .why-choose-image,
    .areas-image {
        order: -1; /* Show images first on mobile */
    }
    
    /* Optimize video for tablets */
    .hero {
        min-height: 600px;
    }
    
    /* Footer optimization for tablets */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Enhanced touch targets for mobile */
    .btn-primary {
        padding: 1rem 2rem;
        min-height: 48px;
        font-size: 1rem;
    }
    
    .nav-menu li {
        padding: 0.75rem 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.5rem 0;
        min-height: 44px;
        line-height: 44px;
    }
    
    /* Mobile-optimized containers */
    .container {
        padding: 0 16px;
    }
    
    /* Improved mobile font sizes */
    body {
        font-size: 16px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Mobile-optimized spacing */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-col {
        text-align: left;
    }
    
    /* Better mobile table/list spacing */
    ul, ol {
        padding-left: 1.25rem;
    }
    
    /* Optimize hero for mobile */
    .hero {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    /* Mobile form optimization */
    input, textarea, select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* Additional mobile optimization for very small screens */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .section-header h1,
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* iOS-specific optimizations */
.ios-device * {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    -webkit-touch-callout: none;
}

.ios-device input,
.ios-device textarea,
.ios-device select {
    -webkit-appearance: none;
    -webkit-border-radius: 6px;
}

/* Remove tap highlight on all touch devices */
a, button, input, textarea, select {
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
    -webkit-touch-callout: none;
}

/* Prevent text selection on buttons */
button, .btn-primary, .btn-link {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Smooth scrolling for iOS */
.nav-menu {
    -webkit-overflow-scrolling: touch;
}

/* Mobile horizontal scroll prevention */
body, html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Optimize for mobile performance */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility: Focus states for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #0000FF;
        --text-dark: #000000;
    }
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}