:root {
    --bg-main: #0a0512;
    --bg-card: rgba(28, 16, 50, 0.4);
    --text-dark: #F8F5FF;
    --text-muted: #B7A6D9;
    --primary-accent: #E5B80B;
    --secondary-accent: #8b5cf6; 
    --primary-dark: #1b0e2d;
    
    --font-main: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    --speed: 0.4s;
}



* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-main); }
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: rgba(229, 184, 11, 0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-accent); }

body { background-color: var(--bg-main); color: var(--text-dark); overflow-x: hidden; position: relative; z-index: 0; }
.scroll-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: var(--primary-accent); z-index: 99999; box-shadow: 0 0 15px var(--primary-accent); transition: width 0.1s ease-out; }



body::before, body::after {
    content: ''; position: fixed; width: 60vw; height: 60vw; max-width: 600px; max-height: 600px; border-radius: 50%; filter: blur(150px); z-index: -1; animation: floatOrb 12s infinite alternate ease-in-out; pointer-events: none;
}
body::before { background: rgba(229, 184, 11, 0.08); top: -10%; left: -10%; }
body::after { background: rgba(147, 112, 219, 0.08); bottom: -10%; right: -10%; animation-delay: -6s; }
@keyframes floatOrb { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(60px, 60px) scale(1.2); } }

section { padding: 120px 10%; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; position: relative; }
h1, h2, h3 { color: var(--text-dark); }
p { color: var(--text-muted); line-height: 1.6; font-size: 1rem; }

.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 4rem; position: relative; }
.section-title::after { content: ''; width: 80px; height: 4px; background: var(--primary-accent); position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); border-radius: 2px; box-shadow: 0 0 10px var(--primary-accent); }

@media (pointer: fine) { body { cursor: none; } }
.cursor-dot { width: 8px; height: 8px; background: var(--primary-accent); position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 9999; pointer-events: none; box-shadow: 0 0 10px var(--primary-accent); display: none; }
.cursor-outline { width: 40px; height: 40px; border: 2px solid rgba(229, 184, 11, 0.5); position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 9998; pointer-events: none; transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease; display: none; }
.cursor-hovering { width: 60px; height: 60px; background: rgba(229, 184, 11, 0.1); border-color: var(--primary-accent); backdrop-filter: blur(2px); }
@media (min-width: 992px) { .cursor-dot, .cursor-outline { display: block; } }

nav { position: fixed; top: 0; width: 100%; padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; background: rgba(10, 5, 18, 0.85); backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 4px 30px rgba(0,0,0,0.5); z-index: 1000; }

.logo { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); text-decoration: none; z-index: 1002; }
.logo span { color: var(--primary-accent); text-shadow: 0 0 10px rgba(229, 184, 11, 0.5); }


.nav-right-wrapper { display: flex; align-items: center; gap: 2rem; z-index: 1002; }

.nav-menu { display: flex; align-items: center; }
.nav-links { display: flex; list-style: none; gap: 1.5rem; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; transition: var(--speed); position: relative; font-size: 0.95rem; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; background: var(--primary-accent); bottom: -5px; left: 50%; transform: translateX(-50%); transition: 0.3s ease; }
.nav-links a:hover { color: var(--primary-accent); text-shadow: 0 0 8px rgba(229, 184, 11, 0.5); }
.nav-links a:hover::after { width: 100%; }

.lang-container { position: relative; display: inline-block; }
#lang-select { appearance: none; -webkit-appearance: none; background-color: rgba(255, 255, 255, 0.1); color: var(--primary-accent); border: 1px solid rgba(229, 184, 11, 0.4); padding: 6px 30px 6px 12px; border-radius: 6px; font-weight: 700; cursor: pointer; transition: var(--speed); outline: none; font-size: 0.9rem; }
#lang-select option { background-color: var(--bg-main); color: var(--text-dark); }
.lang-container::after { content: '\f0d7'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--primary-accent); font-size: 0.8rem; }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 26px; height: 3px; background: var(--text-dark); border-radius: 3px; transition: 0.4s all ease; }

#home { flex-direction: row; align-items: center; gap: 2rem; padding-top: 120px; }
.particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: -1; pointer-events: none; }
.particle { position: absolute; bottom: -10px; width: 4px; height: 4px; background: var(--primary-accent); border-radius: 50%; box-shadow: 0 0 10px var(--primary-accent); opacity: 0; animation: rise 10s infinite linear; }
.particle:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; } .particle:nth-child(2) { left: 30%; animation-duration: 12s; animation-delay: 2s; } .particle:nth-child(3) { left: 50%; animation-duration: 10s; animation-delay: 4s; } .particle:nth-child(4) { left: 70%; animation-duration: 14s; animation-delay: 1s; } .particle:nth-child(5) { left: 90%; animation-duration: 9s; animation-delay: 3s; }
@keyframes rise { 0% { bottom: -10px; opacity: 0; transform: translateX(0); } 50% { opacity: 0.5; transform: translateX(20px); } 100% { bottom: 100%; opacity: 0; transform: translateX(-20px); } }

.hero-text { flex: 1; }
.hero-text h2 { font-family: var(--font-code); color: var(--primary-accent); font-size: 1.1rem; margin-bottom: 10px; letter-spacing: 1px; text-transform: uppercase;}
.hero-text h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 15px; }
.hero-text h1 span:last-child { background: linear-gradient(to right, #E5B80B, #FFFDE4, #E5B80B); background-size: 200% auto; color: transparent; -webkit-background-clip: text; background-clip: text; animation: shineText 3s linear infinite; }
@keyframes shineText { to { background-position: 200% center; } }

.typing-container { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 30px; min-height: 35px; }
.typing-cursor { display: inline-block; width: 3px; background-color: var(--primary-accent); animation: blink 0.8s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.btn { padding: 14px 35px; background: var(--primary-accent); color: #000; text-decoration: none; border-radius: 30px; font-weight: 700; display: inline-block; border: 2px solid var(--primary-accent); box-shadow: 0 0 15px rgba(229, 184, 11, 0.2); transition: all 0.3s; }
@media (min-width: 992px) { .btn:hover { background: transparent; color: var(--primary-accent); box-shadow: 0 0 25px rgba(229, 184, 11, 0.4); } }

.hero-visual { flex: 1; display: flex; justify-content: center; perspective: 1000px; }
.interactive-card { width: 350px; height: 350px; background: rgba(255,255,255,0.03); backdrop-filter: blur(12px); border: 1px solid rgba(229, 184, 11, 0.3); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 50px rgba(0,0,0,0.5), 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(229, 184, 11, 0.1); transition: transform 0.1s ease-out; transform-style: preserve-3d; }
.interactive-card i { font-size: 7rem; color: var(--primary-accent); margin-bottom: 20px; transform: translateZ(60px); text-shadow: 0 10px 30px rgba(229,184,11,0.5); }
.interactive-card span { font-family: var(--font-code); font-weight: 600; color: var(--text-dark); transform: translateZ(40px); background: rgba(0,0,0,0.5); padding: 6px 15px; border-radius: 20px; font-size: 0.95rem; text-align: center; max-width: 85%; word-wrap: break-word; line-height: 1.3;}


.spotlight-card { position: relative; overflow: hidden; background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.05); border-top: 1px solid rgba(255, 255, 255, 0.15); border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: transform 0.3s ease, border-color 0.3s ease; }

@media (min-width: 992px) {
    .spotlight-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(229, 184, 11, 0.12), transparent 40%); z-index: 0; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
    .spotlight-card:hover { transform: translateY(-5px); border-color: rgba(229, 184, 11, 0.4); box-shadow: 0 15px 35px rgba(0,0,0,0.6); }
    .spotlight-card:hover::before { opacity: 1; }
}
.spotlight-card > * { position: relative; z-index: 1; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.team-card { padding: 2.5rem 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.avatar-placeholder { width: 100px; height: 100px; border-radius: 50%; background: rgba(229, 184, 11, 0.1); border: 2px solid var(--primary-accent); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--primary-accent); margin-bottom: 1.5rem; }
.team-card h3 { font-size: 1.5rem; margin-bottom: 5px; }
.team-role { font-family: var(--font-code); color: var(--secondary-accent); font-size: 0.85rem; margin-bottom: 15px; display: block; font-weight: 600;}
.team-bio { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.team-socials { display: flex; gap: 15px; justify-content: center; }
.team-socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); color: var(--text-dark); display: flex; align-items: center; justify-content: center; text-decoration: none; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; }
.team-socials a:hover { background: var(--primary-accent); color: #000; box-shadow: 0 0 15px var(--primary-accent); border-color: var(--primary-accent); }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.skill-card { padding: 2rem 1.5rem; }
.skill-icon { width: 45px; height: 45px; margin-bottom: 1rem; background: rgba(229, 184, 11, 0.1); display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 1.3rem; color: var(--primary-accent); border: 1px solid rgba(229, 184, 11, 0.2); transition: 0.5s; }
.skill-card:hover .skill-icon { background: var(--primary-accent); color: #000; transform: scale(1.1) rotate(5deg); box-shadow: 0 0 20px var(--primary-accent); }
.skill-card h3 { font-size: 1.1rem; margin-bottom: 8px;}

.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.case-card { padding: 2rem; display: flex; flex-direction: column; height: 100%; }
.case-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.case-header i { font-size: 1.5rem; color: #ff5f56; }
.case-header h3 { font-size: 1.3rem; margin: 0; }
.badge { display: inline-block; padding: 4px 10px; font-size: 0.7rem; font-weight: 700; border-radius: 6px; font-family: var(--font-code); margin-bottom: 8px; margin-top: 10px;}
.badge-problem { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-solution { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.case-text { font-size: 0.9rem; margin-bottom: 10px; color: var(--text-muted); line-height: 1.5; }
.tech-stack { margin-top: auto; padding-top: 15px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: rgba(139, 92, 246, 0.1); color: var(--secondary-accent); border: 1px solid rgba(139, 92, 246, 0.3); padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-family: var(--font-code); }

.contact-box { padding: 3rem 2rem; border-radius: 20px; text-align: center; max-width: 800px; margin: 0 auto; }
footer { text-align: center; padding: 2rem; background: #05020a; color: var(--text-muted); font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.05); }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 992px) {
    #home { flex-direction: column; text-align: center; padding-top: 140px; }
    .hero-visual { margin-top: 2rem; }
}

@media (max-width: 768px) {

    section { padding: 75px 5%; min-height: auto; }
    .section-title { font-size: 2rem; margin-bottom: 2.5rem; }
    

    nav { padding: 15px 5%; }
    .nav-right-wrapper { gap: 15px; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; 
        background: rgba(10, 5, 18, 0.98); backdrop-filter: blur(20px); 
        display: flex; flex-direction: column; justify-content: center; 
        align-items: center; transition: right 0.4s ease-in-out; margin: 0;
    }
    .nav-menu.active { right: 0; }
    .nav-links { flex-direction: column; gap: 2.5rem; text-align: center; }
    .nav-links a { font-size: 1.6rem; }
    
    .hamburger { display: flex; z-index: 1002; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--primary-accent); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--primary-accent); }
    
    #home { padding-top: 120px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text h2 { font-size: 0.9rem; }
    .typing-container { font-size: 1.1rem; margin-bottom: 25px; }
    

    .interactive-card { width: 230px; height: 230px; }
    .interactive-card i { font-size: 5rem; margin-bottom: 15px;}
    .interactive-card span { font-size: 0.8rem; padding: 4px 10px; }

    .team-grid, .skills-grid, .work-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .case-card { padding: 1.5rem; }
    .team-card { padding: 2rem 1rem; }
    .contact-box { padding: 2.5rem 1.5rem; }
    .contact-box h3 { font-size: 1.5rem; line-height: 1.4; margin-bottom: 20px;}
}


@media (max-width: 380px) {
    .logo { font-size: 1.3rem; }
    #lang-select { padding: 5px 22px 5px 8px; font-size: 0.8rem; }
    .hero-text h1 { font-size: 2.2rem; }
    .interactive-card { width: 200px; height: 200px; }
    .interactive-card span { font-size: 0.75rem; }
}