:root {
  --primary: #2d3436;        
  --accent: #0984e3;         
  --accent-soft: rgba(9, 132, 227, 0.08);  
  --bg-light: #f8f9fa;      
  --text-main: #2d3436;     
  --text-muted: #636e72;   
  --white: #ffffff;
  --border: #dfe6e9;        
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1); 
  --radius: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  background-color: var(--bg-light);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  text-align: center;
  margin: 4rem 0 2rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--accent);
  margin: 10px auto 0;
  border-radius: 2px;
}

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 4rem auto;
  width: 90%;
}

header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 0;
}

header h1 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
}

nav a:hover, nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

#hero {
  padding: 4rem 0 2rem;
  display: flex;
  justify-content: center; 
}

#hero img {
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s ease;
}

#hero img:hover {
  transform: scale(1.02);
}

section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.profile-info, #philosophy p, #technical-environment {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.job, .exp-item {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 5px solid var(--accent);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.job:hover, .exp-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
}

.exp-item img {
  max-width: 100%;
  height: auto;
  margin-top: 1.5rem;
  border-radius: 4px;
}

ul {
  padding-left: 1.2rem;
}

#skills ul, #technical-environment ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

#skills li, #technical-environment li {
  background: var(--bg-light);
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

#skills li strong {
  color: var(--accent);
}

.button, .resume-container a {
  background-color: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  text-align: center;
}

.button:hover, .resume-container a:hover {
  background-color: var(--accent);
  box-shadow: 0 5px 15px rgba(9, 132, 227, 0.4);
}

footer {
  background: var(--primary);
  color: #a4b0be;
  padding: 4rem 1.5rem;
  text-align: center;
  margin-top: 6rem;
}

footer p { margin: 5px 0; }

@media (max-width: 768px) {
  h2 { font-size: 1.75rem; }
  nav ul { flex-wrap: wrap; gap: 5px; }
  nav a { font-size: 0.85rem; padding: 8px 12px; }
  .profile-info, #philosophy p { padding: 1.5rem; }
}

#project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 2rem 0 4rem;
}

.project-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border-left: 5px solid var(--accent); 
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.project-card:hover {
    transform: translateY(-8px); 
    box-shadow: var(--shadow-lg);
    border-left-width: 8px; 
}

.project-card h3 {
    text-align: left;
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--primary);
}

.project-card p strong {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1.5rem 0;
}

.tag {
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(9, 132, 227, 0.2);
    transition: var(--transition);
}

.tag:hover {
    background: var(--accent);
    color: var(--white);
}

.project-links {
    margin-top: auto;
    padding-top: 1rem;
}

.button-sm {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.button-sm:hover {
    background-color: var(--accent);
    transform: scale(1.05);
}

.stats-container {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    transition: var(--transition);
}

.stats-container:hover {
    box-shadow: var(--shadow-lg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 3rem;
    transition: var(--transition);
}

.video-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.video-description {
    border-top: 2px solid var(--bg-light);
    padding-top: 1rem;
}

.video-description p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent);
    width: 0%;
    z-index: 2000;
    transition: width 0.1s ease-out;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}