/* ==========================================================================
   Lutfi Hanif - Portfolio Website Stylesheet
   Faithfully crafted with pure Vanilla CSS
   ========================================================================== */

/* --- Design Tokens / CSS Variables --- */
:root {
  --bg-main: #181818;
  --bg-secondary: #1f1f1f;
  --bg-card: #232323;
  --bg-card-hover: #292929;
  --bg-input: #1b1b1b;
  --bg-header: rgba(24, 24, 24, 0.92);

  --accent-color: #64f4ab;
  --accent-color-dark: #327a56;
  --accent-gradient: linear-gradient(135deg, #64f4ab 0%, #327a56 100%);
  --accent-warm: #fcb900;
  --accent-warm-gradient: linear-gradient(135deg, #fcb900 0%, #ff6900 100%);

  --text-white: #ffffff;
  --text-primary: #f3f4f6;
  --text-secondary: #a0aec0;
  --text-muted: #718096;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.06);
  --border-active: rgba(100, 244, 171, 0.4);

  /* System fonts: no external font request */
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 10px 25px rgba(100, 244, 171, 0.2);

  --container-max: 1220px;
  --header-height: 85px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Global Reset & Box Sizing --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.85rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 90px;
  padding-bottom: 90px;
  position: relative;
}

.section-tight {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* --- Section Dividers / Subtitles --- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-badge .badge-line {
  width: 32px;
  height: 2px;
  background-color: var(--accent-color);
  display: inline-block;
}

.section-badge .badge-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-white);
}

.section-title {
  margin-bottom: 18px;
  color: var(--text-white);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 680px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: #ffffff;
  color: #111111;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  color: #111111;
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-white);
  border: 1.5px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background-color: rgba(100, 244, 171, 0.05);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent-gradient);
  color: #111111;
  font-weight: 700;
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(100, 244, 171, 0.35);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 44px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: transparent;
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  height: 72px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 4px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-buffer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-buffer-btn:hover {
  background-color: var(--accent-color);
  color: #111111;
  transform: translateY(-2px);
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  gap: 5px;
  z-index: 1100;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background-color: var(--text-white);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 380px;
  height: 100vh;
  background-color: #1a1a1a;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  padding: 100px 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1050;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 0;
  display: block;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--accent-color);
}

.mobile-drawer-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin-bottom: 6px;
  color: var(--text-white);
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Hero Tech Badges / Floating Icons */
.hero-tech-icons {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}

.tech-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1.25rem;
  transition: var(--transition);
}

.tech-icon-circle:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: 0 6px 16px rgba(100, 244, 171, 0.25);
}

/* Hero Image Column */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.hero-svg-bg {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}

.hero-img-box {
  position: relative;
  max-width: 440px;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: visible;
}

.hero-img-box img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.7));
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
}

.hero-img-box:hover img {
  transform: scale(1.02);
}

/* Floating Card Element */
.floating-stat-card {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: rgba(35, 35, 35, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3;
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
}

.floating-stat-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.floating-stat-card .stat-info h4 {
  font-size: 1.15rem;
  color: var(--text-white);
  margin-bottom: 2px;
}

.floating-stat-card .stat-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   Services Section (4 Services Grid)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 38px 28px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  background-color: var(--bg-card-hover);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(100, 244, 171, 0.08);
  border: 1px solid rgba(100, 244, 171, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1.6rem;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: var(--accent-gradient);
  color: #111111;
  transform: scale(1.08);
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: var(--text-white);
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   Skills & Background Overview Section
   ========================================================================== */
.skills-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.skills-text-block .section-title {
  margin-bottom: 24px;
}

.skills-text-block p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.skills-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: var(--transition);
}

.stat-box:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Featured Projects Section
   ========================================================================== */
.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 110px;
}

.project-row:last-child {
  margin-bottom: 60px;
}

.project-row.reversed {
  direction: rtl;
}

.project-row.reversed > * {
  direction: ltr;
}

.project-info {
  padding: 10px 0;
}

.project-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.project-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 18px;
  color: var(--text-white);
}

.project-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.project-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Project Visual Showcase with angled backdrop */
.project-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-bg-card {
  position: absolute;
  width: 95%;
  height: 90%;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transform: rotate(-6deg);
  z-index: 1;
  transition: var(--transition);
}

.project-row.reversed .project-bg-card {
  transform: rotate(6deg);
}

.project-img-frame {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-card);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.project-img-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.project-visual:hover .project-img-frame {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.project-visual:hover .project-img-frame img {
  transform: scale(1.03);
}

.project-visual:hover .project-bg-card {
  border-color: var(--border-active);
  background: rgba(100, 244, 171, 0.03);
}

/* View All Projects Button Area */
.projects-cta-box {
  text-align: center;
  margin-top: 20px;
}

/* ==========================================================================
   Let's Work Together Banner (CTA)
   ========================================================================== */
.cta-banner-section {
  padding-top: 40px;
  padding-bottom: 90px;
}

.cta-banner-box {
  background: radial-gradient(circle at top right, rgba(100, 244, 171, 0.15), transparent 60%),
              var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner-box::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 244, 171, 0.2) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-banner-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-white);
  margin-bottom: 18px;
}

.cta-banner-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #121212;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-copyright {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-link-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-link-item:hover {
  background-color: var(--accent-color);
  color: #111111;
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(100, 244, 171, 0.3);
}

/* ==========================================================================
   Portfolio Page Styles
   ========================================================================== */
.page-hero {
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 60px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(100, 244, 171, 0.08), transparent 70%);
}

.page-hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  margin-bottom: 14px;
}

.page-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Filter Tabs */
.filter-tabs-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--accent-color);
  color: #111111;
  border-color: var(--accent-color);
  box-shadow: 0 4px 14px rgba(100, 244, 171, 0.25);
}

/* Work Experience Timeline */
.timeline-section {
  padding-top: 60px;
  padding-bottom: 90px;
}

.timeline-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
}

.timeline-card:hover {
  border-color: var(--border-active);
  background-color: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.timeline-left {
  border-right: 1px solid var(--border-subtle);
  padding-right: 24px;
}

.timeline-company {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.timeline-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-desc {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  margin-top: 40px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

.contact-card-item:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(100, 244, 171, 0.1);
  border: 1px solid rgba(100, 244, 171, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-card-details h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-card-details a,
.contact-card-details span {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-white);
}

.contact-card-details a:hover {
  color: var(--accent-color);
}

/* Contact Form */
.contact-form-panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  box-shadow: var(--shadow-lg);
}

.contact-form-title {
  font-size: 1.75rem;
  margin-bottom: 28px;
  color: var(--text-white);
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(100, 244, 171, 0.15);
  background-color: #212121;
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: none;
}

.form-alert.success {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(100, 244, 171, 0.12);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
}

/* ==========================================================================
   Image Lightbox Modal
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 1000px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.lightbox-caption {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--accent-color);
  color: #111111;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-tech-icons {
    justify-content: center;
  }

  .hero-image-wrapper {
    order: -1;
    max-width: 380px;
    margin: 0 auto;
  }

  .floating-stat-card {
    left: 0;
  }

  .skills-overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-row,
  .project-row.reversed {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 40px;
    margin-bottom: 70px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .timeline-left {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-right: 0;
    padding-bottom: 16px;
  }
}

@media (max-width: 868px) {
  .nav-menu {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 640px) {
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .skills-stats-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner-box {
    padding: 50px 24px;
  }

  .contact-form-panel {
    padding: 30px 20px;
  }
}
