/* Root Colors */
:root {
    --primary-color: #C8102E;
    --dark-blue: #012169;
    --light-gray: #F5F5F5;
    --gray-600: #374151;
    --gray-700: #4B5563;
    --text-color: #1F2937;
    --border-gray: #D1D5DB;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--dark-blue);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utilities */
.desktop-only {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-only {
        display: block;
    }
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 56px;
    width: auto;
}

.brand-text {
    display: none;
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--dark-blue);
    margin: 0;
    line-height: 1;
}

.brand-text p {
    font-size: 0.75rem;
    color: var(--primary-color);
    margin: 0;
}

@media (min-width: 640px) {
    .brand-text {
        display: block;
    }
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s;
}

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

.btn-register {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: none;
}

.btn-register:hover {
    background-color: #A00821;
}

@media (min-width: 640px) {
    .btn-register {
        display: block;
    }
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    background-color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    background-color: white;
    padding: 1rem;
    gap: 0.5rem;
    flex-direction: column;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: background-color 0.3s;
}

.mobile-nav-link:hover {
    background-color: var(--light-gray);
}

/* Hero Section */
.hero-section {
    background-color: var(--dark-blue);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.hero-slider {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-slider {
        height: 600px;
    }
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 50%;
    z-index: 10;
    padding: 2rem;
}

.hero-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #F5F5F5;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 2rem;
}

.hero-image img {
    max-height: 550px;
    object-fit: contain;
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.slider-prev {
    left: 1rem;
}

@media (min-width: 768px) {
    .slider-prev {
        left: 2rem;
    }
}

.slider-next {
    right: 1rem;
}

@media (min-width: 768px) {
    .slider-next {
        right: 2rem;
    }
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-secondary:hover {
    background-color: #A00821;
}

/* Featured Profiles Section */
.featured-profiles {
    background-color: white;
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.section-header p {
    font-size: 1.25rem;
    color: #6B7280;
}

.profiles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .profiles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.profile-card {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s;
    background-color: var(--light-gray);
}

.profile-card:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.profile-image {
    height: 256px;
    overflow: hidden;
    background-color: #D1D5DB;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    padding: 1.5rem;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.profile-header h3 {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--dark-blue);
}

.member-id {
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.profile-info p {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 1rem;
}

/* About Section */
.about-section {
    background-color: white;
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

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

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-text p {
    line-height: 1.6;
    color: #4B5563;
}

/* Services Section */
.services-section {
    background-color: var(--light-gray);
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.service-card p {
    color: #6B7280;
    font-size: 0.875rem;
}

/* Why Us Section */
.whyus-section {
    background-color: var(--dark-blue);
    color: white;
    padding: 5rem 0;
}

.whyus-section .section-header h2,
.whyus-section .section-header p {
    color: white;
}

.whyus-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .whyus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .whyus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.whyus-card {
    background-color: #1a2d5a;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.whyus-icon {
    font-size: 1.875rem;
    margin-right: 1rem;
}

.whyus-card h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.whyus-card p {
    font-size: 0.875rem;
    color: #D1D5DB;
}

/* Gallery Section */
.gallery-section {
    background-color: #F5F5F5;
    padding: 5rem 0;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 100;
    padding: 1rem;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    user-select: none;
}

.prev {
    left: 1rem;
}

.next {
    right: 1rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #F5F5F5;
    padding: 5rem 0;
}

.testimonials-wrapper {
    position: relative;
}

.testimonials-grid {
    position: relative;
    height: 400px;
}

.testimonial-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .testimonial-slide {
        grid-template-columns: 1fr 1fr;
    }
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stars {
    color: #FCD34D;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.testimonial-name {
    font-weight: bold;
    color: var(--dark-blue);
    margin-bottom: 0.25rem;
}

.testimonial-location {
    font-size: 0.875rem;
    color: #6B7280;
}

.testimonial-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.testimonial-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: 1px solid var(--border-gray);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    z-index: 10;
}

.testimonial-btn:hover {
    background-color: var(--light-gray);
}

.testimonial-prev {
    left: -3rem;
}

.testimonial-next {
    right: -3rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--dark-blue);
    color: white;
    padding: 5rem 0;
}

.contact-section .section-header h2,
.contact-section .section-header p {
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
}

.info-icon {
    font-size: 1.5rem;
}

.info-item h3 {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.info-item p {
    color: #D1D5DB;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-blue);
    box-shadow: 0 0 0 3px rgba(1, 33, 105, 0.1);
}

.contact-form .btn-primary {
    width: 100%;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: none;
    z-index: 40;
    font-size: 1.5rem;
}

.scroll-top-btn.show {
    display: block;
}

/* Footer */
.footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 3rem 0 1rem;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-logo {
    height: 96px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-grid p {
    font-size: 0.875rem;
    color: #B0B0B0;
}

.footer-grid h4 {
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 0.5rem;
}

.footer-grid a {
    color: #B0B0B0;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-grid a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #B0B0B0;
}
