/* Material-inspired, responsive, accessible CSS */
/* --- Reset-ish --- */
:root{
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #1d4ed8; /* blue-700 */
  --e1: 0 1px 3px rgba(15,23,42,0.06);
  --e2: 0 6px 18px rgba(15,23,42,0.12);
  --radius: 12px;
  --max-width: 1100px;
  --focus: 3px solid rgba(29,78,216,0.18);
}

*
{
  box-sizing:border-box;
}

html,body{
  height:100%
}

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  padding-top:88px; /* space for header */
}

/* Dark mode via .dark on html */
html.dark{
  --bg: #0b1220;
  --surface: #0f1724;
  --text: #e6eef8;
  --muted: #9aa7bf;
  --accent: #60a5fa;
  --e1: 0 1px 3px rgba(2,6,23,0.6);
  --e2: 0 8px 30px rgba(2,6,23,0.6);
}

/* Skip link */
.skip-link{
  position: absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:1rem;
  top:1rem;
  width:auto;
  height:auto;
  padding:.5rem .75rem;
  background:var(--accent);
  color:#fff;
  border-radius:6px;
  z-index:9999;
}

/* Header */
.site-header{
  background: var(--surface);
  /* background: rgba(255, 255, 255, 0.1); Transparent background */
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: fixed;
  top:0; left:0; right:0;
  z-index:90;
}
.header-inner{
  max-width:var(--max-width);
  margin:0 auto;
  padding:1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}

.brand{
  font-size:1.125rem;
  margin:0;
  color:var(--accent);
  cursor: pointer;
}
.brand:hover{
  text-decoration:underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
}

.fa-sun{
  display:none
}
  /* When dark mode is active, swap icons */
    html.dark .fa-moon {
      display: none;
    }
    html.dark .fa-sun {
      display: inline;
    }

.controls{display:flex;gap:.5rem;align-items:center}
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border-radius:10px;border:none;background:transparent;color:var(--text);cursor:pointer;text-decoration:none}
.btn.primary{background:var(--accent);color:#fff;box-shadow:var(--e1)}
.btn.ghost{border:1px solid rgba(0,0,0,0.06);padding:.45rem .65rem}
.btn.icon-btn{font-size:1rem;padding:.45rem}

/* Container */
.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:2rem 1rem;
}

/* Hero */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0rem;
  border: 3px solid transparent;
}

.hero-content {
  position: relative;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 4rem;
  margin: 0 1rem;
  border-radius: 16px;
  background: linear-gradient(to right, #ffffff, #f0f0f0);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* material elevation */
}

.hero-title {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #222;
}

.highlight {
  color: #1976d2; /* Google blue */
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 1.8rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-icons a {
  font-size: 1.4rem;
  color: #000;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: #1976d2;
}

.hero-profile {
  position: absolute;
  top: -60px; /* Adjust as needed */
  right: 4rem;
  z-index: 2;
  border-radius: 20px;
  filter: drop-shadow(-12px 1px 1px rgba(0,0,0,0.5));
}

.hero-profile .profile-image {
  object-fit: cover;
  object-position: top;
  width: 100%;
  height: 300px;
  margin-top: 0;
  display: block;
   mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 98%, rgba(0,0,0,0));
}

/* Responsive: stack image above content */
@media (max-width: 767px) {
  .hero-profile {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: -65px;
    gap: 0rem;
  }
  .hero-content {
    flex-direction: column-reverse;
    align-items: center;
  }
}
/* ================= Hero Section Dark Mode ================= */
html.dark .hero-content {
  background: #1f2937;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

html.dark .hero-title {
  color: #f5f5f5;
}

html.dark .highlight {
  color: #1976d2; /* lighter google blue for dark mode */
}

html.dark .hero-subtitle {
  color: #ccc;
}

html.dark .social-icons a {
  color: #f5f5f5;
}
html.dark .social-icons a:hover {
  color: #1976d2; /* lighter blue for dark mode */
}


/* Responsive */
@media (max-width: 600px) {
  .hero-content {
    flex-direction: column;
    flex-flow: column-reverse;
    padding: 1rem 2rem;
    gap: 0;
  }

  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }
}


.line-img{
  width: 100%;
  height: 100px;
  display: block;
  align-items: center;
  margin: 0 auto;
  opacity: 1;
  filter: brightness(10);
}







/* Experience Section */
.experience-section {
  max-width: 900px;
  margin: 16px auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: #333;
}

/* Timeline container */
.timeline {
  position: relative;
  padding: 0;
}

/* Center vertical line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background-color: #1976d2;
}

/* Timeline items */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

/* Left side */
.timeline-item.left {
  left: 0;
  text-align: right;
}

/* Right side */
.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* Content card */
.timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.timeline-item.left .timeline-content::after,
.timeline-item.right .timeline-content::after {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background-color: #1976d2;
  border-radius: 50%;
  z-index: 1;
}

/* Dot positions */
.timeline-item.left .timeline-content::after {
  right: -50px;
}

.timeline-item.right .timeline-content::after {
  left: -50px;
}

/* Text styling */
.timeline-content h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: #1976d2;
}

.company {
  font-weight: 600;
  color: #444;
}

.period {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}

.desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

/* Hover effect */
.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}


/* ================= Experience Section Dark Mode ================= */
html.dark .experience-section {
  color: #f5f5f5;
}

html.dark .section-title {
  color: #f5f5f5;
}

/* Center vertical line */
html.dark .timeline::before {
  background-color: #1976d2; /* lighter blue for visibility */
}

/* Content card */
html.dark .timeline-content {
  background: #1f2937;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

html.dark .timeline-content h3 {
  color: #1976d2;
}

html.dark .company {
  color: #ddd;
}

html.dark .period {
  color: #aaa;
}

html.dark .desc {
  color: #ccc;
}

/* Timeline dots */
html.dark .timeline-item.left .timeline-content::after,
html.dark .timeline-item.right .timeline-content::after {
  background-color: #1976d2;
}


/* Responsive */
@media (max-width: 768px) {
  .timeline-item, 
  .timeline-item.left, 
  .timeline-item.right {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 20px 20px 0px 40px;
  }

  .timeline-item.left .timeline-content::after,
  .timeline-item.right .timeline-content::after {
    left: -30px;
    right: auto;
  }

  .timeline::before {
    left: 20px;
  }
}




.skills-section {
  max-width: 1000px;
  margin: 80px auto;
  padding: 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

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

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--e1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  cursor: default;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--e2);
  color: var(--accent);
}

.skill-icon {
  font-size: 48px;
  margin-bottom: 8px;
  transition: color 0.3s ease;
  color: var(--text);
}

.skill-item:hover .skill-icon {
  color: var(--accent);
}

.skill-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* Dark mode adjustments */
html.dark .skill-item {
  background: #1f2937;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

html.dark .skill-item span {
  color: var(--text);
}

html.dark .skill-icon {
  color: var(--text);
}

html.dark .skill-item:hover .skill-icon {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .skill-item {
    width: 100px;
  }
  .skill-icon {
    font-size: 40px;
  }
}


.education-section {
  margin: auto;
}

/* Cards grid */
.cards .section-title,
.projects .section-title,
.contact .section-title{margin:1rem 0 1rem 0}
.grid{display:grid;grid-template-columns:repeat(1,1fr);gap:1rem; margin: auto;}
@media(min-width:640px){ .grid{grid-template-columns:repeat(2,1fr)} }
@media(min-width:980px){ .grid{grid-template-columns:repeat(3,1fr)} }

.card, .project-card{
  background:var(--surface);border-radius:12px;padding:1rem;transition:transform .18s ease, box-shadow .18s ease;
  outline: none;
}
.card:focus, .project-card:focus{box-shadow:var(--e2);transform:translateY(-6px);border:1px solid rgba(29,78,216,0.06);box-shadow:var(--focus)}
.card:hover, .project-card:hover{transform:translateY(-6px);box-shadow:var(--e2)}
.elevation-1{box-shadow:var(--e1)}
.elevation-2{box-shadow:var(--e2)}
.elevation-3{box-shadow:0 12px 40px rgba(2,6,23,0.06)}

/* Project specific */
.project-grid{display:grid;grid-template-columns:1fr;gap:1rem}
@media(min-width:880px){ .project-grid{grid-template-columns:repeat(3,1fr)} }
.project-thumb{width:100%;height:160px;object-fit:cover;border-radius:8px 8px 0 0;display:block}
.project-body{padding:.75rem}
.meta{color:var(--muted);font-size:.9rem;margin:.45rem 0}
.link{color:var(--accent);text-decoration:none;font-weight:600}

.project-filters{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem;justify-content:center}
.filter-list{list-style:none;padding:0;margin:0;display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center}
.filter-btn{padding:.4rem .75rem;border-radius:8px;border:1px solid rgba(0,0,0,0.06);background:transparent;color:var(--text);cursor:pointer}
.filter-btn.active, .filter-btn:hover{background:var(--accent);border:none;box-shadow:var(--e1)}     


/* Dark mode adjustments */
html.dark .card, html.dark .project-card{
  background: #1f2937;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
} 


/* education */
.education-section{
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin: auto;}
.elevation-2{
  width: 100%;
}

@media (max-width: 767px){
  .education-section{
    flex-direction: column;
    width: 100%;
  }
}


/* Contact form */
.contact{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-card{padding:1rem;border-radius:12px}
.contact-form label{display:block;margin:.5rem 0}
.contact-form .label{display:block;margin-bottom:.25rem;font-weight:600}
.contact-form input,
.contact-form textarea{
  width:100%;padding:.6rem .75rem;border-radius:8px;border:1px solid rgba(0,0,0,0.08);background:transparent;color:var(--text)
}
.contact-form input:focus,
.contact-form textarea:focus{outline:none;box-shadow:var(--focus)}
.form-actions{display:flex;gap:.5rem;margin-top:.6rem}
.form-status{margin-top:.5rem;color:var(--muted)}

@media (min-width:767px){
  .contact{flex-direction:row;width: 100%;}
  .about-me{width: 100%;}
}


/* Floating action button */
.mailto{position:fixed;right:1.25rem;bottom:1.25rem;background:var(--accent);color:#fff;padding:.5rem .8rem;border-radius:999px;box-shadow:var(--e2);text-decoration:none;font-size:1.1rem;}
.mailto:hover{box-shadow:0 12px 40px rgba(2,6,23,0.3)}



/* Footer */
.site-footer{padding:1.25rem 0;background:transparent;text-align:center;color:var(--muted);border-top:1px solid rgba(0,0,0,0.04)}

/* Accessibility: visible focus */
:focus{outline:none}
a:focus, button:focus, input:focus, textarea:focus{box-shadow:var(--focus);border-radius:8px}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Small utilities */
.section-title{font-size:1.125rem;margin-bottom:.5rem}
.small{font-size:.85rem;color:var(--muted)}



