/* ============================================
   VINDHYAVART PREMIUM WEBSITE - MAIN STYLESHEET
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* 2. TYPOGRAPHY
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #1e293b;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #2563eb, #f59e0b);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: #2563eb;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: #64748b;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* 3. LAYOUT & CONTAINERS
   ---------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 30px 20px;
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    .section-light {
        margin: 15px;
        border-radius: 15px;
    }
}

/* 4. SERVICE AREA BADGE
   ---------------------------------------------------------------- */
.service-badge {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

/* 5. NAVIGATION
   ---------------------------------------------------------------- */
.main-nav {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: #1e293b;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-menu a:hover {
    color: #2563eb;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

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

.whatsapp-nav-btn {
    background: #25D366;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 6px;
    font-weight: 600;
}

.whatsapp-nav-btn:hover {
    background: #1da851;
    color: white !important;
}

.whatsapp-nav-btn::after {
    display: none !important;
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
		color:#000;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 30px;
        gap: 20px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 10px 20px;
    }
    
    .logo img {
        height: 35px;
    }
}

/* 6. HERO SECTION
   ---------------------------------------------------------------- */
.hero {
    text-align: center;
    padding: 80px 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero .highlight {
    color: #2563eb;
    position: relative;
}

.hero .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(245, 158, 11, 0.3);
    z-index: -1;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 30px;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

/* 7. BUTTONS
   ---------------------------------------------------------------- */
.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transition: left 0.4s ease;
    z-index: -1;
}
.btn-primary:hover {
	color:#000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover::before {
    left: 0;
}

.performance-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    gap: 8px;
}

/* 8. SERVICES SECTION
   ---------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.1);
    border-color: #2563eb;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2563eb;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-price {
    color: #059669;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: auto;
}

/* 9. PORTFOLIO SECTION
   ---------------------------------------------------------------- */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background: #e2e8f0;
    color: #64748b;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2563eb;
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: white;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-city {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* 10. CONTACT FORM MODAL
   ---------------------------------------------------------------- */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.contact-form-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #475569;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #475569;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* 11. WHATSAPP FLOAT BUTTON
   ---------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    font-weight: 600;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background: #1da851;
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* 12. FOOTER
   ---------------------------------------------------------------- */
.main-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 50px 0 30px;
    margin-top: 80px;
}

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

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-heading {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #2563eb;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.contact-info {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #94a3b8;
}

.contact-icon {
    margin-right: 10px;
    color: #2563eb;
    min-width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* 13. UTILITY CLASSES
   ---------------------------------------------------------------- */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.hidden {
    display: none !important;
}

/* 14. ANIMATIONS
   ---------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* 15. RESPONSIVE ADJUSTMENTS
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero {
        padding: 50px 15px;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form-container {
        padding: 20px;
        width: 95%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

   
    /* Hero with Background Image & Overlay */
    .hero-with-bg {
        position: relative;
        padding: 120px 20px;
        text-align: center;
        color: white;
        min-height: 90vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: 
            linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)),
            url('assets/images/hero-bg.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        z-index: -2;
    }
    
    .hero-content {
        position: relative;
        z-index: 1;
        max-width: 900px;
        margin: 0 auto;
    }
    
    /* Animated Text Elements */
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
        font-weight: 800;
        margin-bottom: 20px;
        line-height: 1.1;
        text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    }
    
    .typing-text {
        color: #f59e0b;
        border-right: 3px solid #f59e0b;
        padding-right: 5px;
        animation: blink 0.7s infinite;
        display: inline-block;
    }
    
    @keyframes blink {
        0%, 100% { border-color: #f59e0b; }
        50% { border-color: transparent; }
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        max-width: 700px;
        margin: 0 auto 40px;
        opacity: 0.9;
        text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    }
    
    /* Enhanced CTA Button with Animation */
    .cta-pulse {
        animation: pulse 2s infinite;
        position: relative;
        overflow: hidden;
    }
    
    @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
        70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
        100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
    }
    
    /* Portfolio Section */
    .portfolio-section {
        padding: 80px 20px;
        background: #f8fafc;
    }
    
    .portfolio-filter {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 40px;
    }
    
    .filter-btn {
        background: #e2e8f0;
        color: #64748b;
        border: none;
        padding: 10px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .filter-btn:hover,
    .filter-btn.active {
        background: #2563eb;
        color: white;
        transform: translateY(-3px);
    }
    
    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
        margin-top: 30px;
    }
    
    .portfolio-item {
        position: relative;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.4s ease;
        background: white;
        cursor: pointer;
    }
    
    .portfolio-item:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15);
    }
    
    .portfolio-img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease;
    }
    
    .portfolio-item:hover .portfolio-img {
        transform: scale(1.1);
    }
    
    .portfolio-info {
        padding: 20px;
    }
    
    .portfolio-city {
        display: inline-block;
        background: #dbeafe;
        color: #1e40af;
        padding: 5px 12px;
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 10px;
    }
    
    .portfolio-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
        color: #1e293b;
    }
    
    /* Portfolio Modal (Enlarged View) */
    .portfolio-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        z-index: 3000;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }
    
    .portfolio-modal-content {
        background: white;
        max-width: 900px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 15px;
        position: relative;
        animation: modalFade 0.4s ease;
    }
    
    @keyframes modalFade {
        from { opacity: 0; transform: scale(0.8); }
        to { opacity: 1; transform: scale(1); }
    }
    
    .close-portfolio-modal {
        position: absolute;
        top: 15px;
        right: 20px;
        background: none;
        border: none;
        font-size: 2rem;
        color: #64748b;
        cursor: pointer;
        z-index: 10;
    }
    
    .modal-body {
        padding: 30px;
    }
    
    .modal-image {
        width: 100%;
        max-height: 400px;
        object-fit: cover;
        border-radius: 10px;
        margin-bottom: 20px;
    }
    
    /* Hamburger Menu for Mobile */
    .menu-toggle {
        display: none;
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: white;
        z-index: 1001;
    }
    
    @media (max-width: 768px) {
        .menu-toggle {
            display: block;
        }
        
        .nav-menu {
            position: fixed;
            top: 0;
            left: -100%;
            width: 80%;
            height: 100vh;
            background: white;
            flex-direction: column;
            justify-content: flex-start;
            padding-top: 80px;
            gap: 0;
            transition: left 0.4s ease;
            box-shadow: 5px 0 30px rgba(0, 0, 0, 0.1);
            z-index: 1000;
        }
        
        .nav-menu.active {
            left: 0;
        }
        
        .nav-menu a {
            display: block;
            width: 100%;
            padding: 18px 30px;
            border-bottom: 1px solid #f1f5f9;
            color: #334155;
            font-size: 1.1rem;
        }
        
        .nav-menu a:hover {
            background: #f8fafc;
            color: #2563eb;
        }
        
        .whatsapp-btn {
            margin: 20px 30px;
            text-align: center;
        }
        
        .hero-with-bg {
            padding: 100px 20px;
            min-height: 85vh;
            background-attachment: scroll;
        }
        
        .hero-title {
            font-size: clamp(2rem, 5vw, 3rem);
        }
        
        .portfolio-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }
    }
    
    /* Service Cards Animation */
    .service-card {
        transition: transform 0.3s ease;
    }
    
    .service-card:hover {
        transform: translateY(-10px);
    }
    
    /* Stats Counter */
    .stats-counter {
        font-size: 2.5rem;
        font-weight: 700;
        color: #2563eb;
        display: inline-block;
    }
#mainContactForm {
    transition: all 0.5s ease-in-out;
    opacity: 1;
    max-height: 1000px;
    overflow: hidden;
}

#mainContactForm.hidden,
#mainContactForm[style*="display: none"] {
    opacity: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    pointer-events: none !important;
}

/* Success message container */
.form-success-container {
    animation: fadeIn 0.5s ease-in-out;
}

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

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95); /* Was 0.9 - too light */
}

.file-info, .current-image-note {
    color: #475569; /* Darker than #64748b */
}

.portfolio-info p {
    color: #475569; /* Better contrast */
}

/* Fix button contrast */
.filter-btn {
    color: #475569; /* Darker gray */
}

.filter-btn.active {
    color: white; /* Good */
}

/* Fix form placeholders */
::placeholder {
    color: #64748b;
    opacity: 1; /* Ensure full opacity */
}

:-ms-input-placeholder {
    color: #64748b;
}

::-ms-input-placeholder {
    color: #64748b;
}