:root {
    --bg-dark: #230c3d; /* Elegant deep purple */
    --glass-bg: rgba(45, 18, 77, 0.5); /* Purple tinted glass */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    
    --neon-cyan: #00e5ff;
    --neon-purple: #d77aff; /* Made slightly lighter to pop on purple */
    
    --text-main: #f8fafc;
    --text-dim: #b8a3d6; /* Slightly purple tinted gray for muted text */
    
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection { background: var(--neon-cyan); color: #000; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Utilities */
.mono { font-family: var(--font-mono); }
.neon-cyan { color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }
.neon-purple { color: var(--neon-purple); text-shadow: 0 0 10px rgba(181, 60, 255, 0.5); }
.gradient-text {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }

/* Particles Container */
#particles-js { position: fixed; width: 100vw; height: 100vh; top: 0; left: 0; z-index: -1; }

/* 3D Glass Card Base */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transition: border-color 0.4s, box-shadow 0.4s;
}
.glass-card:hover {
    border-color: var(--glass-highlight);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Nav */
.glass-nav {
    position: fixed; width: 100%; top: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%;
    background: rgba(3, 5, 16, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}
.logo-container { display: flex; align-items: center; gap: 15px; }

/* 3D CSS Logo Cube */
.logo-cube {
    width: 30px; height: 30px; position: relative;
    transform-style: preserve-3d;
    animation: spin 10s infinite linear;
}
.cube-face {
    position: absolute; width: 30px; height: 30px;
    background: rgba(0, 229, 255, 0.1); border: 1px solid var(--neon-cyan);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 12px; font-weight: bold; color: var(--neon-cyan);
}
.cube-face.front  { transform: translateZ(15px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(15px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(15px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(15px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(15px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(15px); }
@keyframes spin { 0% { transform: rotateX(0) rotateY(0); } 100% { transform: rotateX(360deg) rotateY(360deg); } }

.logo-text { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a:not(.btn-glow) { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-dim); }
.nav-links a:not(.btn-glow):hover { color: var(--neon-cyan); }
.btn-glow {
    border: 1px solid var(--neon-cyan); color: var(--neon-cyan);
    padding: 0.6rem 1.2rem; border-radius: 8px; font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2), inset 0 0 10px rgba(0, 229, 255, 0.1);
}
.btn-glow:hover { background: var(--neon-cyan); color: #000; box-shadow: 0 0 20px var(--neon-cyan); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding-top: 80px; }
.hero-content {
    max-width: 1000px; text-align: center;
    padding: 4rem 2rem;
    transform-style: preserve-3d;
}
.status-indicator {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(0, 229, 255, 0.1); border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 0.5rem 1.2rem; border-radius: 30px; margin-bottom: 2rem;
    color: var(--neon-cyan); font-size: 0.8rem;
    transform: translateZ(20px);
}
.pulse-dot { width: 8px; height: 8px; background: var(--neon-cyan); border-radius: 50%; box-shadow: 0 0 10px var(--neon-cyan); animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

.hero-title { font-size: clamp(3rem, 5vw, 5rem); font-weight: 900; line-height: 1.1; margin-bottom: 2rem; transform: translateZ(50px); }
.hero-desc { font-size: 1.2rem; color: var(--text-dim); max-width: 700px; margin: 0 auto 3rem; transform: translateZ(30px); }

.hero-buttons { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 5rem; transform: translateZ(40px); }
.btn-solid {
    background: linear-gradient(45deg, var(--neon-cyan), #0088ff); color: #000;
    padding: 1rem 2.5rem; border-radius: 8px; font-weight: 800; font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.3);
}
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 229, 255, 0.5); }
.btn-outline-glow {
    border: 2px solid #25D366; color: #25D366;
    padding: 1rem 2.5rem; border-radius: 8px; font-weight: 800; font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.2);
}
.btn-outline-glow:hover { background: #25D366; color: #000; box-shadow: 0 0 25px rgba(37, 211, 102, 0.6); }

.hero-stats { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; border-top: 1px solid var(--glass-border); padding-top: 3rem; transform: translateZ(20px); }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 800; line-height: 1; margin-bottom: 0.5rem; }
.stat-text { font-size: 0.9rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* Sections */
.section-container { max-width: 1400px; margin: 0 auto; padding: 120px 5%; }
.section-header { margin-bottom: 4rem; max-width: 800px; }
.section-header span.mono { font-size: 1.1rem; display: block; margin-bottom: 1rem; }
.section-header h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
.section-header p { font-size: 1.2rem; color: var(--text-dim); }
.center-align { margin: 0 auto 4rem; text-align: center; }

/* Projects Layout */
.projects-layout { display: flex; flex-direction: column; gap: 3rem; }
.project-card { display: flex; flex-direction: column; overflow: hidden; }
.card-top {
    background: rgba(0,0,0,0.5); padding: 1rem 1.5rem; border-bottom: 1px solid var(--glass-border);
    display: flex; justify-content: space-between; align-items: center;
}
.mac-buttons { display: flex; gap: 8px; }
.mac-buttons span { width: 12px; height: 12px; border-radius: 50%; background: #4b5563; }
.mac-buttons span:nth-child(1) { background: #ef4444; }
.mac-buttons span:nth-child(2) { background: #eab308; }
.mac-buttons span:nth-child(3) { background: #22c55e; }
.live-badge { color: #22c55e; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; }
.card-inner { padding: 3rem; transform: translateZ(30px); }
.card-inner h3 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; color: #fff; }
.tagline { color: var(--neon-cyan); font-size: 1.1rem; margin-bottom: 2rem; font-weight: 500; }
.info-box { background: rgba(0,0,0,0.3); padding: 1.2rem 1.5rem; border-left: 4px solid var(--neon-purple); border-radius: 0 8px 8px 0; margin-bottom: 2rem; font-size: 1.05rem; }
.details { font-size: 1.05rem; color: rgba(248, 250, 252, 0.9); }
.details strong { color: var(--neon-cyan); }
.details ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 12px; }
.details li { position: relative; padding-left: 24px; color: var(--text-dim); }
.details li::before { content: "▹"; position: absolute; left: 0; color: var(--neon-purple); font-weight: bold; }

.tags-container { display: flex; flex-wrap: wrap; gap: 12px; margin: 3rem 0; }
.code-tag { background: rgba(0, 229, 255, 0.05); border: 1px solid rgba(0, 229, 255, 0.2); color: var(--neon-cyan); padding: 6px 14px; border-radius: 6px; font-family: var(--font-mono); font-size: 0.85rem; }

.card-link {
    display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700;
    color: #fff; border-bottom: 2px solid var(--neon-purple); padding-bottom: 4px;
}
.card-link:hover { color: var(--neon-purple); }

/* Mentorship */
.mentorship-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) {
    .mentorship-layout { grid-template-columns: 1fr 1fr; }
    .feature-mentor { grid-column: 1 / 3; }
}
.mentor-standard { padding: 3rem; }
.feature-mentor .card-inner { padding: 4rem; transform: translateZ(40px); }
.mentor-flex { display: flex; flex-direction: column; gap: 2rem; align-items: center; }
@media (min-width: 768px) {
    .mentor-flex { flex-direction: row; justify-content: space-between; }
    .mentor-text { flex: 1; }
    .mentor-image { flex: 0 0 350px; }
}
.student-img { width: 100%; border-radius: 12px; border: 2px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,0.5); object-fit: cover; }
.icon-3d { font-size: 3.5rem; color: var(--neon-purple); margin-bottom: 2rem; text-shadow: 0 10px 20px rgba(181, 60, 255, 0.4); }
.feature-mentor h3, .mentor-standard h3 { font-size: 2rem; margin-bottom: 1rem; }
.feature-mentor p, .mentor-standard p { font-size: 1.1rem; color: var(--text-dim); margin-bottom: 1.5rem; }
.btn-youtube { background: rgba(255, 0, 0, 0.1); border: 1px solid #ff0000; color: #ff0000; padding: 1rem 2rem; border-radius: 8px; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; }
.btn-youtube:hover { background: #ff0000; color: #fff; box-shadow: 0 0 20px rgba(255,0,0,0.4); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.about-info h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 2rem; }
.glass-text-box { background: rgba(0,0,0,0.3); padding: 2.5rem; border-radius: 12px; border-left: 4px solid var(--neon-cyan); margin-bottom: 2rem; }
.glass-text-box p { font-size: 1.15rem; color: rgba(248,250,252,0.9); margin-bottom: 1.5rem; }
.glass-text-box p:last-child { margin-bottom: 0; }
.practice-repos h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.practice-repos p { color: var(--text-dim); margin-bottom: 1.5rem; font-size: 1.05rem; }

/* Code Terminal */
.code-terminal { padding: 3rem 2rem; font-family: var(--font-mono); font-size: 1rem; line-height: 1.8; background: #02040a; border-radius: 0 0 16px 16px; }
.code-keyword { color: #ff7b72; }
.code-variable { color: #79c0ff; }
.code-operator { color: #d2a8ff; }
.code-string { color: #a5d6ff; }
.indent { padding-left: 2rem; }
.blinking-cursor { animation: blink 1s step-end infinite; color: var(--neon-cyan); }
@keyframes blink { 50% { opacity: 0; } }

/* Contact Grid */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.contact-box { padding: 2rem; display: flex; align-items: center; gap: 1.5rem; text-decoration: none; transform-style: preserve-3d; }
.contact-box i { font-size: 2.5rem; color: var(--text-muted); transform: translateZ(20px); transition: 0.3s; }
.cb-info { display: flex; flex-direction: column; text-align: left; transform: translateZ(30px); }
.cb-info span { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 4px; }
.cb-info strong { font-size: 1.3rem; color: var(--text-main); font-weight: 800; }
.contact-box:hover i { color: var(--neon-cyan); }
.wa-box i { color: #25D366; }
.wa-box:hover i { color: #25D366; text-shadow: 0 0 15px rgba(37,211,102,0.5); }

/* Footer */
.glass-footer { text-align: center; padding: 3rem; border-top: 1px solid var(--glass-border); margin-top: 5rem; background: rgba(3,5,16,0.5); backdrop-filter: blur(10px); }
.glass-footer p { color: var(--text-dim); }

/* Floating WA */
.floating-wa {
    position: fixed; bottom: 30px; right: 30px; z-index: 100;
    width: 65px; height: 65px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transform-style: preserve-3d;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-buttons { flex-direction: column; }
    .card-inner { padding: 2rem; }
    .info-box { padding: 1rem; }
}
