/* =========================================
   THEME VARIABLES (Dark Mode Only)
   ========================================= */
:root {
  --bg: #0a0f14;      
  --panel: #182635;    
  --text: #e6eef6;     
  --muted: #9aa6b2;    
  --accent: #35e6d6;   
  --primary: #0b76ff;  
  --radius: 12px;
  --container-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

/* =========================================
   GLOBAL TRANSITIONS
   ========================================= */
body,
.panel, .card, .contact,
.skill, .project-links a,
.avatar-img {
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* =========================================
   GLOBAL STYLES
   ========================================= */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 28px;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  border-bottom: 1px solid var(--primary);
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}

.main-nav a {
  margin-right: 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.main-nav button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.05rem;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 28px;
  align-items: center;
  padding: 40px 0;
}

.hero-left h1 {
  font-size: 2rem;
  margin: 0 0 8px;
}

.accent {
  color: var(--accent);
}

.lead {
  color: var(--muted);
  margin-top: 8px;
  max-width: 55ch;
}

.cta-row .btn {
  margin-right: 10px;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.btn.primary {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  border: 0;
}

.avatar-img {
  width: 220px;
  height: 220px;
  border-radius: 18px;
  background: var(--panel);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(2,6,23,0.4);
}

/* =========================================
   SECTIONS (About & Skills)
   ========================================= */
section {
  margin: 0 auto;
  padding: 4rem 1rem;
  max-width: var(--container-width);
}

.about {
  text-align: left;
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1rem;
  background: var(--bg);
}

.about h2 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.about-right {
  max-width: 700px;
  margin: 0 auto;
}

.about-right ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.about-right ul li {
  margin-bottom: 0.5rem;
}

.skills-section {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1rem;
  background: var(--bg);
}

.skills-section h2 {
  margin-bottom: 2rem;
  color: var(--text);
}

.skills-group {
  margin-bottom: 2.5rem;
}

.skills-group h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--accent);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.skill {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.skill:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}

/* =========================================
   PROJECTS
   ========================================= */
.projects {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.projects h2 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--text);
}

.muted {
  color: var(--muted);
  margin-bottom: 12px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 18px;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease, color 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  background: var(--accent);
  color: #000;
}

.card:hover h3,
.card:hover p,
.card:hover .meta {
  color: #000;
}

.project-img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.project-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.project-links a:hover {
  color: #000;
}

/* =========================================
   VIDEO SHOWCASE
   ========================================= */
#videos {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1rem;
  text-align: center;
}

#videos h2 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  background: var(--panel);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Hover effect similar to projects and skills */
.video-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  background: var(--accent);
}

.video-wrapper:hover video {
  filter: brightness(0.95);
}

/* =========================================
   CONTACT
   ========================================= */
.contact {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1rem;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: background 0.3s ease, color 0.3s ease;
}

.contact h2 {
  margin-top: 0;
  color: var(--text);
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  color: var(--text);
}

.contact input,
.contact textarea {
  margin-top: 0.3rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--muted);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  transition: border 0.2s, background 0.2s, color 0.3s;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--panel);
}

.contact button {
  align-self: flex-start;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.contact button:hover {
  background: var(--accent);
}

#form-status {
  font-size: 0.9rem;
  color: var(--muted);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0;
  margin-top: 28px;
  color: var(--muted);
  text-align: center;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width:880px){
  .hero { grid-template-columns: 1fr; }
  .avatar-img { width: 140px; height: 140px; margin: 18px auto 0; }
  .header-inner { padding: 6px 0; }
}
