/* CSS RESET & MODERN DESIGN VARIABLES */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1f293d;
    --accent-color: #00f2fe;
    --accent-secondary: #4facfe;
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

body {
    position: relative;
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}


.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-alt {
    background-color: rgba(17, 24, 39, 0.7);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    font-family: var(--font-mono);
}

.accent {
    color: var(--accent-color);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.btn-nav {
    border: 1px solid var(--accent-color);
    padding: 6px 16px;
    border-radius: 4px;
    color: var(--accent-color) !important;
}

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.hero-profile-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.profile-frame {
    position: relative;
    width: 280px;
    border-radius: 16px;
    padding: 8px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

.status-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.hero-text {
    flex: 1.5;
    min-width: 300px;
}

.terminal-tag {
    font-family: var(--font-mono);
    color: var(--accent-color);
    background: rgba(0, 242, 254, 0.1);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: #000;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

/* CARDS & GRIDS */
.grid-2 {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    flex: 1;
    min-width: 300px;
}

.about-card h3, .languages-card h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.about-card p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.lang-list {
    list-style: none;
}

.lang-list li {
    margin-bottom: 20px;
}

.lang-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-weight: 600;
}

.lang-level {
    font-size: 0.85rem;
    color: var(--accent-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
}

/* SKILLS MATRIX */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

/* RESEARCH & TIMELINE */
.research-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.research-card {
    flex: 1;
    min-width: 300px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.research-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.timeline {
    border-left: 2px solid var(--accent-color);
    padding-left: 30px;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 8px;
}

.location {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 10px;
}

.degree {
    font-weight: 600;
    color: var(--accent-secondary);
    margin-bottom: 10px;
}

/* TERMINAL */
.terminal-window {
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    font-family: var(--font-mono);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.terminal-header {
    background: #1f293d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    position: relative;
}

.buttons {
    display: flex;
    gap: 8px;
}

.btn-close, .btn-minimize, .btn-maximize {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.btn-close { background: #ef4444; }
.btn-minimize { background: #f59e0b; }
.btn-maximize { background: #10b981; }

.terminal-header .title {
    position: absolute;
    width: 100%;
    text-align: center;
    left: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
}

.terminal-body {
    padding: 20px;
    min-height: 250px;
    max-height: 380px;
    overflow-y: auto;
    font-size: 0.9rem;
    transition: min-height 0.3s ease;
}

.terminal-line {
    margin-bottom: 8px;
    word-break: break-word;
}

.terminal-input-row {
    display: flex;
    padding: 10px 20px;
    background: #050811;
    border-top: 1px solid var(--border-color);
    align-items: center;
}

.prompt {
    color: var(--accent-color);
    font-weight: 600;
}

#terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    flex: 1;
}

.highlight {
    color: var(--accent-color);
}

.error {
    color: #ef4444;
}

/* CONTACT EMAIL BOX */
.text-center {
    text-align: center;
}

.contact-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.email-box {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--accent-color);
    padding: 20px 40px;
    border-radius: 12px;
}

.email-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.email-link {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
}

.email-link:hover {
    text-decoration: underline;
}


.section-divider {
  width: 100%;
  max-width: 800px;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0) 0%, rgba(56, 189, 248, 0.4) 50%, rgba(56, 189, 248, 0) 100%);
  margin: 60px auto 40px auto;
}


.video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 60px auto;
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  background-color: #0b0f19;
  display: block;
  outline: none;
}

footer {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}
