@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=JetBrains+Mono:wght@400;700&display=swap");

/* --- Global Reset and Fonts --- */
html {
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: #0A0A0A; /* Deep Black */
  color: #F3F4F6;
  overflow: hidden; /* Prevent default scrolling */
  height: 100%;
}

/* --- Accent Color Variables --- */
:root {
  --accent-color: #e53e3e; /* Crimson Red */
  --light-accent-color: #f87171;
  --accent-glow: rgba(229, 62, 62, 0.6);
  --secondary-bg: #1A1A1A; 
}

/* --- Background and App Containers --- */
#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    pointer-events: none; 
}

#app-container {
    position: relative;
    z-index: 10;
    /* Matrix background visibility opacity */
    background-color: rgba(10, 10, 10, 0.5); 
    height: 100%;
}

/* --- Custom Scrollbar for Main Content --- */
#main-content::-webkit-scrollbar {
  width: 8px;
}
#main-content::-webkit-scrollbar-track {
  background: transparent; 
}
#main-content::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}
#main-content::-webkit-scrollbar-thumb:hover {
  background: var(--light-accent-color);
}

/* --- Typing Animation for Hero Greeting --- */
.typing-text {
    overflow: hidden; 
    border-right: 0.15em solid white; 
    white-space: nowrap; 
    margin: 0 auto;
    letter-spacing: 0.1em; 
    font-family: 'JetBrains Mono', monospace;
    width: 0;
    animation: 
      typing 3s steps(20, end) forwards, 
      blink-caret 0.75s step-end infinite; 
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: white; }
}

/* --- Main Content Styling --- */

.hero-image-ascii {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-color);
    opacity: 0.8;
    line-height: 0.9;
    white-space: pre;
    font-size: 0.75rem;
    text-shadow: 0 0 5px var(--accent-glow);
}

/* Command Boxes */
.command-box {
    background: var(--secondary-bg);
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
.command-box:hover {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}
.command-box:hover .box-title,
.command-box:hover .box-subtitle {
    color: #0A0A0A;
}

.box-title {
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}
.box-subtitle {
    color: var(--light-accent-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

/* --- Profile Photo Styling --- */
.profile-photo-container {
    position: relative;
    padding: 0.75rem; 
    background: var(--secondary-bg);
    border: 3px solid var(--accent-color); 
    box-shadow: 0 0 20px var(--accent-glow); 
    border-radius: 50%; 
    animation: pulseBorder 2.5s infinite alternate; 
}

.profile-photo-container::after {
    content: '';
    position: absolute;
    top: 50%; 
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--light-accent-color) 50%, transparent 100%);
    opacity: 0.7;
    box-shadow: 0 0 10px var(--light-accent-color);
    animation: scanLine 4s infinite linear;
    transform: translateY(-50%);
    pointer-events: none; 
}

@keyframes scanLine {
    0% { top: 0%; opacity: 0.5; }
    50% { top: 100%; opacity: 1; }
    100% { top: 0%; opacity: 0.5; }
}

.profile-photo {
    filter: brightness(0.9) drop-shadow(0 0 4px var(--light-accent-color));
    transition: filter 0.5s ease;
    object-position: top; 
}

.profile-photo:hover {
    filter: brightness(1) drop-shadow(0 0 15px var(--accent-color)); 
}

@keyframes pulseBorder {
    0% { border-color: var(--accent-color); box-shadow: 0 0 10px var(--accent-glow); }
    100% { border-color: var(--light-accent-color); box-shadow: 0 0 20px var(--light-accent-color); }
}

/* --- General Coder/Module Styling --- */

.page-title {
    font-size: 2.5rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
    margin-bottom: 2rem;
}

.module-card {
  background-color: var(--secondary-bg);
  border: 1px solid var(--accent-color);
  border-radius: 0.25rem; 
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.module-card:hover {
    border-color: var(--light-accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* New Highlight Card for Achievements */
.highlight-card {
    background-color: rgba(229, 62, 62, 0.1); /* Subtle Red Tint */
    border: 2px solid var(--light-accent-color);
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(229, 62, 62, 0.2);
}
.highlight-card:hover {
    box-shadow: 0 0 30px var(--accent-glow);
    transform: scale(1.01);
}

.skill-list, .exp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  line-height: 2.2;
}
.skill-list li i {
  color: var(--light-accent-color) !important;
}

.module-tag {
    background: #0A0A0A;
    color: var(--light-accent-color);
    border: 1px solid var(--accent-color);
    font-family: 'JetBrains Mono', monospace;
}

.project-btn:hover {
    background-color: var(--light-accent-color);
    color: #0A0A0A;
    border-color: var(--light-accent-color);
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 640px) {
    .typing-text {
        font-size: 2rem !important;
        animation: 
            typing 3s steps(20, end) forwards,
            blink-caret 0.75s step-end infinite;
    }
    .hero-image-ascii {
        font-size: 0.6rem;
    }
    .social-link-grid {
        grid-template-columns: 1fr !important; 
    }
}

@media (min-width: 641px) {
    .social-link-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}