/* Base styles */
html {
    scroll-behavior: smooth;
    background-color: black;
    font-size: 16px; /* Base font size */
}

body {
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
    background: #000000;
    line-height: 1.6;
    color: #fff;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Common elements and utilities */
.a_href {
    position: relative;
    bottom: 100px;
}

.link {
    color: #990000;
    font-weight: 900;
}

#link_faculty {
    font-weight: 900;
    color: #bec18f;
}

/* Section dividers */
.section-divider {
    height: 2px;
    background-color: #990000;
    margin: 0 auto;
    position: relative;
    border: none;
    border-top: 20px;
    border-bottom: 20px;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 10px;
    background-color: #990000;
    border-radius: 5px;
}

.subtle-divider {
    height: 1px;
    background-color: #990009;
    margin: 0 auto;
    border: none;
    border-top: 15px;
    border-bottom: 15px;
}

/* Header and navigation */
header {
    background-image: linear-gradient(black, rgb(32, 32, 32));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    min-height: 60px;
    display: flex;
    align-items: center;
}

#baners {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    flex-wrap: nowrap;
    position: relative;
}

.logo-link {
    display: flex;
    align-items: center;
    margin-left: 5px;
    height: 100%;
}

#logo_GA {
    height: 50px;  /* Reduced from 70px to match smaller logo */
    width: auto;
    padding: 5px 15px 5px 10px;  /* Adjusted padding for better vertical alignment */
    object-fit: contain;
}

.secondary-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 45px;
}

.banner_logo {
    height: 40px;
    width: auto;
}

.pp_logo_desktop {
    padding-right: 20px;
}

.pp_logo_mobile {
    display: none;
}

.hamburger-icon {
    font-size: 28px;
    color: white;
    cursor: pointer;
    margin-left: auto;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1500;
    transition: color 0.3s ease;
}

.hamburger-icon:hover {
    color: #990000;
}

/* Side Panel */
.side-panel {
    height: calc(100% - 60px);
    width: 0;
    position: fixed;
    top: 60px;
    right: 0;
    background-color: rgba(17, 17, 17, 0.95);
    overflow-x: hidden;
    transition: 0.4s ease;
    padding-top: 20px;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.side-panel a {
    padding: 15px 24px;
    text-decoration: none;
    font-size: 1.125rem; /* 18px */
    color: white;
    display: block;
    transition: 0.3s;
    margin: 5px 10px;
    border-radius: 5px;
    border-left: 3px solid transparent;
}

.side-panel a:hover {
    background: #333;
    color: #990000;
    text-decoration: none;
    border-left: 3px solid #990000;
}

/* Main page elements */
#main_page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin: 0;
    padding: 0;
    height: calc(100vh - 60px);
    overflow: hidden;
    position: relative;
}

#main_image_container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#main_image_1 {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    margin: 0;
    padding: 0;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-overlay h2 {
    color: black;
    font-size: 4rem;
    font-weight: 450;
    font-family: "Montserrat", sans-serif;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.5);
    padding: 15px 30px;
    border-radius: 5px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    animation: bounce 2s ease-in;
}

.scroll-indicator a {
    color: black;
    font-size: 2.5rem;
    background-color: rgba(255, 255, 255, 0.6);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.scroll-indicator a:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(5px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    color: #990000;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* About section */
.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #000000;
    color: white;
    padding: 60px 20px 50px 20px;
    position: relative;
    text-align: center;
}

.about h2 {
    margin-bottom: 30px;
    font-size: 2.5rem; /* 40px */
}

.about p {
    text-align: justify;
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Buttons */
#about_button_2 {
    color: white;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.125rem; /* 18px */
    margin: 30px auto;
    background: #990000;
    width: 200px;
    text-align: center;
    padding: 15px 20px;
    border-radius: 20px;
    transition: background 0.2s ease-out;
    display: block;
}

#about_button_2:hover {
    background: #ffffff;
    color: #990000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* Details section */
.details {
    text-align: center;
    background-color: #000000;
    color: white;
    padding: 30px 20px 50px;
}

.details-list {
    text-align: justify;
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.8;
}

.details h3 {
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.8rem; /* 28.8px */
}

.details-info {
    font-size: 1.5rem;
    text-align: left;
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.8;
    margin-bottom: 40px;
    padding-left: 30px;
}

/* Zapisz się section */
.zapisz-sie {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #000000;
    color: white;
    padding-bottom: 20px;
    position: relative;
}

/* Modules section */
.modules {
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 400px));
    justify-content: center;
    background-color: #000000;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    gap: 25px;
    box-sizing: border-box;
}

@property --bg-angle {
    inherits: false;
    initial-value: 45deg;
    syntax: "<angle>";
}

@keyframes spin {
    to {
        --bg-angle: 225deg;
    }
}

.module-card {
    display: flex;
    flex-direction: column;
    animation: spin 3s infinite ease-in-out paused;
    padding: 30px;
    margin: 20px auto;
    min-height: 320px;
    height: auto;
    width: 100%;
    max-width: 300px;
    text-align: center;
    box-shadow: 0.3em 0.3em 1em rgb(100 0 0 / 60%);
    color: white;
    border: 5px solid transparent;
    border-radius: 7px;
    position: relative;
    background:
        linear-gradient(-10deg, rgba(3, 3, 3, 1), rgba(10, 10, 10, 1))
            padding-box,
        linear-gradient(
                var(--bg-angle),
                rgba(155, 0, 0, 1) 0%,
                rgba(10, 10, 10, 1) 30%,
                rgba(10, 10, 10, 1) 70%,
                rgba(155, 0, 0, 1) 100%
            )
            border-box;
    transition: var(--bg-angle) 90deg 0.1s;
}

.module-card:hover {
    animation-play-state: running;
}

.module-card h3 {
    color: white;
    font-size: 1.2rem; /* 19.2px */
    font-weight: 900;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.module-card p {
    font-size: 1rem; /* 16px */
    color: #888888;
    font-weight: 700;
    margin: 0;
    line-height: 1.5;
}

.module-card p.description-with-links {
    font-weight: 300;
    text-align: left;
    margin-bottom: 10px;
}

.module-card a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 8px;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: rgba(153, 0, 0, 0.2);
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-right: 5px;
}

.module-card a:hover {
    color: #ffffff;
    background-color: rgba(153, 0, 0, 0.6);
}

/* Contact section */
.contact {
    background-color: #000000;
    padding: 50px 20px;
    color: white;
    text-align: center;
}

.contact h2 {
    padding-bottom: 20px;
}

.contact-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.contact-info {
    flex: 1;
    text-align: left;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    width: 30px;           
    text-align: center;    
    margin-right: 15px;    
    font-size: 28px;      
    color: #990000;        
    padding-top: 3px;    
}

.contact-item div {
    flex: 1;
}

.contact-item h3 {
    font-size: 1.125rem; /* 18px */
    margin: 0 0 8px 0;
    font-weight: bold;
    color: #fff;
}

.contact-item p {
    margin: 0;
    color: #cccccc;
    line-height: 1.4;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(153, 0, 0, 0.1);
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(153, 0, 0, 0.3);
}

.social-link:hover {
    background-color: rgba(153, 0, 0, 0.6);
    color: white;
    text-decoration: none;
}

.map-container {
    flex: 1;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(153, 0, 0, 0.3);
}

/* Footer */
footer {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 20px;
}

footer a {
    color: #c01c08;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
}

/* Materiały section */
.materialy {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.materialy h2 {
    margin-bottom: 30px;
    font-weight: 700;
}

.materialy-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.materialy-button {
    display: inline-block;
    background-color: #990000;  /* Matches your red color scheme */
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.materialy-button:hover {
    background-color: #a50505;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.materialy-button i {
    margin-right: 8px;
}

/* Media Queries */
@media (max-width: 1024px) {
    .modules {
        grid-template-columns: repeat(2, minmax(250px, 350px));
        gap: 20px;
        padding: 40px 10px;
    }

    .banner_logo {
        padding: 0;
    }

    .module-card {
        margin: 0 auto;
        width: 100%;
    }

    .pp_logo_desktop {
        padding-right: 15px;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 5px;
        overflow-x: hidden;
    }
    
    #logo_GA {
        height: 45px;  /* Adjusted for mobile */
        padding: 5px 10px 5px 5px;
    }
  
    .banner_logo {
        padding: 0 10px;
    }
  
    .secondary-logos {
        gap: 8px;
        margin-right: 40px;
        height: 100%;
    }
  
    .pp_logo_desktop {
        display: none;
    }
    
    .pp_logo_mobile {
        display: inline-block;
        padding-right: 20px;
    }
  
    #baners {
        justify-content: space-between;
    }
  
    .image-overlay h2 {
        font-size: 3.5rem; /* 56px */
        padding: 12px 25px;
    }
  
    .scroll-indicator a {
        font-size: 2rem; /* 32px */
        width: 50px;
        height: 50px;
    }
    
    .modules {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 40px 15px;
    }
    
    .module-card {
        margin: 15px auto;
        max-width: 320px;
        width: 100%;
    }

    .details, .about {
        font-size: 1.3rem;
        padding: 50px;
    }

    .contact-container {
        flex-direction: column;
    }
    
    .contact-info, .map-container {
        width: 100%;
    }
    
    #banners {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0px;
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 3px 5px;
    }
    
    #logo_GA {
        height: 40px;  /* Further reduced for smallest screens */
        padding: 5px 8px 5px 3px;
    }
    
    .banner_logo {
        height: 25px;
        padding: 0 5px;
    }
  
    .secondary-logos {
        gap: 2px;
        margin-right: 35px;
        padding-top:8px;
    }
  
    .hamburger-icon {
        font-size: 24px;
        right: 5px;
        padding-top: 8px;
        padding-right: 5px;
        padding-left: 8px;
    }
  
    .image-overlay h2 {
        font-size: 2.5rem;
        padding: 10px 20px;
    }
  
    .scroll-indicator {
        bottom: 20px;
    }
  
    .scroll-indicator a {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }

    .details, .about {
        font-size: 0.9rem;
    }

    .details-info {
        font-size: 1rem;
    }

    .materialy-button {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
}
