/* =========================================
   GLOBAL VARIABLES & RESET
========================================= */
:root {
    --bg-dark: #0a0a0c;
    --glass-bg: rgba(20, 20, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-purple: #b026ff;
    --neon-green: #00ffcc;
    --neon-blue: #00a8ff;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- MODERN DARK TEXTURE FOR ENTIRE PAGE --- */
body {
    background-color: var(--bg-dark);
    /* Creates a premium, faint dot-matrix texture for the dark sections */
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* =========================================
   GLASS NAVIGATION
========================================= */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.back-btn:hover { color: var(--neon-purple); }

.nav-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(176, 38, 255, 0.5);
}

/* =========================================
   MODERNIZED HERO REDESIGN & VIDEO
========================================= */
.hero-wrapper {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #050507;
    /* Pulls hero up under the transparent nav bar */
    margin-top: -80px; 
    padding-top: 80px;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 20%, var(--bg-dark) 90%);
    z-index: 1;
}

.hero-content-alt {
    position: relative;
    z-index: 5;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 0 20px;
}

/* =========================================
   CYBER TYPOGRAPHY
========================================= */
.glitch-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -2px;
    text-transform: uppercase;
    color: #fff;
    line-height: 0.9;
    margin-bottom: 15px;
    font-family: 'Rajdhani', sans-serif;
    position: relative;
    text-shadow: 0 0 20px rgba(176, 38, 255, 0.4);
}

.hero-subtitle-container {
    max-width: 600px;
    margin: 0 auto;
}

.typing-text {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    color: var(--neon-green);
    opacity: 0.9;
    border-right: 2px solid var(--neon-green);
    padding-right: 5px;
    animation: blink-caret 0.75s step-end infinite;
}

/* =========================================
   TERMINAL V2 (CENTERED & COMPACT)
========================================= */
.terminal-container-alt {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    perspective: 1000px;
}

.glass-panel-v2 {
    background: rgba(15, 15, 20, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    transform: rotateX(5deg);
    overflow: hidden;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.controls {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #888;
    margin-left: 10px;
}

.terminal-body {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    color: var(--neon-green);
    height: 250px;
    overflow-y: auto;
    line-height: 1.5;
    text-align: left;
}

/* =========================================
   MAIN CONTENT AREA
========================================= */
.main-content-area {
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    border-left: 4px solid var(--neon-purple);
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   TECH STACK BADGES
========================================= */
.tech-stack {
    margin-bottom: 80px;
}

.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-badge {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: default;
}

.tech-badge:hover {
    transform: translateY(-3px);
}

.glow-blue:hover { border-color: var(--neon-blue); box-shadow: 0 0 15px var(--neon-blue); color: var(--neon-blue); }
.glow-purple:hover { border-color: var(--neon-purple); box-shadow: 0 0 15px var(--neon-purple); color: var(--neon-purple); }
.glow-green:hover { border-color: var(--neon-green); box-shadow: 0 0 15px var(--neon-green); color: var(--neon-green); }
.glow-orange:hover { border-color: #ff8c00; box-shadow: 0 0 15px #ff8c00; color: #ff8c00; }
.glow-yellow:hover { border-color: #ffd700; box-shadow: 0 0 15px #ffd700; color: #ffd700; }
.glow-red:hover { border-color: #ff3333; box-shadow: 0 0 15px #ff3333; color: #ff3333; }

/* =========================================
   PROJECT CARDS
========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-glow {
    position: absolute;
    top: -50px; right: -50px;
    width: 150px; height: 150px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: 0;
}

.card-glow.purple { background: var(--neon-purple); }
.card-glow.green { background: var(--neon-green); }
.card-glow.blue { background: var(--neon-blue); }

.glass-card h3, .glass-card p, .glass-card .card-footer {
    position: relative;
    z-index: 1;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicator {
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator.online::before {
    content: '';
    display: block; width: 10px; height: 10px; border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

.status-indicator.offline::before {
    content: '';
    display: block; width: 10px; height: 10px; border-radius: 50%;
    background: #ff3333;
    box-shadow: 0 0 10px #ff3333;
}

.action-btn {
    background: linear-gradient(135deg, var(--neon-purple), #6a00ff);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(176,38,255,0.4);
}

.action-btn.outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}
.action-btn.outline:hover {
    border-color: white; color: white; box-shadow: none;
}

/* 3D HOVER EFFECT */
.hover-3d:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* =========================================
   ANIMATIONS
========================================= */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--neon-green); }
}

/* =========================================
   ANDROID & MOBILE OPTIMIZATIONS
========================================= */
@media (max-width: 768px) {
    .hero-wrapper {
        min-height: 90vh;
        padding-top: 100px;
    }

    .hero-content-alt {
        gap: 30px;
    }

    .glitch-title {
        letter-spacing: 0;
        line-height: 1.1;
    }

    .typing-text {
        font-size: 0.9rem;
    }

    .terminal-container-alt {
        width: 100%;
    }

    .terminal-body {
        height: 180px; 
        font-size: 0.8rem;
    }

    .glass-nav {
        padding: 10px 20px;
    }

    .nav-title {
        font-size: 0.9rem;
    }
}