:root {
    --primary-color: #0057b7;
    --secondary-color: #4caf50;
    --dark-color: #34495e;
    --light-color: #f8f9fa;
    --accent-color: #ff4d4d;
    --gradient-start: #0057b7;
    --gradient-end: #2b32b2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rockwell', 'Rockwell Nova', 'Clarendon', serif;
}

body {
    background-color: var(--light-color);
    background-image: url('../images/4788.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--dark-color);
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: -1;
}

header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    background-image: url('../images/4134.avif');
    background-size: cover;
    background-position: center 70%;
    background-blend-mode: overlay;
    color: #34495e;
    padding: 3rem 0;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

h2 {
    margin-bottom: 1.5rem;
    color: #34495e;
    position: relative;
    padding-bottom: 0.75rem;
    display: inline-block;
    font-weight: 700;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.subtitle {
    font-size: 1.5rem;
    opacity: 1;
    font-weight: 400;
    position: relative;
    z-index: 1;
    margin-top: -0.5rem;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.7);
}

nav {
    background-color: var(--dark-color);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
}

nav ul li {
    margin: 0 1.5rem;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
}

section {
    margin-bottom: 2rem;
    scroll-margin-top: 3rem;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 180px;
    height: 180px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none"><path d="M10,30 L90,30" stroke="rgba(0,87,183,0.05)" stroke-width="2"/><path d="M10,50 L90,50" stroke="rgba(0,87,183,0.05)" stroke-width="2"/><path d="M10,70 L90,70" stroke="rgba(0,87,183,0.05)" stroke-width="2"/><circle cx="30" cy="30" r="4" fill="rgba(76,175,80,0.1)"/><circle cx="50" cy="50" r="4" fill="rgba(76,175,80,0.1)"/><circle cx="70" cy="30" r="4" fill="rgba(76,175,80,0.1)"/><circle cx="20" cy="70" r="4" fill="rgba(76,175,80,0.1)"/><circle cx="80" cy="70" r="4" fill="rgba(76,175,80,0.1)"/></svg>');
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

/* ===== About Section ===== */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2.5rem;
    background: rgba(0,0,0,0) !important;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    z-index: 2;
    backdrop-filter: none !important;
}

.about-content::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><polygon points="50,15 20,40 20,70 50,95 80,70 80,40" stroke="rgba(0,87,183,0.1)" fill="none" stroke-width="2"/><circle cx="50" cy="50" r="10" stroke="rgba(76,175,80,0.1)" fill="none" stroke-width="2"/></svg>');
}

/* ===== Portfolio Section ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.portfolio-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.portfolio-item-link:hover {
    transform: translateY(-5px);
}

.portfolio-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    background: white;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0,87,183,0.2);
}

.portfolio-item:hover::before {
    transform: scaleX(1);
}

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-item .content {
    padding: 1.75rem;
    position: relative;
}

.portfolio-item h3 {
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.portfolio-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.portfolio-item p {
    margin-bottom: 1.25rem;
    color: #555;
    line-height: 1.7;
}

.portfolio-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 8px 8px 0 0;
}

.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ===== Articles Section ===== */
.articles-container {
    margin-top: 2rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
}

.article-item {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 140px;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.article-image-container {
    width: 140px;
    min-width: 140px;
    min-height: 140px;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.article-content h3 {
    margin-bottom: 0.5rem;
    color: #34495e;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-content p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-date {
    font-size: 0.85rem;
    color: #34495e !important;
    font-style: normal !important;
    margin-top: -0.25rem;
    margin-bottom: 0.5rem !important;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 20px;
}

.article-date::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.article-item:hover .article-content h3 {
    color: var(--primary-color);
}

.simple-article:hover .article-content h3 {
    color: var(--gradient-end);
}

/* ===== Medium Profile Link ===== */
.medium-profile-link {
    margin-top: 2rem;
    text-align: center;
}

.medium-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.medium-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.medium-logo {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 50%;
}

.medium-link span {
    font-size: 0.95rem;
}

/* ===== Social Links ===== */
.links-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
}

.links-container::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.4s ease;
    position: relative;
}

.social-link:hover {
    transform: translateY(-10px);
    color: var(--primary-color);
}

.social-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-end));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,87,183,0.2);
    transition: all 0.4s ease;
}

.social-link:hover .social-icon {
    box-shadow: 0 15px 30px rgba(0,87,183,0.3);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.3);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Contact Form ===== */
.contact-form {
    max-width: 650px;
    margin: 3rem auto 0;
    background-color: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,87,183,0.1);
    background-color: white;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

button.submit-btn {
    background: #34495e;
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,87,183,0.2);
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

button.submit-btn::after {
    content: '\f1d8';
    font-family: 'Font Awesome 5 Free';
    margin-left: 10px;
    font-weight: 900;
    transition: transform 0.3s ease;
}

button.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,87,183,0.3);
}

button.submit-btn:hover::after {
    transform: translateX(3px);
}

/* ===== Form Confirmation ===== */
.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.form-success i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, var(--dark-color), #000);
    color: white !important;
    text-align: center;
    padding: 3rem 0 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

footer p {
    position: relative;
    z-index: 1;
}

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

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: white !important;
    color: white !important;
    font-weight: 700;
}

.footer-logo p {
    color: white !important;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: white !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

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

.footer-links a:hover {
    color: var(--secondary-color) !important;
}

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

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

.footer-bottom p {
    font-size: 0.9rem;
    color: white !important;
}

.footer-bottom i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* ===== FPL Section ===== */
.pitch {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(#147a2b 0%, #24953f 100%);
    border: 4px solid #ffffff;
    border-radius: 8px;
    position: relative;
    padding: 20px 10px;
}

.pitch:before, .pitch:after { display: none; }

.pitch-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: nowrap;
}

.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    min-width: 70px;
}

.player-card img {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
}

.bench-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
    border-top: 2px solid rgba(255,255,255,0.4);
    padding-top: 10px;
}

.bench-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.player-points {
    font-size: 0.65rem;
    color: #333;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-hidden {
        transform: translateY(-100%);
    }

    nav {
        position: sticky;
        top: 0;
    }

    .nav-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0 0.5rem;
    }

    nav ul.nav-open {
        display: flex;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    header h1 {
        font-size: 2.2rem;
        padding: 0 10px;
    }

    .container {
        padding: 2rem 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text, .about-image {
        width: 100%;
        overflow: visible;
        padding: 10px 0;
    }

    .about-image {
        margin-top: 2rem;
    }

    .club-logos {
        flex-wrap: wrap;
        justify-content: center;
    }

    .club-logo {
        margin: 10px;
        max-width: 60px;
    }

    .article-card h3 {
        font-size: 1.2rem;
        color: #000;
        background-color: rgba(255, 255, 255, 0.8);
        padding: 5px;
        margin: 0;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 1.5rem 1rem;
    }

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

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

    .articles-container {
        grid-template-columns: 1fr;
    }

    .article-item {
        flex-direction: column;
        height: auto;
    }

    .article-image-container {
        width: 100%;
        height: 180px;
    }

    .article-content h3 {
        font-size: 1.1rem;
        margin-top: 0.5rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
    }
}
