/* CSS Variables */
:root {
    --primary-green: #00ff41;
    --secondary-green: #00cc33;
    --accent-green: #39ff14;
    --dark-green: #003d0f;
    --matrix-green: #0f3d0f;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: rgba(10, 10, 10, 0.8);
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --text-dim: #888888;
    --shadow-green: rgba(0, 255, 65, 0.3);
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --border-radius: 1rem;
    --border-radius-lg: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --grid-gap: 1.5rem;
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Rajdhani', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-secondary);
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

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

/* Skip Link for Accessibility */
.skip-link {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-green);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-family: var(--font-primary);
    z-index: 10000;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--accent-green);
    outline-offset: 2px;
}

/* Screen Reader Only Text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--shadow-green);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid rgba(0, 255, 65, 0.3);
    color: var(--primary-green);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(0, 255, 65, 0.2);
    border-color: var(--primary-green);
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

.theme-toggle:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Light Mode Styles */
body.light-mode {
    --bg-dark: #f5f5f5;
    --bg-darker: #ffffff;
    --text-light: #1a1a1a;
    --text-gray: #555555;
    --primary-green: #00a832;
    --accent-green: #00cc41;
    --shadow-green: rgba(0, 168, 50, 0.3);
}

body.light-mode .matrix-background {
    opacity: 0.05;
}

body.light-mode .hero-background {
    opacity: 0.3;
}

body.light-mode .floating-particles::before {
    background: radial-gradient(circle, rgba(0, 168, 50, 0.1) 0%, transparent 70%);
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 255, 65, 0.2);
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
}

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

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

.loader-text {
    font-family: var(--font-primary);
    color: var(--primary-green);
    font-size: 0.9rem;
    letter-spacing: 2px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 3px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .matrix-background,
    .floating-elements,
    .cursor-trail,
    .cursor-glow,
    .hologram-lines,
    .scan-line {
        display: none !important;
    }

    body {
        cursor: auto;
    }
}

/* Custom Cursor */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--primary-green) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.1s ease;
}

.cursor-glow {
    position: fixed;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: screen;
    transition: transform 0.2s ease;
}

/* Matrix Background */
.matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

#matrixCanvas {
    width: 100%;
    height: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background:
        radial-gradient(ellipse at top, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 204, 51, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(2px 2px at 20px 30px, var(--primary-green), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--accent-green), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--secondary-green), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--primary-green), transparent),
        radial-gradient(2px 2px at 160px 30px, var(--accent-green), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
    opacity: 0.3;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

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

.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, transparent 24%, rgba(0, 255, 65, 0.05) 25%, rgba(0, 255, 65, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 65, 0.05) 75%, rgba(0, 255, 65, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(0deg, transparent 24%, rgba(0, 255, 65, 0.05) 25%, rgba(0, 255, 65, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 65, 0.05) 75%, rgba(0, 255, 65, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    animation: networkPulse 4s ease-in-out infinite alternate;
}

@keyframes networkPulse {
    0% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.3;
    }
}

/* 3D Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.floating-laptop {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 300px;
    height: 200px;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.laptop-base {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 15px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateX(15deg) rotateY(-10deg);
    transition: var(--transition-slow);
}

.laptop-screen {
    width: 90%;
    height: 85%;
    margin: 5% auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 255, 65, 0.2);
}

.terminal {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    font-family: 'Courier New', monospace;
    font-size: 10px;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0, 255, 65, 0.1);
    border-bottom: 1px solid var(--primary-green);
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.btn {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.btn.red {
    background: #ff5f56;
}

.btn.yellow {
    background: #ffbd2e;
}

.btn.green {
    background: #27ca3f;
}

.terminal-title {
    color: var(--primary-green);
    font-size: 9px;
    font-weight: bold;
}

.terminal-body {
    padding: 10px;
    height: calc(100% - 40px);
    overflow: hidden;
}

.terminal-line {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.prompt {
    color: var(--primary-green);
    margin-right: 5px;
}

.command {
    color: var(--text-light);
}

.output {
    color: var(--text-gray);
}

.output.success {
    color: var(--accent-green);
}

.output.warning {
    color: #ffbd2e;
}

.typing-animation {
    overflow: hidden;
    border-right: 2px solid var(--primary-green);
    white-space: nowrap;
    animation: typing 3s steps(20, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary-green);
    }
}

.floating-browser {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 350px;
    height: 250px;
    animation: float 8s ease-in-out infinite reverse;
    will-change: transform;
}

.browser-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 12px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateX(-10deg) rotateY(15deg);
    transition: var(--transition-slow);
}

.browser-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 255, 65, 0.1);
    border-bottom: 1px solid var(--primary-green);
    border-radius: 12px 12px 0 0;
}

.browser-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.address-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    color: var(--text-gray);
}

.browser-content {
    padding: 15px;
    height: calc(100% - 50px);
}

.htb-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.htb-logo {
    text-align: center;
    margin-bottom: 10px;
}

.cube-container {
    display: inline-block;
    perspective: 1000px;
}

.cube {
    width: 40px;
    height: 40px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
}

.face {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border: 2px solid var(--accent-green);
    opacity: 0.8;
}

.face.front {
    transform: rotateY(0deg) translateZ(20px);
}

.face.back {
    transform: rotateY(180deg) translateZ(20px);
}

.face.right {
    transform: rotateY(90deg) translateZ(20px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(20px);
}

.face.top {
    transform: rotateX(90deg) translateZ(20px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(20px);
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.htb-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

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

.stat-value {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-green);
}

.stat-label {
    font-size: 9px;
    color: var(--text-gray);
}

.machine-list {
    flex: 1;
    overflow: hidden;
}

.machine-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 10px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.machine-name {
    color: var(--text-light);
}

.machine-status.pwned {
    color: var(--accent-green);
    font-weight: bold;
}

.floating-code-editor {
    position: absolute;
    bottom: 20%;
    left: 8%;
    width: 320px;
    height: 220px;
    animation: float 7s ease-in-out infinite;
    will-change: transform;
}

.editor-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 10px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
    transition: var(--transition-slow);
}

.editor-header {
    background: rgba(0, 255, 65, 0.1);
    border-bottom: 1px solid var(--primary-green);
    border-radius: 10px 10px 0 0;
    padding: 8px;
}

.editor-tabs {
    display: flex;
    gap: 5px;
}

.tab {
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    font-size: 9px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tab.active {
    background: var(--primary-green);
    color: var(--bg-dark);
}

.editor-content {
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    height: calc(100% - 40px);
    overflow: hidden;
}

.code-line {
    display: flex;
    margin-bottom: 3px;
}

.line-number {
    width: 20px;
    color: var(--text-dim);
    text-align: right;
    margin-right: 10px;
}

.code {
    color: var(--text-light);
}

.keyword {
    color: #ff6b6b;
}

.function {
    color: #4ecdc4;
}

.string {
    color: #ffe66d;
}

.comment {
    color: var(--text-dim);
}

.number {
    color: #a8e6cf;
}

.floating-dashboard {
    position: absolute;
    bottom: 15%;
    right: 8%;
    width: 280px;
    height: 180px;
    animation: float 9s ease-in-out infinite reverse;
}

.dashboard-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 12px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateX(-5deg) rotateY(10deg);
    transition: var(--transition-slow);
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(0, 255, 65, 0.1);
    border-bottom: 1px solid var(--primary-green);
    border-radius: 12px 12px 0 0;
    font-size: 12px;
    color: var(--primary-green);
    font-weight: bold;
}

.dashboard-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: calc(100% - 50px);
}

.security-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.metric-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring-circle {
    stroke-dasharray: 163;
    stroke-dashoffset: 16;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    animation: progressRing 2s ease-in-out infinite alternate;
}

@keyframes progressRing {
    0% {
        stroke-dashoffset: 16;
    }

    100% {
        stroke-dashoffset: 8;
    }
}

.metric-value {
    position: absolute;
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-green);
}

.metric-label {
    font-size: 10px;
    color: var(--text-gray);
}

.threat-alerts {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: var(--text-gray);
}

.alert-item i {
    color: var(--accent-green);
}

@keyframes float {

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

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

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 3;
    position: relative;
    max-width: 900px;
    padding: 2rem;
}

.profile-container {
    margin-bottom: 3rem;
    position: relative;
}

.profile-hologram {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--primary-green);
    box-shadow:
        0 0 50px var(--shadow-green),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    animation: hologram-effect 3s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

@keyframes hologram-effect {
    0% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 50px var(--shadow-green), inset 0 0 20px rgba(0, 255, 65, 0.1);
    }

    50% {
        transform: scale(1.05) rotate(5deg);
        box-shadow: 0 0 80px var(--primary-green), inset 0 0 30px rgba(0, 255, 65, 0.2);
    }

    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 50px var(--shadow-green), inset 0 0 20px rgba(0, 255, 65, 0.1);
    }
}

.hologram-lines {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background:
        linear-gradient(0deg, transparent 48%, var(--primary-green) 49%, var(--primary-green) 51%, transparent 52%),
        linear-gradient(90deg, transparent 48%, var(--primary-green) 49%, var(--primary-green) 51%, transparent 52%);
    opacity: 0.3;
    animation: hologramSpin 8s linear infinite;
    z-index: 1;
}

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

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

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    animation: scanLine 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes scanLine {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

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

.profile-glow {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.2) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.hero-text {
    width: 100%;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--primary-green), var(--accent-green), var(--secondary-green));
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 30px var(--shadow-green);
    -webkit-filter: blur(0);
    filter: blur(0);
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: var(--primary-green);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: var(--accent-green);
    z-index: -2;
}

@keyframes glitch-1 {

    0%,
    14%,
    15%,
    49%,
    50%,
    99%,
    100% {
        transform: translate(0);
    }

    15%,
    49% {
        transform: translate(-2px, -2px);
    }
}

@keyframes glitch-2 {

    0%,
    20%,
    21%,
    62%,
    63%,
    99%,
    100% {
        transform: translate(0);
    }

    21%,
    62% {
        transform: translate(2px, 2px);
    }
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.typing-text {
    color: var(--primary-green);
    font-weight: 600;
    font-family: var(--font-primary);
}

.cursor-blink {
    color: var(--accent-green);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    overflow: hidden;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-green), var(--accent-green));
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover .btn-glow,
.btn-secondary:hover .btn-glow {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.4);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.3);
}

/* Button Ripple Effect */
.btn-primary:active,
.btn-secondary:active {
    transform: translateY(-1px);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.terminal-window {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 600px;
    height: 400px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--primary-green);
    border-radius: var(--border-radius-lg);
    z-index: 100;
    display: none;
    flex-direction: column;
    box-shadow: 0 0 50px var(--shadow-green);
}

.terminal-input {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    width: 100%;
    outline: none;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 50%;
    color: var(--primary-green);
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-green);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
    z-index: -1;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    color: var(--bg-dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-green);
}

.social-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid var(--primary-green);
}

.social-link:hover .social-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-family: var(--font-primary);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Section Styles */
.about-section,
.repos-section,
.activity-section,
.contact-section {
    padding: 8rem 0;
    position: relative;
}

.about-section {
    background:
        radial-gradient(ellipse at center, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.repos-section {
    background: var(--bg-darker);
}

.activity-section {
    background:
        radial-gradient(ellipse at center, rgba(0, 204, 51, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.contact-section {
    background: var(--bg-darker);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    animation: decrypt 2s ease-in-out;
}

@keyframes decrypt {
    0% {
        transform: translateY(20px);
        opacity: 0;
        filter: blur(5px);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

.title-number {
    color: var(--primary-green);
    font-size: 0.8em;
}

.title-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-green), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(2px);
    z-index: -1;
}

/* About Section */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    margin-bottom: 4rem;
}

.about-intro {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    color: var(--primary-green);
    margin-bottom: 2rem;
    font-weight: 500;
}

.about-text p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.skills-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.skill-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 255, 65, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-dark);
    border-color: var(--primary-green);
    animation: bounce 0.5s ease;
}

.skill-category h4 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-green);
    color: var(--bg-dark);
    transform: translateY(-2px);
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

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

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

/* Repository Section */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 4rem 0;
}

.spinner-ring {
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(0, 255, 65, 0.2);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-message {
    text-align: center;
    padding: 4rem 0;
    color: #ff6b6b;
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-message .retry-btn {
    margin-top: 1.5rem;
}

/* Repository Controls */
.repo-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 500px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
    font-size: 1rem;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    background: rgba(0, 255, 65, 0.05);
    border: 2px solid rgba(0, 255, 65, 0.2);
    border-radius: 12px;
    color: var(--text-light);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-green);
    background: rgba(0, 255, 65, 0.08);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.search-box input::placeholder {
    color: var(--text-gray);
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.9rem 2.5rem 0.9rem 1rem;
    background: rgba(0, 255, 65, 0.05);
    border: 2px solid rgba(0, 255, 65, 0.2);
    border-radius: 12px;
    color: var(--text-light);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300ff41' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    min-width: 160px;
}

.filter-select:hover {
    border-color: var(--primary-green);
    background: rgba(0, 255, 65, 0.08);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.filter-select option {
    background: var(--bg-darker);
    color: var(--text-light);
}

/* Bento Grid */
.bento-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-auto-rows: minmax(250px, auto);
    gap: var(--grid-gap);
    padding: 2rem 0;
    grid-template-areas:
        "a a b c"
        "d e f f"
        "g h i j";
}

.floating-laptop-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 300px;
    z-index: 10;
    pointer-events: none;
}

#projectLaptop {
    animation: float 8s ease-in-out infinite;
}

.repo-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 2rem;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.repo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: left 0.6s ease;
}

.repo-card:hover::before {
    left: 100%;
}

.repo-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 65, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 65, 0.5);
}

.repo-card:nth-child(3n) {
    grid-row: span 2;
}

.repo-card:nth-child(5n) {
    grid-column: span 2;
}

.repo-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.repo-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
}

.repo-title {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.repo-title:hover {
    color: var(--primary-green);
}

.github-icon {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-left: auto;
    transition: var(--transition);
}

.github-icon:hover {
    transform: scale(1.2);
}

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--primary-green);
    max-width: 600px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--primary-green);
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-green);
    transform: rotate(90deg);
}

.close-modal:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

.repo-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.repo-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-gray);
    flex-wrap: wrap;
}

.repo-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.repo-stat i {
    color: var(--primary-green);
}

.repo-language {
    display: inline-block;
    background: rgba(0, 255, 65, 0.2);
    color: var(--primary-green);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
    border: 1px solid rgba(0, 255, 65, 0.4);
}

/* Activity Section */

/* Section Header with Refresh Button */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: var(--primary-green);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.refresh-btn:hover {
    background: var(--primary-green);
    color: var(--bg-dark);
    transform: scale(1.05);
    box-shadow: 0 5px 20px var(--shadow-green);
}

.refresh-btn:hover i {
    animation: spin 1s linear infinite;
}

.refresh-btn:active {
    transform: scale(0.95);
}

/* GitHub Stats Container */
.github-stats-container {
    margin-bottom: 3rem;
}

.github-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px var(--shadow-green);
}

.stat-item i {
    font-size: 1.8rem;
    color: var(--primary-green);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    font-family: var(--font-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skeleton Loading */
.stat-item.skeleton {
    background: var(--bg-card);
}

.skeleton-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.1) 25%, rgba(0, 255, 65, 0.2) 50%, rgba(0, 255, 65, 0.1) 75%);
    background-size: 200% 100%;
    border-radius: 50%;
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    width: 60px;
    height: 20px;
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.1) 25%, rgba(0, 255, 65, 0.2) 50%, rgba(0, 255, 65, 0.1) 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

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

/* Commit Count Badge */
.commit-count {
    font-size: 0.9rem;
    background: var(--primary-green);
    color: var(--bg-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    margin-left: auto;
    font-weight: 600;
}

.activity-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.subsection-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 2rem;
    font-family: var(--font-primary);
}

.commits-container {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 2rem;
    backdrop-filter: blur(10px);
    max-height: 400px;
    overflow-y: auto;
}

.loading-commits {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    padding: 2rem;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.commit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
}

.commit-item:hover {
    background: rgba(0, 255, 65, 0.08);
    transform: translateX(10px);
    border-color: var(--primary-green);
}

.commit-item:last-child {
    border-bottom: none;
}

.commit-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    flex-shrink: 0;
    transition: var(--transition);
}

.commit-item:hover .commit-avatar {
    box-shadow: 0 0 15px var(--shadow-green);
    transform: scale(1.1);
}

.commit-info {
    flex: 1;
    min-width: 0;
}

.commit-message {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.commit-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    flex-wrap: wrap;
}

.commit-details i {
    margin-right: 0.3rem;
    font-size: 0.75rem;
}

.commit-repo {
    color: var(--primary-green);
    font-weight: 500;
}

.commit-time {
    color: var(--text-dim);
}

.commit-link-icon {
    color: var(--text-dim);
    font-size: 0.75rem;
    opacity: 0;
    transition: var(--transition);
}

.commit-item:hover .commit-link-icon {
    opacity: 1;
    color: var(--primary-green);
}

/* No Commits State */
.no-commits {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: var(--text-gray);
}

.no-commits i {
    font-size: 3rem;
    color: var(--primary-green);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.no-commits p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.no-commits span {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.contributions-section {
    margin: 2rem 0;
}

.contribution-graph {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.graph-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
}

.loading-bars {
    display: flex;
    gap: 0.5rem;
}

.bar {
    width: 8px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 4px;
    animation: loadingBars 1.5s ease-in-out infinite;
}

.bar:nth-child(2) {
    animation-delay: 0.1s;
}

.bar:nth-child(3) {
    animation-delay: 0.2s;
}

.bar:nth-child(4) {
    animation-delay: 0.3s;
}

.bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes loadingBars {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.3);
    }
}

.contribution-grid {
    display: grid;
    grid-template-columns: repeat(53, 1fr);
    gap: 3px;
    margin: 2rem 0;
}

.contribution-day {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: rgba(0, 255, 65, 0.1);
    transition: var(--transition);
    opacity: 0;
    transform: scale(0);
}

.contribution-day.level-1 {
    background: rgba(0, 255, 65, 0.3);
}

.contribution-day.level-2 {
    background: rgba(0, 255, 65, 0.5);
}

.contribution-day.level-3 {
    background: rgba(0, 255, 65, 0.7);
}

.contribution-day.level-4 {
    background: var(--primary-green);
}

.contribution-day:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--primary-green);
}

.snake-section {
    margin: 2rem 0;
}

.snake-container {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 2rem;
    backdrop-filter: blur(10px);
    text-align: center;
}

.snake-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    margin-bottom: 4rem;
}

.contact-text p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-gray);
    line-height: 1.8;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 255, 65, 0.2);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.contact-method:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-dark);
    border-color: var(--primary-green);
}

.method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    color: var(--primary-green);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.method-info {
    text-align: left;
}

.method-info h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.method-info span {
    color: var(--text-gray);
    font-size: 0.9rem;
    word-break: break-word;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-text p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

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

.footer-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 50%;
    color: var(--primary-green);
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    background: var(--primary-green);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-green);
}

/* Responsive Design */

/* Large Desktop */
@media (max-width: 1400px) {
    .bento-container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas: none;
    }

    .repo-card:nth-child(5n) {
        grid-column: span 1;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .floating-elements {
        display: none;
    }

    .bento-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas: none;
    }

    .repo-card:nth-child(3n),
    .repo-card:nth-child(5n) {
        grid-row: span 1;
        grid-column: span 1;
    }

    .floating-laptop-container {
        display: none;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .about-section,
    .repos-section,
    .activity-section,
    .contact-section {
        padding: 6rem 0;
    }

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

    .skills-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-center {
        order: -1;
    }

    .terminal-window {
        width: 90%;
        max-width: 500px;
        right: 5%;
        height: 350px;
    }
}

/* Large Mobile / Small Tablet */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor-trail,
    .cursor-glow {
        display: none;
    }

    .hero-content {
        padding: 1rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .social-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .bento-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .repo-card:nth-child(3n),
    .repo-card:nth-child(5n) {
        grid-row: span 1;
        grid-column: span 1;
    }

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

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
    }

    .container {
        padding: 0 1rem;
    }

    .activity-content {
        gap: 2rem;
    }

    .contribution-grid {
        grid-template-columns: repeat(26, 1fr);
        gap: 2px;
    }

    .contribution-day {
        width: 8px;
        height: 8px;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-subtitle {
        height: auto;
        min-height: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-section {
        min-height: 90vh;
    }

    .profile-container {
        margin-bottom: 2rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .hologram-lines {
        display: none;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .about-section,
    .repos-section,
    .activity-section,
    .contact-section {
        padding: 4rem 0;
    }

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

    .section-title {
        flex-direction: column;
        gap: 0.5rem;
    }

    .repo-card {
        padding: 1.5rem;
    }

    .repo-header {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .repo-avatar {
        width: 40px;
        height: 40px;
    }

    .repo-title {
        font-size: 1.1rem;
        flex: 1;
        min-width: 150px;
    }

    .repo-stats {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .skill-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .commits-container {
        padding: 1rem;
        max-height: 300px;
    }

    .commit-item {
        padding: 0.8rem;
        flex-wrap: wrap;
    }

    .commit-avatar {
        width: 32px;
        height: 32px;
    }

    .commit-message {
        font-size: 0.9rem;
    }

    .commit-details {
        flex-direction: column;
        gap: 0.3rem;
        font-size: 0.8rem;
    }

    .snake-container {
        padding: 1rem;
    }

    .subsection-title {
        font-size: 1.3rem;
        flex-wrap: wrap;
    }

    .contact-method {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .method-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

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

    .method-info h4 {
        font-size: 1.1rem;
    }

    .method-info span {
        font-size: 0.85rem;
    }

    .footer {
        padding: 2rem 0;
    }

    .footer-links a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .footer-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .close-modal {
        top: 0.5rem;
        right: 1rem;
        font-size: 1.5rem;
    }

    .contribution-grid {
        grid-template-columns: repeat(13, 1fr);
    }

    .contribution-day {
        width: 6px;
        height: 6px;
    }

    .terminal-window {
        width: calc(100% - 2rem);
        right: 1rem;
        bottom: 1rem;
        height: 300px;
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 0.75rem;
    }

    .hero-content {
        padding: 0.75rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .repo-card {
        padding: 1rem;
    }

    .repo-stats {
        gap: 0.75rem;
    }

    .skill-category {
        padding: 1rem;
    }

    .skill-items {
        gap: 0.5rem;
    }

    .skill-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .footer-links {
        gap: 0.75rem;
    }

    .footer-links a {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .profile-container {
        margin-bottom: 1rem;
    }

    .profile-image {
        width: 80px;
        height: 80px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

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

    .hero-description {
        display: none;
    }

    .hero-buttons {
        flex-direction: row;
        margin-bottom: 1rem;
    }

    .social-links {
        margin-top: 0.5rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}

/* Selection Styling */
::selection {
    background: var(--primary-green);
    color: var(--bg-dark);
}

::-moz-selection {
    background: var(--primary-green);
    color: var(--bg-dark);
}

/* Print Styles */
@media print {

    .matrix-background,
    .cursor-trail,
    .cursor-glow,
    .floating-elements,
    .scroll-indicator,
    .terminal-window {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}