:root {
    --bg: #0a192f;
    --bg-light: #112240;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --accent: #64ffda;
    --glass: rgba(10, 25, 47, 0.85);
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
}

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

html { scroll-behavior: smooth; }

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

.no-scroll { overflow: hidden; height: 100vh; }

#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #020c1b;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader-content { text-align: center; width: 300px; }
.loader-text {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}
.progress-bar {
    width: 100%; height: 4px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}
.progress {
    width: 0%; height: 100%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: loadBar 3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.loader-status {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.scanner-line {
    width: 100%; height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    margin-bottom: 20px;
    animation: scan 1.5s infinite;
}
.loader-hidden { opacity: 0; visibility: hidden; }

@keyframes loadBar { 0% { width: 0%; } 50% { width: 60%; } 100% { width: 100%; } }
@keyframes scan { 0% { transform: translateX(-100%); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }

.bg-orb {
    position: fixed; border-radius: 50%; filter: blur(80px);
    z-index: -1; opacity: 0.4;
    animation: float 10s infinite alternate;
}
.orb-1 { width: 300px; height: 300px; background: #64ffda; top: -50px; left: -50px; }
.orb-2 { width: 400px; height: 400px; background: #2b6cb0; bottom: -100px; right: -100px; animation-delay: -5s; }
@keyframes float { from { transform: translate(0, 0); } to { transform: translate(30px, 50px); } }

.glass-nav {
    position: fixed; top: 0; width: 100%; height: 80px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo { font-family: var(--font-mono); color: var(--accent); font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a {
    color: var(--text-primary); text-decoration: none;
    font-family: var(--font-mono); font-size: 0.9rem; transition: var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.btn-glow { border: 1px solid var(--accent); padding: 0.5rem 1rem; border-radius: 4px; color: var(--accent) !important; }
.btn-glow:hover { background: rgba(100, 255, 218, 0.1); box-shadow: 0 0 15px rgba(100, 255, 218, 0.2); }
.menu-btn { display: none; color: var(--accent); font-size: 1.5rem; cursor: pointer; }

.hero { position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; padding: 0 10%; }
.mono-text { font-family: var(--font-mono); color: var(--accent); font-size: 1rem; margin-bottom: 1rem; display: block; }
.hero h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 10px; color: var(--text-primary); }
.hero h2 { font-size: 3rem; color: var(--text-secondary); margin-bottom: 20px; height: 3.5rem; }
.bio-text { max-width: 500px; color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 2rem; }
.btn-primary {
    display: inline-block; padding: 1rem 2rem;
    border: 1px solid var(--accent); color: var(--accent);
    text-decoration: none; border-radius: 4px;
    font-family: var(--font-mono); transition: var(--transition);
    margin-right: 1rem; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); background: rgba(100, 255, 218, 0.1); }
.btn-social { color: var(--text-primary); font-size: 1.5rem; margin-left: 1rem; transition: var(--transition); }
.btn-social:hover { color: var(--accent); transform: translateY(-3px); }

.section { padding: 100px 10%; }
.section-heading { display: flex; align-items: center; font-size: 2rem; margin-bottom: 3rem; color: var(--text-primary); }
.section-heading::after {
    content: ""; display: block; width: 300px; height: 1px;
    background: rgba(255,255,255,0.1); margin-left: 20px;
}

.hidden-element { opacity: 0; transform: translateY(30px); transition: 1s cubic-bezier(0.22, 1, 0.36, 1); }
.show-element { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

.typewriter { border-right: 2px solid var(--accent); white-space: nowrap; overflow: hidden; animation: blink 0.7s step-end infinite; }
@keyframes blink { 50% { border-color: transparent; } }

.about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 50px; align-items: center; }
.code-card { background: #1e1e1e; border-radius: 8px; padding: 1.5rem; border: 1px solid #333; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.code-header { display: flex; gap: 8px; margin-bottom: 1rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
pre { color: #a9b7c6; font-family: var(--font-mono); font-size: 0.9rem; overflow-x: auto; }
.experience-badge { margin-top: 20px; font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-secondary); }
.highlight { color: var(--accent); }

.skills-wrapper { display: flex; flex-wrap: wrap; gap: 1rem; }
.skill-item {
    background: var(--bg-light); color: var(--accent);
    padding: 0.5rem 1rem; font-family: var(--font-mono);
    border-radius: 4px; font-size: 0.9rem;
    transition: var(--transition);
}
.skill-item:hover { transform: translateY(-3px); color: var(--bg); background: var(--accent); }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.project-card {
    background-color: var(--bg-light); border-radius: 8px;
    transition: var(--transition); cursor: pointer;
    position: relative;
}
.project-card:hover { transform: translateY(-10px); box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7); }
.card-inner { padding: 2rem; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.card-top { display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.folder-icon { color: var(--accent); font-size: 2.5rem; }
.links a { color: var(--text-primary); font-size: 1.2rem; margin-left: 10px; }
.links a:hover { color: var(--accent); }
.project-card h3 { margin-bottom: 10px; color: var(--text-primary); }
.project-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; }
.tech-stack { list-style: none; display: flex; flex-wrap: wrap; gap: 15px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); }

.text-center { text-align: center; }
.big-heading { font-size: 3rem; color: var(--text-primary); margin-bottom: 1rem; }
.contact-desc { max-width: 600px; margin: 0 auto 3rem auto; color: var(--text-secondary); }
.big-btn { padding: 1.25rem 2rem; font-size: 1rem; }
footer { padding: 2rem 0; text-align: center; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); }
.socials-footer { margin-top: 10px; }
.socials-footer a { color: var(--text-secondary); margin: 0 10px; font-size: 1.2rem; transition: var(--transition); }
.socials-footer a:hover { color: var(--accent); }

@media (max-width: 768px) {
    .hero { padding: 0 5%; justify-content: center; text-align: center; }
    .hero h1 { font-size: 3rem; }
    .hero h2 { font-size: 1.5rem; height: auto; margin-bottom: 1rem; }
    .nav-links { display: none; }
    .menu-btn { display: block; }
    .about-grid { grid-template-columns: 1fr; }
    .section-heading::after { width: 100px; }
}

.project-card {
    position: relative;
    background-color: rgba(17, 34, 64, 0.8);
    overflow: hidden;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(
        800px circle at var(--x) var(--y), 
        rgba(100, 255, 218, 0.15), 
        transparent 40%
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

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

.card-inner {
    position: relative;
    z-index: 1;
}