/* Khan Stretch Ceilings - Homepage 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;
}

/* Mobile-First Color Palette */
: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;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
}

/* Mobile Base Styles */
* {
    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;
}

/* 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;
    }
}

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

/* 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;
    }
}

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

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

/* Mobile Hero Section */
.hero {
    background: transparent;
    color: var(--gold-light);
    padding: 6rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.ceiling-showcase {
    width: 280px;
    height: 200px;
    background: url('../../images/home/Square.jfif') center/cover no-repeat;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 8px 25px var(--shadow-dark);
    overflow: hidden;
}

.ceiling-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.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 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

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

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin: 0 auto;
    max-width: 300px;
}

.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;
    width: 100%;
    max-width: 280px;
    background: linear-gradient(135deg, var(--main-green), var(--metal-gray));
    color: var(--gold-light);
    box-shadow: 0 4px 15px rgba(47, 95, 58, 0.3);
    border: 2px solid transparent;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--main-green), var(--metal-gray));
    color: var(--gold-light);
    box-shadow: 0 4px 15px rgba(47, 95, 58, 0.3);
}

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

.btn-secondary {
    background: linear-gradient(135deg, var(--main-green), var(--metal-gray));
    color: var(--gold-light);
    box-shadow: 0 4px 15px rgba(47, 95, 58, 0.3);
}

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

.btn-tertiary {
    background: linear-gradient(135deg, var(--main-green), var(--metal-gray));
    color: var(--gold-light);
    box-shadow: 0 4px 15px rgba(47, 95, 58, 0.3);
}

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

/* Mobile Features Section */
.features {
    padding: 4rem 0;
    background: transparent;
    margin: 2rem 0;
}

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

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

.feature-card {
    background: linear-gradient(135deg, var(--main-green), var(--metal-gray));
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--main-green));
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

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

.feature-card p {
    color: var(--gold-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Mobile Services Preview */
.services-preview {
    padding: 4rem 0;
    background: transparent;
    margin: 2rem 0;
}

.services-preview h3 {
    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: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: linear-gradient(135deg, var(--main-green), var(--metal-gray));
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--accent-green);
}

.service-card:hover {
    transform: translateY(-3px);
}

.service-card h4 {
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.services-cta {
    text-align: center;
}

/* Mobile Contact Section */
.contact-section {
    padding: 4rem 0;
    background: transparent;
    color: var(--gold-light);
    margin: 2rem 0;
}

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

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--main-green), var(--metal-gray));
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-green), var(--main-green));
    border-radius: 50%;
    color: var(--gold-light);
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--gold-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--gold-light);
    font-size: 0.9rem;
    margin: 0;
}

.contact-item a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: none;
}

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

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

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

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-section a:hover {
    color: var(--gold-light);
    text-decoration: none;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-light);
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--gold-light);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--white);
    color: var(--main-green);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Utilities */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Mobile Responsive Adjustments */
@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        padding: 5rem 0 2.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .features,
    .services-preview,
    .contact-info {
        padding: 2.5rem 0;
    }
    
    .features h2,
    .services-preview h2,
    .contact-info h2 {
        font-size: 1.6rem;
    }
    
    .feature-card,
    .service-content,
    .contact-item {
        padding: 1.2rem;
    }
    
    .service-image {
        height: 120px;
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .feature-card,
    .service-content,
    .contact-item {
        padding: 1rem;
    }
    
    .nav {
        width: 90%;
    }
}