@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');
:root{
  --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
  --accent:#b9762a;
  --accent-strong:#9c621d;
  --accent-soft:rgba(185,118,42,0.14);
}
.dark-mode{--accent:#e0a94e;--accent-strong:#eab866;--accent-soft:rgba(224,169,78,0.16);}
h1,h2,h3,.card h2,.game-section h2{font-family:var(--serif);font-weight:600;letter-spacing:-0.01em;}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}

body {
    font-family: var(--sans);
    background-color: #f7f7f7;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s, color 0.3s;
}

/* Space background decoration */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    z-index: -1;
    pointer-events: none;
}

/* Navigation - Updated to match main page */
.top-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    position: absolute;
    top: 20px;
    left: 20px;
    transition: color 0.3s;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    margin: 0 8px;
    padding: 8px 12px;
    border-radius: 5px;
    position: relative;
    transition: color 0.3s;
    font-weight: bold;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

/* Style for current page indicator */
.nav-links a.current::after {
    width: 100%;
    left: 0;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 38px;
    margin: 10px 0;
    color: #333;
    transition: color 0.3s;
}

/* About Me Section */
.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.about-content {
    flex: 2;
    min-width: 300px;
}

.about-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
    transition: color 0.3s;
}

.highlight {
    color: var(--accent);
    font-weight: bold;
}

/* Cards Layout */
.cards-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    width: 45%;
    min-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

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

.card-icon {
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--accent);
}

.card h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
    transition: color 0.3s;
}

.card-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.card-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
    transition: color 0.3s;
}

.card-list li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 20px;
}

/* Action Button */
.action-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    margin-top: 30px;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.14);
}

.action-btn:hover {
    background-color: var(--accent-strong);
    transform: translateY(-3px);
}

.center-btn {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Footer Nav */
.bottom-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background-color: rgba(18,18,20,0.85);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #27272b;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-item:hover, .nav-item.active {
    background-color: var(--accent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    
    .card {
        width: 100%;
    }
    
    .nav-links {
        display: none;
    }
}

/* Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* Contact Section Styles */
.contact-section {
    margin: 100px auto 150px;
    text-align: center;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1000px;
    margin: 40px auto;
    gap: 20px;
}

.contact-info {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
}

.contact-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
    transition: background-color 0.3s;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
}

.contact-card h3 {
    margin: 10px 0;
    font-size: 20px;
    color: #333;
    transition: color 0.3s;
}

.contact-card p {
    margin: 5px 0;
    color: #666;
    transition: color 0.3s;
}

.contact-link {
    color: var(--accent);
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
    font-size: 14px;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--accent-strong);
}

.contact-form {
    flex: 1.5;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
    color: #333;
    font-size: 16px;
    box-sizing: border-box;
    transition: box-shadow 0.3s, background-color 0.3s, color 0.3s;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(185,118,42,0.55);
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
    transition: color 0.3s;
}

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

.submit-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.submit-btn:hover {
    background-color: var(--accent-strong);
    transform: translateY(-3px);
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: -1;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
}

/* Dark Mode Toggle */
.mode-toggle {
    width: 30px;
    height: 30px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 80px;
    right: 20px;
    transition: transform 0.3s ease;
    z-index: 200;
}

.mode-toggle:hover {
    transform: scale(1.1);
}

.mode-toggle svg {
    width: 24px;
    height: 24px;
}

.dark-mode .mode-toggle .sun {
    display: block;
}

.dark-mode .mode-toggle .moon {
    display: none;
}

.mode-toggle .sun {
    display: none;
}

.mode-toggle .moon {
    display: block;
}

/* Dark Mode Styles */
.dark-mode {
    background-color: #18181b;
    color: #f7f7f7;
}

.dark-mode .logo {
    color: #fff;
}

.dark-mode .nav-links a {
    color: #fff;
}

.dark-mode h1 {
    color: #fff;
}

.dark-mode .about-content p {
    color: #ddd;
}

.dark-mode .card {
    background-color: rgba(255,255,255,0.05);
}

.dark-mode .card h2 {
    color: #fff;
}

.dark-mode .card-list li {
    color: #ddd;
}

.dark-mode .contact-card {
    background-color: rgba(255,255,255,0.06);
}

.dark-mode .contact-card h3 {
    color: #fff;
}

.dark-mode .contact-card p {
    color: #ccc;
}

.dark-mode .form-control {
    background-color: rgba(255,255,255,0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.dark-mode .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Basketball Game Styles */
.game-section {
    margin: 60px auto;
    text-align: center;
}

.game-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
    transition: color 0.3s;
}

.dark-mode .game-section h2 {
    color: #fff;
}

.game-container {
    position: relative;
    width: 500px;
    height: 420px;
    margin: 0 auto;
    border-radius: 14px;
    background: #07070f;
    box-shadow: 0 28px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);
    overflow: hidden;
    cursor: crosshair;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

.game-hud {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 14px auto 0;
    max-width: 500px;
}

#score {
    font-size: 17px;
    font-weight: 800;
    color: #1a1a1a;
    background: #fff;
    padding: 7px 22px;
    border-radius: 50px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.12);
    letter-spacing: 0.5px;
    transition: background 0.3s, color 0.3s;
}

.dark-mode #score {
    background: rgba(255,255,255,0.08);
    color: #fff;
    box-shadow: 0 3px 14px rgba(0,0,0,0.3);
}

#streak-display {
    font-size: 15px;
    font-weight: 700;
    color: #e06000;
    background: #fff;
    padding: 7px 18px;
    border-radius: 50px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.12);
    transition: background 0.3s;
    min-width: 100px;
    text-align: center;
}

.dark-mode #streak-display {
    background: rgba(255,255,255,0.08);
    color: #ff9a30;
    box-shadow: 0 3px 14px rgba(0,0,0,0.3);
}

.game-instructions {
    margin: 10px auto 0;
    font-size: 13px;
    color: #888;
    max-width: 500px;
    line-height: 1.5;
}

.dark-mode .game-instructions { color: #888; }

.game-controls { margin: 14px 0 0; }

.game-button {
    padding: 9px 26px;
    font-size: 13px;
    font-weight: 700;
    background: #18181b;
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}

.game-button:hover {
    background: #2c2c31;
    color: #fff;
}

/* Fun Message Section */
.fun-message {
    margin: 18px auto;
    max-width: 500px;
    padding: 14px 22px;
    background: rgba(0,0,0,0.04);
    border-radius: 10px;
    border-left: 3px solid #ff7b24;
    transition: background 0.3s;
}

.dark-mode .fun-message {
    background: rgba(255,255,255,0.04);
}

.fun-message p {
    font-size: 15px;
    margin: 0;
    color: #555;
}

.dark-mode .fun-message p { color: #aaa; }

.confetti {
    position: absolute;
    top: 0;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 540px) {
    .game-container { width: 100%; max-width: 360px; height: 360px; }
    .game-hud, .fun-message, .game-instructions { max-width: 360px; }
}
/* ============ refined theme polish ============ */
.section-title{color:var(--accent);font-family:var(--sans);font-weight:600}
h1{font-size:44px}
.header h1{font-size:52px;letter-spacing:-0.02em}

/* buttons — charcoal in light, amber in dark (no more cyan fill) */
.submit-btn,.action-btn{background:#18181b;color:#fff;box-shadow:0 6px 18px rgba(0,0,0,0.16);border-radius:8px;letter-spacing:0.2px}
.submit-btn:hover,.action-btn:hover{background:#2c2c31;transform:translateY(-2px)}
.dark-mode .submit-btn,.dark-mode .action-btn{background:var(--accent);color:#18181b}
.dark-mode .submit-btn:hover,.dark-mode .action-btn:hover{background:var(--accent-strong);color:#18181b}

/* About — stronger hero */
.about-role{font-family:var(--sans);font-size:14px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);margin-top:6px}
.about-container{margin-bottom:56px;gap:56px}
.about-image img{max-width:360px;border-radius:16px;box-shadow:0 20px 48px rgba(0,0,0,0.18);filter:saturate(1.02)}
.about-lead{font-family:var(--serif);font-size:26px;font-weight:500;line-height:1.4;color:#1c1c1e;margin-bottom:20px;letter-spacing:-0.01em}
.dark-mode .about-lead{color:#f2f2f4}
.about-content p{font-size:17px;line-height:1.72;color:#4a4a52}
.dark-mode .about-content p{color:#b8b8c0}
.inline-link{color:var(--accent);text-decoration:none;border-bottom:1.5px solid var(--accent-soft);transition:border-color .2s;font-weight:500}
.inline-link:hover{border-color:var(--accent)}

/* Quick-facts strip */
.facts{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:rgba(0,0,0,0.09);border:1px solid rgba(0,0,0,0.09);border-radius:16px;overflow:hidden;margin:0 auto 72px;max-width:900px}
.dark-mode .facts{background:rgba(255,255,255,0.09);border-color:rgba(255,255,255,0.09)}
.fact{background:#fff;padding:24px 22px}
.dark-mode .fact{background:#1b1b1e}
.fact .k{font-family:var(--sans);font-size:11px;font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:#8a8a90}
.fact .v{font-family:var(--serif);font-size:20px;font-weight:500;margin-top:9px;color:#1c1c1e;line-height:1.2}
.dark-mode .fact .v{color:#f2f2f4}
@media(max-width:768px){.facts{grid-template-columns:repeat(2,1fr)}}

/* Cards — 3-up, refined chips instead of giant emoji */
.cards-section{gap:24px}
.card{width:31%;min-width:280px;border:1px solid rgba(0,0,0,0.07)}
.dark-mode .card{border-color:rgba(255,255,255,0.08)}
.card-icon{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:13px;background:var(--accent-soft);font-size:22px;margin-bottom:20px}
.card h2{font-size:22px;margin-bottom:16px}
.card-list li::before{color:var(--accent)}
@media(max-width:768px){.card{width:100%}}
