/* VARIABLES */
:root {
    --bg: #050505;
    --card-bg: rgba(10, 10, 10, 0.9);
    --primary: #00f2ff;
    --secondary: #bc13fe;
    --accent: #ff00c8;
    --text: #e0e0e0;
    --glass: rgba(255, 255, 255, 0.05);
}

/* RESET & GLOBAL STYLES */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, monospace; }

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

/* BACKGROUND PARTICLES CANVAS */
canvas { position: fixed; top: 0; left: 0; z-index: -1; }

/* STICKY NAVBAR STYLES */
nav {
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%; 
    z-index: 1000;
    background: rgba(5, 5, 5, 0.85); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass);
    display: flex; 
    justify-content: center; 
    align-items: center;
    padding: 0.8rem 5%;
    gap: 1.5rem;
}

.nav-links { display: flex; gap: 1.2rem; list-style: none; align-items: center; }
.nav-links a { 
    text-decoration: none; 
    color: #888; 
    font-size: 0.85rem; 
    transition: 0.3s; 
    font-weight: 500;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
}

.nav-links svg { width: 16px; height: 16px; stroke-width: 2px; }

.nav-links a.active, .nav-links a:hover { 
    color: var(--primary); 
    background: rgba(0, 242, 255, 0.05);
}

#theme-btn {
    background: none; 
    border: none; 
    cursor: pointer; 
    font-size: 1.2rem; 
    margin-left: 10px;
}

/* HERO SECTION STYLING */
header {
    position: relative;
    min-height: 100vh; 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    text-align: center;
    overflow: hidden;
    padding: clamp(80px, 12vw, 200px) 20px 40px 20px; 
}

.hero-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.text-block {
    display: flex;
    flex-direction: column;
    align-items: center; 
    margin-top: clamp(1px, 12vw, 160px); 
}

/* HOLOGRAPHIC SPHERE / SEMI-DOME */
.neon-sphere {
    position: absolute;
    width: clamp(300px, 60vw, 800px);
    height: clamp(300px, 60vw, 800px);
    border-radius: 50%;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 242, 255, 0.5);
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 242, 255, 0.05) 60%, rgba(0, 242, 255, 0.15) 100%);
    box-shadow: 0 0 100px rgba(0, 242, 255, 0.5), inset 0 0 50px rgba(0, 242, 255, 0.2);
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 75%);
    mask-image: linear-gradient(to bottom, black 30%, transparent 75%);
    z-index: 1;
    pointer-events: none;
}

/* GRADIENT DIVIDER */
.gradient-divider {
    width: clamp(180px, 30vw, 350px);
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #bc13fe, #00f2ff, #bc13fe, transparent);
    margin-top: clamp(20px, 2vw, 25px);
    margin-bottom: 0; 
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 0 5px #00f2ff);
}

/* GLOW ORB BACKGROUND */
.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.15) 0%, rgba(188, 19, 254, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    animation: orb-pulse 6s infinite ease-in-out;
}

@keyframes orb-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.9; }
}

/* TYPOGRAPHY ANIMATION */
.title-glitch {
    position: relative;
    z-index: 2;
    font-size: clamp(3rem, 9vw, 6.5rem);
    font-weight: 900;
    margin-bottom: clamp(4px, 1vw, 12px); 
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 3s infinite;
    line-height: 1.2;
    padding-bottom: 0.1em;
}

/* SUBTITLE STYLING */
.subtitle {
    color: #888;
    font-weight: 500;
    z-index: 2;
    position: relative;
    font-size: clamp(0.85rem, 2.6vw, 1.5rem); 
    letter-spacing: clamp(3px, 0.5vw, 5px);
    margin-top: clamp(4px, 1vw, 12px);
}

/* DESCRIPTION STYLING */
.description {
    color: #aaa;
    line-height: 1.6;
    z-index: 2;
    position: relative;
    font-size: clamp(0.85rem, 2.8vw, 1.5rem);
    margin-top: clamp(30px, 2.5vw, 40px);
}

.description span { display: block; }

/* BUTTON GROUP STYLING */
.button-group {
    display: flex; 
    gap: 15px; 
    z-index: 2; 
    position: relative;
    margin-top: clamp(25px, 4vw, 60px); 
}

@keyframes pulse {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 10px var(--primary)); }
    50% { opacity: 0.8; filter: drop-shadow(0 0 15px var(--secondary)); }
}

/* TERMINAL CARD */
.terminal-card {
    background: var(--card-bg);
    border: 1px solid var(--glass);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.terminal-card:hover { transform: translateY(-5px); border-color: var(--primary); }

/* FLASH EFFECT FOR NAVIGATION SELECTION */
.target-flash {
    animation: flash-glow 1.5s ease-out;
}

@keyframes flash-glow {
    0% { box-shadow: 0 0 0px transparent; border-color: var(--glass); }
    30% { box-shadow: 0 0 30px var(--primary); border-color: var(--primary); }
    100% { box-shadow: 0 0 0px transparent; border-color: var(--glass); }
}

.section-title {
    margin-bottom: 2.5rem; 
    color: var(--primary); 
    display: flex; 
    align-items: center; 
    gap: 12px;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    display: flex; gap: 8px;
    align-items: center;
}
.terminal-label {
    font-size: 0.75rem; 
    color: #888; 
    margin-left: 10px; 
    font-family: monospace;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.terminal-body { padding: 2rem; }
.terminal-body p { font-size: 1.1rem; line-height: 1.8; }

/* LAYOUT CONTAINERS */
.container { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem; }

section, header {
    scroll-margin-top: 100px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

/* SKILLS TAGS */
.skills-tag {
    display: inline-block; padding: 5px 12px; margin: 5px;
    background: var(--glass); border: 1px solid var(--primary);
    border-radius: 5px; color: var(--primary); font-size: 0.8rem;
}

/* BUTTONS */
.btn-glow {
    padding: clamp(10px, 1.2vw, 15px) clamp(20px, 2.5vw, 30px);
    font-size: clamp(1rem, 2.5vw, 3rem);
    border-radius: 8px; border: none;
    background: var(--primary); color: #000; font-weight: bold;
    cursor: pointer; transition: 0.3s; text-decoration: none;
    display: inline-block; margin-top: 1rem;
}
.btn-glow:hover { box-shadow: 0 0 20px var(--primary); }

.github-btn {
    background:transparent; 
    border:1px solid #fff; 
    color:#fff; 
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.list-unstyled { list-style: none; }
.list-unstyled li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.list-unstyled a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; display: flex; align-items: center; gap: 8px;}
.list-unstyled a:hover { border-bottom: 1px solid var(--secondary); color: var(--secondary); }
.list-unstyled svg { width: 18px; height: 18px; color: var(--primary); }

.stats-title {
    color: var(--secondary); 
    margin-bottom: 1.5rem; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}
.stats-card { border-color: var(--secondary); }
#github-stats-box { font-family: monospace; color: var(--text); line-height: 2; }
.visit-btn {
    margin-top: 15px; 
    font-size: 0.8rem; 
    padding: 8px 15px; 
    background: var(--secondary); 
    color: #fff;
}

/* FOOTER STYLES */
footer { text-align: center; padding: 4rem; color: #555; font-size: 0.8rem; border-top: 1px solid var(--glass); }
.footer-seo { max-width: 700px; margin: 0 auto 15px; opacity: 0.7; font-size: 0.85rem; }
.footer-link { color: inherit; text-decoration: none; border-bottom: 1px solid var(--secondary); }

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 600px) {
    .nav-links { gap: 0.6rem; }
    .nav-links a span { display: inline !important; font-size: 0.65rem; } 
    .nav-links a { font-size: 0.7rem; gap: 3px; padding: 4px; flex-direction: column; }
    .nav-links svg { width: 14px; height: 14px; }
}

/* LANDSCAPE MODE ADJUSTMENTS */
@media (orientation: landscape) and (max-height: 600px) {
    header {
        padding-top: 270px !important;
        justify-content: flex-start !important;
    }
    .text-block {
        margin-top: 100px !important; 
    }
}

/* DESKTOP MODE ADJUSTMENTS */
@media (min-width: 1024px) {
    header {
        padding-top: 470px !important;
        justify-content: flex-start !important;
    }
}
