/* --- VARIABLES --- */
:root {
    --gold: #ffcc00;
    --black: #050505;
    --card-bg: rgba(20, 20, 20, 0.3);
    --text-main: #ffffff;
    --text-muted: #a1a1a1;
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; cursor: none; }
html { overflow-x: hidden; scroll-behavior: smooth; }

body {
    background-color: var(--black);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================
   BACKGROUND LAYERS (Orbs + Canvas)
   ========================================= */
.premium-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -4; overflow: hidden; background: #020202;
}
.bg-orb {
    position: absolute; filter: blur(90px); opacity: 0.5;
    animation: floatLiquidOrb 20s infinite alternate ease-in-out;
}
.orb-1 { width: 45vw; height: 45vw; background: rgba(255, 204, 0, 0.15); top: -10%; left: -10%; animation-duration: 25s; }
.orb-2 { width: 35vw; height: 35vw; background: rgba(179, 143, 0, 0.12); bottom: -10%; right: -10%; animation-duration: 30s; animation-direction: alternate-reverse; }
.orb-3 { width: 30vw; height: 30vw; background: rgba(255, 255, 255, 0.05); top: 30%; left: 40%; animation-duration: 22s; }

@keyframes floatLiquidOrb {
    0% { transform: translate(0, 0) scale(1); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { transform: translate(5vw, 5vh) scale(1.1); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { transform: translate(-5vw, 10vh) scale(0.9); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

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

#dragon-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; 
    background: transparent; pointer-events: none; 
    filter: drop-shadow(0 0 5px rgba(255,204,0,0.5)) drop-shadow(0 0 15px rgba(179,143,0,0.3));
}

/* --- SIMPLE CUSTOM CURSOR --- */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 9999; pointer-events: none;
}
.cursor-dot { width: 8px; height: 8px; background-color: var(--gold); }
.cursor-outline { width: 40px; height: 40px; border: 1px solid var(--gold); transition: width 0.2s, height 0.2s, background-color 0.2s; }
body.hovering .cursor-outline { width: 70px; height: 70px; background-color: rgba(255, 204, 0, 0.1); border-color: transparent; }

/* --- LOADER --- */
.loader-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--black); z-index: 10000; display: flex; justify-content: center; align-items: center; transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1); }
#logo-svg { width: 100px; height: 100px; }
#diamond-path { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: drawLine 2s ease-in-out forwards; }
#c-text { font-family: 'Cinzel', serif; font-size: 60px; font-weight: bold; fill: var(--gold); opacity: 0; transform-origin: center; transform: translate(28px, 72px); animation: fadeInC 1s ease-out forwards 1.8s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeInC { from { opacity: 0; transform: translate(28px, 80px); } to { opacity: 1; transform: translate(28px, 72px); } }
.loader-wrapper.loaded { transform: translateY(-100%); }

/* --- GLASSMORPHISM --- */
.glass-panel { background: var(--card-bg); backdrop-filter: var(--glass-blur); border: var(--glass-border); border-radius: 20px; }

main { opacity: 0; transition: opacity 1s ease 0.5s; }
main.visible { opacity: 1; }
.reveal-up { opacity: 0; transform: translateY(50px); }

/* --- NAVBAR --- */
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; position: fixed; width: 100%; top: 0; z-index: 1000; background: rgba(5, 5, 5, 0.2); backdrop-filter: var(--glass-blur); border-bottom: var(--glass-border); opacity: 0; }
.logo { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800; cursor: pointer; }
.logo span { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; position: relative; cursor: pointer; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--gold); transition: width 0.3s; }
.nav-links a:hover { color: var(--text-main); }
.nav-links a:hover::after { width: 100%; }

/* --- HERO --- */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; padding: 0 10%; padding-top: 80px; }
.hero-text h1 { font-size: 4.5rem; line-height: 1.1; font-weight: 800; margin-bottom: 25px; font-family: 'Poppins', sans-serif; }
.hero-text h1 span { color: transparent; -webkit-text-stroke: 1px var(--gold); position: relative; }
.hero-text h1 span::before { content: attr(data-text); position: absolute; left: 0; width: 0; height: 100%; color: var(--gold); overflow: hidden; border-right: 2px solid var(--gold); animation: fillText 4s linear infinite alternate; }
@keyframes fillText { 0% { width: 0; } 100% { width: 100%; } }

.typing-wrapper { font-size: 2rem; margin-bottom: 20px; font-weight: 600; color: var(--text-main); font-family: 'Inter', sans-serif; }
.typing-text { color: var(--gold); }
.cursor { display: inline-block; width: 3px; background-color: var(--gold); animation: blink 1s infinite; margin-left: 2px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; max-width: 600px; }

.location-time { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; font-size: 0.9rem; color: var(--gold); font-family: 'Inter', sans-serif; border: 1px solid rgba(255, 204, 0, 0.3); padding: 8px 15px; border-radius: 20px; width: fit-content; background: rgba(255, 204, 0, 0.05); }
.live-dot { width: 8px; height: 8px; background: red; border-radius: 50%; box-shadow: 0 0 10px red; animation: pulseRed 1.5s infinite; }
@keyframes pulseRed { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.cta-group { display: flex; gap: 20px; }
.btn { padding: 15px 35px; border-radius: 50px; font-weight: 700; font-size: 1rem; cursor: pointer; border: none; position: relative; overflow: hidden; z-index: 1; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.2s ease; }
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { box-shadow: 0 10px 20px rgba(255, 204, 0, 0.2); transform: translateY(-3px); }
.btn-secondary { background: transparent; border: 2px solid #333; color: var(--text-main); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.orbit-wrapper { width: 400px; height: 400px; position: relative; }
.tech-icon { position: absolute; font-size: 2rem; color: var(--gold); background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(5px); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gold); box-shadow: 0 0 15px rgba(255,204,0,0.2); transition: 0.3s;}
.tech-icon:hover { transform: scale(1.1); color: #fff;}

.stats-section { background: rgba(20, 20, 20, 0.3); backdrop-filter: var(--glass-blur); border-top: var(--glass-border); border-bottom: var(--glass-border); display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 60px 5%; margin-top: 50px; }
.stat-item h3 { font-size: 3rem; color: var(--gold); font-weight: 800; }
.stat-item p { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; }

section { padding: 100px 10%; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; }
.section-header p { color: var(--text-muted); margin-top: 10px; font-size: 1.1rem; }

.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-top: 40px; }
.about-card { padding: 40px; border-left: 5px solid var(--gold); transition: 0.3s; }
.about-card:hover { border-left-width: 10px; }
.about-card h3 { font-size: 2rem; margin-bottom: 20px; }
.about-card p { color: var(--text-muted); margin-bottom: 15px; }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.skill-item { padding: 15px; display: flex; align-items: center; gap: 15px; transition: 0.3s; }
.skill-item:hover { border-color: var(--gold); background: rgba(255,204,0,0.05); transform: translateY(-5px); }
.skill-item i { font-size: 1.5rem; color: var(--gold); }

.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; margin-top: 40px; }
.project-card { padding: 30px; transition: all 0.4s ease; display: flex; flex-direction: column; justify-content: space-between; height: 100%; transform-style: preserve-3d; }
.project-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(255, 204, 0, 0.15); }
.folder-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 20px; }
.project-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.project-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.card-meta { margin-top: 25px; display: flex; justify-content: space-between; align-items: center; border-top: var(--glass-border); padding-top: 20px; }
.tech-stack span { font-size: 0.8rem; background: rgba(0,0,0,0.3); padding: 5px 10px; border-radius: 20px; margin-right: 5px; color: #ccc; }
.project-link { color: var(--gold); font-weight: 600; font-size: 0.9rem; text-decoration: none; }

.contact-box { padding: 60px; text-align: center; max-width: 900px; margin: 0 auto; }
.contact-box h2 { font-size: 2.5rem; margin-bottom: 20px; }
.contact-box .email-link { font-size: 1.5rem; color: var(--gold); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; transition: 0.3s; word-break: break-all; }
.contact-box .email-link:hover { color: #fff; }

/* TOAST */
#toast { visibility: hidden; min-width: 250px; margin-left: -125px; background-color: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid var(--gold); color: #fff; text-align: center; border-radius: 50px; padding: 16px; position: fixed; z-index: 10000; left: 50%; bottom: 30px; font-size: 17px; box-shadow: 0 0 20px rgba(0,0,0,0.5); transform: translateY(100px); transition: all 0.5s; }
#toast.show { visibility: visible; transform: translateY(0); bottom: 50px; }

/* SIDEBAR & PROGRESS */
.sidebar-left { position: fixed; left: 40px; bottom: 0; width: 40px; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 20px; opacity: 0; }
.sidebar-line { width: 2px; height: 100px; background-color: var(--text-muted); }
.sidebar-icon { font-size: 1.5rem; color: var(--text-muted); transition: all 0.3s ease; text-decoration: none; }
.sidebar-icon:hover { color: var(--gold); transform: translateY(-3px); text-shadow: 0 0 10px rgba(255, 204, 0, 0.5); }

.progress-wrap { position: fixed; right: 30px; bottom: 30px; height: 50px; width: 50px; cursor: pointer; display: block; border-radius: 50px; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.1); z-index: 100; opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 200ms linear; }
.progress-wrap.active-progress { opacity: 1; visibility: visible; transform: translateY(0); }
.progress-wrap::after { position: absolute; font-family: 'Font Awesome 6 Free'; content: '\f062'; text-align: center; line-height: 50px; font-size: 18px; color: var(--gold); left: 0; top: 0; height: 50px; width: 50px; font-weight: 900; transition: all 200ms linear; }
.progress-wrap:hover::after { opacity: 0; }
.progress-wrap:hover::before { opacity: 1; }
.progress-wrap::before { position: absolute; font-family: 'Font Awesome 6 Free'; content: '\f062'; text-align: center; line-height: 50px; font-size: 18px; opacity: 0; background: var(--gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; left: 0; top: 0; height: 50px; width: 50px; font-weight: 900; transition: all 200ms linear; }
.progress-wrap svg path { fill: none; }
.progress-wrap svg.progress-circle path { stroke: var(--gold); stroke-width: 4; box-sizing: border-box; transition: all 200ms linear; }

footer { padding: 50px 5%; text-align: center; color: var(--text-muted); font-size: 0.9rem; background: rgba(5, 5, 5, 0.3); backdrop-filter: var(--glass-blur); border-top: var(--glass-border); }
.social-orbs-footer { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }
.social-circle { width: 50px; height: 50px; border-radius: 50%; background: rgba(20,20,20,0.5); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; border: var(--glass-border); text-decoration: none; transition: 0.3s; }
.social-circle:hover { border-color: var(--gold); color: var(--gold); transform: scale(1.1); }

@media (min-width: 901px) { .social-orbs-footer { display: none; } }

/* =========================================
   MOBILE RESPONSIVENESS (Refined & Fixed)
   ========================================= */
@media (max-width: 900px) {
    * { cursor: auto !important; }
    .cursor-dot, .cursor-outline { display: none !important; }
    
    .sidebar-left { display: none; } 
    .social-orbs-footer { display: flex; }
    
    /* Nav Design Fixed For Mobile - Clean Row */
    nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 15px; }
    .logo { font-size: 1.2rem; width: 100%; text-align: center; }
    .nav-right { width: 100%; justify-content: center; }
    .nav-links { gap: 15px; font-size: 0.85rem; }
    
    .hero { grid-template-columns: 1fr; text-align: center; padding: 140px 5% 50px 5%; }
    .hero-text h1 { font-size: 3rem; }
    .typing-wrapper { font-size: 1.5rem; }
    .location-time { margin: 0 auto 30px auto; }
    .cta-group { justify-content: center; flex-wrap: wrap; }
    .hero-visual { display: none; } 
    
    .stats-section { grid-template-columns: 1fr 1fr; gap: 30px; }
    .about-container { grid-template-columns: 1fr; }
    .grid-container { grid-template-columns: 1fr; }
    
    section { padding: 80px 5%; }
    .contact-box { padding: 40px 20px; }
    .contact-box h2 { font-size: 2rem; }
    .contact-box .email-link { font-size: 1.2rem; word-break: break-all; }
}
