/*
 * Modern Temple Theme Styles
 * Clean, Minimal, Bootstrap 5 Based Design
 */

/* Custom Properties */
:root {
    --primary-color: #2c3090;
    --secondary-color: #deca23;
    --light-gray: #f8f9fa;
    --border-radius-lg: 1rem;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: #ffffff;
}

/* Typography */
.display-3, .display-4, .display-5, .display-6 {
    font-weight: 300;
    line-height: 1.2;
}

.fw-light {
    font-weight: 300 !important;
}

.fw-normal {
    font-weight: 400 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.letter-spacing-2 {
    letter-spacing: 0.1em;
}

.leading-relaxed {
    line-height: 1.8;
}

.lh-sm {
    line-height: 1.4;
}

/* Buttons */
.btn {
    border-width: 1px;
    font-weight: 400;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-dark:hover {
    background-color: #000;
    border-color: #000;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-dark {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

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

.btn-light:hover {
    background-color: var(--light-gray);
    border-color: var(--light-gray);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* Cards */
.card {
    border: none;
    transition: var(--transition);
}

.service-card:hover,
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-card .service-image {
    overflow: hidden;
}

.service-card .service-image img {
    transition: transform 0.3s ease;
}

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

/* Shadows */
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Rounded Corners */
.rounded-3 {
    border-radius: 0.75rem !important;
}

.rounded-4 {
    border-radius: var(--border-radius-lg) !important;
}

/* Backgrounds */
.bg-light {
    background-color: var(--light-gray) !important;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.8) 0%, rgba(33, 37, 41, 0.6) 100%);
}

/* Accordion Customization */
.accordion-button {
    box-shadow: none;
    border: none;
    background: transparent;
    font-weight: 600;
    padding: 1.5rem 0;
}

.accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    display: none;
}

.accordion-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
}

.accordion-body {
    padding: 0 0 1.5rem 0;
}

/* Dynamic Hero Section */
.dynamic-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.dynamic-hero .hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.dynamic-hero .hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
}

.dynamic-hero .video-overlay,
.dynamic-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.dynamic-hero .hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    z-index: -2;
}

/* Ensure background images work on mobile */
@media (max-width: 768px) {
    .dynamic-hero .hero-bg-image {
        background-attachment: scroll;
        background-size: cover;
    }
}

.dynamic-hero .bg-gradient-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.05));
}

/* Centered Layout Specific Styles */
.dynamic-hero[data-layout="centered"] {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.dynamic-hero[data-layout="centered"] .hero-content-centered {
    padding: 4rem 0;
    z-index: 2;
    position: relative;
}

.dynamic-hero[data-layout="full_width"] {
    text-align: center;
}

.dynamic-hero[data-layout="full_width"] .hero-content {
    z-index: 2;
    position: relative;
}

/* Button Styles */
.dynamic-hero .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.dynamic-hero .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.dynamic-hero .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.dynamic-hero .btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Light buttons for centered layout */
.dynamic-hero .btn-light {
    background: rgba(255, 255, 255, 0.95);
    border-color: transparent;
    color: var(--primary-color);
    font-weight: 600;
}

.dynamic-hero .btn-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dynamic-hero .btn-outline-light {
    color: white;
    border-color: rgba(255, 255, 255, 0.8);
}

.dynamic-hero .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* Hero Section Responsive */
@media (max-width: 768px) {
    .dynamic-hero {
        min-height: 70vh !important;
    }
    
    .dynamic-hero .hero-content {
        text-align: center;
        padding: 2rem 0;
    }
    
    .dynamic-hero .display-3 {
        font-size: 2.5rem;
    }
    
    .dynamic-hero .display-2 {
        font-size: 3rem;
    }
    
    .dynamic-hero .lead {
        font-size: 1.2rem;
    }
    
    .dynamic-hero .btn-lg {
        padding: 0.875rem 2rem;
    }
    
    .dynamic-hero .hero-video-bg iframe {
        height: 70vh;
        min-height: 70vh;
    }
}

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

.hero-image {
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: linear-gradient(45deg, var(--light-gray), transparent);
    z-index: -1;
    border-radius: var(--border-radius-lg);
}

/* Min Height Utilities */
.min-vh-100 {
    min-height: 100vh;
}

/* Object Fit */
.object-fit-cover {
    object-fit: cover;
}

/* Spacing */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Text Colors */
.text-muted {
    color: var(--secondary-color) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        min-height: auto !important;
        padding: 3rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .service-image,
    .event-image {
        height: 200px !important;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .fs-4 {
        font-size: 1.1rem !important;
    }
    
    .fs-5 {
        font-size: 1rem !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.service-card,
.event-card {
    cursor: pointer;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
}

.event-card:hover {
    transform: translateY(-5px);
}

/* Custom Utilities */
.text-decoration-none {
    text-decoration: none !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

/* Footer Styles */
.bg-dark {
    background-color: var(--primary-color) !important;
}

/* Form Styles */
.form-control {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.25);
}

/* Navigation (if needed) */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
    font-weight: 600;
}

.nav-link {
    font-weight: 400;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Clean Modern Footer Styles */
.footer {
    background: #212529 !important;
    margin-top: auto;
}

.footer .brand-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.footer .social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.footer .social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer .footer-links a {
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer .footer-links a:hover {
    color: white !important;
    padding-left: 0.5rem;
}

.footer .simple-contact a:hover {
    color: white !important;
}

.footer .back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.footer .back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.footer .back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Modern Footer Bottom */
.footer .footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .footer-nav a:hover {
    color: white !important;
}

.footer .tech-badges .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
}

.footer .tech-badges .badge i {
    font-size: 0.7rem;
}

/* Footer responsive adjustments */
@media (max-width: 768px) {
    .footer .footer-content {
        text-align: center;
    }
    
    .footer .social-icons {
        justify-content: center;
    }
    
    .footer .footer-bottom {
        text-align: center !important;
    }
    
    .footer .footer-bottom .col-lg-4 {
        text-align: center !important;
    }
    
    .footer .footer-bottom .d-flex {
        justify-content: center !important;
    }
    
    .footer .footer-nav {
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .footer .tech-badges {
        justify-content: center;
        margin-top: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .btn {
        display: none !important;
    }
    
    .shadow-sm,
    .shadow-lg {
        box-shadow: none !important;
    }
}

/* Brand Text Names Styles */
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
    font-size: 1.2rem;
}

.brand-name-line1,
.brand-name-line2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    margin: 0;
    line-height: 1.4;
}

.brand-name-line1 {
    margin-bottom: 0.1rem;
}

.brand-name-line2 {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive adjustments for brand text */
@media (max-width: 991px) {
    .brand-name-line1,
    .brand-name-line2 {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .brand-name-line1,
    .brand-name-line2 {
        font-size: 0.7rem;
    }
    
    .brand-container {
        gap: 0.5rem;
    }
}

/* Download Section Styles */
.download-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-height: 180px;
    cursor: pointer;
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(0, 0, 0, 0.05);
    background-color: #ffffff !important;
}

.download-item a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.download-item a:hover {
    color: inherit;
}

.download-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.download-item:hover .download-logo img {
    transform: scale(1.1);
}

/* Download grid responsive adjustments */
@media (max-width: 768px) {
    .download-item {
        min-height: 160px;
    }
    
    .download-logo img {
        max-height: 60px;
    }
}
