:root {
    --bg: #0d1117;
    --surface: #161b22;
    --border: rgba(255, 255, 255, 0.06);
    --amber: #d4823a;
    --amber-dim: rgba(212, 130, 58, 0.15);
    --slate: #8b95a1;
    --text: #cdd5df;
    --card: rgba(22, 27, 34, 0.75);

    --f-head: 'Syne', sans-serif;
    --f-body: 'Space Grotesk', sans-serif;
    --f-mono: 'Fragment Mono', monospace;
}

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

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

body * {
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--amber);
    color: #0d1117;
}

::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 3px;
}

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

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--amber);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--amber);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.cursor-outline.hover {
    width: 50px;
    height: 50px;
    background: var(--amber-dim);
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--f-head);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--amber);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 15px var(--amber);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--slate);
    font-family: var(--f-body);
    font-weight: 500;
    font-size: .8rem;
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
    color: var(--amber);
    text-shadow: 0 0 10px var(--amber);
}

.cta-nav {
    border: 1px solid var(--amber);
    padding: .5rem 1rem;
    border-radius: 4px;
    color: var(--amber) !important;
}

.cta-nav:hover {
    background: var(--amber);
    color: #0d1117 !important;
}

section {
    padding: 8rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--f-head);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 4px;
    color: var(--amber);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('hero-bg.png') center/cover;
    position: relative;
    padding: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--bg), rgba(13, 17, 23, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.glitch {
    font-family: var(--f-head);
    font-weight: 800;
    font-size: 5rem;
    letter-spacing: -2px;
    position: relative;
    margin-bottom: 1rem;
}

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

.glitch:hover::before {
    animation: g1 2s infinite;
    text-shadow: 2px 0 #7ea8c9;
    clip-path: inset(40% 0 30% 0);
}

.glitch:hover::after {
    animation: g2 2s infinite;
    text-shadow: -2px 0 var(--amber);
    clip-path: inset(10% 0 80% 0);
}

@keyframes g1 {
    0% { transform: translate(2px); }
    50% { transform: translate(-2px); }
}

@keyframes g2 {
    0% { transform: translate(-2px); }
    50% { transform: translate(2px); }
}

.subtitle {
    font-family: var(--f-mono);
    color: var(--amber);
    margin-bottom: 2.5rem;
    height: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    min-height: 44px;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    border-radius: 4px;
    margin: 0 .5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.3s ease;
}

.btn-primary {
    background: var(--amber);
    color: #0d1117;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--amber-dim);
}

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

.btn-secondary:hover {
    border-color: #7ea8c9;
    color: #7ea8c9;
    background: rgba(126, 168, 201, 0.1);
}

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

.glass {
    background: var(--card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    border-radius: 12px;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.glass:hover {
    border-color: var(--amber);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
}

.card-icon {
    font-family: var(--f-mono);
    font-size: 3rem;
    color: rgba(212, 130, 58, 0.12);
    margin-bottom: 1rem;
}

.glass h3 {
    font-family: var(--f-head);
    color: var(--amber);
    margin-bottom: .5rem;
    font-size: 1.5rem;
}

.glass p {
    color: var(--slate);
    font-size: .9rem;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    color: var(--amber);
    margin-bottom: .5rem;
    letter-spacing: 2px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-height: 44px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    padding: 1rem;
    color: var(--text);
    font-family: var(--f-body);
    border-radius: 4px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--amber);
    background: var(--amber-dim);
}

.btn-block {
    width: 100%;
    border: none;
}

/* Mobile Navigation & Responsive Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--amber);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(13, 17, 23, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 100;
    }

    .nav-links.active {
        right: 0;
    }

    .glitch {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 0.9rem;
        height: auto;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 2rem;
    }
    
    .hero-buttons .btn {
        margin: 0;
        width: 100%;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .glass {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--amber);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.github-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.4s ease;
}

.github-link:hover {
    color: #7ea8c9;
    text-shadow: 0 0 10px #7ea8c9;
}

.github-link:hover svg {
    transform: translate(3px, -3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    opacity: 0.6;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 2px solid var(--amber);
    border-radius: 10px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: var(--amber);
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--amber);
    border-right: 2px solid var(--amber);
    transform: rotate(45deg);
    margin: -5px;
    animation: scroll-arrow 2s infinite;
}

.arrow span:nth-child(2) { animation-delay: 0.2s; }

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

@keyframes scroll-arrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-10px, -10px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(10px, 10px); }
}

.hero-projects {
    background: url('projects-bg.png') center/cover;
    height: 100vh;
}

#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .cursor-dot, .cursor-outline { display: none; }
}

@media (pointer: coarse) {
    body, body * {
        cursor: auto !important;
    }
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
}
