/* ============================================================
   Stallion Power Infra - Main Stylesheet
   ============================================================ */

:root {
    --primary: #0d47a1;
    --primary-dark: #082e6a;
    --secondary: #ff6f00;
    --accent: #ffc107;
    --dark: #1a1a2e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --radius: 8px;
}

/* --- Global --- */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; }
section { padding: 80px 0; }
.section-title { margin-bottom: 50px; text-align: center; }
.section-title h2 { font-size: 2.2rem; font-weight: 700; color: var(--dark); position: relative; display: inline-block; padding-bottom: 15px; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--secondary); border-radius: 2px; }
.section-title p { color: var(--gray-600); max-width: 600px; margin: 15px auto 0; }

.btn-primary { background: var(--primary); border-color: var(--primary); border-radius: 50px; padding: 10px 28px; font-weight: 600; transition: var(--transition); }
.btn-primary:hover { background: var(--secondary); border-color: var(--secondary); transform: translateY(-2px); box-shadow: 0 5px 20px rgba(255,111,0,0.3); }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); border-radius: 50px; padding: 10px 28px; font-weight: 600; }
.btn-outline-primary:hover { background: var(--primary); color: var(--white); }
.btn-secondary { background: var(--secondary); border-color: var(--secondary); border-radius: 50px; padding: 10px 28px; font-weight: 600; }

/* --- Top Bar --- */
.top-bar { background: var(--primary-dark); padding: 8px 0; font-size: 0.85rem; }
.top-info li { color: rgba(255,255,255,0.85); }
.top-info li i { color: var(--secondary); margin-right: 4px; }
.top-social a { color: rgba(255,255,255,0.85); margin-left: 12px; font-size: 0.95rem; }
.top-social a:hover { color: var(--accent); }

/* --- Navbar --- */
.main-navbar { padding: 12px 0; transition: var(--transition); z-index: 1030; }
.main-navbar.scrolled { padding: 6px 0; box-shadow: var(--shadow-lg); }
.logo-img { height: 50px; transition: var(--transition); }
.main-navbar.scrolled .logo-img { height: 40px; }
.navbar-nav .nav-link { font-weight: 600; color: var(--dark); padding: 8px 16px !important; position: relative; font-size: 0.95rem; }
.navbar-nav .nav-link::after { content: ''; position: absolute; bottom: 0; left: 16px; width: 0; height: 2px; background: var(--secondary); transition: var(--transition); }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { width: calc(100% - 32px); }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--primary); }
.dropdown-menu { border: none; box-shadow: var(--shadow-lg); border-radius: var(--radius); padding: 10px 0; }
.dropdown-item { padding: 8px 20px; font-weight: 500; }
.dropdown-item:hover { background: var(--primary); color: var(--white); }

/* --- Hero Slider --- */
.hero-slider { position: relative; }
.hero-slide { height: 600px; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,71,161,0.85) 0%, rgba(26,26,46,0.7) 100%); }
.hero-content { position: relative; z-index: 2; color: var(--white); }
.hero-content h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-content p { font-size: 1.25rem; margin-bottom: 30px; opacity: 0.9; max-width: 600px; }
.swiper-pagination-bullet { background: var(--white); opacity: 0.5; width: 12px; height: 12px; }
.swiper-pagination-bullet-active { background: var(--secondary); opacity: 1; }

/* --- About Section --- */
.about-section .about-img { position: relative; border-radius: var(--radius); overflow: hidden; }
.about-section .about-img img { width: 100%; height: 400px; object-fit: cover; }
.about-section .experience-badge { position: absolute; bottom: 20px; right: 20px; background: var(--secondary); color: var(--white); padding: 20px 25px; border-radius: var(--radius); text-align: center; }
.about-section .experience-badge h3 { font-size: 2.5rem; font-weight: 800; margin: 0; }
.about-section .experience-badge p { margin: 0; font-weight: 600; }

/* --- Stats Counter --- */
.stats-section { background: var(--primary); color: var(--white); padding: 60px 0; }
.stat-item { text-align: center; padding: 20px; }
.stat-item h3 { font-size: 2.8rem; font-weight: 800; color: var(--accent); }
.stat-item p { font-size: 1rem; margin: 0; opacity: 0.9; font-weight: 500; }

/* --- Services --- */
.service-card { background: var(--white); border-radius: var(--radius); padding: 35px 25px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); height: 100%; border-bottom: 3px solid transparent; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-bottom-color: var(--secondary); }
.service-card .icon { width: 80px; height: 80px; margin: 0 auto 20px; background: linear-gradient(135deg, var(--primary), #1565c0); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.service-card .icon i { font-size: 2rem; color: var(--white); }
.service-card h5 { font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.service-card p { color: var(--gray-600); font-size: 0.95rem; }

/* --- Projects --- */
.project-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); height: 100%; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project-card .project-img { height: 250px; overflow: hidden; position: relative; }
.project-card .project-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-card .project-overlay { position: absolute; inset: 0; background: rgba(13,71,161,0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.project-card:hover .project-overlay { opacity: 1; }
.project-card .project-overlay a { color: var(--white); font-size: 1.5rem; width: 50px; height: 50px; border: 2px solid var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.project-card .project-body { padding: 20px; }
.project-card .badge-category { background: var(--secondary); color: var(--white); font-size: 0.75rem; padding: 4px 12px; border-radius: 50px; font-weight: 600; }
.project-card h5 { font-weight: 700; margin: 10px 0 8px; }
.project-card p { color: var(--gray-600); font-size: 0.9rem; }

/* --- Clients --- */
.client-logo { background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; height: 120px; transition: var(--transition); }
.client-logo:hover { box-shadow: var(--shadow-lg); transform: scale(1.05); }
.client-logo img { max-height: 60px; filter: grayscale(100%); opacity: 0.6; transition: var(--transition); }
.client-logo:hover img { filter: grayscale(0); opacity: 1; }

/* --- Testimonials --- */
.testimonial-section { background: var(--gray-100); }
.testimonial-card { background: var(--white); padding: 35px; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.testimonial-card::before { content: '\201C'; position: absolute; top: 15px; left: 25px; font-size: 5rem; color: var(--primary); opacity: 0.1; font-family: Georgia, serif; line-height: 1; }
.testimonial-card p { font-size: 1rem; color: #555; line-height: 1.7; position: relative; z-index: 1; }
.testimonial-card .author { display: flex; align-items: center; margin-top: 20px; }
.testimonial-card .author img { width: 55px; height: 55px; border-radius: 50%; object-fit: cover; margin-right: 15px; border: 3px solid var(--primary); }
.testimonial-card .author h6 { font-weight: 700; margin: 0; color: var(--dark); }
.testimonial-card .author small { color: var(--gray-600); }
.testimonial-card .stars { color: var(--accent); margin-top: 10px; }

/* --- CTA Section --- */
.cta-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--white); padding: 80px 0; text-align: center; }
.cta-section h2 { font-size: 2.5rem; font-weight: 800; }
.cta-section p { font-size: 1.15rem; opacity: 0.9; max-width: 600px; margin: 15px auto 30px; }
.cta-section .btn { padding: 14px 40px; font-size: 1.1rem; }

/* --- Page Banner --- */
.page-banner { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 80px 0 60px; color: var(--white); position: relative; }
.page-banner::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50px; background: var(--white); clip-path: polygon(0 100%, 100% 100%, 100% 0); }
.page-banner h1 { font-size: 2.5rem; font-weight: 800; }
.breadcrumb-item a { color: rgba(255,255,255,0.8); }
.breadcrumb-item.active { color: var(--accent); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* --- Contact --- */
.contact-card { background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; height: 100%; transition: var(--transition); }
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.contact-card .icon { width: 70px; height: 70px; background: linear-gradient(135deg, var(--primary), #1565c0); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; }
.contact-card .icon i { font-size: 1.5rem; color: var(--white); }
.contact-card h5 { font-weight: 700; }
.contact-card p { color: var(--gray-600); margin: 0; }

/* --- Gallery --- */
.gallery-item { border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .gallery-overlay { position: absolute; inset: 0; background: rgba(13,71,161,0.7); display: flex; align-items: center; justify-content: center; flex-direction: column; opacity: 0; transition: var(--transition); color: var(--white); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item .gallery-overlay i { font-size: 2rem; margin-bottom: 5px; }

/* --- Certifications --- */
.cert-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); height: 100%; }
.cert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cert-card img { width: 100%; height: 200px; object-fit: contain; padding: 20px; background: var(--gray-100); }
.cert-card .cert-body { padding: 20px; }

/* --- Compliance --- */
.compliance-card { background: var(--white); border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow); display: flex; align-items: center; transition: var(--transition); }
.compliance-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.compliance-card .file-icon { width: 60px; height: 60px; background: #fee2e2; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-right: 20px; flex-shrink: 0; }
.compliance-card .file-icon i { font-size: 1.8rem; color: #dc2626; }
.compliance-card h6 { font-weight: 700; margin-bottom: 4px; }
.compliance-card p { color: var(--gray-600); margin: 0; font-size: 0.9rem; }

/* --- Career --- */
.career-card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: var(--transition); height: 100%; }
.career-card:hover { box-shadow: var(--shadow-lg); border-left: 4px solid var(--primary); }
.career-card .badge { font-size: 0.75rem; padding: 5px 12px; }

/* --- WhatsApp Float --- */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25d366; color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 5px 25px rgba(37,211,102,0.4); z-index: 1000; animation: pulse-green 2s infinite; }
.whatsapp-float:hover { color: var(--white); transform: scale(1.1); }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* --- Back to Top --- */
.back-to-top { position: fixed; bottom: 30px; right: 100px; width: 45px; height: 45px; background: var(--primary); color: var(--white); border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 1.2rem; z-index: 999; transition: var(--transition); }
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--secondary); color: var(--white); transform: translateY(-3px); }

/* --- Footer --- */
.footer-section { background: var(--dark); color: rgba(255,255,255,0.8); }
.footer-top { padding: 60px 0 40px; }
.widget-title { color: var(--white); font-weight: 700; margin-bottom: 25px; position: relative; padding-bottom: 12px; }
.widget-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--secondary); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { margin-bottom: 12px; display: flex; align-items: flex-start; }
.footer-contact li i { color: var(--secondary); margin-right: 10px; margin-top: 4px; }
.footer-social a { display: inline-flex; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; align-items: center; justify-content: center; color: var(--white); margin-right: 8px; transition: var(--transition); }
.footer-social a:hover { background: var(--secondary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; font-size: 0.9rem; }
.footer-bottom p { color: rgba(255,255,255,0.6); }

/* --- Forms --- */
.form-control, .form-select { border-radius: var(--radius); padding: 12px 16px; border: 1px solid #dee2e6; transition: var(--transition); }
.form-control:focus, .form-select:focus { box-shadow: 0 0 0 3px rgba(13,71,161,0.1); border-color: var(--primary); }

/* --- Login Page --- */
.login-section { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); }
.login-card { background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; max-width: 420px; width: 100%; margin: 0 auto; padding: 40px; }
.login-card h3 { font-weight: 800; color: var(--dark); }

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.slide-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide-left.visible { opacity: 1; transform: translateX(0); }

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-slide { height: 450px; }
    .hero-content h1 { font-size: 2rem; }
    section { padding: 50px 0; }
    .navbar-collapse { background: var(--white); padding: 15px; border-radius: var(--radius); margin-top: 10px; box-shadow: var(--shadow-lg); }
}
@media (max-width: 767px) {
    .hero-slide { height: 400px; }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-content p { font-size: 1rem; }
    .section-title h2 { font-size: 1.6rem; }
    .stat-item h3 { font-size: 2rem; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 1.5rem; }
    .back-to-top { right: 80px; bottom: 20px; }
}
