/* Globals and stuff */
:root {
    --text-light: #ffffff;
    --text-dark: #0f172a;
    --primary-accent: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* YEH CSS CLASS AB SCRIPT SE ADD HOGI */
body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--text-light);
    /* Background gradient ab class se set hoga */
    overflow-x: hidden;
}

/* Theme gradients - DO NOT TOUCH */
body.theme-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
}
body.theme-fresh-nature {
    background: linear-gradient(135deg, #2af598 0%, #009efd 100%);
    background-attachment: fixed;
}
body.theme-warm-sunset {
    background: linear-gradient(135deg, #f09819 0%, #ff512f 100%);
    background-attachment: fixed;
}
body.theme-vibrant-tech {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    background-attachment: fixed;
}

/* Main theme */
body.theme-industrial-safety {
    background: linear-gradient(135deg, #FFC107 0%, #37474F 100%);
    background-attachment: fixed;
}


h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Header glass effect */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 2rem; /* Reduced padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo img fix */
.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 100px; /* Set logo image height */
    width: auto;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.nav-menu a:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* lang switcher new */
.lang-switcher {
    margin-left: 2.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 4px;
    display: flex;
}
.lang-btn {
    color: var(--text-light);
    text-decoration: none;
    padding: 5px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.lang-btn.active {
    background: var(--primary-accent);
    color: var(--text-dark);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.lang-btn:not(.active):hover {
    opacity: 0.8;
}

.card-image {
    width: 100%;
    height: 220px; /* Aap height ko adjust kar sakte hain */
    object-fit: cover; /* Image ko stretch kiye bina fit karega */
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

/* Hero */
.hero {
    text-align: center;
    padding: 7rem 2rem;
    
    /* hero bg img */
    /* TODO: change 'images/hero-background.jpg' to your image path */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    opacity: 0.9;
}

.cta-button {
    background: var(--primary-accent);
    color: var(--text-dark);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Services grid */
#services {
    padding-top: 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 4rem auto;
    opacity: 0.9;
}

.guards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.guard-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.guard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.2);
}

.card-svg-container {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
}

.card-svg-container svg {
    width: 80px;
    height: 80px;
    fill: var(--text-light);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.guard-card-content {
    padding: 2rem;
    flex-grow: 1;
}

.guard-card h3 {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.guard-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    opacity: 0.9;
}

/* About/Contact glass cards */
.glass-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    margin-top: 4rem;
}

#about .about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#about .about-text {
    flex: 1;
}

#about .about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--text-light);
}

#about .about-svg {
    flex: 1;
    text-align: center;
}

#about .about-svg svg {
    width: 80%;
    max-width: 350px;
    height: auto;
    fill: var(--text-light);
    opacity: 0.8;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

/* Form styles */
#contact {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.25);
}

.submit-btn {
    background: var(--primary-accent);
    color: var(--text-dark);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Footer */
.footer {
    margin-top: 4rem;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 3rem 2rem 2rem 2rem;
    text-align: center;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 1rem;
    display: block;
}

.footer p {
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
    opacity: 0.8;
}

/* footer details */
.footer-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
    margin: 2.5rem auto;
    max-width: 800px; /* Center the content a bit */
    text-align: left;
}

.footer-contact, .footer-social {
    flex: 1;
    min-width: 280px;
}

.footer-details h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-light);
    opacity: 1;
}

.footer-contact p {
    margin-bottom: 0.6rem;
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.9rem; /* Match other footer text */
    max-width: 100%; /* Override parent .footer p */
    margin-left: 0; /* Override parent .footer p */
    margin-right: 0; /* Override parent .footer p */
}

.footer-contact a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    opacity: 1;
    text-decoration: underline;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-link svg {
    width: 28px;
    height: 28px;
    fill: var(--text-light);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.social-link:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.footer-copyright {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive stuff */
@media (max-width: 992px) {
    .container {
        padding: 2rem 1.5rem;
    }
    .header {
        padding: 0.7rem 1.5rem; 
    }
    #about .about-content {
        flex-direction: column;
    }
    #about .about-svg {
        margin-top: 2rem;
    }
    .header-right {
        flex-grow: 1; 
        justify-content: flex-end;
    }
    .nav-menu {
        margin-right: 1rem;
    }
    .footer-details {
        text-align: center; /* Center align on smaller screens */
    }
    .social-links {
        justify-content: center; /* Center social icons */
    }
}

@media (max-width: 768px) {
    .header-right {
        /* Mobile par nav menu ko lang switcher ke saath stack karna */
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 55px; /* Adjusted based on new header height */
        left: 0;
        width: 100%;
        background: rgba(25, 25, 50, 0.9);
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .menu-toggle {
        display: block;
        margin-left: 1rem; /* Switcher se doori */
        order: 2; /* Switcher ke baad dikhe */
    }
    .lang-switcher {
        margin-left: 0;
        order: 1; /* Menu toggle se pehle */
    }

    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .guards-grid {
        grid-template-columns: 1fr;
    }
}


/* Mobile header fix */
@media (max-width: 768px) {
    .header {
        padding: 0.1rem 1.3rem;
    }
    
    .logo img {
        height: 80px; /* Logo image height for mobile */
    }
    
    .header-right {
        display: flex;
        align-items: center;
        flex-shrink: 1; 
    }
    
    .menu-toggle {
        margin-left: 0.65rem;
    }
}

/* small screens */
@media (max-width: 370px) {
    .logo img {
        height: 30px; /* Logo image height for small mobile */
    }
    .lang-btn {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    .menu-toggle {
        margin-left: 0.5rem;
    }
}

/* THEMES: 
theme-default
theme-fresh-nature
theme-warm-sunset
theme-vibrant-tech
theme-industrial-safety
*/
