/*
==================================================
VISHVAVIRAT SECURITY & FACILITY INDIA PVT. LTD.
Updated Stylesheet - Matching American Guard Services Style
==================================================
*/

/* ============================================
   CSS VARIABLES - UPDATED DESIGN SYSTEM
   ============================================ */
:root {
    /* Updated Colors - Darker, More Professional */
    --primary-dark: #1a1a1a;         /* Almost Black - Header/Footer */
    --secondary-dark: #2a2a2a;       /* Dark Gray - Sections */
    --accent-gold: #c9a961;          /* Gold - Luxury Feel */
    --accent-blue: #1e3a8a;          /* Navy Blue - Trust */
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-dark: #333333;

    /* Typography */
    --font-primary: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    /* Border Radius */
    --radius-sm: 0;
    --radius-md: 0;

    /* Shadows */
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition: 0.3s ease;

    /* Container Width */
    --container-width: 1200px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xxl) 0;
}

.section-dark {
    background: var(--secondary-dark);
    color: var(--text-light);
}

.section-light {
    background: var(--light-gray);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 1px;
}

.section-title-center {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title-center::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent-gold);
    margin: var(--spacing-sm) auto 0;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-dark);
}

.btn-dark {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--secondary-dark);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    background: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-text {
    color: var(--accent-gold);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    align-items: center;
}

.logo-main {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--accent-gold);
    text-align: center;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: var(--accent-gold);
    opacity: 0.9;
    margin-top: 3px;
    text-align: center;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-menu > li > a {
    color: var(--text-light);
    font-weight: 400;
    padding: 0.5rem 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--accent-gold);
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-menu > li > a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '\25BC';
    font-size: 0.6rem;
    margin-left: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-dark);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 1rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: var(--spacing-sm) var(--spacing-md);
    display: block;
    color: var(--text-light);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--primary-dark);
    color: var(--accent-gold);
    padding-left: 1.5rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: brightness(0.6);
}

.hero-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.hero-slide-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero-slide-content p {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.hero-slide-content .hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent-gold);
    transform: scale(1.2);
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.slider-arrow:hover {
    background: rgba(201, 169, 97, 0.9);
    border-color: var(--accent-gold);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev {
    left: 30px;
}

.slider-arrow-next {
    right: 30px;
}

.slider-arrow svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.8) 100%);
}

.service-card-content {
    padding: var(--spacing-lg);
    background: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark);
    font-weight: 400;
}

.service-card p {
    color: #666;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    box-shadow: var(--shadow-md);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
    font-weight: 300;
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: #555;
    line-height: 1.8;
}

.about-features {
    margin-top: var(--spacing-lg);
}

.about-feature {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    align-items: flex-start;
}

.about-feature-icon {
    color: var(--accent-gold);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about-feature-text h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary-dark);
}

.about-feature-text p {
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background: var(--primary-dark);
    color: var(--white);
    padding: var(--spacing-xl) 0;
}

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

.stat-item {
    padding: var(--spacing-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--light-gray);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
}

.contact-info {
    background: var(--primary-dark);
    color: var(--white);
    padding: var(--spacing-xl);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--accent-gold);
}

.contact-info-item {
    margin-bottom: var(--spacing-lg);
}

.contact-info-item h4 {
    color: var(--accent-gold);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info-item p {
    opacity: 0.9;
    line-height: 1.8;
}

.contact-form {
    background: var(--white);
    padding: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light-gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-alert {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    display: none;
}

.form-alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: var(--spacing-xxl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    color: var(--accent-gold);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    opacity: 0.85;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    opacity: 0.85;
    transition: var(--transition);
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '›';
    margin-right: 0.5rem;
    color: var(--accent-gold);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */
@media (max-width: 992px) {
    .hero-slide-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }

    .logo {
        font-size: 1rem;
    }

    .logo a {
        gap: 0.75rem;
    }

    .logo-main {
        font-size: 0.95rem;
        letter-spacing: 1.2px;
    }

    .logo-sub {
        font-size: 0.55rem;
        letter-spacing: 0.8px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-dark);
        flex-direction: column;
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        max-height: 500px;
        padding: var(--spacing-md) 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--primary-dark);
        max-height: 0;
        overflow: hidden;
    }

    .dropdown.active .dropdown-menu {
        max-height: 400px;
        margin-top: var(--spacing-sm);
    }

    .hero-slider {
        height: 400px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-arrow-prev {
        left: 10px;
    }

    .slider-arrow-next {
        right: 10px;
    }

    .slider-arrow svg {
        width: 20px;
        height: 20px;
    }

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

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

    .hero-slide-content .hero-buttons {
        flex-direction: column;
    }

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

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

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

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

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}
