/* Custom CSS for S Esuf Basha Website */

/* Root Variables */
:root {
    --primary-color: #1E3A8A;
    --accent-color: #10B981;
    --cta-color: #EF4444;
    --bg-color: #F9FAFB;
    --text-color: #111827;
    --font-en: 'Lato', sans-serif;
    --font-ta: 'Noto Sans Tamil', sans-serif;
}

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

body {
    font-family: var(--font-en);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Tamil Font Application */
[data-lang="ta"] {
    font-family: var(--font-ta) !important;
}

/* Navigation Styles */
.navbar {
    background-color: var(--primary-color) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.navbar-logo {
    height: 40px;
    width: auto;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    filter: brightness(1.3);
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}

.language-toggle .btn {
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: white !important;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background-color: transparent !important;
    margin: 0 2px;
    min-width: 70px;
}

.language-toggle .btn:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
    transform: translateY(-1px);
}

.language-toggle .btn.active {
    background-color: white !important;
    border-color: white !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.language-toggle .btn:focus,
.language-toggle .btn:active {
    background-color: white !important;
    border-color: white !important;
    color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.3) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563EB 100%);
    color: white;
    padding: 3rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-buttons {
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    margin: 0.5rem 0.5rem 0.5rem 0;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-image {
    text-align: center;
    padding: 0;
    margin: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.hero-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    height: 100%;
    min-height: 500px;
    padding: 0;
    margin: 0;
    width: 100%;
}

.hero-slide-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    max-width: 100%;
}

.carousel-inner {
    height: 500px;
}

.carousel-item {
    height: 500px;
    position: relative;
}

.carousel-caption {
    bottom: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 15px 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    max-width: 80%;
}

.carousel-caption h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
    color: white;
}

.carousel-indicators {
    bottom: 10px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 3px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    opacity: 0.7;
}

.carousel-indicators button.active {
    background-color: var(--accent-color);
    opacity: 1;
    transform: scale(1.1);
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    color: white;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--primary-color);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-gallery {
        min-height: 300px;
        margin: 0;
        width: 100%;
        overflow: hidden;
    }
    
    .carousel-inner {
        height: auto;
        min-height: 300px;
    }
    
    .carousel-item {
        height: auto;
        min-height: 300px;
    }
    
    .hero-slide-img {
        width: 100%;
        height: auto;
        min-height: 300px;
        object-fit: contain;
        object-position: center center;
        max-width: 100%;
    }
    
    .carousel-caption {
        bottom: 10px;
        padding: 8px 12px;
        max-width: 90%;
    }
    
    .carousel-caption h5 {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
    
    .carousel-indicators {
        bottom: 5px;
    }
    
    .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 2px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-gallery {
        min-height: 250px;
        margin: 0;
        width: 100%;
        overflow: hidden;
    }
    
    .carousel-inner {
        height: auto;
        min-height: 250px;
    }
    
    .carousel-item {
        height: auto;
        min-height: 250px;
    }
    
    .hero-slide-img {
        width: 100%;
        height: auto;
        min-height: 250px;
        object-fit: contain;
        object-position: center center;
        max-width: 100%;
    }
    
    .carousel-caption {
        padding: 6px 10px;
        max-width: 95%;
    }
    
    .carousel-caption h5 {
        font-size: 0.8rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.75rem 1rem;
    }
}

/* Awards Blurb Styles */
.awards-blurbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.blurb {
    width: 350px;
    text-align: center;
}

.blurb-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f3f3f3;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blurb-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.blurb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 0;
}

.blurb-caption {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
    color: var(--text-color);
}

/* Mobile responsiveness for awards */
@media (max-width: 768px) {
    .blurb {
        width: 100%;
        max-width: 400px;
    }
    
    .awards-blurbs {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .blurb {
        width: 100%;
    }
    
    .blurb-caption {
        font-size: 0.9rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white !important;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    color: white;
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

.whatsapp-float i {
    margin: 0;
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* WhatsApp Contact Button */
.btn-success {
    color: white !important;
}

.btn-success:hover {
    color: white !important;
}

.hero-content {
    padding-right: 2rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Button Styles */
.btn-cta {
    background-color: var(--cta-color);
    border-color: var(--cta-color);
    color: white;
    font-weight: 600;
}

.btn-cta:hover {
    background-color: #DC2626;
    border-color: #DC2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    font-weight: 600;
}

.btn-accent:hover {
    background-color: #059669;
    border-color: #059669;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Card Styles */
.highlight-card,
.service-card,
.award-card,
.blog-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
}

.highlight-card:hover,
.service-card:hover,
.award-card:hover,
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.highlight-card h4,
.service-card h3,
.award-card h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Service Cards */
.service-icon {
    margin-bottom: 1rem;
}

.service-card ul li {
    padding: 0.25rem 0;
    color: var(--text-color);
}

/* Award Cards */
.award-card i {
    display: block;
    margin-bottom: 1rem;
}

.award-image {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.award-image:hover {
    transform: scale(1.05);
}

.award-image img {
    transition: filter 0.3s ease;
}

.award-card:hover .award-image img {
    filter: brightness(1.1);
}

/* Blog Cards */
.blog-card {
    overflow: hidden;
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

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

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-meta .badge {
    font-size: 0.75rem;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin-bottom: 0;
    color: var(--text-color);
}

.contact-details a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--primary-color);
}

/* Social Links */
.social-links .social-link {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links .social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Map Container */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--primary-color) !important;
}

footer h5 {
    color: var(--accent-color);
}

/* Utility Classes */
.text-accent {
    color: var(--accent-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 2rem;
        padding: 0;
        height: auto;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .language-toggle {
        margin-top: 1rem;
    }
    
    .language-toggle .btn {
        width: 80px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    .highlight-card,
    .service-card,
    .award-card {
        margin-bottom: 1rem;
    }
}

/* Animation for Language Switch */
[data-lang] {
    transition: opacity 0.3s ease;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Loading Animation */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .language-toggle,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
