/* Reset and base styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #1E1C3F;
    --footer-bg: #282469;
    --text-color: #ffffff;
    --transition-speed: 0.3s;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #fff;
    color: var(--primary-bg);
    padding: 8px;
    z-index: 100;
    transition: top var(--transition-speed);
}

.skip-link:focus {
    top: 0;
}

/* Header styles */
.main-header {
    padding: 1rem;
    position: sticky;
    top: 0;
    background-color: var(--primary-bg);
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 5rem;
    width: auto;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-icon {
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
}

/* Hamburger menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: var(--transition-speed);
}

/* Navigation menu */
.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--primary-bg);
    padding: 1rem;
    list-style: none;
}

.nav-menu.active {
    display: block;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    transition: var(--transition-speed);
}

.nav-menu a:hover,
.nav-menu a:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero section */
.hero-section {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.hero-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hero-slider::-webkit-scrollbar {
    display: none;
}

.hero-slider picture {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.hero-slider img {
    width: 100%;
    height: auto;
    max-height: 35rem;
    object-fit: contain;
}

.view-more-btn {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-bg);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-speed);
}

.view-more-btn:hover,
.view-more-btn:focus {
    background-color: #fff;
    transform: translateX(-50%) scale(1.05);
}

/* Intro section */
.intro-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.intro-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.intro-section p {
    font-size: 1.1rem;
    text-align: justify;
}

/* Team Page Specific Styles */
.team-hero {
    position: relative;
    text-align: center;
    margin-bottom: 4rem;
}

.team-hero h1 {
    font-size: 3rem;
    margin: 2rem 0;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-image {
    max-width: 100%;
    overflow: hidden;
}

.hero-image picture {
    display: block;
}

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

.team-description {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.team-description p {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: justify;
    color: var(--text-color);
}

/* Footer */
.main-footer {
    background-color: var(--footer-bg);
    padding: 2rem 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.social-links img {
    width: 24px;
    height: 24px;
    transition: var(--transition-speed);
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
}

.social-links a:hover img,
.social-links a:focus img {
    transform: scale(1.1);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}


@media (min-width: 768px) {

    .hamburger {
        display: none;
    }

    .nav-menu {
        display: flex;
        position: static;
        padding: 0;
    }

    .nav-menu li {
        margin-left: 2rem;
    }

    /* Home page layout for tablet and desktop */
    .home-page main {
        max-width: 1200px;
        margin: 2rem auto;
        padding: 0 2rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }

    .home-page .intro-section {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        padding: 2rem 0;
    }

    .home-page .intro-section h1 {
        text-align: left;
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .home-page .hero-section {
        grid-column: 2;
        grid-row: 1;
        position: relative;
    }

    .home-page .hero-slider {
        border-radius: 8px;
        overflow: hidden;
    }

    .home-page .hero-slider img {
        height: 400px;
    }
    
    .home-page .hero-section {
        margin-top: 2rem;
    }

    .home-page .view-more-btn {
        position: static;
        transform: none;
        display: block;
        width: fit-content;
        margin: 1rem 0 0 auto;
    }

    .home-page .view-more-btn:hover,
    .home-page .view-more-btn:focus {
        transform: scale(1.05);
    }

    /* Team page tablet styles */
    .team-hero h1 {
        font-size: 4rem;
    }

    .hero-image img {
        max-height: 70vh;
    }

    .team-description {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {

    .home-page main {
        gap: 4rem;
    }

    .home-page .intro-section h1 {
        font-size: 3.5rem;
    }

    .home-page .hero-slider img {
        height: 450px;
    }

    .home-page .intro-section p {
        font-size: 1.2rem;
        line-height: 1.8;
    }

    .hero-image img {
        max-height: 80vh;
    }

    .team-description {
        padding: 0;
    }
    .homepage-content {
        display: flex;
        flex-direction: row-reverse;
        
    }
}

/* Contact page specific styles */
.contact-container {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.contact-form-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.form-intro {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.contact-form {
    width: 100%;
}

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

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

.form-group label {
    font-size: 1rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition-speed);
}

.form-group input:focus {
    outline: none;
    border-color: var(--purple-button);
    background-color: rgba(255, 255, 255, 0.15);
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
}

.checkbox-group label {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.submit-btn {
    background-color: var(--purple-button);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-speed);
}

.submit-btn:hover {
    opacity: 0.9;
}

.contact-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .contact-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }

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

    .checkbox-group {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .contact-form-section h1 {
        font-size: 4rem;
    }

    .form-intro {
        font-size: 1.25rem;
    }
}

.login-btn {
    text-decoration: none;
    background-color: #ff5b5b; 
    color: #ffffff; 
    font-size: 1.5rem; 
    font-weight: bold;
    border: none;
    border-radius: 8px; 
    padding: 15px 30px; 
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
    transform: scale(1.05); 
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3); 
}