@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #010048;
    --secondary-color: #0000a0;
    --accent-color: #c0c0c0;
    --accent-dark: #a0a0a0;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --silver-gradient: linear-gradient(135deg, #d8d8d8 0%, #C0C0C0 100%);

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Skip to Content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* Top Bar */
.top-bar {
    background: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-left a,
.top-bar-right a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s;
}

.top-bar-left a:hover,
.top-bar-right a:hover {
    color: var(--accent-color);
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.top-bar-right a {
    margin-right: 0;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 24px;
}

.logo-text h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 400px;
    max-height: 800px;
    overflow: hidden;
    background-color: var(--primary-color);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: none;
    animation: fadeIn 1s ease-in-out;
}

.slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.slider-dot.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    width: 30px;
    border-radius: 6px;
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-slider {
        height: 70vh;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
        min-height: 350px;
    }

    .slider-nav {
        bottom: 15px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .slider-dot.active {
        width: 20px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .hero-slider {
        height: 55vh;
        min-height: 300px;
    }
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background: var(--white);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    height: 500px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    background: var(--light-bg);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-container .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.services-container .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 50px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Why Choose Section */
.why-choose-section {
    padding: 80px 20px;
    background: var(--primary-color);
    color: white;
}

.why-choose-container {
    max-width: 1200px;
    margin: 0 auto;
}

.why-choose-container .section-title {
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
}

.feature-item i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 15px;
    opacity: 0.9;
}

/* Values Section */
.values-section {
    padding: 80px 20px;
    background: white;
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
}

.values-container .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    margin-bottom: 60px;
}

.stat-item h3 {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.stat-item p {
    font-size: 16px;
    color: var(--text-light);
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.mission-box,
.vision-box {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 10px;
    position: relative;
}

.mission-box::before,
.vision-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-color);
    border-radius: 10px 0 0 10px;
}

.mission-box h3,
.vision-box h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.mission-box p,
.vision-box p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 20px;
    background: var(--light-bg);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-container .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial {
    display: none;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 32px;
    font-weight: bold;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-role {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.testimonial-type {
    font-size: 13px;
    color: var(--accent-color);
    font-style: italic;
}

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    background: white;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192, 192, 192, 0.5);
}

.contact-info {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 10px;
}

.contact-info h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-detail i {
    font-size: 20px;
    color: var(--accent-color);
    margin-top: 3px;
}

.contact-detail-content h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-detail-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .slide h2 {
        font-size: 32px;
    }

    .slide p {
        font-size: 16px;
    }

    .about-content,
    .contact-content,
    .mission-vision {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    .logo-section {
        gap: 10px;
    }

    /* Better spacing for sections */
    .about-section,
    .services-section,
    .why-choose-section,
    .values-section,
    .testimonials-section,
    .contact-section {
        padding: 50px 15px;
    }

    /* Adjust grid gaps */
    .about-content {
        gap: 40px;
    }

    .contact-content {
        gap: 40px;
    }

    .mission-vision {
        gap: 30px;
    }

    /* Form improvements */
    .form-group input,
    .form-group textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .submit-btn {
        width: 100%;
        padding: 15px;
    }

    /* Footer adjustments */
    .footer-content {
        gap: 30px;
        text-align: center;
    }

    /* Slider dots */
    .slider-nav {
        bottom: 20px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    /* Service icons */
    .service-icon {
        font-size: 40px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    /* Feature icons */
    .feature-item i {
        font-size: 35px;
    }

    .feature-item h3 {
        font-size: 18px;
    }
}

/* Small mobile devices (320px - 480px) */
@media (max-width: 480px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar-left,
    .top-bar-right {
        width: 100%;
        justify-content: center;
    }

    .top-bar-left a {
        margin-right: 10px;
        font-size: 12px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .logo-text p {
        font-size: 10px;
    }

    .logo-img {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .hero-slider {
        height: 500px;
    }

    .slide h2 {
        font-size: 24px;
    }

    .slide p {
        font-size: 14px;
    }

    .slide-btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-image {
        height: 300px;
    }

    .service-card,
    .testimonial {
        padding: 30px 20px;
    }

    .testimonial-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .testimonial-text {
        font-size: 16px;
    }

    .stat-item h3 {
        font-size: 36px;
    }

    .mission-box,
    .vision-box {
        padding: 25px;
    }

    .mission-box h3,
    .vision-box h3 {
        font-size: 22px;
    }

    .contact-info {
        padding: 25px;
    }

    .footer-content {
        gap: 30px;
    }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-slider {
        height: 550px;
    }

    .slide h2 {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .about-image {
        height: 400px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Large tablets and small laptops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-content {
        padding: 15px 30px;
    }

    .slide h2 {
        font-size: 42px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-slider {
        height: 450px;
    }

    .slide h2 {
        font-size: 28px;
    }

    .slide p {
        font-size: 15px;
        margin-bottom: 20px;
    }
}

/* Very large screens (1440px+) */
@media (min-width: 1440px) {

    .top-bar-content,
    .header-content,
    .about-content,
    .services-container,
    .why-choose-container,
    .values-container,
    .testimonials-container,
    .contact-container,
    .footer-content {
        max-width: 1400px;
    }

    .hero-slider {
        height: 700px;
    }

    .slide h2 {
        font-size: 56px;
    }

    .slide p {
        font-size: 20px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {

    /* Larger touch targets */
    nav a,
    .top-bar a,
    .footer-section a {
        padding: 8px 12px;
        margin: 5px 0;
    }

    .slider-dot {
        width: 16px;
        height: 16px;
        border-width: 3px;
    }

    .slide-btn,
    .submit-btn {
        min-height: 48px;
        /* Apple's recommended touch target */
    }

    .menu-toggle {
        padding: 10px;
        min-width: 48px;
        min-height: 48px;
    }

    /* Disable hover effects on touch devices */
    .service-card:hover,
    .testimonial:hover {
        transform: none;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }
}

/* Fix for iOS Safari bottom bar */
@supports (-webkit-touch-callout: none) {
    .hero-slider {
        height: calc(100vh - 120px);
        min-height: 500px;
    }
}

/* Prevent horizontal scroll */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Image optimization for mobile */
@media (max-width: 768px) {
    .about-image img {
        object-fit: contain;
    }
}

/* Print styles */
@media print {

    .top-bar,
    header,
    .slider-nav,
    .contact-form,
    footer {
        display: none;
    }

    .hero-slider {
        height: auto;
        position: relative;
    }

    .slide {
        position: relative;
        display: block !important;
        page-break-after: always;
    }

    body {
        font-size: 12pt;
    }
}