/* ===================================
   SriRama Nursery - Frontend Styles
   =================================== */

/* Root Variables */
:root {
    --primary-color: #7ab82b;
    --primary-dark: #5a9016;
    --primary-light: #d4edda;
    --secondary-color: #6c757d;
    --success-soft: #d4edda;
    --text-color: #333333;
    --text-muted: #666666;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark: #212529;
    --black: #000000;
    --border-radius: 0px;
    --transition: all 0.3s ease;
}

/* General Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.header-section {
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
    margin-bottom: 0;
}

.header-section .navbar {
    padding: 0.75rem 0;
    background-color: transparent;
    margin-bottom: 0;
}

.header-section .logo-img {
    height: 50px;
    width: auto;
}

/* Navigation Items Centered */
.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--white) !important;
    padding: 0.75rem 1.25rem !important;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Get Started Button on Right */
.navbar-right {
    margin-left: auto;
}

.btn-get-started {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.75rem 2rem;
    border-radius: 0px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
}

.btn-get-started:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(122, 184, 43, 0.3);
}

/* Mobile Menu */
.navbar-toggler {
    border-color: var(--white);
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===================================
   HERO SLIDER
   =================================== */
.hero-slider-section {
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
}

.slider-image {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(122, 184, 43, 0.25) 50%, rgba(0, 0, 0, 0.75) 100%);
    backdrop-filter: blur(0px);
}

.carousel-caption-custom {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    z-index: 10;
}

.slider-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(122, 184, 43, 0.3);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    line-height: 1.2;
}

.slider-subtitle {
    font-size: 1.6rem;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    max-width: 850px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 0 2rem;
    line-height: 1.6;
}

.carousel-control-prev,
.carousel-control-next {
    width: 80px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(122, 184, 43, 0.9);
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(122, 184, 43, 0.5);
}

.carousel-indicators {
    margin-bottom: 2rem;
}

.carousel-indicators button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    opacity: 0.7;
    margin: 0 6px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
    opacity: 1;
    transform: scale(1.3);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(122, 184, 43, 0.6);
}

.carousel-item {
    transition: transform 1.2s ease-in-out, opacity 1s ease-in-out;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-section {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.service-box {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-box:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.service-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-box:hover .service-img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.service-description {
    color: #777777;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more-link {
    color: #999999;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.read-more-link:hover {
    color: var(--primary-color);
}

/* ===================================
   PAGE BANNER
   =================================== */
.page-banner {
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
}

.banner-image {
    position: relative;
    height: clamp(250px, 40vh, 450px);
    min-height: 250px;
    max-height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(122, 184, 43, 0.3) 50%, rgba(0, 0, 0, 0.8) 100%);
}

.banner-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.banner-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    padding: 1rem 2rem;
    background-color: rgba(122, 184, 43, 0.85);
    display: inline-block;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
}

.banner-content .breadcrumb {
    background-color: transparent;
    margin-bottom: 0;
    justify-content: center;
    padding: 0;
}

.banner-content .breadcrumb-item {
    font-size: 1rem;
    color: var(--white);
}

.banner-content .breadcrumb-item a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.banner-content .breadcrumb-item a:hover {
    color: var(--primary-color);
}

.banner-content .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

.banner-content .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--white);
}


/* ===================================
   BUTTON STYLES
   =================================== */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-success:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(122, 184, 43, 0.3);
}

.btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-success:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ===================================
   FORM STYLES
   =================================== */
.form-control,
.form-select {
    border-radius: 0px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    transition: var(--transition);
    background-color: #f5f5f5;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(122, 184, 43, 0.25);
    background-color: var(--white);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* ===================================
   CARD STYLES
   =================================== */
.card {
    border-radius: 0px;
    border: none;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* ===================================
   FOOTER STYLES
   =================================== */
.footer-section {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1rem;
}

.footer-section h4,
.footer-section h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul li a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===================================
   SECTION STYLES
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   UTILITIES
   =================================== */
.bg-success-soft {
    background-color: var(--success-soft) !important;
}

.text-light-50 {
    opacity: 0.7;
}

/* ===================================
   SCROLL TO TOP
   =================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    font-size: 1.2rem;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablets and Below */
@media (max-width: 991px) {
    /* Navigation */
    .navbar-nav {
        padding: 1rem 0;
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .navbar-right {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }
    
    .btn-get-started {
        width: 100%;
        display: block;
    }
    
    /* Hero Slider */
    .slider-image {
        height: 65vh;
        min-height: 450px;
    }
    
    .slider-title {
        font-size: 3rem;
    }
    
    .slider-subtitle {
        font-size: 1.3rem;
        padding: 0 1.5rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 50px;
        height: 50px;
    }
    
    /* Banner */
    .banner-image {
        height: clamp(220px, 35vh, 350px);
        min-height: 220px;
        max-height: 350px;
    }
    
    .banner-title {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
        padding: 0.75rem 1.5rem;
    }
    
    /* Services */
    .service-box {
        margin-bottom: 2rem;
    }
}

/* Mobile Phones */
@media (max-width: 767px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Hero Slider */
    .slider-image {
        height: 55vh;
        min-height: 400px;
    }
    
    .slider-title {
        font-size: 2.2rem;
        text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.9);
    }
    
    .slider-subtitle {
        font-size: 1.1rem;
        padding: 0 1.5rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 60px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 45px;
        height: 45px;
    }
    
    /* Banner */
    .banner-image {
        height: clamp(200px, 30vh, 280px);
        min-height: 200px;
        max-height: 280px;
    }
    
    .banner-title {
        font-size: clamp(1.3rem, 3vw, 1.75rem);
        padding: 0.65rem 1.25rem;
    }
    
    .banner-content .breadcrumb-item {
        font-size: 0.85rem;
    }
    
    /* Services */
    .service-image-wrapper {
        height: 200px;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    /* Sections */
    section {
        padding: 0rem 0;
    }
    
    .services-section {
        padding: 2rem 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .slider-image {
        height: 50vh;
        min-height: 350px;
    }
    
    .slider-title {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .slider-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 40px;
        height: 40px;
    }
    
    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
    
    .banner-image {
        height: clamp(180px, 28vh, 250px);
        min-height: 180px;
        max-height: 250px;
    }
    
    .banner-title {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        padding: 0.5rem 1rem;
    }
    
    .banner-content .breadcrumb-item {
        font-size: 0.8rem;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

/* Animate.css Integration */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__delay-1s {
    animation-delay: 0.3s;
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .header-section,
    .footer-section,
    .scroll-to-top {
        display: none;
    }
}
