:root {
    --offWhite: #FAFAFA;
    --greenTennisBall: #E2FE69;
    --navyBlue: #142745;
    --blueRoyal: #0E34A0;
    --blueSky: #6BCBFC;
    --greyLight: #EAEAEA;
    --darkOffBlack: #171C22;
    --white: #FFFFFF;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 20px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fonts */
@font-face {
    font-family: 'Manrope';
    src: url('./fonts/Manrope/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'MADESoulmade';
    src: url('./fonts/MADE-Soulmaze-30-Off/Fonts/MADE\ Soulmaze.otf') format('opentype');
    font-weight: 100 200;
    font-display: swap;
}

@font-face {
    font-family: 'MADESoulmade-Outline';
    src: url('./fonts/MADE-Soulmaze-30-Off/Fonts/MADE\ Soulmaze\ Outline.otf') format('opentype');
    font-weight: 100 200;
    font-display: swap;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--offWhite);
    margin: 0;
    padding: 0;
    font-family: 'Manrope', Arial, sans-serif;
    line-height: 1.6;
    color: var(--darkOffBlack);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: var(--transition-slow);
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition-slow);
}

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

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* Section Layout */
@media (min-width: 1520px) {
    section {
        padding: 80px 300px !important;
    }
}

@media (min-width: 1200px) {
    section {
        padding: 70px 180px !important;
    }

    .competitiveBackgroundImg {
        background-image: url('./images/Circles-2.png');
        background-size: 55% !important;
        background-repeat: no-repeat;
        background-position: center;
    }

    .contactBackgroundImg {
        background-image: url('./images/Spiral.png');
        background-size: 30%;
        background-repeat: no-repeat;
        background-position: right bottom;
        margin: 0;
    }
}

section {
    padding: 60px 85px;
    background-color: var(--offWhite);
}

/* NAVIGATION */
.topnav {
    background-color: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    transition: var(--transition-smooth);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 40px;
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid rgba(14, 52, 160, 0.1);
}

.topnav.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.topnav > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.topnav a {
    color: var(--blueRoyal) !important;
    text-align: center;
    padding: 20px 20px 15px 20px !important;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Manrope', Arial, sans-serif;
    font-weight: 600;
    transition: var(--transition-smooth);
    margin: 0 5px;
    background-color: transparent;
    border-radius: 8px;
    position: relative;
}

.topnav a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--greenTennisBall);
    transition: var(--transition-smooth);
}

.topnav a:hover {
    color: var(--blueRoyal) !important;
    font-weight: 700;
    background-color: transparent;
}

.topnav a:hover::after {
    width: 80%;
    background-color: var(--greenTennisBall);
}

.topnav a.active {
    color: var(--blueRoyal) !important;
    background-color: transparent;
    font-weight: 700;
}

.topnav a.active::after {
    width: 80%;
    background-color: var(--greenTennisBall);
}

.topnav a:first-child img {
    width: 240px !important;
    height: auto;
    transition: var(--transition-smooth);
}

.topnav a.icon {
    position: absolute;
    right: 40px;
    background: none !important;
    transform: none !important;
}

.icon {
    display: none;
    transition: var(--transition-smooth);
    color: var(--blueRoyal);
    font-size: 20px;
}

/* Homepage */
#landingHero {
    margin: 100px 20px 60px 20px;
    background-color: var(--offWhite) !important;
}

.hero {
    background-color: var(--greenTennisBall);
    margin: 45px 0 0 0;
    padding: 60px;
    border-radius: var(--border-radius);
    min-height: 450px;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.heroBackgroundImg {
    background-image: url('./images/Spiral-white-2.png');
    background-size: 45%;
    background-repeat: no-repeat;
    background-position: right bottom;
    margin: 0;
}

.heroHeading {
    font-family: 'MADESoulmade', 'Manrope', Arial, sans-serif !important;
    color: white !important;
    font-size: 42px;
    width: 60%;
    text-shadow: 0 0 4px #cbe84b;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-button {
    background-color: white;
    padding: 15px 30px;
    border-radius: 50px;
    width: fit-content;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--navyBlue);
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background-color: var(--offWhite);
    border-color: white;
    text-decoration: none;
    color: var(--navyBlue);
}

/* Typography */
h2 {
    color: var(--blueRoyal) !important;
    font-family: 'MADESoulmade', 'Manrope', Arial, sans-serif !important;
    font-size: 32px;
    margin: 0 0 25px 0;
    padding: 0;
    line-height: 1.3;
}

h3 {
    font-family: 'MADESoulmade', 'Manrope', Arial, sans-serif !important;
    color: var(--blueSky) !important;
    font-size: 24px;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

h4 {
    font-family: 'MADESoulmade-Outline', 'Manrope', Arial, sans-serif !important;
    font-size: 26px !important;
    color: var(--blueSky);
    margin: 0 0 15px 0;
}

p {
    font-family: 'Manrope', Arial, sans-serif;
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--darkOffBlack);
}

li {
    font-family: 'Manrope', Arial, sans-serif;
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--darkOffBlack);
}

/* Layout Components */
#container {
    display: flex;
    flex-wrap: wrap;
    gap: 8%;
    align-items: flex-start;
}

.column {
    flex: 1 1;
    min-width: 300px;
}

/* Environmental Impact Box */
#Environmental {
    background: linear-gradient(135deg, var(--greenTennisBall) 0%, #d4f24f 100%);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 480px;
    box-shadow: var(--shadow-medium);
    position: relative;
}

#Environmental h2 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#Environmental p, #Environmental li {
    color: var(--darkOffBlack);
    font-weight: 500;
}

.white-line {
    border: none;
    height: 2px;
    background-color: white;
    margin: 25px 0 15px 0;
    border-radius: 1px;
}

/* GJ Tennis Box */
.GJTennisBox {
    background: linear-gradient(135deg, var(--greenTennisBall) 0%, #d4f24f 100%);
    border-radius: var(--border-radius);
    padding: 35px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: var(--shadow-medium);
    color: var(--darkOffBlack);
    line-height: 1.6;
}

/* Mission Background */
.missionBackgroundImage {
    background-image: url('./images/Spiral-3.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 200px;
    min-height: 280px;
    display: flex;
    align-items: center;
}

/* Competitive Advantage */
.competitiveBox {
    border-radius: var(--border-radius);
    margin: 15px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 52, 160, 0.1);
    min-height: 320px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.competitiveBox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blueSky) 0%, var(--greenTennisBall) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.competitiveBox:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(14, 52, 160, 0.2);
}

.competitiveBox:hover::before {
    opacity: 1;
}

.competitiveBackgroundImg {
    background-image: url('./images/Circles-2.png');
    background-size: 55%;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 450px;
    padding: 40px 0;
}

.responsive-three-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

/* Images */
.UnsplashImg {
    max-width: 90%;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
}

.UnsplashImg:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

/* Contact Section */
.contactQuote {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 24px;
    font-weight: 500;
    max-width: 85%;
    line-height: 1.5;
    margin-bottom: 60px;
    margin-top: 30px;
    color: var(--darkOffBlack);
}

.name {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.5;
    margin-top: 25px;
    margin-bottom: 10px;
}

.contactBackgroundImg {
    background-image: url('./images/Spiral.png');
    background-size: 35%;
    background-repeat: no-repeat;
    background-position: right bottom;
    margin: 0;
}

#contactInfo a {
    color: var(--blueSky);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
}

#contactInfo a:hover {
    color: var(--blueRoyal);
    border-bottom-color: var(--greenTennisBall);
}

/* Link Styles */
a:visited {
    color: inherit;
}

.clicked {
    color: inherit;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .missionBackgroundImage {
        background-size: 40%;
        padding-left: 150px;
        min-height: 250px;
    }
}

@media (max-width: 910px) {
    section {
        padding: 40px 80px 60px 100px;
    }

    .hero {
        margin: 0;
        padding: 50px;
    }

    .heroHeading {
        font-size: 38px;
        width: 70%;
    }

    .UnsplashImg {
        max-width: 100%;
        padding: 10px;
        margin-top: 40px;
    }

    .competitiveBackgroundImg {
        background-size: 80%;
    }

    .contactBackgroundImg {
        background-size: 45%;
    }

    .missionBackgroundImage {
        background-size: 50%;
        padding-left: 100px;
        min-height: 200px;
    }
}

@media (max-width: 850px) {
    /* Mobile Navigation */
    .topnav {
        padding: 15px;
        display: block;
    }

    .topnav > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .topnav a:first-child img {
        width: 200px !important;
    }

    .topnav a:not(:first-child):not(.icon) {
        display: none !important;
    }

    .topnav a.icon {
        display: inline-block !important;
        color: var(--blueRoyal) !important;
        font-size: 22px !important;
        padding: 12px !important;
        position: static !important;
        background-color: transparent !important;
        margin-left: auto;
        border-radius: 8px;
    }

    .topnav a.icon:hover {
        background-color: rgba(226, 254, 105, 0.1) !important;
    }

    .topnav.responsive {
        background-color: rgba(250, 250, 250, 0.98);
        backdrop-filter: blur(15px);
    }

    .topnav.responsive > div {
        flex-direction: column;
        align-items: flex-start;
    }

    .topnav.responsive a:not(:first-child):not(.icon) {
        display: block !important;
        width: 100%;
        text-align: left;
        padding: 18px 20px !important;
        margin: 5px 0;
        background-color: rgba(255, 255, 255, 0.8);
        color: var(--blueRoyal) !important;
        border-radius: 12px;
        border: 1px solid rgba(14, 52, 160, 0.1);
        transition: var(--transition-smooth);
    }

    .topnav.responsive a:not(:first-child):not(.icon):hover {
        color: var(--blueRoyal) !important;
        font-weight: 700;
        background-color: rgba(226, 254, 105, 0.15);
        transform: translateX(5px);
    }

    .topnav.responsive a.icon {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
    }

    .heroHeading {
        font-size: 36px;
        width: 85%;
    }

    .missionBackgroundImage {
        background-size: 60%;
        padding-left: 80px;
        min-height: 180px;
    }
}

@media screen and (max-width: 840px) {
    .heroBackgroundImg {
        background-size: 65%;
    }

    .UnsplashImg {
        max-width: 85%;
        margin-top: 20px;
        padding: 15px;
    }

    #container {
        flex-wrap: wrap;
        gap: 5%;
    }

    .column {
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .responsive-three-column-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .competitiveBox {
        margin: 10px 0;
        padding: 25px;
        min-height: 240px;
        max-width: 100%;
    }

    .contactBackgroundImg {
        background-size: 50%;
    }

    .missionBackgroundImage {
        background-size: 70%;
        padding-left: 60px;
        min-height: 160px;
    }
}

@media (max-width: 680px) {
    section {
        padding: 50px 25px;
    }

    .column {
        min-width: 100%;
    }

    #landingHero {
        margin: 90px 15px 60px 15px;
    }

    .hero {
        padding: 40px;
        min-height: 380px;
    }

    .heroBackgroundImg {
        background-size: 75%;
    }

    .heroHeading {
        font-size: 32px;
        width: 100%;
        margin-bottom: 25px;
    }

    .hero-button {
        padding: 12px 25px;
        font-size: 15px;
    }

    h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    h3 {
        font-size: 22px;
    }

    p {
        line-height: 1.6;
        font-size: 15px;
    }

    li {
        line-height: 1.5;
        font-size: 15px;
    }

    .problem {
        margin-bottom: 45px;
    }

    #Environmental {
        max-width: 100%;
        padding: 30px;
    }

    .GJTennisBox {
        padding: 25px;
        font-size: 17px;
    }

    .contactQuote {
        font-size: 22px;
        line-height: 1.4;
        max-width: 100%;
    }

    .missionBackgroundImage {
        background-size: 80%;
        padding-left: 40px;
        min-height: 140px;
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .topnav a:first-child img {
        width: 180px !important;
    }

    .hero {
        padding: 30px;
        min-height: 350px;
    }

    .heroHeading {
        font-size: 28px;
    }

    .heroBackgroundImg {
        background-size: 85%;
    }

    .contactBackgroundImg {
        background-size: 70%;
    }

    .competitiveBox {
        padding: 20px;
        min-height: 200px;
    }

    .missionBackgroundImage {
        background-size: 90%;
        padding-left: 20px;
        min-height: 120px;
    }

    .contactQuote {
        font-size: 20px;
    }
}

/* Print Styles */
@media print {
    .topnav, .icon {
        display: none !important;
    }
    
    section {
        padding: 20px !important;
        break-inside: avoid;
    }
    
    .hero {
        background: var(--greyLight) !important;
        color: var(--darkOffBlack) !important;
    }
    
    .heroHeading {
        color: var(--darkOffBlack) !important;
        text-shadow: none !important;
    }
}