/* Base Styles */
:root {
    --primary-color: #6c63ff;
    --primary-dark: #564fcc;
    --dark-bg: #121212;
    --dark-secondary: #1e1e1e;
    --light-text: #f8f9fa;
    --gray-text: #a0a0a0;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --spacing: 30px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.section-title span {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
}

.bg-dark {
    background-color: var(--dark-secondary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

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

/* Navigation Logo Styles */
.logo {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    color: white;
}

.logo span {
    color: var(--primary-color);
    margin-left: 8px;
    display: inline-block;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--light-text);
    transition: var(--transition);
    position: absolute;
    left: 0;
}

.hamburger .bar:nth-child(1) {
    top: 0;
}

.hamburger .bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger .bar:nth-child(3) {
    bottom: 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(108, 99, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-logo img {
    max-width: 400px;
    width: 100%;
    height: auto;
    animation: fadeIn 1s ease 0.4s forwards;
    opacity: 0;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing);
}

.about-content {
    background-color: var(--dark-secondary);
    padding: 30px;
    border-radius: var(--border-radius);
}

.about-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-content p {
    margin-bottom: 15px;
    color: var(--gray-text);
}

/* Portfolio Section */
.portfolio-categories {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.portfolio-category {
    margin-bottom: 40px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.view-all {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all i {
    transition: var(--transition);
}

.view-all:hover i {
    transform: translateX(5px);
}

/* Logo Grid - 4 per row */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing);
}

/* Thumbnail Grid - 3 per row */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing);
}

/* Poster Grid - flexible sizing */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing);
}

/* Square aspect ratio for logos */
.logo-grid .portfolio-item {
    aspect-ratio: 1/1;
}

/* 16:9 aspect ratio for thumbnails */
.thumbnail-grid .portfolio-item {
    aspect-ratio: 16/9;
}

/* Flexible aspect ratio for posters */
.poster-grid .portfolio-item {
    height: fit-content;
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--dark-bg);
    transition: var(--transition);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 99, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    text-align: center;
    padding: 20px;
    pointer-events: none;
}

.portfolio-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

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

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

/* Tournament Section */
.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing);
}

.tournament-item {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.tournament-image {
    position: relative;
    aspect-ratio: 16/9;
}

.tournament-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portfolio-full {
    padding: 60px 0;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.tournament-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    text-align: center;
    padding: 20px;
}

.tournament-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tournament-overlay p {
    color: rgba(255, 255, 255, 0.9);
}

.tournament-image:hover .tournament-overlay {
    opacity: 1;
}

.tournament-info {
    padding: 20px;
}

.tournament-info p {
    color: var(--gray-text);
}

.view-all-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Clients Carousel */
.clients {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.client-carousel {
    overflow: hidden;
    position: relative;
}

.client-track {
    display: flex;
    gap: 50px;
    padding: 30px 0;
    animation: scroll 20s linear infinite;
    animation-play-state: running !important;
}

.client-item {
    min-width: 200px;
    text-align: center;
    pointer-events: none; /* Prevents hover from interfering with animation */
}

.client-item img {
    width: 150px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 15px;
    /*filter: grayscale(100%) brightness(0.8);*/
    transition: var(--transition);
    pointer-events: auto; /* Allows clicks/hover on images if needed */
}
/*
.client-item:hover img {
    filter: grayscale(0%) brightness(1);
}
*/
.client-item p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 6 - 50px * 5)); }
}

/* Testimonials */
.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-item {
    display: none;
    padding: 40px;
    text-align: center;
}

.testimonial-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.testimonial-content i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray-text);
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.testimonial-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-align: left;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin: 0;
    text-align: left;
    font-style: normal;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-text);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Contact */
.contact-info {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--dark-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px);
}

.social-links a:nth-child(1):hover { /* Facebook */
    background-color: #1877f2;
    color: white;
}

.social-links a:nth-child(2):hover { /* Instagram */
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
}

.social-links a:nth-child(3):hover { /* Discord */
    background-color: #5865f2;
    color: white;
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-about {
    max-width: 300px;
}

.footer-about .logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--gray-text);
    margin-bottom: 20px;
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--gray-text);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Protection Styles */
.protection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9998;
    pointer-events: none;
}

.protected-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.protected-content {
    background-color: var(--dark-secondary);
    margin: 15% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    text-align: center;
    position: relative;
}

.protected-content p {
    margin-bottom: 20px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--gray-text);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--light-text);
}

/* Disable text selection on images */
.portfolio-item, 
.portfolio-item *,
.tournament-item,
.tournament-item * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Disable dragging */
.portfolio-item img,
.tournament-item img {
    pointer-events: none;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

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

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Portfolio Header */
.portfolio-header {
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.portfolio-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(108, 99, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.portfolio-header .header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.portfolio-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.portfolio-header .subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 30px;
}

/* Portfolio Full View */
.portfolio-full {
    padding: 60px 0;
}

/* Tournament Meta */
.tournament-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.tournament-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray-text);
    font-size: 0.9rem;
}

.tournament-meta i {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-logo img {
        max-width: 300px;
        pointer-events: none; 
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: right 0.5s ease;
        z-index: 1000;
        padding-top: 80px;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
        top: 50%;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
        top: 50%;
    }  

    .hero h1 {
        font-size: 2.8rem;
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tournament-grid {
        grid-template-columns: 1fr;
    }

    .client-item {
        min-width: 150px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-outline {
        margin-left: 0;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-author h4,
    .testimonial-author p {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-about {
        max-width: 100%;
    }

    .logo-grid,
    .thumbnail-grid,
    .poster-grid {
        grid-template-columns: 1fr;
    }
}
/* [All original CSS content remains exactly the same until the end] */

/* ====================== */
/* New Styles Added Below */
/* ====================== */

/* Comment Section Styles */
.image-comment {
    margin-bottom: 15px;
    padding: 15px;
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.image-comment h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.image-comment p {
    color: var(--gray-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Tournament Details Page */
.tournament-detail-page {
    padding: 60px 0;
}

.detail-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    text-align: left;
}

.detail-section.reverse {
    flex-direction: row-reverse;
}

.detail-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-content {
    flex: 1;
}

.detail-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.detail-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.detail-content li {
    margin-bottom: 8px;
    color: var(--gray-text);
}

.tournament-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.stat-item {
    background-color: var(--dark-bg);
    padding: 12px 15px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
}

.stat-item i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1rem;
}

/* Comment Section */
.image-comment {
    margin: 40px 0;
    padding: 20px;
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.image-comment h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.image-comment p {
    color: var(--gray-text);
    font-style: italic;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .detail-section {
        flex-direction: column;
    }
    
    .detail-section.reverse {
        flex-direction: column;
    }
    
    .tournament-stats {
        grid-template-columns: 1fr;
    }
    
    .detail-image,
    .detail-content {
        width: 100%;
    }
}