:root {
    --bg-color: #040508;
    --surface-color: rgba(12, 14, 25, 0.7);
    --surface-border: rgba(0, 242, 254, 0.2);
    --text-primary: #e0e5ff;
    --text-secondary: #8a94b5;
    
    --accent-cyan: #00f2fe;
    --accent-purple: #9b51e0;
    --accent-magenta: #f093fb;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* Background Grids & Elements */
.bg-gradient {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at center, rgba(15, 20, 40, 0.8) 0%, var(--bg-color) 100%);
    z-index: -4; pointer-events: none;
}
.bg-grid {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 242, 254, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -3; pointer-events: none;
}

/* Typography Utils */
.sys-text {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; line-height: 1.2; }

.gradient-text {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Typewriter Effect CSS */
.typewriter-text {
    border-right: 2px solid var(--accent-cyan);
    white-space: nowrap;
    overflow: hidden;
    margin: 0;
    display: inline-block;
    animation: blink-cursor 0.75s step-end infinite;
    max-width: fit-content;
    text-shadow: 0 0 10px rgba(0,242,254,0.5);
}
@keyframes blink-cursor {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-cyan); }
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* HUD Elements */
.hud-border-bottom { border-bottom: 1px solid var(--surface-border); box-shadow: 0 4px 20px rgba(0, 242, 254, 0.05); }
.hud-border-top { border-top: 1px solid var(--surface-border); }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; padding: 1.2rem 0; z-index: 100; backdrop-filter: blur(10px); transition: var(--transition-medium); background: rgba(4, 5, 8, 0.8); }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { text-decoration: none; font-size: 1.2rem; font-weight: 700; color: #fff; }
.logo .dot { color: var(--accent-cyan); }
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-link { text-decoration: none; color: var(--text-secondary); font-family: var(--font-mono); font-size: 0.9rem; transition: var(--transition-fast); }
.nav-link:hover { color: var(--accent-cyan); text-shadow: 0 0 10px var(--accent-cyan); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.8rem 1.8rem; font-weight: 600; font-size: 0.9rem;
    text-decoration: none; cursor: pointer; transition: var(--transition-medium);
    font-family: var(--font-mono);
}
.btn-primary {
    background: rgba(0, 242, 254, 0.1); color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    position: relative; overflow: hidden;
    text-transform: uppercase; letter-spacing: 1px;
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--accent-cyan); opacity: 0.1; transform: scaleX(0); transform-origin: left; transition: var(--transition-fast);
}
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary:hover { box-shadow: 0 0 20px rgba(0, 242, 254, 0.4); }

.btn-secondary { background: rgba(12, 14, 25, 0.8); color: var(--text-primary); border: 1px dashed var(--text-secondary); }
.btn-secondary:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.1); }

/* Sections */
.section { padding: 4rem 0; }
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; }
.hero-label {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.4rem 1rem; background: rgba(0, 242, 254, 0.05);
    border-left: 3px solid var(--accent-cyan);
    font-size: 0.85rem; color: var(--accent-cyan); margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1.2rem; margin-bottom: 3rem; align-items: center; }

/* Social Icons */
.social-icon { 
    display: inline-flex; align-items: center; justify-content: center; 
    width: 45px; height: 45px; border-radius: 50%; 
    border: 1px solid rgba(255,255,255,0.2); color: #fff; 
    background: rgba(255,255,255,0.05); transition: var(--transition-medium); 
    font-size: 1.2rem; text-decoration: none; 
}
.social-icon:hover { 
    transform: scale(1.1); 
}
.social-icon.whatsapp:hover { background: #25D366; box-shadow: 0 0 15px #25D366; border-color: #25D366; color: #fff; }
.social-icon.linkedin:hover { background: #0077b5; box-shadow: 0 0 15px #0077b5; border-color: #0077b5; color: #fff; }

/* HUD Stats */
.hud-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hud-stat-box { display: flex; flex-direction: column; }
.stat-value { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 700; color: var(--text-primary); line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; }

/* Circular Profile Display */
.digital-profile-frame {
    position: relative;
    width: 320px; height: 320px;
    z-index: 5;
    background: rgba(4, 5, 8, 0.8);
    border: 3px solid var(--surface-border);
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
}
.digital-profile-frame::before {
    content: ''; position: absolute; top: -15px; left: -15px; right: -15px; bottom: -15px;
    border: 2px dashed rgba(0,242,254,0.4);
    border-radius: 50%;
    animation: rotate 15s linear infinite;
    z-index: -1;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }

.digital-img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 50%;
    filter: sepia(0.6) hue-rotate(190deg) saturate(180%) brightness(0.9) contrast(1.1);
    opacity: 0.95;
    border: 1px solid var(--accent-cyan);
}
.digital-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0, 242, 254, 0.25), transparent 2px);
    background-size: 100% 4px; pointer-events: none; z-index: 2;
    border-radius: 50%;
    animation: scan-flicker 4s infinite;
}
@keyframes scan-flicker { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } 20% { transform: translateY(2px); } }

/* Quantitative Boxes */
.quant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 2rem; }
.quant-box { 
    background: rgba(0, 242, 254, 0.05); 
    border: 1px solid rgba(0, 242, 254, 0.2); 
    padding: 1.5rem; text-align: center; 
    border-radius: 8px; transition: var(--transition-medium); 
}
.quant-box:hover { 
    border-color: var(--accent-cyan); 
    transform: translateY(-5px); 
    background: rgba(0, 242, 254, 0.1); 
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2);
}
.quant-val { font-family: var(--font-mono); font-size: 2.2rem; color: var(--accent-cyan); font-weight: bold; line-height: 1; margin-bottom: 0.5rem; }
.quant-label { font-size: 0.8rem; color: var(--text-primary); text-transform: uppercase; letter-spacing: 1px; line-height: 1.4; font-family: var(--font-mono); }

/* Services Grid (Modules) */
.section-header { text-align: center; margin-bottom: 2.5rem; display: flex; flex-direction: column; align-items: center; }
.section-title { font-size: 3rem; margin-bottom: 1rem; text-transform: capitalize; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.credentials-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.hud-card {
    background: var(--surface-color); backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05); padding: 2rem;
    position: relative; transition: var(--transition-medium); border-radius: 8px;
}
.hud-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0, 242, 254, 0.1), transparent 40%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 0; border-radius: 8px;
}
.hud-card:hover::before { opacity: 1; }
.hud-card:hover { border-color: var(--surface-border); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.card-edge { position: absolute; top: -1px; left: -1px; width: 20px; height: 20px; border-top: 2px solid var(--accent-cyan); border-left: 2px solid var(--accent-cyan); transition: var(--transition-medium); }
.hud-card:hover .card-edge { width: 100%; height: 100%; border-right: 2px solid var(--accent-cyan); border-bottom: 2px solid var(--accent-cyan); border-radius: 8px; }

.mb-1 { margin-bottom: 1rem; }
.service-title { font-size: 1.4rem; margin-bottom: 1rem; position: relative; z-index: 1; }
.service-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; position: relative; z-index: 1; }

.highlight-card { background: rgba(0, 242, 254, 0.05); border-color: rgba(0, 242, 254, 0.2); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }

/* Experience (Logs) */
.experience-layout { display: grid; grid-template-columns: auto 1fr; gap: 4rem; align-items: start; }
.hud-panel {
    background: var(--surface-color); padding: 2.5rem; position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px;
}
.hud-corner { position: absolute; width: 15px; height: 15px; border-color: var(--accent-purple); border-style: solid; }
.skills-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.sys-tag {
    font-family: var(--font-mono); font-size: 0.8rem; padding: 0.4rem 0.8rem;
    background: rgba(155, 81, 224, 0.1); color: var(--accent-purple);
    border: 1px solid rgba(155, 81, 224, 0.3); display: inline-block; border-radius: 4px;
}

.timeline-container { position: relative; padding-left: 2rem; }
.timeline-line { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.1); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-sys-dot { position: absolute; left: -2.25rem; top: 1.5rem; width: 8px; height: 8px; background: var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan); z-index: 2; border-radius: 50%; }
.timeline-item:nth-child(even) .timeline-sys-dot { background: var(--accent-purple); box-shadow: 0 0 10px var(--accent-purple); }

.timeline-date { display: block; font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 0.5rem; }
.timeline-role { font-size: 1.3rem; margin-bottom: 0.2rem; }
.timeline-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* Contact Section */
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.info-item { display: flex; align-items: center; gap: 1rem; color: var(--text-primary); font-size: 1.05rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.sys-input {
    width: 100%; padding: 1rem; background: rgba(0,0,0,0.5); border: 1px solid var(--surface-border);
    color: var(--text-primary); font-family: var(--font-mono); font-size: 0.95rem; transition: var(--transition-fast);
}
.sys-input:focus { outline: none; border-color: var(--accent-cyan); background: rgba(0, 242, 254, 0.05); }

.footer { border-top: 1px solid var(--surface-border); padding: 3rem 0; margin-top: 5rem; text-align: center; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 1024px) {
    .experience-layout { grid-template-columns: 1fr; gap: 2rem; }
    .contact-content { grid-template-columns: 1fr; }
    .hero-title { font-size: 3.5rem !important; }
    .credentials-layout { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem !important; }
    .footer-content { flex-direction: column; gap: 1rem; }
    .timeline-container { padding-left: 1rem; }
    .timeline-sys-dot { left: -1.25rem; }
}
