/* Base styling & Variables */
:root {
    /* Colors derived from Club9 Logo (Green, Black, Red) */
    --color-green: #009246; /* Italian flag green */
    --color-red: #CE2B37;   /* Italian flag red */
    --color-black: #111111;
    --color-white: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-text: #2b2b2b;
    --color-text-light: #666666;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

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

/* Typography */
h1, h2, h3 {
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-black);
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition-medium);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-red);
    color: var(--color-white);
    border: 2px solid var(--color-red);
    box-shadow: 0 10px 20px rgba(206, 43, 55, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-black);
    border-color: var(--color-black);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(17, 17, 17, 0.3);
}

.btn-large {
    padding: 18px 45px;
    font-size: 1rem;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-black);
    border: 2px solid var(--color-black);
}

.btn-outline:hover {
    background-color: var(--color-green);
    color: var(--color-white);
    border-color: var(--color-green);
    transform: translateY(-3px);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition-medium);
}

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

.logo img {
    height: 60px;
    transition: transform var(--transition-fast);
}

.logo img:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: radial-gradient(circle at top right, #fdfbfb 0%, #ebedee 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--color-white);
    transform: skewY(-2deg);
    z-index: 1;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1.2;
    animation: slideInLeft 1s ease forwards;
}

.hero-image {
    flex: 1;
    position: relative;
    animation: slideInRight 1s ease forwards;
}

/* Decorative blob behind hero image */
.hero-image::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background-color: var(--color-green);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
    animation: morph 8s ease-in-out infinite;
}

.hero-image img {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: scale(1.03) rotate(-1deg);
}

.slogan {
    font-size: 3.2rem;
    letter-spacing: -1px;
    margin-bottom: 25px;
    white-space: nowrap;
}

.slogan span {
    display: block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    color: var(--color-red);
    font-size: 2.6rem;
    margin-top: 10px;
    white-space: normal;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 90%;
}

/* About Section */
.about {
    padding: 120px 0;
    background-color: var(--color-white);
    position: relative;
}

.about h2 {
    font-size: 3rem;
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 5px;
    background-color: var(--color-green);
    border-radius: 5px;
}

.about-main-content {
    margin-top: 40px;
}

.about-text-img-container {
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.about-text-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.about-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transition: var(--transition-medium);
}

.about-image img:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.gallery-img {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* Categories Section */
.categories {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.categories h2 {
    font-size: 3rem;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.categories h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-red);
    border-radius: 5px;
}

.categories p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.categories p strong {
    color: var(--color-black);
}

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

.category-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: var(--transition-medium);
    text-align: center;
    padding-bottom: 25px;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.1);
}

.category-img {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 20px 20px 0 0;
    aspect-ratio: 1 / 1;
    background-color: #eef0f2;
}

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

.category-card:hover .category-img img {
    transform: scale(1.05);
}

.category-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--color-black);
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

/* Call to Action Footer Section */
.cta {
    background: linear-gradient(135deg, var(--color-black) 0%, #2a2a2a 100%);
    color: var(--color-white);
    padding: 100px 0;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-green), var(--color-white), var(--color-red));
}

.cta h2 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.3rem;
    color: #cccccc;
    margin-bottom: 40px;
}

/* Site Footer */
.footer {
    background-color: #050505;
    color: #888888;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.right {
    transform: translateX(50px);
}

.reveal.up {
    transform: translateY(50px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* T-shirt Continuous Float Effect */
.tshirt-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .slogan {
        font-size: 2.8rem;
    }

    .slogan span {
        font-size: 2.2rem;
    }

    .hero-container, .about-gallery {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-image {
        width: 80%;
        margin: 0 auto;
    }

    .about h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .slogan {
        font-size: 2.4rem;
    }

    .slogan span {
        font-size: 1.8rem;
    }

    .hero {
        padding: 60px 0;
    }

    .about, .categories {
        padding: 80px 0;
    }

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

    .category-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .about h2, .categories h2 {
        font-size: 2.3rem;
    }

    .cta h2 {
        font-size: 2.2rem;
    }
    
    .hero-image {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .slogan {
        font-size: 1.6rem;
    }

    .slogan span {
        font-size: 1.4rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .logo img {
        height: 45px;
    }
}
