/* style.css - FIXED VERSION */
:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #f1faee;
    --text-color: #333;
    --light-text: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #212529;
    --transition: all 0.3s ease;
    --card-bg: #fff;
    --nav-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
    --text-color: #f1faee;
    --bg-light: #1a1a1a;
    --bg-dark: #0d0d0d;
    --card-bg: #2d2d2d;
    --nav-bg: rgba(13, 13, 13, 0.95);
    --secondary-color: #a8dadc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-bottom: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

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

/* Top Bar */
.top-bar {
    background-color: #28a745;
    color: #fff;
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    overflow: hidden;
}

.top-bar-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-bar-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.top-bar-content i {
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    box-sizing: border-box;
    overflow-x: hidden;
}

.navbar.navbar-scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    min-width: fit-content;
}

.logo span {
    color: #e63946;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: #fff;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #e63946;
}

.btn-phone {
    background-color: #e63946;
    color: var(--light-text);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    white-space: nowrap;
    min-width: fit-content;
}

.btn-phone:hover {
    background-color: #c12a36;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

.theme-toggle {
    background: var(--secondary-color);
    color: var(--bg-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    min-width: 40px;
    min-height: 40px;
}

.theme-toggle:hover {
    transform: rotate(30deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: auto;
    min-height: 600px;
    background-color: #1a1a1a;
    background-image: url('oto_lastik.jpg');
    background-image: image-set(url('oto_lastik.webp') type('image/webp') 1x, url('oto_lastik.jpg') type('image/jpeg') 1x);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--light-text);
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.95), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 
        0 2px 8px rgba(0,0,0,0.8),
        0 0 20px rgba(230, 57, 70, 0.6);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-content h1 span {
    color: #fff;
    text-shadow: 
        0 2px 8px rgba(0,0,0,0.8),
        0 0 20px rgba(255, 77, 109, 0.6);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 1;
    color: #fff;
    text-shadow: 
        0 2px 8px rgba(0,0,0,0.8),
        0 0 15px rgba(102, 217, 232, 0.4);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 
        0 0 10px #e63946,
        0 0 20px #e63946;
    text-align: center;
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 
        0 0 10px #66d9e8,
        0 0 20px #66d9e8;
    text-align: center;
}

.btn-primary:hover {
    background-color: #c12a36;
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px #e63946,
        0 0 40px #e63946;
}

.btn-secondary:hover {
    background-color: var(--light-text);
    color: var(--secondary-color);
    box-shadow: 
        0 0 20px #66d9e8,
        0 0 40px #66d9e8;
}

/* Section Common Styles */
section {
    padding: 100px 0;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 30px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.about-list {
    margin-top: 25px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.about-list i {
    color: var(--primary-color);
}

.about-image {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.map-embed {
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-link-btn {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
    z-index: 2;
}

.map-link-btn:hover {
    background-color: #c12a36;
    transform: translateY(-2px);
}

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

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.service-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Testimonials */
.testimonials {
    background-color: var(--bg-light);
}

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

.testimonial-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.stars {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    color: #ffc107;
}

.stars i {
    font-size: 1rem;
}

.testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666;
    font-style: italic;
}

.client-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.client-info strong {
    font-weight: 700;
    color: var(--secondary-color);
}

.client-info span {
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* FAQ Section */
.faq {
    background-color: var(--card-bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-question h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question {
    background-color: var(--bg-light);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px 20px;
}

.faq-answer p {
    color: #666;
    font-size: 0.95rem;
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #455d7a 100%);
    color: white;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--light-text);
    padding: 60px 0 80px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-links h4,
.footer-contact h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-links a {
    color: var(--light-text);
    opacity: 0.85;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-contact a {
    color: var(--light-text);
    opacity: 0.85;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    right: 20px;
    bottom: calc(100px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transform: translateZ(0);
    will-change: transform;
}
.phone-call-btn,
.whatsapp-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: none;
}

.phone-call-btn {
    background-color: #e63946;
}

.phone-call-btn:hover {
    background-color: #c12a36;
    transform: scale(1.1);
}

.whatsapp-btn {
    background-color: #28a745;
}

.whatsapp-btn:hover {
    background-color: #218838;
    transform: scale(1.1);
}

/* Bottom Floating Buttons */
.bottom-floating-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 6px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    box-sizing: border-box;
}

.bottom-call-btn,
.bottom-emergency-btn,
.bottom-location-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
    flex: 1;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.bottom-call-btn {
    background-color: #e63946;
    color: #fff;
}

.bottom-emergency-btn {
    background-color: #e63946;
    color: #fff;
}

.bottom-location-btn {
    background-color: #28a745;
    color: #fff;
}

.bottom-call-btn:hover,
.bottom-emergency-btn:hover {
    background-color: #c12a36;
    transform: translateY(-2px);
}

.bottom-location-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* GEO Location Alert */
.geo-alert {
    padding: 15px 20px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    margin-bottom: 20px;
    border-radius: 5px;
    animation: slideDown 0.3s ease-out;
}

.geo-alert.error {
    background-color: #f8d7da;
    border-left-color: #dc3545;
}

.geo-alert.success {
    background-color: #d4edda;
    border-left-color: #28a745;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop */
@media (max-width: 992px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #1a1a1a;
        display: none;
        gap: 0;
        padding: 15px 0;
    }

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

    .nav-links a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar {
        flex-wrap: wrap;
    }

    .btn-phone {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    section {
        padding: 70px 0;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        height: 300px;
        order: -1;
    }

    .why-choose-us .about-image {
        order: -1;
    }

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

    .footer-about {
        grid-column: 1 / -1;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .top-bar {
        padding: 5px 0;
    }

    .top-bar-content {
        font-size: 0.75rem;
        gap: 8px;
    }

    .navbar {
        top: 28px;
        padding: 10px 0;
    }

    .nav-container {
        padding: 0 16px;
    }

    .bottom-floating-buttons {
        padding: 6px 8px;
        gap: 6px;
    }

    .bottom-call-btn,
    .bottom-emergency-btn,
    .bottom-location-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .floating-actions {
    bottom: calc(85px + env(safe-area-inset-bottom));
    right: 16px;
    gap: 12px;
    }

    .phone-call-btn,
    .whatsapp-btn {
        width: 54px;
        height: 54px;
        font-size: 24px;
    }

    .logo {
        font-size: 16px;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-overlay {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.75));
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content h1 br {
        display: none;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .section-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }

    .services-header {
        margin-bottom: 35px;
    }

    .service-card {
        padding: 24px 20px;
    }

    .service-card h4 {
        font-size: 1.2rem;
    }

    .testimonial-card {
        padding: 20px;
    }

    .about-image {
        height: 250px;
        border-radius: 15px;
    }

    .stats {
        padding: 40px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-text {
        font-size: 0.9rem;
    }

    .footer {
        padding: 50px 0 120px;
    }

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

    .faq-question {
        padding: 16px;
    }

    .faq-question h4 {
        font-size: 0.95rem;
    }

    .faq-item.active .faq-answer {
        padding: 16px;
        max-height: 300px;
    }

    .phone-call-btn,
    .whatsapp-btn {
        width: 54px;
        height: 54px;
        font-size: 24px;
    }

    .floating-actions {
        bottom: 85px;
        right: 16px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .top-bar-content {
        font-size: 0.7rem;
    }

    .navbar {
        top: 24px;
        padding: 8px 0;
    }

    .nav-container {
        padding: 0 12px;
        gap: 8px;
    }

    .logo {
        font-size: 14px;
        gap: 5px;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .mobile-menu-btn {
        font-size: 20px;
    }

    .bottom-floating-buttons {
        padding: 5px 6px;
        gap: 5px;
    }

    .bottom-call-btn,
    .bottom-emergency-btn,
    .bottom-location-btn {
        padding: 8px 8px;
        font-size: 0.7rem;
        gap: 3px;
    }

    .bottom-call-btn span,
    .bottom-emergency-btn span,
    .bottom-location-btn span {
        display: none;
    }

    .bottom-call-btn,
    .bottom-emergency-btn,
    .bottom-location-btn {
        justify-content: center;
    }

    .floating-actions {
    bottom: calc(75px + env(safe-area-inset-bottom));
    right: 12px;
    gap: 10px;
    }

    .phone-call-btn,
    .whatsapp-btn {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .service-card {
        padding: 20px 16px;
    }

    .service-icon {
        font-size: 28px;
    }

    .service-card h4 {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-text {
        font-size: 0.8rem;
    }

    .footer-contact ul li {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .service-card {
        padding: 18px 14px;
    }

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

    .nav-container {
        gap: 6px;
    }

    .floating-actions {
    bottom: calc(70px + env(safe-area-inset-bottom));
    right: 10px;
    gap: 8px;
    }
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: var(--card-bg);
}

.why-choose-us .about-container {
    direction: ltr;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.service-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }
.service-card:nth-child(4) { animation-delay: 0.8s; }
