/* Khan Stretch Ceilings - Services Page Mobile Styles */

/* Global link styles */
a {
    color: inherit;
    text-decoration: none;
}

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

a:hover {
    text-decoration: none;
}

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

:root {
    --main-green: #2F5F3A;
    --accent-green: #3FA450;
    --accent-red: #8B1E1E;
    --metal-gray: #2D2D2D;
    --gold-light: #E8D6B9;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --black: #000000;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Poppins', 'Segoe UI', 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--gold-light);
    background: url('../../images/home/back.jfif') center/cover fixed no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    transition: all 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    /* Hide desktop navigation */
    .nav-menu {
        display: none !important;
    }
    
    /* Show mobile menu toggle */
    .menu-toggle {
        display: flex !important;
    }
    
    /* Ensure navbar brand is visible */
    .nav-brand {
        display: block !important;
    }
}

/* Mobile Header */
.header {
    background: linear-gradient(135deg, var(--main-green), var(--metal-gray));
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
    padding: 0.5rem 0;
}

/* Navbar Mobile Styles */
@media (max-width: 768px) {
    .navbar {
        background: linear-gradient(135deg, var(--main-green), var(--metal-gray));
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 1rem 0;
        transition: all 0.3s ease;
    }
    
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }
    
    .brand-content {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .brand-logo {
        width: 125px;
        height: 80px;
        transition: transform 0.3s ease;
    }
    
    .brand-text h1 {
        color: var(--gold-light);
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0;
    }
    
    .brand-subtitle {
        color: var(--gold-light);
        font-size: 0.8rem;
        font-weight: 300;
    }
    
    .language-switcher {
        position: static;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        padding: 0.3rem;
        display: flex;
        gap: 0.2rem;
        margin-right: 1rem;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

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

.logo::before {
    content: '🏠';
    font-size: 1.5rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        transition: right 0.3s ease;
        z-index: 1001;
        padding-top: 5rem;
        box-shadow: -5px 0 15px var(--shadow);
    }
    
    .mobile-menu.active {
        right: 0;
    }
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--gray);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--accent-green);
        background: rgba(63, 164, 80, 0.1);
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 0;
        background: var(--accent-green);
        transition: width 0.3s ease;
    }
    
    .nav-link:hover::before,
    .nav-link.active::before {
        width: 4px;
    }
    
    /* Mobile Menu Toggle */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1002;
        position: relative;
    }
    
    .menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--gold-light);
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
}

@media (max-width: 768px) {
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Mobile Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}



.language-switcher {
    display: flex;
    gap: 0.3rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--gold-light);
    color: var(--gold-light);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.8rem;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--gold-light);
    color: var(--main-green);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--main-green), var(--metal-gray));
    color: var(--gold-light);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 95, 58, 0.4);
    background: var(--gold-light);
    color: var(--main-green);
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Mobile Page Hero */
.page-hero {
    background: transparent;
    color: var(--gold-light);
    padding: 4rem 0 3rem;
    text-align: center;
    margin-top: 70px;
    margin-bottom: 2rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

.page-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gold-light);
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.page-hero p {
    font-size: 1rem;
    color: var(--gold-light);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    line-height: 1.5;
}

/* Mobile Services Grid */
.services-detailed {
    padding: 3rem 0;
    background: transparent;
}

.services-detailed h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--gold-light);
    margin-bottom: 2rem;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-item {
    background: linear-gradient(135deg, var(--main-green), var(--metal-gray));
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(63, 164, 80, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(63, 164, 80, 0.3);
}

.service-header {
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    overflow: hidden;
}

.service-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-size: 50px 50px;
    background-repeat: repeat;
}

/* Service Type Specific Styles */
.glossy {
    background: linear-gradient(135deg, var(--main-green), var(--accent-green));
    color: var(--gold-light);
}

.glossy::before {
    background: radial-gradient(circle at 25% 25%, var(--gold-light) 2px, transparent 2px);
}

.glossy::after {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    animation: twinkle 2s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.matte {
    background: linear-gradient(135deg, var(--main-green), var(--metal-gray));
}

.matte::before {
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%);
}

.satin {
    background: linear-gradient(135deg, var(--accent-green), var(--main-green));
}

.satin::before {
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.1) 2px, transparent 2px, transparent 10px);
}

.multilevel {
    background: linear-gradient(135deg, var(--metal-gray), var(--main-green), var(--accent-green));
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.multilevel::before {
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 20%, transparent 20%);
}

.photo-printed {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    animation: gradient-shift 3s ease infinite;
}

.photo-printed::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.3)"/></svg>') repeat;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.service-content p {
    color: var(--gold-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.3rem 0;
    color: var(--gold-light);
    font-size: 0.85rem;
    position: relative;
    padding-left: 1.2rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

.service-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(63, 164, 80, 0.1), rgba(47, 95, 58, 0.1));
    border-radius: 10px;
    margin-top: 1rem;
}

.price-label {
    font-size: 0.9rem;
    color: var(--gold-light);
    font-weight: 500;
}

.price-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-light);
}

/* Mobile Additional Services */
.additional-services {
    padding: 3rem 0;
    background: transparent;
}

.additional-services h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--gold-light);
    margin-bottom: 2rem;
    font-weight: 700;
}

.additional-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.additional-item {
    background: linear-gradient(135deg, var(--main-green), var(--metal-gray));
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(63, 164, 80, 0.2);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.additional-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--gold-light));
}

.additional-item:hover {
    transform: translateY(-3px);
}

.additional-item h3 {
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.additional-item h3::before {
    content: '🔧';
    font-size: 1.2rem;
}

.additional-item p {
    color: var(--gold-light);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.additional-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-light);
    text-align: right;
}

/* Mobile CTA Section */
.cta-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--main-green), var(--metal-gray));
    color: var(--gold-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.cta-section p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--gold-light);
    position: relative;
    z-index: 2;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-section .btn-primary {
    background: var(--gold-light);
    color: var(--main-green);
    border: none;
    width: 100%;
    max-width: 280px;
}

.cta-section .btn-primary:hover {
    background: var(--accent-green);
    color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(63, 164, 80, 0.4);
}

.cta-section .btn-secondary {
    background: transparent;
    color: var(--gold-light);
    border: 2px solid var(--gold-light);
    width: 100%;
    max-width: 280px;
}

.cta-section .btn-secondary:hover {
    background: var(--gold-light);
    color: var(--main-green);
    transform: translateY(-2px);
}

/* Mobile Service Calculator */
.service-calculator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.calc-toggle {
    width: 60px;
    height: 60px;
    background: var(--accent-green);
    border: none;
    border-radius: 50%;
    color: var(--gold-light);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(63, 164, 80, 0.4);
    transition: all 0.3s ease;
}

.calc-toggle:hover {
    background: var(--main-green);
    transform: scale(1.1);
}

.calc-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 280px;
    background: linear-gradient(135deg, var(--main-green), var(--metal-gray));
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(63, 164, 80, 0.3);
    padding: 1.5rem;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.calc-popup.active {
    transform: scale(1);
}

.calc-popup h3 {
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.calc-form input,
.calc-form select {
    padding: 0.8rem;
    border: 1px solid var(--accent-green);
    border-radius: 8px;
    font-size: 0.9rem;
    background: rgba(232, 214, 185, 0.1);
    color: var(--gold-light);
}

.calc-result {
    background: linear-gradient(135deg, rgba(63, 164, 80, 0.2), rgba(47, 95, 58, 0.1));
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

.calc-result .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-light);
}

/* Mobile Touch Optimizations */
.service-item,
.additional-item {
    touch-action: manipulation;
}

.btn {
    touch-action: manipulation;
    min-height: 44px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 480px) {
    .page-hero {
        padding: 4rem 0 2.5rem;
    }
    
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .services-detailed,
    .additional-services,
    .cta-section {
        padding: 2.5rem 0;
    }
    
    .services-detailed h2,
    .additional-services h2,
    .cta-section h2 {
        font-size: 1.6rem;
    }
    
    .service-content,
    .additional-item {
        padding: 1.2rem;
    }
    
    .service-header {
        height: 100px;
        font-size: 1.8rem;
    }
    
    .service-content h3 {
        font-size: 1.1rem;
    }
    
    .service-content p,
    .additional-item p {
        font-size: 0.85rem;
    }
    
    .service-features li {
        font-size: 0.8rem;
    }
    
    .price-value {
        font-size: 1.1rem;
    }
    
    .calc-popup {
        width: 260px;
    }
    
    .calc-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 360px) {
    .page-hero h1 {
        font-size: 1.6rem;
    }
    
    .service-content,
    .additional-item {
        padding: 1rem;
    }
    
    .service-header {
        height: 90px;
        font-size: 1.6rem;
    }
    
    .calc-popup {
        width: 240px;
        right: -10px;
    }
    
    .service-calculator {
        bottom: 15px;
        right: 15px;
    }
}

/* Mobile Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Mobile Accessibility */
@media (prefers-reduced-motion: reduce) {
    .service-header::before,
    .cta-section::before,
    .calc-toggle,
    .service-item {
        animation: none;
        transition: none;
    }
}

/* Mobile Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .service-item,
    .additional-item,
    .calc-popup {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .service-content h3,
    .additional-item h3 {
        color: var(--gold-light);
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--main-green), var(--metal-gray));
    color: var(--gold-light);
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

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

.footer-section h3 {
    color: var(--gold-light);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    color: var(--gold-light);
    line-height: 1.5;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

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

.footer-section a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    border-top: 1px solid rgba(232, 214, 185, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: var(--gold-light);
    font-size: 0.8rem;
}

.footer-brand {
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.contact-info {
    color: var(--gold-light);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.contact-info strong {
    color: var(--gold-light);
    font-weight: 600;
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 0.8rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
    }
    
    .footer-section p,
    .footer-section li,
    .contact-info {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
         font-size: 0.75rem;
     }
 }