/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
}

html {
    scroll-behavior: smooth;
    background: transparent;
    background-color: transparent;
    color-scheme: only light;
    -webkit-color-scheme: only light;
}

body {
    font-family: 'Poppins', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #111111 !important;
    background-color: transparent;
    overflow-x: hidden;
    color-scheme: only light;
    -webkit-color-scheme: only light;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 1023px) {
    .container {
        max-width: min(92%, 980px);
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }
}

/* Floating Navbar */
.floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    animation: navbarSlideIn 0.8s ease-out 1s both;
}

.floating-nav .container {
    max-width: 100%;
    padding: 0;
}

.floating-nav.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 12px 0;
}

@keyframes navbarSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-nav:hover {
    background: transparent;
}

.floating-nav.scrolled:hover {
    background: rgba(10, 10, 10, 0.9);
}

.nav-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

@media (max-width: 767px) {
    .floating-nav {
        padding: 16px 0;
    }
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white !important;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: none !important;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 45px;
    background: transparent;
}

@media (max-width: 767px) {
    .nav-list {
        gap: 20px;
    }
}

.nav-link {
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 24px;
    transition: color 0.2s ease;
    position: relative;
    -webkit-text-fill-color: white !important;
}

.nav-link:hover {
    color: #8225b0 !important;
    -webkit-text-fill-color: #8225b0 !important;
}

.nav-link-white {
    color: #ffffff !important;
    font-weight: 700;
    -webkit-text-fill-color: #ffffff !important;
}

.nav-link-white:hover {
    color: #e0e0e0 !important;
    -webkit-text-fill-color: #e0e0e0 !important;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-left: auto;
    margin-right: 100px;
    padding-right: 0;
    position: relative;
}

@media (max-width: 768px) {
    .nav-right {
        margin-right: 20px;
        padding-right: 15px;
        gap: 20px;
    }
}

.font-size-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.font-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white !important;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 40px;
    -webkit-text-fill-color: white !important;
}

.font-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.font-btn.active {
    background: rgba(130, 37, 176, 0.3);
    border-color: #8225b0;
    color: #8225b0;
}

.font-increase {
    font-size: 16px;
}

.font-decrease {
    font-size: 12px;
}

@media (max-width: 767px) {
    .nav-right {
        gap: 20px;
        margin-right: 50px;
        padding-right: 0;
    }
    
    .font-size-controls {
        gap: 4px;
        padding: 3px 6px;
    }
    
    .font-btn {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 32px;
    }
}

.nav-link:focus {
    outline: 2px solid #8225b0;
    outline-offset: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8225b0;
    transition: width 0.3s ease;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: white !important;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(26, 26, 26, 0.98));
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }
    
    .nav-list.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-list.active li:nth-child(1) {
        transition-delay: 0.1s;
    }
    
    .nav-list.active li:nth-child(2) {
        transition-delay: 0.2s;
    }
    
    .nav-list.active li:nth-child(3) {
        transition-delay: 0.3s;
    }
    
    .nav-link {
        font-size: 28px;
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .font-size-controls {
        display: none;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Hero Section with Video Background */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

@media (max-width: 1023px) {
    .hero {
        height: 65vh;
        min-height: 450px;
    }
}

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

/* Video Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-3d-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite linear, shapeAppear 2s ease-out 2s both;
}

@keyframes shapeAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 50%;
    animation-delay: -15s;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 5;
    color: white !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: contentFadeIn 0.8s ease-out 1s both;
    -webkit-text-fill-color: white !important;
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text-center {
    text-align: center;
    max-width: 900px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.hero-headline {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 72px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 6px 20px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out;
    text-transform: uppercase;
    position: relative;
    z-index: 10;
    color: white !important;
    -webkit-text-fill-color: white !important;
}

.hero-subheadline {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    opacity: 1;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 6px 12px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 10px;
    color: white !important;
    -webkit-text-fill-color: white !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

@media (max-width: 1023px) {
    .hero-headline {
        font-size: 56px;
    }
    
    .hero-subheadline {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .hero-headline {
        font-size: 40px;
    }
    
    .hero-subheadline {
        font-size: 18px;
    }
    
    .wave-wrapper {
        bottom: -100px;
        height: 400px;
    }
}

/* Wave Animations */
.wave-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 500px;
    overflow: hidden;
    z-index: 4;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wave-bottom {
    bottom: -2px;
}

.wave-top-svg {
    top: -2px;
    transform: rotate(180deg);
}

/* Sections */
.games-cases {
    padding: 80px 0;
    background: #f8f9fa;
    margin-top: -70px;
    animation: sectionSlideUp 0.8s ease-out 1.6s both;
}

@keyframes sectionSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .games-cases {
        padding: 60px 0;
    }
}

.section-headline {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: #111;
}

@media (max-width: 767px) {
    .section-headline {
        font-size: 36px;
        margin-bottom: 32px;
    }
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.case-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 3px solid transparent;
    background-image: 
        linear-gradient(white, white),
        linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 50%, #a0a0a0 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
}

.case-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.case-item:hover::before {
    opacity: 1;
}

.case-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background-image: 
        linear-gradient(white, white),
        linear-gradient(135deg, #808080 0%, #606060 50%, #404040 100%);
}

.case-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

.case-item:hover .case-img {
    transform: scale(1.05);
}

.case-content {
    padding: 16px 24px 8px 24px;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.case-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}

.case-subtitle {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Statistics Section */
.stats-section {
    position: relative;
    background: #8225b0;
    padding: 80px 0;
    overflow: hidden;
    animation: sectionSlideUp 0.8s ease-out 1.8s both;
}

@media (max-width: 767px) {
    .stats-section {
        padding: 60px 0;
    }
}

.stats-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    text-align: center;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

@media (max-width: 1023px) {
    .stats-content {
        gap: 60px;
    }
}

@media (max-width: 767px) {
    .stats-content {
        flex-direction: column;
        gap: 40px;
    }
}

.stat-item {
    color: white !important;
    -webkit-text-fill-color: white !important;
}

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1;
    color: white !important;
    -webkit-text-fill-color: white !important;
}

@media (max-width: 767px) {
    .stat-value {
        font-size: 36px;
    }
}

.stat-label {
    font-size: 14px;
    font-weight: 700;
    color: #E8F5E9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 60px 0 40px;
    border-top: 3px solid rgba(130, 37, 176, 0.3);
    animation: sectionSlideUp 0.8s ease-out 2s both;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0;
}

.footer-logo:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
    text-align: right;
}

.footer-university {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.6;
    text-align: left;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.footer-link {
    color: #8225b0;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8225b0;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #6a1d90;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link:focus {
    outline: 2px solid #8225b0;
    outline-offset: 2px;
}

.footer-copyright {
    color: #a0a0a0;
    font-weight: 500;
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-panel-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-panel-btn:hover {
    background: rgba(130, 37, 176, 0.1);
    border-color: rgba(130, 37, 176, 0.3);
    color: #8225b0;
    transform: rotate(90deg);
}

/* Admin Panel Modal */
.admin-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.admin-modal.active {
    display: flex;
}

.admin-modal-content {
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    border: 2px solid rgba(130, 37, 176, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.admin-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 36px;
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.admin-modal-close:hover {
    color: #8225b0;
    transform: rotate(90deg);
}

.admin-login h3,
.admin-dashboard h3 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 16px;
    text-align: center;
}

.admin-login p,
.admin-dashboard p {
    color: #a0a0a0;
    text-align: center;
    margin-bottom: 24px;
}

.admin-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.admin-input:focus {
    outline: none;
    border-color: rgba(130, 37, 176, 0.5);
    background: rgba(0, 0, 0, 0.7);
}

.admin-btn,
.admin-toggle-btn {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, #8225b0, #6a1d90);
    color: #000000;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-btn:hover,
.admin-toggle-btn:hover {
    background: linear-gradient(135deg, #6a1d90, #17b8d9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(130, 37, 176, 0.4);
}

.admin-error {
    color: #ff4444;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
    min-height: 20px;
}

.admin-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.admin-logout-btn {
    width: 100%;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    color: #a0a0a0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-logout-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.status-badge.open {
    background: rgba(130, 37, 176, 0.2);
    color: #8225b0;
    border: 1px solid rgba(130, 37, 176, 0.4);
}

.status-badge.closed {
    background: rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-info {
    margin-top: 32px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-info strong {
    color: #8225b0;
}

.admin-info ul {
    margin: 12px 0;
    padding-left: 24px;
}

.admin-info li {
    color: #dcddde;
    margin: 8px 0;
}

.application-template.hidden {
    display: none;
}

@media (max-width: 767px) {
    .footer {
        padding: 40px 0 30px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    
    .footer-left {
        order: 1;
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-right {
        order: 2;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        height: 60px;
    }
    
    .footer-university {
        font-size: 16px;
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
        gap: 10px;
    }
    
    .footer-link {
        font-size: 14px;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: 12px;
    }
    
    .admin-modal-content {
        padding: 30px 20px;
    }
    
    .admin-login h3,
    .admin-dashboard h3 {
        font-size: 24px;
    }
    
    .admin-info {
        padding: 16px;
    }
}

/* Responsive Design */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid #8225b0;
    outline-offset: 2px;
}

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

/* Join Us Section */
.join-us-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.join-us-section .section-headline {
    color: #ffffff !important;
}

.join-description {
    text-align: center;
    font-size: 20px;
    color: #a0a0a0;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.statute-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
}

.statute-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    text-align: center;
}

.statute-description {
    font-size: 18px;
    color: #a0a0a0;
    text-align: center;
    margin-bottom: 30px;
}

.statute-embed {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 2px solid rgba(130, 37, 176, 0.3);
}

.statute-embed embed {
    border-radius: 12px;
}

.download-statute-btn {
    display: inline-block;
    background: linear-gradient(135deg, #8225b0, #6a1d90);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
    width: fit-content;
}

.download-statute-btn:hover {
    background: linear-gradient(135deg, #6a1d90, #8225b0);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(130, 37, 176, 0.4);
}

.join-cta {
    text-align: center;
    background: rgba(130, 37, 176, 0.1);
    border: 2px solid rgba(130, 37, 176, 0.3);
    border-radius: 16px;
    padding: 40px;
}

.join-cta h3 {
    font-size: 28px;
    font-weight: 700;
    color: #8225b0;
    margin-bottom: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 767px) {
    .join-cta h3 {
        font-size: 22px;
    }
}

.join-cta p {
    font-size: 18px;
    color: #ffffff;
}

.join-cta a {
    color: #8225b0;
    text-decoration: underline;
    font-weight: 600;
}

.join-cta a:hover {
    color: #6a1d90;
}

/* Contact Section */
.contact-headline {
    margin-bottom: 60px;
    color: #ffffff;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.contact-card {
    width: 400px;
    max-width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(130, 37, 176, 0.1), rgba(130, 37, 176, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border-color: rgba(130, 37, 176, 0.6);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(130, 37, 176, 0.25);
}

.contact-card-highlight {
    border-color: rgba(130, 37, 176, 0.3);
}

.contact-card-highlight:hover {
    border-color: rgba(130, 37, 176, 0.8);
    box-shadow: 0 20px 60px rgba(130, 37, 176, 0.35);
}

.contact-icon-modern {
    color: #8225b0;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon-modern {
    transform: scale(1.1);
}

.contact-title {
    font-size: 24px;
    font-weight: 700;
    color: #8225b0;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.contact-name {
    font-size: 18px;
    color: #a0a0a0;
    margin-bottom: 16px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.contact-email {
    color: #8225b0;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.contact-email:hover {
    color: #6a1d90;
    text-decoration: underline;
}

.contact-cta {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(130, 37, 176, 0.2);
    border: 1px solid rgba(130, 37, 176, 0.4);
    border-radius: 8px;
    color: #8225b0;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.contact-card:hover .contact-cta {
    background: rgba(130, 37, 176, 0.3);
    border-color: rgba(130, 37, 176, 0.6);
    transform: scale(1.05);
}

/* Application Template Section */
.application-template {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 48px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    border: 3px solid rgba(130, 37, 176, 0.4);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.template-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-align: center;
}

.template-description {
    font-size: 16px;
    color: #a0a0a0;
    text-align: center;
    margin-bottom: 8px;
}

.template-email {
    font-size: 20px;
    color: #8225b0;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 700;
}

.template-email strong {
    color: #8225b0;
}

.template-box {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
}

.template-content {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: #dcddde;
    white-space: pre-wrap;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.template-copy-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #8225b0, #6a1d90);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 16px rgba(130, 37, 176, 0.3);
}

.template-copy-btn:hover {
    background: linear-gradient(135deg, #6a1d90, #17b8d9);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 28px rgba(130, 37, 176, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.template-copy-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Board Contacts Section */
.board-contacts {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 56px 48px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    border: 3px solid rgba(130, 37, 176, 0.5);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.board-contacts-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 48px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.board-contacts-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8225b0, transparent);
}

.board-members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.board-member {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.board-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8225b0, #6a1d90);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.board-member:hover::before {
    transform: scaleX(1);
}

.board-member:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border-color: rgba(130, 37, 176, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(130, 37, 176, 0.2);
}

.board-member-role {
    font-size: 11px;
    font-weight: 700;
    color: #8225b0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    background: rgba(130, 37, 176, 0.15);
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-block;
}

@media (max-width: 767px) {
    .board-member-role {
        font-size: 10px;
        letter-spacing: 1px;
        padding: 4px 12px;
    }
}

.board-member-name {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.board-member-email {
    color: #a0a0a0;
    font-size: 15px;
    text-decoration: none;
    word-break: break-word;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.board-member-email::before {
    content: '✉';
    font-size: 18px;
}

.board-member-email:hover {
    color: #8225b0;
    background: rgba(130, 37, 176, 0.15);
    border-color: rgba(130, 37, 176, 0.3);
    transform: scale(1.05);
}

.board-member-president {
    border-color: rgba(130, 37, 176, 0.4);
}

.board-member-president .board-member-role {
    background: rgba(130, 37, 176, 0.25);
    color: #b045e0;
}

/* Project Gallery */
.case-item {
    flex-direction: column;
    position: relative;
}

.case-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%;
}

.case-link:hover {
    transform: translateY(-8px);
}

.view-project-btn {
    display: block;
    margin: 16px 24px 32px 24px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #8225b0, #6a1d90);
    color: white;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.case-link:hover .view-project-btn {
    background: linear-gradient(135deg, #6a1d90, #17b8d9);
    box-shadow: 0 8px 20px rgba(130, 37, 176, 0.4);
}

.case-description {
    color: #a0a0a0;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 8px;
    margin-bottom: auto;
    flex: 1;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: auto;
    margin-bottom: 0;
    width: 100%;
    flex: 0 0 auto;
    padding: 0 16px 16px;
    align-items: stretch;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: rgba(130, 37, 176, 0.5);
    box-shadow: 0 8px 20px rgba(130, 37, 176, 0.3);
}

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

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

@media (max-width: 1200px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 12px;
        align-items: stretch;
    }
    
    .gallery-item {
        height: 160px;
        min-height: 160px;
        max-height: 160px;
    }
}

@media (max-width: 1023px) {
    .contact-grid {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }
    
    .contact-card {
        width: 100%;
        max-width: 500px;
    }
    
    .board-members-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .board-contacts {
        padding: 48px 32px;
    }
}

@media (max-width: 767px) {
    .join-us-section {
        padding: 80px 0;
    }
    
    .statute-container {
        padding: 24px;
    }
    
    .statute-embed {
        display: none;
    }
    
    .statute-description {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .statute-description::after {
        content: " Pobierz plik PDF poniżej, aby przeczytać statut na swoim urządzeniu.";
        display: block;
        margin-top: 16px;
        font-weight: 600;
        color: #8225b0;
        background: rgba(130, 37, 176, 0.1);
        padding: 12px;
        border-radius: 8px;
        border: 1px solid rgba(130, 37, 176, 0.3);
    }
    
    .download-statute-btn {
        font-size: 20px;
        padding: 18px 40px;
        box-shadow: 0 4px 12px rgba(130, 37, 176, 0.3);
        animation: pulse-button 2s ease-in-out infinite;
    }
    
    @keyframes pulse-button {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 4px 12px rgba(130, 37, 176, 0.3);
        }
        50% {
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(130, 37, 176, 0.5);
        }
    }
    
    .contact-grid {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .contact-card {
        width: 100%;
    }
    
    .application-template {
        padding: 32px 24px;
    }
    
    .template-title {
        font-size: 24px;
    }
    
    .template-content {
        font-size: 12px;
    }
    
    .board-contacts {
        padding: 40px 24px;
    }
    
    .board-contacts-title {
        font-size: 28px;
    }
    
    .board-members-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .board-member {
        padding: 32px 24px;
    }
    
    .board-member-name {
        font-size: 20px;
    }
    
    .board-member-email {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .project-gallery {
        display: none;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .case-content {
        padding-bottom: 24px;
    }
}

/* Force light mode - prevent dark mode color inversion */
img, video, svg, picture {
    filter: none !important;
    -webkit-filter: none !important;
}

/* Ensure white text stays white in dark mode */
h1, h2, h3, h4, h5, h6, p, span, a, button, li, div {
    color-scheme: only light;
}

/* Force white color for specific white text elements */
.footer-university,
.footer-copyright,
.contact-title,
.contact-cta,
.board-member-name,
.template-title,
.board-contacts-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

