/* ==========================================
   Mantraprabha - Custom Stylesheet
   Designing Meaning. Building Brands.
   ========================================== */

/* ==========================================
   1. ROOT VARIABLES & RESET
   ========================================== */
:root {
    --primary-color: #3e4095;
    --secondary-color: #f79637;
    --accent-color: #f79637;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --white-color: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   2. NAVBAR STYLES
   ========================================== */
.navbar {
    padding: 1rem;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-title .logo{
    height: 80px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.5rem 1.2rem !important;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transform: translateX(-50%);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

/* ==========================================
   3. HERO SECTION
   ========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(44, 62, 80, 0.95) 0%, 
        rgba(52, 73, 94, 0.95) 50%,
        rgba(231, 76, 60, 0.9) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,133.3C672,139,768,181,864,181.3C960,181,1056,139,1152,122.7C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(243, 156, 18, 0.1), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(231, 76, 60, 0.1), transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%); */
    background: url(../img/banner.png) no-repeat center center;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
    background: rgba(255, 255, 255, 0.8);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator a {
    color: var(--white-color);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   4. BUTTONS
   ========================================== */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--white-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-light:hover {
    background: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ==========================================
   5. PHILOSOPHY SECTION
   ========================================== */
.philosophy-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white-color);
    padding: 5rem 0 !important;
}

.philosophy-quote {
    padding: 3rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.quote-icon i {
    font-size: 3rem;
    opacity: 0.6;
}

.quote-text {
    font-size: 1.8rem;
    line-height: 1.6;
    font-weight: 400;
    font-style: italic;
}

.quote-text .highlight {
    font-weight: 700;
    color: var(--accent-color);
}

.quote-divider {
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

/* ==========================================
   6. SECTIONS COMMON STYLES
   ========================================== */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

/* ==========================================
   7. ABOUT SECTION
   ========================================== */
.about-section {
    background: var(--white-color);
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.about-image .image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 400px;
    color: var(--white-color);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.4);
    animation: pulse 2s infinite;
}

.about-badge i {
    font-size: 2.5rem;
    color: var(--white-color);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.about-content .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
}

.value-item {
    font-size: 1.1rem;
    font-weight: 500;
}

.value-item i {
    font-size: 1.3rem;
}

/* ==========================================
   8. SERVICES SECTION
   ========================================== */
.services-section {
    background: var(--light-color);
}

.service-card {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0,0,0,0.05);
    font-family: var(--font-heading);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
}

.service-title {
    font-size: 1.6rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-tagline {
    color: var(--accent-color);
    font-weight: 600;
    font-style: italic;
}

.service-description {
    color: var(--gray-color);
    line-height: 1.8;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li i {
    color: var(--secondary-color);
}

/* ==========================================
   9. WHY US SECTION
   ========================================== */
.why-section {
    background: var(--white-color);
}

.why-card {
    background: var(--light-color);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.why-card:hover {
    background: var(--white-color);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.why-icon-wrapper {
    display: inline-block;
}

.why-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    transform: rotateY(360deg);
}

.why-icon i {
    font-size: 2rem;
    color: var(--white-color);
}

.why-title {
    font-size: 1.3rem;
    color: var(--dark-color);
    font-weight: 600;
}

.why-description {
    color: var(--gray-color);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================
   10. PORTFOLIO SECTION
   ========================================== */
.portfolio-section {
    background: var(--light-color);
}

.portfolio-filter {
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--white-color);
    border: 2px solid #e0e0e0;
    padding: 0.6rem 1.5rem;
    margin: 0.3rem;
    border-radius: 25px;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.portfolio-item {
    opacity: 1;
    transition: var(--transition);
}

.portfolio-item.hide {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.portfolio-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image .image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(231, 76, 60, 0.9), rgba(243, 156, 18, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--white-color);
    padding: 2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: 1rem;
    margin: 0;
}

/* ==========================================
   11. CONTACT SECTION
   ========================================== */
.contact-section {
    background: var(--white-color);
}

.contact-info h4 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-item {
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(10px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: var(--white-color);
    font-size: 1.2rem;
}

.info-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.info-item p {
    color: var(--gray-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-5px);
}

.contact-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.1rem 1.2rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.1);
}

.contact-form select.form-control {
    cursor: pointer;
}

/* ==========================================
   12. FOOTER
   ========================================== */
.footer-section {
    background: var(--dark-color) !important;
}

.footer-section h3,
.footer-section h5 {
    color: var(--white-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.newsletter-form .form-control {
    border: none;
    border-radius: 25px 0 0 25px;
    padding: 0.6rem 1rem;
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    padding: 0.6rem 1.2rem;
}

/* ==========================================
   13. BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white-color);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.back-to-top:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.back-to-top.show {
    display: flex;
}

/* ==========================================
   14. RESPONSIVE STYLES
   ========================================== */

/* Tablets and below */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .service-card,
    .why-card {
        margin-bottom: 2rem;
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .quote-text {
        font-size: 1.3rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }

    .about-image .image-placeholder {
        height: 300px;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-title {
        font-size: 1.3rem;
    }

    .why-icon {
        width: 60px;
        height: 60px;
    }

    .why-icon i {
        font-size: 1.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 575px) {
    section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

/* ==========================================
   15. UTILITY CLASSES
   ========================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ==========================================
   16. ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.mobile .btn.btn-primary.btn-lg.mr-3.mb-3 {
    /* Add your mobile-specific button styles here */
    margin-right: 0!important;
}