/* ==========================================================================
   ITU BTS-DIAM - Custom Styles
   Bootstrap 5 Modern Website
   ========================================================================== */

/* Root Variables - ITU Branding Colors */
:root {
    --primary-blue: #005F83;
    --primary-dark: #004d6a;
    --accent-yellow: #f5b700;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-primary: #333333;
    --text-secondary: #6c757d;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.7;
}

/* Color Utilities */
.text-primary {
    color: var(--primary-blue) !important;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 161, 0.3);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* Navigation */
#mainNav {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background-color: transparent;
}

#mainNav.scrolled {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    font-family: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: color 0.3s ease;
}

#mainNav.scrolled .navbar-brand {
    color: var(--primary-blue) !important;
}

.navbar-brand:focus {
    outline: none;
    box-shadow: none;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: white !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

#mainNav.scrolled .navbar-nav .nav-link {
    color: var(--text-primary) !important;
}

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

#mainNav.scrolled .navbar-nav .nav-link:hover,
#mainNav.scrolled .navbar-nav .nav-link:focus {
    color: var(--primary-blue) !important;
}

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

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Mobile Hamburger Menu */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.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, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mainNav.scrolled .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

#mainNav.scrolled .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(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('../img/header.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-divider {
    width: 80px;
    height: 4px;
    background-color: var(--accent-yellow);
    border: none;
    opacity: 1;
}

/* Section Dividers */
.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--accent-yellow);
    border: none;
}

.section-divider-light {
    width: 80px;
    height: 4px;
    background-color: var(--accent-yellow);
    border: none;
}

/* About Section */
#about {
    position: relative;
}

#about .section-heading {
    letter-spacing: 1px;
}

/* Toggle Button Animations */
.toggle-btn {
    position: relative;
    font-weight: 600;
}

.toggle-btn .toggle-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.toggle-btn[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.toggle-btn[aria-expanded="true"] .toggle-label::after {
    content: ' less';
}

.toggle-btn[aria-expanded="false"] .toggle-label::after {
    content: ' more';
}

/* Services Section */
#services {
    position: relative;
}

.service-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

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

.service-icon i {
    font-size: 4rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    color: var(--accent-yellow) !important;
}

.service-card h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.service-card ul li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Board Members Section */
#board {
    position: relative;
}

.board-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.board-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

.card-img-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background-color: var(--light-gray);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.board-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.board-card .card-title {
    font-size: 1rem;
    color: var(--text-primary);
}

.board-card .card-body {
    padding: 1.5rem;
}

.social-links a {
    font-size: 1.25rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-blue) !important;
    transform: translateY(-3px);
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #1a1d20 100%);
}

.contact-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.contact-link:hover {
    color: var(--accent-yellow) !important;
    transform: translateY(-5px);
}

.contact-link i {
    transition: all 0.3s ease;
}

.contact-link:hover i {
    transform: scale(1.2);
}

/* Footer */
footer {
    background-color: #1a1d20;
}

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

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

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 70vh;
        background-attachment: scroll;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    /* Mobile Navbar Adjustments */
    #mainNav {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-nav .nav-link {
        padding: 0.4rem 1rem !important;
        font-size: 0.95rem;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .card-img-wrapper {
        height: 320px;
    }
}

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

    .hero-section .lead {
        font-size: 1rem;
    }

    .service-icon i {
        font-size: 3rem;
    }

    .card-img-wrapper {
        height: 280px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 60vh;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    /* Extra Small Mobile Navbar */
    #mainNav {
        padding: 0.4rem 0;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.75rem 2rem !important;
        font-size: 1rem !important;
    }

    .section-divider,
    .hero-divider,
    .section-divider-light {
        width: 60px;
        height: 3px;
    }

    .card-img-wrapper {
        height: 250px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .toggle-btn {
        display: none !important;
    }

    .hero-section {
        background: var(--primary-blue) !important;
        min-height: auto !important;
        padding: 2rem 0 !important;
    }

    section {
        page-break-inside: avoid;
    }
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

