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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #4a90e2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    text-align: center;
    color: white;
}

.minecraft-loader {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.cube {
    width: 20px;
    height: 20px;
    background: #4CAF50;
    animation: bounce 1.4s infinite ease-in-out both;
}

.cube:nth-child(1) { animation-delay: -0.32s; }
.cube:nth-child(2) { animation-delay: -0.16s; }
.cube:nth-child(3) { animation-delay: 0s; }
.cube:nth-child(4) { animation-delay: 0.16s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1.0);
    }
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}


.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 800px;
    padding: 80px 20px 0 20px;
    margin-top: 60px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.title-line {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.title-highlight {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.7s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #4a90e2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}


.stats {
    background: #f8f9fa;
    padding: 80px 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 200px;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}



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


section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}


.gallery {
    background: #f8f9fa;
    padding: 80px 0;
}

.gallery .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center;
    align-items: start;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 380px;
    width: 100%;
    max-width: 600px;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    border-radius: inherit;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.gallery-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: #667eea;
    color: white;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #4a90e2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}


.servers {
    background: #f8f9fa;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.server-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.server-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.server-image {
    height: 200px;
    overflow: hidden;
}

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

.server-card:hover .server-image img {
    transform: scale(1.1);
}

.server-content {
    padding: 1.5rem;
}

.server-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.server-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4CAF50;
}

.server-status.online {
    color: #4CAF50;
}

.server-status.maintenance .status-dot {
    background: #FF9800;
}

.server-status.maintenance {
    color: #FF9800;
}


.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.member-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #667eea;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.member-info p {
    color: #666;
    margin-bottom: 1rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.member-social a {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.member-social a:hover {
    background: #4a90e2;
    transform: translateY(-2px);
}


.contact {
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #4a90e2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}


.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-logo p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #FFD700;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFD700;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #FFD700;
}


.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #4a90e2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}


@media (min-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .gallery-item {
        min-height: 450px;
        max-width: 700px;
        aspect-ratio: 16/9;
    }
    
    .gallery-overlay {
        padding: 2.5rem;
    }
    
    .gallery-overlay h3 {
        font-size: 1.8rem;
    }
    
    .gallery-overlay p {
        font-size: 1.1rem;
    }
}


@media (min-width: 1024px) and (max-width: 1399px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .gallery-item {
        min-height: 420px;
        max-width: 650px;
        aspect-ratio: 16/9;
    }
}


@media (min-width: 600px) and (max-width: 1023px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        justify-items: center;
    }
    
    .gallery-item {
        min-height: 220px;
        aspect-ratio: 16/9;
        width: 100%;
        max-width: 400px;
    }
    
    .gallery-item img {
        object-fit: cover;
        object-position: center;
    }
}


@media (max-width: 599px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content {
        padding: 60px 20px 0 20px;
        margin-top: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .title-line {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stats {
        padding: 60px 0;
    }
    
    .stats-grid {
        display: flex;
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    .stat-item {
        text-align: center;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 2.2rem;
        font-weight: 700;
        color: #667eea;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .stat-label {
        font-size: 0.9rem;
        color: #666;
        font-weight: 500;
    }

    .section-title {
        font-size: 2rem;
    }


    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
        align-items: start;
        padding: 0 10px;
    }
    
    .gallery-item {
        min-height: 200px;
        aspect-ratio: 16/9;
        width: 100%;
        max-width: 400px;
    }
    
    .gallery-item img {
        object-position: center;
        object-fit: cover;
    }

    .features-grid,
    .servers-grid,
    .team-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
}

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

    .nav-container {
        padding: 1rem 1rem;
    }

    .hero-content {
        padding: 40px 15px 0 15px;
        margin-top: 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .title-line {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

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


    .gallery-item {
        min-height: 180px;
        max-height: 220px;
        aspect-ratio: 16/9;
        width: 100%;
        max-width: 350px;
    }
    
    .gallery-item img {
        object-position: center center;
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .gallery-overlay {
        padding: 1.2rem;
    }
    
    .gallery-overlay h3 {
        font-size: 1.1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.9rem;
    }

    .stats {
        padding: 50px 0;
    }
    
    .stats-grid {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .stat-item {
        text-align: center;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 2rem;
        font-weight: 700;
        color: #667eea;
        margin-bottom: 0.4rem;
        display: block;
    }
    
    .stat-label {
        font-size: 0.8rem;
        color: #666;
        font-weight: 500;
    }

    .feature-card,
    .server-card,
    .team-member,
    .contact-card {
        padding: 1.5rem;
    }
}


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

    .nav-container {
        padding: 0.8rem 0.8rem;
    }

    .nav-brand {
        font-size: 1.3rem;
    }

    .hero-content {
        padding: 30px 10px 0 10px;
        margin-top: 15px;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .title-line {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
        width: 100%;
        max-width: 200px;
    }

    .hero-buttons {
        gap: 0.8rem;
        margin-bottom: 2rem;
    }

    .stats {
        padding: 40px 0;
    }
    
    .stats-grid {
        gap: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-item {
        min-width: auto;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0.2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }

    section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .gallery-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        justify-items: center;
        align-items: center;
    }


    .gallery-item {
        min-height: 150px;
        max-height: 180px;
        aspect-ratio: 4/3;
        border-radius: 10px;
        width: 100%;
        max-width: 280px;
    }
    
    .gallery-item img {
        object-position: center center;
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .gallery-overlay {
        padding: 1rem;
    }
    
    .gallery-overlay h3 {
        font-size: 1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.85rem;
    }

    .gallery-item h3 {
        font-size: 1rem;
    }

    .gallery-item p {
        font-size: 0.8rem;
    }

    .feature-card,
    .server-card,
    .team-member,
    .contact-card {
        padding: 1.2rem;
        border-radius: 12px;
    }

    .feature-card h3,
    .server-card h3,
    .team-member h3,
    .contact-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p,
    .server-card p,
    .team-member p,
    .contact-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .feature-icon,
    .server-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .team-avatar {
        width: 60px;
        height: 60px;
    }

    .contact-icon {
        font-size: 1.8rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.8rem;
    }

    .footer-bottom {
        padding-top: 1rem;
        gap: 0.5rem;
    }

    .footer-legal {
        font-size: 0.75rem;
    }


    .nav-menu {
        padding: 1rem;
    }

    .nav-link {
        padding: 0.8rem 0;
        font-size: 0.9rem;
    }


    #back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 15px;
        right: 15px;
    }


    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-arrow {
        width: 25px;
        height: 25px;
    }


    .loading-content h2 {
        font-size: 1.5rem;
    }

    .loading-content p {
        font-size: 0.9rem;
    }


    .modal-overlay {
        padding: 0.5rem;
    }

    .modal-content {
        max-width: 98vw;
        max-height: 95vh;
        border-radius: 10px;
    }

    .modal-info {
        padding: 1rem;
    }

    .modal-info h3 {
        font-size: 1.1rem;
    }

    .modal-info p {
        font-size: 0.85rem;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        top: 0.5rem;
        right: 0.5rem;
    }
}


@media (max-width: 280px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        justify-items: center;
        align-items: center;
    }

    .gallery-item {
        min-height: 140px;
        max-height: 170px;
        aspect-ratio: 4/3;
        border-radius: 8px;
        width: 100%;
        max-width: 250px;
    }
    
    .gallery-item img {
        object-position: center center;
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .gallery-overlay {
        padding: 0.8rem;
    }

    .gallery-overlay h3 {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }

    .gallery-overlay p {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }

    .tag {
        padding: 0.15rem 0.4rem;
        font-size: 0.65rem;
        border-radius: 12px;
    }

    .filter-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        border-radius: 18px;
        min-width: 50px;
    }
}


.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}


.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}


* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}


@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .filter-btn:hover,
    .nav-link:hover {
        transform: none;
    }
    
    .btn:active,
    .filter-btn:active {
        transform: scale(0.95);
    }
    
    .gallery-item:hover .gallery-overlay {
        opacity: 0;
    }
    
    .gallery-item:active .gallery-overlay {
        opacity: 1;
    }
    
    .feature-card:hover,
    .server-card:hover,
    .team-member:hover,
    .contact-card:hover {
        transform: none;
    }
    

    .nav-link,
    .btn,
    .filter-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


.btn,
.filter-btn,
.nav-link,
.gallery-item {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


* {
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #4a90e2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #4a90e2, #667eea);
}


@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }
}