/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (SPORTS/FOOTBALL BETTING THEME)
   ========================================================================== */
:root {
    /* Dark Theme (Default) - Green & Gold Sports Accents */
    --bg-primary: #070a12;
    --bg-secondary: #0c101d;
    --bg-card: rgba(18, 25, 43, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-primary: #10b981; /* Grass Emerald Green */
    --accent-secondary: #fbbf24; /* Trophy Gold */
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #fbbf24 100%);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    --glow-shadow: 0 0 20px rgba(16, 185, 129, 0.18);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-theme {
    /* Light Theme */
    --bg-primary: #f0fdf4; /* Very light green tint */
    --bg-secondary: #e6f4ea;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.06);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-primary: #059669;
    --accent-secondary: #d97706;
    --accent-gradient: linear-gradient(135deg, #059669 0%, #d97706 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --glow-shadow: 0 0 20px rgba(5, 150, 105, 0.12);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    
    /* Football Stadium Background with dark overlay */
    background-image: linear-gradient(to bottom, rgba(7, 10, 18, 0.93) 0%, rgba(7, 10, 18, 0.97) 100%), url('images/stadium_background.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.light-theme {
    /* Light Theme stadium overlay override */
    background-image: linear-gradient(to bottom, rgba(240, 253, 244, 0.94) 0%, rgba(240, 253, 244, 0.98) 100%), url('images/stadium_background.jpg');
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.bg-alt {
    /* Slightly less transparent background for contrast section layers */
    background-color: rgba(12, 16, 29, 0.5);
}

.light-theme .bg-alt {
    background-color: rgba(230, 244, 234, 0.5);
}

/* ==========================================================================
   BACKGROUND GLOW EFFECT
   ========================================================================== */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
    animation: floatOrb 20s infinite alternate;
}

.orb-1 {
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, rgba(0,0,0,0) 70%);
}

.orb-2 {
    top: 40%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -5s;
}

.orb-3 {
    bottom: 10%;
    right: 15%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.mobile-only {
    display: none;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(7, 10, 18, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.light-theme .header {
    background-color: rgba(240, 253, 244, 0.8);
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-svg {
    width: 2rem;
    height: 2rem;
    color: var(--accent-primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.logo:hover .logo-svg {
    transform: rotate(45deg);
    color: var(--accent-secondary);
}

.logo-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Theme Toggle Button */
.theme-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-btn:hover {
    border-color: var(--accent-primary);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: var(--glow-shadow);
}

.light-theme .theme-btn:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.theme-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.sun-icon {
    display: none;
}

.light-theme .sun-icon {
    display: block;
}

.light-theme .moon-icon {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

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

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

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

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #070a12;
    border: none;
    box-shadow: var(--glow-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.light-theme .btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

/* Code visual card */
.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.visual-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: var(--transition);
    text-align: left;
    overflow: hidden;
}

.visual-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    gap: 6px;
    margin-bottom: 1.25rem;
}

.card-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #eab308; }
.dot-green { background-color: #22c55e; }

.card-body pre {
    overflow-x: auto;
    font-size: 0.875rem;
    text-align: left;
}

.card-body code {
    font-family: 'Courier New', Courier, monospace;
    text-align: left;
}

.code-keyword { color: var(--accent-primary); }
.code-string { color: #f59e0b; }
.code-comment { color: #6b7280; font-style: italic; }

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 44px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.5s infinite;
}

@keyframes scrollMouse {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle-text {
    color: var(--text-secondary);
    max-width: 600px;
    font-size: 1.05rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.about-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.info-list li {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ==========================================================================
   WORLD CUP INTERACTIVE SECTION
   ========================================================================== */
.wc-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
}

.wc-teams-column {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
}

.wc-column-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.wc-stage-group {
    margin-bottom: 2rem;
}

.wc-stage-group:last-child {
    margin-bottom: 0;
}

.wc-stage-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.wc-stage-title.text-accent {
    color: var(--accent-primary);
}

.wc-teams-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wc-team-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition);
}

.light-theme .wc-team-item {
    background: rgba(0, 0, 0, 0.01);
}

.wc-team-item:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.03);
    transform: translateX(4px);
}

.wc-team-item.active {
    border-color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.wc-flag {
    font-size: 2rem;
    margin-right: 1.25rem;
}

.wc-team-meta {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wc-team-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.wc-team-status {
    font-size: 0.8rem;
    font-weight: 500;
}

.wc-team-status.in-game {
    color: #10b981;
}

.wc-team-status.lost {
    color: var(--text-secondary);
}

.wc-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.wc-team-item.active .wc-arrow {
    color: var(--accent-primary);
    transform: translateX(3px);
}

/* Analyst Card details view on the right */
.wc-details-column {
    display: flex;
    flex-direction: column;
}

.wc-analyst-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
    height: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.wc-card-loader {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Injected dynamic elements content styles */
.wc-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.wc-card-flag {
    font-size: 3.5rem;
    margin-right: 1.5rem;
    line-height: 1;
}

.wc-card-title-group h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.wc-card-stage-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.wc-card-stage-badge.in-game {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.wc-card-stage-badge.lost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.wc-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2.25rem;
}

.wc-stats-table th,
.wc-stats-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.wc-stats-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding-top: 0;
}

.wc-stats-table td {
    font-weight: 500;
}

.wc-stats-table td:last-child {
    font-weight: 700;
    text-align: right;
}

.wc-stats-table th:last-child {
    text-align: right;
}

.wc-card-section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.wc-card-players {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.25rem;
}

.wc-player-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.light-theme .wc-player-tag {
    background: rgba(0, 0, 0, 0.02);
}

.wc-card-notes {
    font-style: italic;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent-primary);
    padding-left: 1.25rem;
    line-height: 1.6;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-shadow);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    background: var(--accent-primary);
    color: #070a12;
}

.skill-icon svg {
    width: 24px;
    height: 24px;
}

.skill-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}

.light-theme .skill-tags span {
    background: rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-gradient);
    color: #070a12;
    border-color: transparent;
    box-shadow: var(--glow-shadow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.portfolio-item.hidden {
    transform: scale(0.9);
    opacity: 0;
    position: absolute;
    pointer-events: none;
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-shadow);
}

.project-img-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #12192b;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 10, 18, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #070a12;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link svg {
    width: 20px;
    height: 20px;
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.project-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   KELLY CALCULATOR SECTION
   ========================================================================== */
.calculator-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calc-inputs select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    outline: none;
}

.light-theme .calc-inputs select {
    background: rgba(0, 0, 0, 0.02);
}

.calc-inputs select:focus {
    border-color: var(--accent-primary);
    box-shadow: var(--glow-shadow);
}

.calc-results {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.light-theme .calc-results {
    background: rgba(0, 0, 0, 0.01);
}

.result-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

.result-subvalue {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.text-green {
    color: #10b981;
}

.text-red {
    color: #ef4444;
}

.text-accent {
    color: var(--accent-secondary);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.contact-link {
    font-size: 1.1rem;
    font-weight: 600;
}

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

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.light-theme .form-group input,
.light-theme .form-group textarea {
    background: rgba(0, 0, 0, 0.02);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: var(--glow-shadow);
}

.light-theme .form-group input:focus,
.light-theme .form-group textarea:focus {
    background-color: #fff;
}

.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    text-align: center;
}

.form-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.form-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.hidden {
    display: none;
}

/* ==========================================================================
   MODAL WINDOW DIALOGS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 10, 18, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: var(--transition);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--card-shadow);
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: scale(1);
    transition: var(--transition);
}

.modal-overlay.hidden .modal-card {
    transform: scale(0.95);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-bottom: 0.5rem;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.85rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.no-scroll {
    overflow: hidden;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    background-color: var(--bg-primary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.footer-socials a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        justify-content: center;
    }
    
    .visual-card {
        transform: none;
        max-width: 500px;
    }
    
    .visual-card:hover {
        transform: translateY(-5px);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .wc-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .section-padding {
        padding: 4.5rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .visual-card {
        max-width: 100%;
        transform: none !important;
    }
    
    .card-body pre {
        white-space: pre-wrap !important;
        word-break: break-all !important;
        font-size: 0.75rem !important;
    }

    .scroll-indicator {
        display: none;
    }
    
    /* Navigation drawer for mobile */
    .nav {
        position: fixed;
        top: 5rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 5rem);
        background-color: var(--bg-primary);
        z-index: 999;
        transition: left 0.4s ease;
        border-top: 1px solid var(--border-color);
    }
    
    .nav.open {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }

    /* Header actions */
    .header-actions {
        gap: 0.75rem;
    }

    .header-actions .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .header-admin-btn {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }

    /* About */
    .about-text h3 {
        font-size: 1.4rem;
        text-align: center;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .about-stats {
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .stat-num {
        font-size: 2rem;
    }

    .about-info {
        padding: 1.5rem;
    }

    /* World Cup */
    .wc-teams-column {
        padding: 1.5rem;
    }
    
    .wc-analyst-card {
        padding: 1.5rem;
        min-height: 360px;
    }

    .wc-card-flag {
        font-size: 2.5rem;
    }

    .wc-card-title-group h3 {
        font-size: 1.5rem;
    }

    .wc-stats-table th,
    .wc-stats-table td {
        padding: 0.5rem 0.5rem;
        font-size: 0.85rem;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 2rem 1.5rem;
    }

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

    .portfolio-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Calculator */
    .calculator-wrapper {
        padding: 1.5rem;
    }

    .result-value {
        font-size: 1.75rem;
    }
    
    /* Contact */
    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    /* Modal */
    .modal-card {
        margin: 1rem;
        padding: 2rem 1.5rem;
        max-width: calc(100vw - 2rem);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 3.5rem 0;
    }

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

    .section-subtitle-text {
        font-size: 0.9rem;
    }

    /* Header */
    .header-container {
        height: 4rem;
    }

    .logo {
        font-size: 1.15rem;
        gap: 0.5rem;
    }

    .logo-svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .header-actions .btn-sm {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
    }

    .theme-btn {
        padding: 0.45rem;
    }

    .theme-btn svg {
        width: 1rem;
        height: 1rem;
    }

    /* Nav drawer adjustment for shorter header */
    .nav {
        top: 4rem;
        height: calc(100vh - 4rem);
    }

    /* Hero */
    .hero {
        padding-top: 5rem;
    }

    .hero-title {
        font-size: 1.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.8rem;
    }

    .card-body pre {
        font-size: 0.7rem;
    }

    /* About */
    .about-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .stat-item {
        align-items: center;
        text-align: center;
    }

    /* World Cup */
    .wc-teams-column {
        padding: 1rem;
    }

    .wc-analyst-card {
        padding: 1.25rem;
    }

    .wc-flag {
        font-size: 1.5rem;
        margin-right: 0.75rem;
    }

    .wc-team-name {
        font-size: 0.9rem;
    }

    .wc-card-players {
        gap: 0.35rem;
    }

    .wc-player-tag {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }

    /* Skills */
    .skill-card {
        padding: 1.5rem 1.25rem;
    }

    .skill-title {
        font-size: 1.25rem;
    }

    .skill-tags span {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    /* Calculator */
    .calculator-wrapper {
        padding: 1.25rem;
    }

    .calc-inputs .form-group label {
        font-size: 0.8rem;
    }

    .result-value {
        font-size: 1.4rem;
    }

    /* Contact */
    .contact-info h3 {
        font-size: 1.25rem;
    }

    .contact-form-wrapper {
        padding: 1.25rem;
    }

    /* Modal */
    .modal-card {
        margin: 0.75rem;
        padding: 1.5rem 1.25rem;
    }

    .modal-tabs {
        gap: 1rem;
    }

    .tab-btn {
        font-size: 0.95rem;
    }

    /* Buttons */
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-block {
        padding: 0.8rem;
    }
}

/* Animations for Scroll Reveal */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards ease;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.3s; }
.fade-in:nth-child(3) { animation-delay: 0.5s; }
.fade-in:nth-child(4) { animation-delay: 0.7s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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