/* --- Global Reset & Fonts --- */
:root {
    --bg-color: #0a0f1e;
    --text-color: #e6f1ff;
    --primary-cyan: #00f3ff;
    --secondary-blue: #0077ff;
    --accent-red: #ff3333;
    --card-bg: rgba(20, 30, 50, 0.6);
    --border-color: rgba(0, 243, 255, 0.2);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.mono-font {
    font-family: 'JetBrains Mono', monospace;
}

/* --- Cyber Grid Background --- */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    pointer-events: none;
}

/* --- Navigation --- */
.backdrop-blur {
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    color: var(--primary-cyan) !important;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.cyber-link { color: #aaa !important; font-family: 'JetBrains Mono', monospace; transition: 0.3s; }
.cyber-link:hover { color: var(--primary-cyan) !important; padding-left: 10px; }

/* --- Hero & Terminal --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
}

.terminal-window {
    background: rgba(0, 0, 0, 0.8);
    width: 100%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.15);
    border: 1px solid #333;
    overflow: hidden;
    margin: 0 auto;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-header .title {
    margin-left: auto;
    margin-right: auto;
    color: #888;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
    padding: 20px;
    min-height: 250px;
    font-family: 'JetBrains Mono', monospace;
}

.prompt { color: var(--primary-cyan); font-weight: bold; }
.command { color: #f1f1f1; }

.glitch-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin: 10px 0;
    text-shadow: 2px 2px var(--secondary-blue);
}

.typewriter {
    color: var(--primary-cyan);
    font-size: 1.1rem;
    min-height: 1.5em; 
}

.cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- Sections & Cards --- */
.section-title {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-cyan);
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    display: inline-block;
    padding-bottom: 5px;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

/* --- Skills --- */
.skill-category {
    font-family: 'JetBrains Mono', monospace;
    color: #888;
    font-size: 1rem;
    margin-bottom: 20px;
    margin-top: 10px;
    border-left: 3px solid var(--primary-cyan);
    padding-left: 10px;
}

.skill-box { margin-bottom: 15px; }
.cyber-progress {
    height: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar {
    border-radius: 4px;
    box-shadow: 0 0 10px currentColor;
}
.cyan-glow { background: var(--primary-cyan); color: var(--primary-cyan); }
.orange-glow { background: orange; color: orange; }
.green-glow { background: #00ff66; color: #00ff66; }
.purple-glow { background: #bd00ff; color: #bd00ff; }

/* --- Projects (Horizontal Drag Scroll) --- */
.project-wrapper {
    overflow-x: hidden; /* Hide scrollbars visually */
    padding-bottom: 20px;
}

.project-container {
    display: flex;
    gap: 20px;
    padding: 10px 5px;
    cursor: grab; /* Shows the grab hand */
    overflow-x: auto;
    
    /* PREVENTS TEXT SELECTION WHILE DRAGGING */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    /* Hide scrollbar but allow scrolling */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.project-container::-webkit-scrollbar { display: none; }

.project-container.active {
    cursor: grabbing; /* Closed fist when dragging */
}

.project-card {
    min-width: 280px;
    background: linear-gradient(145deg, rgba(20,30,50,0.9), rgba(10,15,20,0.9));
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.project-card h5 { color: var(--primary-cyan); font-family: 'JetBrains Mono', monospace; }
.project-card p { font-size: 0.9rem; color: #ccc; }
.card-icon { font-size: 2rem; color: var(--secondary-blue); margin-bottom: 15px; }
.badge-cyber {
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary-cyan);
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--primary-cyan);
    margin-top: 10px;
    display: inline-block;
}

/* --- Certifications --- */
.cert-card {
    background: #111;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: 0.3s;
}
.cert-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}
.cert-card i { color: var(--primary-cyan); font-size: 2.5rem; margin-bottom: 15px; }

/* --- Contact Buttons --- */
.social-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    transition: 0.3s;
    border-radius: 4px;
}
.social-btn:hover {
    background: var(--primary-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--primary-cyan);
}

/* Fade in Animation */
.section { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.section.show { opacity: 1; transform: translateY(0); }