/* ========================================
   Sri Dharsinee Enterprises - Main Styles
   Clean Corporate Design
======================================== */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --primary-light: #e7f1ff;
    --secondary-color: #6c757d;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   Typography
======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.display-4, .display-5 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ========================================
   Navbar
======================================== */

.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: none;
}

.navbar.scrolled {
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.8rem;
}

.brand-text {
    color: var(--text-dark);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* ========================================
   Buttons
======================================== */

.btn {
    padding: 0.7rem 1.8rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ========================================
   Hero Section
======================================== */

.hero-section {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.min-vh-90 {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.2rem;
    line-height: 1.8;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.stats-row h3 {
    font-size: 2.5rem;
}

/* ========================================
   Clients Section
======================================== */

.clients-section {
    padding: 60px 0;
}

.client-logo {
    padding: 20px;
    transition: var(--transition);
    opacity: 0.6;
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ========================================
   About Section
======================================== */

.about-section {
    padding: 80px 0;
}

.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.bg-primary-subtle {
    background-color: var(--primary-light) !important;
}

.features-list i {
    margin-top: 4px;
}

/* ========================================
   Service Cards - Glass Effect
======================================== */

.services-section {
    padding: 80px 0;
}

.service-card {
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.service-card:hover .service-icon i {
    color: white;
}

.service-card h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.service-link:hover {
    gap: 1rem;
}

/* ========================================
   Why Choose Us
======================================== */

.why-choose-section {
    padding: 80px 0;
}

.feature-box {
    padding: 2rem 1rem;
    transition: var(--transition);
}

.feature-icon-box {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
}

.feature-icon-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.feature-box:hover .feature-icon-box {
    background: var(--primary-color);
    transform: scale(1.1);
}

.feature-box:hover .feature-icon-box i {
    color: white;
}

/* ========================================
   Projects Section
======================================== */

.projects-section {
    padding: 80px 0;
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.project-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 110, 253, 0.95) 0%, rgba(13, 110, 253, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h5 {
    color: white;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

/* ========================================
   CTA Section
======================================== */

.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
}

/* ========================================
   Blue Section Theme
   Applied to: Why Choose Us + CTA
======================================== */

.section-blue {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 40%, #1976d2 100%) !important;
    position: relative;
    overflow: hidden;
}

.section-blue::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.section-blue::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

/* --- Text overrides on blue bg --- */
.section-blue h2,
.section-blue h5,
.section-blue p,
.section-blue .lead {
    color: #ffffff !important;
}

.section-blue .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.section-blue .text-primary {
    color: #90caf9 !important;
}

/* --- Badge overrides --- */
.section-blue .badge.bg-primary-subtle {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- Feature icon boxes on blue bg --- */
.section-blue .feature-icon-box {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-blue .feature-icon-box i {
    color: #ffffff;
}

.section-blue .feature-box:hover .feature-icon-box {
    background: rgba(255, 255, 255, 0.3);
}

/* --- Buttons on blue bg --- */
.section-blue .btn-primary {
    background: #ffffff;
    color: #1565c0;
    border: none;
}

.section-blue .btn-primary:hover {
    background: #e3f2fd;
    color: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.section-blue .btn-outline-primary {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    background: transparent;
}

.section-blue .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: #ffffff;
}

/* ========================================
   Footer
======================================== */

.footer {
    background-color: #f8f9fa;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer h5, .footer h6 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.footer-contact i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ========================================
   Scroll to Top Button
======================================== */

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.scroll-top-btn.show {
    display: flex;
}

/* ========================================
   Responsive Design
======================================== */

@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
        box-shadow: var(--shadow);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero-section {
        padding: 60px 0 40px;
        text-align: center;
    }
    
    .min-vh-90 {
        min-height: auto;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
    
    .stats-row h3 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .service-card,
    .feature-box {
        margin-bottom: 1rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ========================================
   Animation Classes
======================================== */

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========================================
   Utility Classes
======================================== */

.text-primary {
    color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.rounded-4 {
    border-radius: 20px !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}