/* Custom Bootstrap Variables */
:root {
    --bs-primary: #cc7722;
    --bs-secondary: #6c757d;
    --bs-dark: #222;
    --bs-light: #edf6f5;
    --bs-body-color: #777;
    --bs-border-color: #e9e9e9;
}

/* Global Styles */
body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--bs-body-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    color: var(--bs-dark);
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

/* Navbar Logos Styles */
.navbar-logos {
    flex-wrap: wrap;
    justify-content: center;
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.1);
}

.nav-link {
    font-weight: 600;
    color: var(--bs-dark) !important;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--bs-primary);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Button Styles */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: #b8661d;
    border-color: #b8661d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 119, 34, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

/* Banner Styles */
.banner-section {
    height: 100vh;
    margin-top: 70px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('../images/DESPU.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.banner-content {
    z-index: 10;
}

.banner-title {
    color: #ffffff !important;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.8), 1px 1px 3px rgba(0,0,0,0.9);
    font-weight: 900 !important;
    letter-spacing: -0.02em;
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.banner-subtitle {
    max-width: 600px;
    color: #f8f9fa !important;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7), 1px 1px 2px rgba(0,0,0,0.8);
    font-weight: 500;
    background: rgba(0,0,0,0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Team Avatar Styles */
.team-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bs-primary), #e09547);
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact-section {
    min-height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('../images/DESPU.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(204, 119, 34, 0.25);
}

/* Accordion Styles */
.accordion-button {
    background-color: transparent;
    border: none;
    border-radius: 10px !important;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bs-primary);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(204, 119, 34, 0.25);
}

.accordion-item {
    border-radius: 10px;
    border: none;
    background-color: white;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-toggler {
        border: none;
        outline: none;
    }
    .navbar-toggler .navbar-toggler-icon {
        filter: invert(40%);
    }
    .navbar-logos {
        order: 2;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    .navbar-logo {
        height: 35px;
    }
    .navbar > .navbar-brand {
        margin-right: auto;
    }
    .banner-section {
        height: auto;
        min-height: 100vh;
        margin-top: 100px;
        padding: 20px 0 40px;
        background-attachment: scroll; /* smoother on mobile */
    }
    .banner-content {
        padding: 10px 15px !important;
    }
    .banner-content img {
        width: 120px;
        height: 120px;
    }
    #countdown {
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }
    .countdown-item {
        flex: 0 0 calc(50% - 0.5rem);
        margin-bottom: 0.5rem;
    }
    .countdown-item .bg-warning {
        padding: 0.75rem !important;
    }
    .countdown-item .fs-4 {
        font-size: 1.25rem !important;
    }
    .section {
        padding: 48px 0;
    }
    .display-3 { font-size: 1.85rem; line-height: 1.2; }
    .banner-title { font-size: 1.6rem; }
    .banner-subtitle { font-size: 1rem; }
    .card-body { padding: 1rem !important; }
    .contact-card { padding: 0.5rem; }
    .nav-link::after { display: none; }
}

/* Reduce heavy hover effects on touch devices */
@media (hover: none) {
    .card:hover, .feature-card:hover { transform: none; box-shadow: none; }
}

/* Extra small devices */
@media (max-width: 576px) {
    .banner-section {
        margin-top: 90px;
        padding: 15px 0 30px;
    }
    .banner-content img {
        width: 100px;
        height: 100px;
    }
    .banner-title { 
        font-size: 1.25rem;
        padding: 0.4rem 0.75rem;
    }
    .banner-subtitle { 
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        max-width: 100%;
    }
    .btn-primary { padding: 10px 20px; }
    .contact-section { min-height: 60vh; }
    .countdown-item .bg-warning {
        padding: 0.5rem !important;
    }
    .countdown-item .fs-4 {
        font-size: 1.1rem !important;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #b8661d;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--bs-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
