/* Custom CSS for ANSHUMATH Agro India Website */

/* Root Variables */
:root {
    --primary-color: #0c6e1e;
    --secondary-color: #16a34a;
    --accent-color: #f59e0b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --white-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    --gradient-secondary: linear-gradient(135deg, #1a8240 0%, #0b5225 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation */
.custom-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.custom-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.company-subtitle {
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color);
    margin: 0 8px;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.cta-nav {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-radius: 25px !important;
    padding: 10px 20px !important;
    margin-left: 16px !important;
}

.cta-nav:hover {
    background: var(--gradient-secondary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.carousel-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.carousel-item {
    position: relative;
    min-height: 340px;

}

@media screen and (max-width:576px) {
    .carousel-item {
        top: 100px;
    }

}

@media screen and (min-width:1024px) {

    .carousel-item {
        height: 100vh;
        min-height: 600px;
        position: relative;
    }
}

.carousel-content {
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(37, 99, 235, 0.85);
    position: relative;
    z-index: 2;
}

.carousel-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.telecom-bg {
    background: rgba(22, 163, 74, 0.85);
}

.hospitality-bg {
    background: rgba(245, 158, 11, 0.85);
}

.hero-text {
    color: white;
    z-index: 2;
    position: relative;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideInUp 1s ease-out;
}

.hero-text .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: slideInUp 1s ease-out 0.4s both;
}

.hero-image {
    text-align: center;
    animation: slideInRight 1s ease-out 0.6s both;
}

.hero-icon {
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Marquee Section */
.marquee-section {
    background: var(--dark-color);
    color: white;
    overflow: hidden;
}

.marquee-container {
    white-space: nowrap;
    overflow: hidden;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
    gap: 4rem;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    white-space: nowrap;
}

.marquee-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* About Section */
#about {
    background: var(--white-color);
}

.about-content h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-item i {
    font-size: 2rem;
    margin-top: 4px;
}

.feature-item h5 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.feature-item p {
    color: #6b7280;
    margin: 0;
    font-size: 0.95rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
}

/* Courses Section */
.course-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    height: 200px;
    margin: -2rem -2rem 1.5rem -2rem;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.course-icon {
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.1);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -40px auto 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
    background-color: white;
}

.course-card:hover .course-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.course-card:hover .course-icon i {
    color: white;
}

.course-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.course-card h4 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.course-card .btn {
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: auto;
}

/* Testimonials Section */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.stars {
    margin-bottom: 1rem;
}

.stars i {
    color: var(--accent-color);
    margin-right: 4px;
}

.testimonial-content p {
    font-style: italic;
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.author-info h5 {
    margin-bottom: 0.25rem;
    color: var(--dark-color);
    font-size: 1.125rem;
}

.author-info span {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Call to Action Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-buttons .btn {
    border-radius: 25px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Map Section */
.map-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: saturate(0.8) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: saturate(1) contrast(1.2);
}

/* Footer */
.footer-section {
    background: var(--dark-color);
    color: white;
}

.footer-content h5 {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-info {
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.25rem;
    color: #d1d5db;
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.125rem;
    margin-top: 2px;
    width: 20px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 3rem 0 2rem;
}

.copyright {
    color: #9ca3af;
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .marquee-content {
        gap: 2rem;
    }

    .marquee-item {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-text .lead {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .hero-icon {
        font-size: 8rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .feature-item {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }

    .course-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .company-name {
        font-size: 1.25rem;
    }

    .company-subtitle {
        font-size: 0.75rem;
    }

    .navbar-nav .nav-link {
        margin: 4px 0;
        text-align: center;
    }

    .cta-nav {
        margin-left: 0 !important;
        margin-top: 8px !important;
    }
}

@media (max-width: 575.98px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .hero-icon {
        font-size: 6rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .course-icon {
        width: 60px;
        height: 60px;
    }

    .course-icon i {
        font-size: 1.5rem;
    }

    .marquee-item {
        font-size: 0.875rem;
    }

    .marquee-item i {
        font-size: 1.25rem;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.btn-gradient:hover {
    background: var(--gradient-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Custom Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-success {
    background: var(--gradient-secondary);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
}

.btn-warning {
    background: var(--gradient-accent);
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.social-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
        --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3);
    }

    .custom-navbar {
        background: rgba(255, 255, 255, 1);
        border-bottom: 2px solid var(--dark-color);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .marquee-content {
        animation: none;
    }

    .hero-icon {
        animation: none;
    }

    .logo-icon {
        animation: none;
    }
}

.cta-section {
    background: url(images/image3.png) no-repeat center center/cover;
    position: relative;
    color: white;
}

.cta-bg-overlay {
    background: rgba(0, 0, 0, 0.6);
    /* dark overlay for readability */
    width: 100%;
    padding: 24px 0;
    height: 100%;
}

.cta-content {
    z-index: 2;
    position: relative;
}

.text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.btn-outline-light:hover,
.btn-light:hover {
    transform: scale(1.05);
    transition: all 0.3s ease;
}