/* ===================================================================
   Ayberk Karlıil - Modern Personal Portfolio & CV Stylesheet
   =================================================================== */

:root {
  /* Dark Theme (Default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1200px;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(241, 245, 249, 0.95);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(99, 102, 241, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
}

/* ===================================================================
   Reset & Base Styles
   =================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

/* Background ambient glow shapes */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  filter: blur(120px);
  border-radius: 50%;
  opacity: 0.18;
}

.blob-1 {
  width: 550px;
  height: 550px;
  background: var(--primary);
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  bottom: 10%;
  left: -150px;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: #a855f7;
  top: 45%;
  right: 15%;
  opacity: 0.12;
}

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

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

ul {
  list-style: none;
}

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

/* Typography Helpers */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
  margin-bottom: 0.85rem;
}

.section-tag svg {
  width: 14px;
  height: 14px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ===================================================================
   Header & Navigation
   =================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.8);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

/* Mobile Hamburger */
.mobile-toggle {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  outline: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

/* ===================================================================
   Hero Section
   =================================================================== */
.hero-section {
  padding: 140px 0 90px;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

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

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 0.82rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-role-wrap {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.typewriter-text {
  color: var(--primary-light);
  border-right: 2px solid var(--primary-light);
  padding-right: 4px;
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--primary-light); }
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.highlight-item h4 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.highlight-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Hero Visual & Profile Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.profile-card-outer {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 10px;
  background: var(--gradient-glow);
  border-radius: calc(var(--radius-lg) + 10px);
  box-shadow: var(--shadow-glow);
}

.profile-card-inner {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  text-align: center;
}

.avatar-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  padding: 6px;
  background: var(--gradient-primary);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--bg-secondary);
}

.avatar-badge {
  position: absolute;
  bottom: 8px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  border: 3px solid var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.card-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.card-title {
  font-size: 0.92rem;
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.card-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.card-meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.card-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

/* ===================================================================
   Sections Common
   =================================================================== */
section {
  padding: 90px 0;
  position: relative;
}

/* ===================================================================
   About Section
   =================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.about-text p strong {
  color: var(--text-primary);
}

.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.info-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

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

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

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.info-icon svg {
  width: 22px;
  height: 22px;
}

.info-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===================================================================
   Experience Section (Timeline)
   =================================================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 50%, rgba(99, 102, 241, 0.1) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 74px;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 17px;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
  z-index: 2;
  transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
  background: var(--primary);
  transform: scale(1.2);
}

.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.timeline-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.company-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.role-badge {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-top: 0.25rem;
}

.timeline-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.timeline-responsibilities {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.timeline-responsibilities li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.timeline-responsibilities li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-light);
  font-weight: bold;
}

.skill-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--text-primary);
  transition: var(--transition);
}

.badge-tag:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
}

/* ===================================================================
   Skills Section
   =================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skill-category-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: var(--transition);
}

.skill-category-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.category-icon svg {
  width: 24px;
  height: 24px;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.skill-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.94rem;
  font-weight: 600;
}

.skill-percentage {
  color: var(--accent-light);
  font-size: 0.85rem;
}

.skill-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

[data-theme="light"] .skill-bar-bg {
  background: rgba(0, 0, 0, 0.08);
}

.skill-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0%;
}

/* ===================================================================
   Education & Certifications Section
   =================================================================== */
.edu-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.section-subheading {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-subheading svg {
  width: 24px;
  height: 24px;
  color: var(--primary-light);
}

.cards-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  gap: 1.25rem;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-box svg {
  width: 22px;
  height: 22px;
}

.feature-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.feature-content .feature-sub {
  font-size: 0.92rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-content .feature-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.feature-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ===================================================================
   Contact Section
   =================================================================== */
.contact-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-details h5 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-details p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-details a:hover {
  color: var(--primary-light);
}

/* Form Styling */
.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

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

/* Form Success Feedback */
.form-success-box {
  display: none;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: fadeInBox 0.3s ease;
}

[data-theme="light"] .form-success-box {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.4);
  color: #065f46;
}

@keyframes fadeInBox {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-success-state {
  background: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.45) !important;
  transform: none !important;
}

.spin-icon {
  animation: spinLoader 0.8s linear infinite;
}

@keyframes spinLoader {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #10b981;
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a:hover {
  color: var(--primary-light);
}

/* ===================================================================
   Responsive Design (PC view is 100% preserved; refined for phones)
   =================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-badge-wrap {
    justify-content: center;
  }

  .hero-role-wrap {
    justify-content: center;
  }

  .hero-description {
    margin: 0 auto 2.2rem;
  }

  .hero-cta-group {
    justify-content: center;
  }

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

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

  .edu-cert-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  /* Navigation Bar & Mobile Drawer */
  .site-header {
    background: rgba(11, 15, 25, 0.92);
  }

  [data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.95);
  }

  .nav-container {
    height: 68px;
    padding: 0 1.15rem;
  }

  .brand-logo {
    font-size: 1.15rem;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  /* Show Hamburger Button on Phone */
  .mobile-toggle {
    display: flex !important;
  }

  /* Mobile Slide Down Menu Drawer */
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    gap: 1.25rem;
    align-items: flex-start;
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 99;
  }

  [data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  [data-theme="light"] .nav-link {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* Compact Print CV on Mobile Header */
  #print-cv-btn span {
    display: none;
  }

  #print-cv-btn {
    padding: 0 0.75rem;
    height: 42px;
  }

  /* Section Spacing on Phone */
  section {
    padding: 65px 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Hero Section on Phone */
  .hero-section {
    padding: 95px 0 50px;
    min-height: auto;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-role-wrap {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    margin-bottom: 2rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-top: 1.25rem;
  }

  .highlight-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.9rem;
  }

  [data-theme="light"] .highlight-item {
    background: rgba(0, 0, 0, 0.02);
  }

  .highlight-item h4 {
    font-size: 1.45rem;
  }

  /* Hero Visual & Profile Card on Phone */
  .profile-card-outer {
    max-width: 100%;
    padding: 6px;
    border-radius: var(--radius-lg);
  }

  .profile-card-inner {
    padding: 1.75rem 1.25rem;
  }

  .avatar-wrapper {
    width: 140px;
    height: 140px;
    margin-bottom: 1.15rem;
  }

  .card-name {
    font-size: 1.35rem;
  }

  .card-title {
    font-size: 0.88rem;
    margin-bottom: 1rem;
  }

  .card-meta-list {
    padding: 0.85rem 0.95rem;
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
  }

  .card-meta-item {
    word-break: break-word;
  }

  .social-btn {
    width: 42px;
    height: 42px;
  }

  /* Timeline for Mobile */
  .timeline::before {
    left: 14px;
  }

  .timeline-item {
    padding-left: 38px;
    margin-bottom: 2rem;
  }

  .timeline-marker {
    left: 4px;
    top: 4px;
    width: 20px;
    height: 20px;
  }

  .timeline-card {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-md);
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .company-title {
    font-size: 1.2rem;
  }

  .role-badge {
    font-size: 0.88rem;
  }

  .timeline-date {
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
  }

  .timeline-responsibilities {
    margin: 1rem 0;
    gap: 0.6rem;
  }

  .timeline-responsibilities li {
    font-size: 0.9rem;
    line-height: 1.5;
    padding-left: 1.25rem;
  }

  .skill-tags-group {
    gap: 0.4rem;
  }

  .badge-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  /* Skills & About Cards on Phone */
  .skill-category-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .category-header {
    margin-bottom: 1.25rem;
  }

  .category-icon {
    width: 42px;
    height: 42px;
  }

  .category-icon svg {
    width: 20px;
    height: 20px;
  }

  .category-title {
    font-size: 1.15rem;
  }

  .about-text p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .about-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .info-card {
    padding: 1.25rem;
  }

  /* Education & Certifications on Phone */
  .edu-cert-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .section-subheading {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .feature-card {
    padding: 1.25rem 1.1rem;
    gap: 0.9rem;
  }

  .feature-icon-box {
    width: 40px;
    height: 40px;
  }

  .feature-icon-box svg {
    width: 20px;
    height: 20px;
  }

  .feature-content h4 {
    font-size: 1.05rem;
  }

  .feature-content .feature-sub {
    font-size: 0.88rem;
  }

  /* Contact Section on Phone */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-card {
    padding: 1rem 1.15rem;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
  }

  .contact-details p {
    font-size: 0.95rem;
    word-break: break-all;
  }

  .contact-form-panel {
    padding: 1.5rem 1.2rem;
    border-radius: var(--radius-md);
  }

  /* 16px font-size prevents iOS Safari zoom on focus */
  .form-control {
    font-size: 16px;
    padding: 0.8rem 1rem;
  }

  /* Footer on Phone */
  .site-footer {
    padding: 2rem 0;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 0.9rem;
  }

  .footer-links {
    justify-content: center;
    gap: 1.25rem;
  }

  /* Toast Notification on Phone */
  .toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
    text-align: center;
    justify-content: center;
    font-size: 0.88rem;
  }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-role-wrap {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .badge-status {
    font-size: 0.76rem;
    padding: 0.3rem 0.75rem;
  }

  .timeline-item {
    padding-left: 32px;
  }

  .timeline-card {
    padding: 1.15rem 0.95rem;
  }
}

