:root {
  --bg-main: #111315;

  --bg-secondary: #191d20;

  --text-primary: #f2efe8;

  --text-secondary: #a8afb4;

  --accent: #d97745;

  --accent-hover: #e58b5a;

  --border: #2a2f33;

  --glass-bg: rgba(25, 29, 32, 0.65);

  --glass-hover: rgba(42, 47, 51, 0.75);

  --glass-border: rgba(242, 239, 232, 0.1);

  --glass-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;

  margin: 0;

  padding: 0;
}

/* Language Switcher Styling */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0 0.15rem;
}

.lang-btn:hover {
  color: var(--accent-hover);
}

.lang-btn.active {
  color: var(--accent);
  font-weight: 800;
}

.lang-divider {
  color: var(--border);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .lang-switch {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}
body {
  background-color: var(--bg-main);

  color: var(--text-primary);

  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;

  line-height: 1.6;

  scroll-behavior: smooth;

  overflow-x: hidden;
}

a {
  color: inherit;

  text-decoration: none;
}

/* Glassmorphism Surface Base */

.glass-panel {
  background: var(--glass-bg);

  backdrop-filter: blur(16px);

  -webkit-backdrop-filter: blur(16px);

  border: 1px solid var(--glass-border);

  box-shadow: var(--glass-shadow);
}

/* --- LIQUID GLASS BUTTON --- */

.btn-glass {
  position: relative;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 0.85rem 1.75rem;

  border-radius: 50px;

  background: rgba(217, 119, 69, 0.15);

  backdrop-filter: blur(12px);

  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(242, 239, 232, 0.18);

  color: var(--text-primary);

  font-weight: 600;

  font-size: 0.95rem;

  letter-spacing: 0.5px;

  cursor: pointer;

  overflow: hidden;

  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.3);

  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

  text-align: center;
}

.btn-glass::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  height: 50%;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.25) 0%,

    rgba(255, 255, 255, 0.02) 100%
  );

  border-radius: 50px 50px 100px 100px;

  pointer-events: none;
}

.btn-glass::after {
  content: "";

  position: absolute;

  top: -50%;

  left: -75%;

  width: 50%;

  height: 200%;

  background: linear-gradient(
    90deg,
    transparent 0%,

    rgba(255, 255, 255, 0.25) 50%,

    transparent 100%
  );

  transform: rotate(25deg);

  transition: all 0.75s cubic-bezier(0.19, 1, 0.22, 1);

  pointer-events: none;
}

.btn-glass:hover {
  background: rgba(217, 119, 69, 0.85);

  border-color: rgba(242, 239, 232, 0.4);

  color: #ffffff;

  transform: translateY(-3px) scale(1.02);

  box-shadow:
    inset 0 1px 3px rgba(255, 255, 255, 0.6),
    inset 0 -2px 6px rgba(0, 0, 0, 0.4),
    0 12px 28px rgba(217, 119, 69, 0.45);
}

.btn-glass:hover::after {
  left: 125%;
}

/* Header & Navigation */

header {
  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  z-index: 1000;

  padding: 1rem 5%;
}

nav {
  max-width: 1200px;

  margin: 0 auto;

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 0.85rem 1.75rem;

  border-radius: 16px;

  transition: all 0.3s ease;
}

.logo {
  font-size: 1.25rem;

  font-weight: 800;

  letter-spacing: 1.5px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;

  gap: 1.75rem;

  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);

  font-size: 0.95rem;

  font-weight: 500;

  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-hover);
}

/* Mobile Menu Toggle Button */

.menu-toggle {
  display: none;

  flex-direction: column;

  justify-content: space-around;

  width: 30px;

  height: 22px;

  background: transparent;

  border: none;

  cursor: pointer;

  z-index: 1001;
}

.menu-toggle span {
  width: 100%;

  height: 2px;

  background: var(--text-primary);

  border-radius: 2px;

  transition: all 0.3s ease;
}

/* Layout Core */

section {
  padding: 7rem 5% 4rem;

  max-width: 1200px;

  margin: 0 auto;
}

.section-title {
  font-size: 2rem;

  font-weight: 700;

  margin-bottom: 2rem;

  position: relative;

  display: inline-block;
}

.section-title::after {
  content: "";

  position: absolute;

  bottom: -8px;

  left: 0;

  width: 45%;

  height: 3px;

  background: var(--accent);

  border-radius: 4px;
}

/* Hero Section */

.hero {
  min-height: 100vh;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 4rem;

  padding-top: 6rem;
}

.hero-content {
  flex: 1;
}

.hero-tag {
  color: var(--accent);

  font-weight: 600;

  font-size: 0.85rem;

  letter-spacing: 2px;

  text-transform: uppercase;

  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);

  font-weight: 800;

  line-height: 1.15;

  margin-bottom: 1.2rem;

  letter-spacing: -0.5px;
}

.hero-subtitle {
  color: var(--text-secondary);

  font-size: 1.1rem;

  margin-bottom: 2.5rem;

  max-width: 580px;
}

.hero-buttons {
  display: flex;

  gap: 1.25rem;

  flex-wrap: wrap;
}

.hero-image-container {
  width: 320px;

  height: 320px;

  flex-shrink: 0;

  border-radius: 24px;

  overflow: hidden;

  border: 1px solid var(--border);

  position: relative;

  background: var(--bg-secondary);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-image-container img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}
.img-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  padding: 0;
  border: 2px dashed var(--border);

  overflow: hidden;
  position: relative;
  border-radius: 12px 12px 0 0;
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-proof {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  gap: 16px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  column-gap: 3rem;
  row-gap: 0.75rem;
}

.proof-item {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  position: relative;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
    row-gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
    row-gap: 0.5rem;
  }

  .proof-item {
    font-size: 0.7rem;
  }
}

.proof-item::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: #e56b2a;
  border-radius: 50%;
  margin-right: 0.6rem;
}

.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.3s ease;
}

.scroll-indicator:hover {
  color: #ffffff;
}

.scroll-indicator svg {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(5px);
  }
  60% {
    transform: translateY(2px);
  }
}

/* Mobile responsiveness adjustment */
@media (max-width: 640px) {
  .proof-grid {
    column-gap: 1.5rem;
  }
  .proof-item {
    font-size: 0.7rem;
  }
}

/* Grid Sections */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.info-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

  gap: 1.5rem;
}

.skill-card,
.info-card {
  background: var(--bg-secondary);

  border: 1px solid var(--border);

  padding: 1.75rem;

  border-radius: 16px;

  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.skill-card:hover {
  border-color: var(--accent);

  transform: translateY(-4px);
}

.skill-card h3,
.info-card h3 {
  font-size: 1.15rem;

  color: var(--accent);

  margin-bottom: 1rem;
}

.skill-card ul {
  list-style: none;
}

.skill-card li {
  color: var(--text-secondary);

  font-size: 0.92rem;

  margin-bottom: 0.5rem;

  position: relative;

  padding-left: 1.25rem;
}

.skill-card li::before {
  content: "•";

  color: var(--accent);

  position: absolute;

  left: 0;
}

/* Projects Grid */

.projects-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  gap: 2rem;
}

.project-card {
  background: var(--bg-secondary);

  border: 1px solid var(--border);

  border-radius: 16px;

  overflow: hidden;

  display: flex;

  flex-direction: column;
}

.project-img {
  height: 190px;

  background: var(--bg-main);
}

.project-info {
  padding: 1.75rem;

  flex: 1;

  display: flex;

  flex-direction: column;
}

.project-info h3 {
  margin-bottom: 0.4rem;

  font-size: 1.2rem;
}

.project-tools {
  color: var(--accent);

  font-size: 0.85rem;

  font-weight: 500;

  margin-bottom: 1rem;
}

.project-info ul {
  color: var(--text-secondary);

  font-size: 0.9rem;

  margin-bottom: 1.5rem;

  list-style-position: inside;

  flex: 1;
}

/* Timeline */

.timeline {
  position: relative;

  border-left: 2px solid var(--border);

  padding-left: 2rem;

  margin-left: 0.5rem;
}

.timeline-item {
  margin-bottom: 2.5rem;

  position: relative;
}

.timeline-item::before {
  content: "";

  position: absolute;

  left: -2.45rem;

  top: 4px;

  width: 14px;

  height: 14px;

  border-radius: 50%;

  background: var(--accent);

  box-shadow: 0 0 0 4px var(--bg-main);
}

.timeline-header h3 {
  font-size: 1.25rem;

  font-weight: 700;
}

.timeline-role {
  color: var(--accent);

  font-weight: 600;

  margin: 0.2rem 0;
}

.timeline-date {
  color: var(--text-secondary);

  font-size: 0.85rem;

  margin-bottom: 1rem;
}

.timeline-body ul {
  list-style-position: inside;

  color: var(--text-secondary);

  font-size: 0.95rem;
}

/* ==========================================

   CONTACT SECTION STYLING

   ========================================== */

#contact .skills-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

  gap: 1.5rem;
}

#contact .skill-card {
  display: flex;

  flex-direction: column;

  justify-content: space-between;

  align-items: flex-start;

  background: var(--bg-secondary);

  border: 1px solid var(--border);

  border-radius: 16px;

  padding: 1.75rem;

  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);

  position: relative;

  overflow: hidden;
}

/* Accent top border effect on hover */

#contact .skill-card::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 3px;

  background: linear-gradient(90deg, var(--accent), var(--accent-hover));

  opacity: 0;

  transition: opacity 0.3s ease;
}

#contact .skill-card:hover {
  border-color: rgba(217, 119, 69, 0.4);

  transform: translateY(-5px);

  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

#contact .skill-card:hover::before {
  opacity: 1;
}

#contact .skill-card h3 {
  font-size: 1.1rem;

  color: var(--accent);

  margin-bottom: 0.5rem;

  font-weight: 700;

  letter-spacing: 0.5px;
}

#contact .skill-card p {
  color: var(--text-primary);

  font-size: 0.9rem;

  font-weight: 500;

  word-break: break-all;

  margin-bottom: 1.5rem;
}

/* Direct sizing for action buttons inside contact cards */

#contact .skill-card .btn-glass {
  width: 100%;

  padding: 0.7rem 1.25rem;

  font-size: 0.88rem;

  margin-top: auto;
}

/* Footer */

footer {
  border-top: 1px solid var(--border);

  padding: 2.5rem 5%;

  text-align: center;

  color: var(--text-secondary);

  font-size: 0.9rem;

  margin-top: 5rem;
}

/* ==========================================

   MEDIA QUERIES (TABLET & MOBILE RESPONSIVE)

   ========================================== */

/* Tablet View Optimization (Portrait & Landscape: 769px to 1024px) */

@media (max-width: 1024px) {
  section {
    padding: 6rem 5% 3rem;
  }

  .hero {
    gap: 2.5rem;

    padding-top: 7rem;
  }

  .hero-image-container {
    width: 260px;

    height: 260px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile & Small Tablet View (Up to 768px) */

@media (max-width: 768px) {
  /* Navigation Menu Drawer */

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;

    top: 100%;

    left: 5%;

    right: 5%;

    margin-top: 0.5rem;

    flex-direction: column;

    background: var(--glass-bg);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border: 1px solid var(--glass-border);

    border-radius: 16px;

    padding: 1.5rem;

    gap: 1.25rem;

    align-items: center;

    box-shadow: var(--glass-shadow);

    display: none; /* Toggle visible class via JavaScript */
  }

  .nav-links.active {
    display: flex;
  }

  /* Hero Section Mobile Re-layout */

  .hero {
    flex-direction: column-reverse;

    text-align: center;

    justify-content: center;

    min-height: auto;

    padding-top: 8rem;

    padding-bottom: 3rem;
  }

  .hero-content {
    display: flex;

    flex-direction: column;

    align-items: center;
  }

  .hero-subtitle {
    font-size: 1rem;

    margin-bottom: 2rem;
  }

  .hero-buttons {
    justify-content: center;

    width: 100%;
  }

  .btn-glass {
    width: 100%;

    max-width: 300px;
  }

  .hero-image-container {
    width: 220px;

    height: 220px;

    margin-bottom: 1rem;
  }

  /* Grid Layouts to Single Column */

  .skills-grid,
  .projects-grid,
  .info-grid {
    grid-template-columns: 1fr;

    gap: 1.25rem;
  }

  .section-title {
    font-size: 1.6rem;

    display: block;

    text-align: center;
  }

  .section-title::after {
    left: 50%;

    transform: translateX(-50%);

    width: 60px;
  }

  /* Mobile Timeline adjustments */

  .timeline {
    padding-left: 1.25rem;

    margin-left: 0.2rem;
  }

  .timeline-item::before {
    left: -1.7rem;

    width: 12px;

    height: 12px;
  }

  #contact .skills-grid {
    grid-template-columns: 1fr;
  }

  #contact .skill-card {
    align-items: stretch;

    text-align: center;
  }
}

/* Small Smartphone Display (Up to 480px) */

@media (max-width: 480px) {
  header {
    padding: 0.8rem 3%;
  }

  section {
    padding: 5rem 4% 2.5rem;
  }

  .hero-image-container {
    width: 180px;

    height: 180px;
  }

  .skill-card,
  .project-info,
  .info-card {
    padding: 1.25rem;
  }
}
