/* RacketRank - Modern Tennis Court Theme (bg4.jpg) */

:root {
    /* Modern Court Colors - Dark Gray, Blue, Orange, Neon Green */
    --bg-primary: #1a1d23;
    --bg-secondary: #2a2d35;
    --bg-card: rgba(42, 45, 53, 0.8);
    --bg-card-hover: rgba(42, 45, 53, 0.95);
    --text-primary: #f8fafc;
    --text-muted: #cbd5e1;
    --primary: #ccff00;
    --primary-hover: #b8e600;
    --accent-orange: #ff6b35;
    --accent-blue: #3b82f6;
    --border: rgba(204, 255, 0, 0.2);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    background-image: url('assets/bg4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 29, 35, 0.7);
    backdrop-filter: blur(0.5px);
    z-index: -1;
}

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

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #ccff00);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

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

.text-gradient {
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(204, 255, 0, 0.1);
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(26, 29, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #00d9ff, #ccff00, #00ffa3, #ccff00, #00d9ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease-in-out infinite;
}

.logo img {
    animation: spin 3s linear infinite;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover {
    color: var(--primary);
}


/* Hero Section */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-top: 1rem;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(204, 255, 0, 0.15);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(204, 255, 0, 0.3);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: var(--glass-border);
    animation: float 6s ease-in-out infinite;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    border-top: var(--glass-border);
    border-bottom: var(--glass-border);
    background: rgba(204, 255, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: var(--glass-border);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(204, 255, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(204, 255, 0, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

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

/* CTA Section */
.cta {
    padding: 10px 0;
    text-align: center;
}

.cta-card {
    background: linear-gradient(135deg, rgba(42, 45, 53, 0.9), rgba(26, 29, 35, 0.95));
    border-radius: 30px;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    border: var(--glass-border);
    backdrop-filter: blur(10px);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(204, 255, 0, 0.15), transparent 70%);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: var(--glass-border);
    font-size: 0.9rem;
    background: rgba(26, 29, 35, 0.6);
}

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

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: var(--glass-border);
    color: #999;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

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

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

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* Responsive Design */
@media (max-width: 968px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-image {
        margin-top: 0.5rem;
        margin-bottom: 0;
    }

    .hero-content {
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-tag {
        margin-bottom: 1rem;
    }

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

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

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

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

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

    .nav-links {
        display: none;
    }

    .container {
        padding: 0 2rem;
    }

    /* Mobile background fix */
    body {
        background-attachment: scroll;
        background-image: url('assets/bg4.jpg');
        background-size: cover;
        background-position: center;
    }

    /* Mobile padding improvements */
    .pricing-content,
    .legal-content,
    .hero,
    .features,
    .cta {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo img {
        width: 28px;
        height: 28px;
    }

    .hero {
        padding: 80px 0 30px;
    }

    .hero-grid {
        gap: 0.5rem;
    }

    .hero-image {
        margin-top: 0.5rem;
        margin-bottom: 0;
    }

    .hero-content {
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-tag {
        margin-bottom: 1rem;
    }

    .hero-image img {
        max-width: 250px;
        margin: 0 auto;
    }

    .stats {
        padding: 3rem 0;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .features {
        padding: 60px 0;
    }

    .feature-card {
        padding: 2rem;
    }

    .cta {
        padding: 60px 0;
    }

    .cta-card {
        padding: 3rem 1.5rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

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

    .container {
        padding: 0 1.5rem;
    }

    /* Extra padding for mobile content */
    .pricing-content,
    .legal-content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Ensure content doesn't touch edges */
    h1,
    h2,
    h3,
    p {
        padding-left: 0;
        padding-right: 0;
    }

    .feature-card,
    .pricing-card,
    .cta-card {
        margin-left: 0;
        margin-right: 0;
    }
}


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

    h2 {
        font-size: 1.5rem;
    }

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

    .navbar {
        padding: 0.5rem 0;
    }

    .hero {
        padding: 60px 0 20px;
    }

    .hero-grid {
        gap: 0.5rem;
    }

    .hero-image {
        margin-top: 0;
        margin-bottom: 0;
    }

    .hero-content {
        margin-top: 1rem;
        margin-bottom: 0.25rem;
    }

    .hero-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.875rem;
        margin-bottom: 0.75rem;
    }

    h1 {
        margin-bottom: 1rem;
    }

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

    .stat-item h3 {
        font-size: 1.75rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .feature-card h3 {
        font-size: 1.25rem;
    }

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

    .container {
        padding: 0 1.25rem;
    }
}