/* CSS Variables */
:root {
  --bg: #0b0d10;
  --bg2: #0f1318;
  --surface: #11161c;
  --surface2: #151b22;
  --text: #e6ebf2;
  --muted: #9aa7b2;
  --brand: #6aa9ff;
  --brand2: #9b8cff;
  --border: #1f2832;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --container: 1120px;
  --k: cubic-bezier(.2,.8,.2,1);
}

/* Favicon stilleri - tarayıcı tarafından kontrol edilir */

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb;
    --bg2: #eef2f7;
    --surface: #ffffff;
    --surface2: #f8fafc;
    --text: #111827;
    --muted: #475569;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(2,6,23,.08);
  }
}

/* Dark mode override */
.dark {
  --bg: #0b0d10;
  --bg2: #0f1318;
  --surface: #11161c;
  --surface2: #151b22;
  --text: #e6ebf2;
  --muted: #9aa7b2;
  --border: #1f2832;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Light mode override */
.light {
  --bg: #f6f8fb;
  --bg2: #eef2f7;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --text: #111827;
  --muted: #475569;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(2,6,23,.08);
}

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

/* Prevent text overflow and ensure proper word wrapping */
* {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  line-height: 1.6;
}

/* Sticky footer layout */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
}

/* Top Header */
.top-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

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

.datetime-weather {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.datetime {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.weather {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

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

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  position: relative;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  min-width: 120px;
  justify-content: space-between;
}

.language-switcher span {
  transition: opacity 0.2s ease;
}

.language-switcher:hover {
  background: var(--surface);
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.language-switcher i {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  color: var(--muted);
}

.language-switcher:hover i {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s ease;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.language-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-weight: 500;
}

.language-option:hover {
  background: var(--surface2);
  transform: translateX(4px);
}

.language-option:active {
  transform: translateX(2px) scale(0.98);
}

.language-option:first-child {
  border-radius: 12px 12px 0 0;
}

.language-option:last-child {
  border-radius: 0 0 12px 12px;
}

.language-option:only-child {
  border-radius: 12px;
}

.language-flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.language-option:hover .language-flag {
  transform: scale(1.1);
}

.language-option span {
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.language-option:hover span {
  color: var(--brand);
}

.theme-switcher {
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.theme-switcher:hover {
  background: var(--surface);
  border-color: var(--brand);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(8px);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 1.5rem;
}

.navlinks {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-left: auto;
}

.navlinks a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.navlinks a:hover {
  background: var(--surface2);
}

/* Active nav item */
.navlinks a[aria-current="page"] {
  background: color-mix(in oklab, var(--brand) 18%, var(--surface2));
  border: 1px solid color-mix(in oklab, var(--brand) 40%, var(--border));
}

.nav-drawer a[aria-current="page"] {
  background: color-mix(in oklab, var(--brand) 14%, var(--surface2));
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.58rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.12s var(--k), background 0.2s var(--k), border-color 0.2s var(--k);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--brand) 40%, var(--border));
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: white;
  border-color: transparent;
  justify-content: center;
}

/* Hero Section */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 74vh;
  display: grid;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('https://user-images.githubusercontent.com/36104238/228931294-728ecd08-f34b-40c2-8323-e40992c9ed19.gif') center/cover no-repeat fixed;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 70% at 30% 20%, color-mix(in oklab, var(--brand) 20%, transparent), transparent 60%), linear-gradient(180deg, color-mix(in oklab, #000 50%, transparent), var(--bg) 60%);
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.kicker {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid var(--border);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  margin: 0.5rem 0;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--muted);
}

.tagline {
  color: var(--muted);
  max-width: 60ch;
}

.avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid color-mix(in oklab, var(--brand) 40%, #fff);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}

.avatar-wrap {
  display: flex;
  justify-content: center;
}

/* Android GIF */
.android-gif {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  margin: 1rem 0;
  display: block;
}

/* Android GIF Container for main section */
.android-gif-container {
  text-align: center;
  margin: 2rem 0 1rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, color-mix(in oklab, var(--brand) 5%, var(--surface)), color-mix(in oklab, var(--brand2) 5%, var(--surface)));
  border-radius: 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.android-gif-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    url('https://media.giphy.com/media/3o7btPCcdNniyf0ArS/giphy.gif') center/cover no-repeat,
    url('https://media.giphy.com/media/L1R1tvI9svkIWwpVYr/giphy.gif') center/cover no-repeat;
  background-blend-mode: overlay;
  opacity: 0.2;
  z-index: 0;
  border-radius: 20px;
  animation: backgroundShift 8s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%, 100% {
    background-position: 0% 50%, 100% 50%;
  }
  50% {
    background-position: 100% 50%, 0% 50%;
  }
}

.android-gif-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    color-mix(in oklab, var(--brand) 8%, transparent) 0%,
    color-mix(in oklab, var(--brand2) 8%, transparent) 50%,
    color-mix(in oklab, var(--brand) 8%, transparent) 100%);
  z-index: 1;
  border-radius: 20px;
}

.android-gif-container .android-gif {
  max-width: 250px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.android-gif-container .android-gif:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .android-gif {
    max-width: 250px;
    margin: 0.75rem auto;
  }
  
  .android-gif-container {
    margin: 1.5rem 0 0.75rem 0;
    padding: 0.75rem;
  }
  
  .android-gif-container .android-gif {
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .android-gif {
    max-width: 200px;
    margin: 0.5rem auto;
  }
  
  .android-gif-container {
    margin: 1rem 0 0.5rem 0;
    padding: 0.5rem;
  }
  
  .android-gif-container .android-gif {
    max-width: 150px;
  }
}

/* Social Buttons */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  justify-content: center;
}

.socials .btn {
  min-width: 44px;
  flex: 1;
  min-width: 120px;
  justify-content: center;
  text-align: center;
}

@media (max-width: 768px) {
  .socials {
    gap: 0.5rem;
    margin-top: 0.75rem;
  }
  
  .socials .btn {
    min-width: 100px;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .socials {
    gap: 0.4rem;
    margin-top: 0.5rem;
  }
  
  .socials .btn {
    min-width: 80px;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
  
  .socials .btn span {
    display: none;
  }
  
  .socials .btn i {
    font-size: 1.1rem;
  }
}

/* Sections */
section {
  scroll-margin-top: 88px;
  padding: 4rem 0;
}

@media (max-width: 960px) {
  section {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  section {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  section {
    padding: 1.5rem 0;
  }
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Professional Skill Card */
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s var(--k), box-shadow .2s var(--k), border-color .2s var(--k);
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--brand) 35%, var(--border));
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1rem .5rem 1rem;
}

.skill-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: color-mix(in oklab, var(--surface2) 80%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border: 1px solid var(--border);
}

.skill-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.skill-body {
  padding: .25rem 1rem 1rem 1rem;
  display: grid;
  gap: .5rem;
}

.skill-context {
  color: var(--muted);
  font-size: .95rem;
}

.skill-meta {
  display: flex;
  gap: .75rem;
  font-size: .85rem;
  color: var(--muted);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.skill-chip {
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface2) 85%, transparent);
  color: var(--muted);
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
}

.section-title {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem;
    flex-wrap: wrap;
  }
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-h {
  padding: 1rem 1rem 0.25rem;
  font-weight: 700;
}

.card-b {
  padding: 0 1rem 1rem;
  color: var(--muted);
}

/* About section specific styling */
#about {
  padding: 1rem 0 2rem 0;
}

#about .section-title {
  margin: 0 0 1.5rem 0;
}

#about .card-b {
  padding: 1.5rem 2rem 2rem;
}

/* CV section specific styling */
#cv {
  padding: 1.5rem 0;
}

#cv .section-title {
  margin: 0 0 1rem 0;
}

/* Skills section specific styling */
#skills {
  padding: 1rem 0 4rem 0;
}

#skills .section-title {
  margin: 0 0 1rem 0;
}

/* Contact section specific styling */
#contact {
  padding: 1rem 0 4rem 0;
}

#contact .section-title {
  margin: 0 0 1rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.45rem;
  }
}

@media (max-width: 480px) {
  .badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
  }
}

.muted {
  color: var(--muted);
}

/* CV Section */
.cv-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.cv-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cv-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  text-decoration: none;
  transition: all 0.2s;
}

.cv-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 169, 255, 0.3);
}

/* Visitor Counter */
.visitor-counter {
  text-align: center;
  padding: 2rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.counter-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
}

#refresh-counter {
  transition: all 0.2s ease;
}

#refresh-counter:hover {
  background: var(--brand) !important;
  color: white !important;
  transform: scale(1.05);
}

#refresh-counter:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Contact Page Styles */
.contact-hero {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, color-mix(in oklab, var(--brand) 10%, var(--surface)), color-mix(in oklab, var(--brand2) 10%, var(--surface)));
  border-radius: 20px;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://media.giphy.com/media/3o7btPCcdNniyf0ArS/giphy.gif') center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
}

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

.contact-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.contact-animation {
  margin-top: 2rem;
}

.contact-gif {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.contact-gif:hover {
  transform: scale(1.05);
}

.contact-cards-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-info-card,
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover,
.contact-form-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.card-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card-description {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

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

.contact-method.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: white;
  padding: 1.5rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.contact-method.primary:hover {
  transform: translateY(-2px);
}

.method-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.method-content p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.method-link {
  color: white;
  text-decoration: underline;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.method-link:hover {
  opacity: 0.8;
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  font-weight: 500;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.social-link.github:hover { background: #24292e; color: white; }
.social-link.linkedin:hover { background: #0077b5; color: white; }
.social-link.twitter:hover { background: #1da1f2; color: white; }
.social-link.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.social-link.stackoverflow:hover { background: #f48024; color: white; }
.social-link.playstore:hover { background: #01875f; color: white; }

.social-link i {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.form-container {
  margin-top: 1rem;
}

.enhanced-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface2);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* Prevents zoom on iOS */
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 20%, transparent);
  transform: translateY(-1px);
}

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

.submit-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(106, 169, 255, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.stat-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.stat-content p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 960px) {
  .contact-cards-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-title {
    font-size: 2rem;
  }
  
  .contact-subtitle {
    font-size: 1.1rem;
  }
  
  .contact-gif {
    width: 150px;
    height: 150px;
  }
  
  .social-links-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 2rem 1rem;
  }
  
  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem;
  }
  
  .contact-title {
    font-size: 1.8rem;
  }
  
  .card-title {
    font-size: 1.5rem;
  }
  
  .contact-gif {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 1.5rem 0.5rem;
  }
  
  .contact-info-card,
  .contact-form-card {
    padding: 1rem;
  }
  
  .contact-title {
    font-size: 1.5rem;
  }
  
  .contact-subtitle {
    font-size: 1rem;
  }
  
  .card-title {
    font-size: 1.3rem;
  }
  
  .contact-gif {
    width: 100px;
    height: 100px;
  }
  
  .social-link span {
    display: none;
  }
  
  .social-link {
    justify-content: center;
  }
}

/* Footer */
footer {
  color: var(--muted);
  text-align: center;
  padding: 3rem 0;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem;
  line-height: 0;
  color: var(--text);
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  background: var(--surface2);
  border-color: var(--brand);
}

.menu-toggle:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 64px 0 auto 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem;
  z-index: 49;
  backdrop-filter: saturate(160%) blur(8px);
  box-shadow: var(--shadow);
}

.nav-drawer a {
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px dashed color-mix(in oklab, var(--border) 70%, transparent);
  color: var(--text);
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 0.25rem 0;
  padding: 0.8rem 1rem;
}

.nav-drawer a:hover {
  background: var(--surface2);
  color: var(--brand);
  transform: translateX(4px);
}

.nav-drawer a[aria-current="page"] {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(106, 169, 255, 0.3);
  transform: translateX(8px);
  border-left: 4px solid white;
}

.nav-drawer a[aria-current="page"]:hover {
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  transform: translateX(12px);
  box-shadow: 0 6px 16px rgba(106, 169, 255, 0.4);
}

/* Timeline */
.timeline {
  position: relative;
  margin-left: 0.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: color-mix(in oklab, var(--brand) 30%, var(--border));
}

/* Experience Progress/Steps */
.xp-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 2rem 0;
}

.xp-progress {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 4px;
  background: color-mix(in oklab, var(--border) 80%, transparent);
  z-index: 0;
}

.xp-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
}

.xp-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .35rem;
  justify-items: center;
  text-align: center;
}

.xp-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: 3px solid color-mix(in oklab, var(--surface) 70%, transparent);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.xp-role {
  font-weight: 700;
  color: var(--text);
  margin-top: .25rem;
}

.xp-period {
  font-size: .85rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .xp-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .xp-progress { display: none; }
  .xp-step { 
    justify-items: start; 
    text-align: left;
    padding: 1rem;
    background: var(--surface2);
    border-radius: 12px;
    border: 1px solid var(--border);
  }
  
  .tl-item {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .tl-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

.tl-item {
  position: relative;
  padding: 1rem 1rem 1rem 2.5rem;
  margin-bottom: 1rem;
  background: color-mix(in oklab, var(--surface2) 85%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform .2s var(--k), box-shadow .2s var(--k), border-color .2s var(--k);
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.4rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--surface) 70%, transparent);
}

.tl-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  border-color: color-mix(in oklab, var(--brand) 35%, var(--border));
}

.tl-meta {
  display: flex;
  gap: .5rem;
  align-items: center;
  color: var(--muted);
  font-size: .9rem;
}

.tl-company {
  font-weight: 600;
  color: var(--text);
}

.tl-tags {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin: .45rem 0 .35rem;
}

.tl-achievements {
  margin: .35rem 0 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.tl-achievements li {
  margin: .15rem 0;
}

/* Progress bars */
.bar {
  height: 10px;
  background: color-mix(in oklab, var(--surface2) 80%, transparent);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 2px rgba(255,255,255,.04) inset;
  transition: width 1.2s var(--k);
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(10px);
  filter: saturate(0.9);
  transition: opacity 0.6s var(--k), transform 0.6s var(--k), filter 0.6s var(--k);
}

[data-animate].in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  
  .avatar-wrap {
    order: -1;
    margin-bottom: 1rem;
  }
  
  .hero {
    min-height: 60vh;
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin: 0.75rem 0;
  }
  
  .hero .subtitle {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .hero .tagline {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    max-width: 100%;
  }
  
  /* Hide desktop navigation on mobile */
  .navlinks {
    display: none;
  }
  
  .menu-toggle {
    display: inline-flex;
  }
  
  .actions {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
    padding: 1.5rem 0;
  }
  
  .hero-wrap {
    gap: 1rem;
  }
  
  .avatar {
    width: 180px;
    height: 180px;
  }
  
  .hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  
  .hero .subtitle {
    font-size: 0.95rem;
  }
  
  .hero .tagline {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 45vh;
    padding: 1rem 0;
  }
  
  .avatar {
    width: 150px;
    height: 150px;
  }
  
  .hero h1 {
    font-size: clamp(1.4rem, 10vw, 1.8rem);
    margin: 0.5rem 0;
  }
  
  .hero .subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .hero .tagline {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }
  
  .kicker {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
  
  /* Action buttons in hero */
  .hero div[style*="display:flex"] {
    gap: 0.5rem !important;
    margin-top: 0.75rem !important;
    justify-content: center;
  }
  
  .hero div[style*="display:flex"] .btn {
    flex: 1;
    min-width: 80px;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    text-align: center;
  }
}
  
  .top-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .datetime-weather {
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
  }
  
  .controls {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
  }
  
  .top-header {
    padding: 0.75rem 0;
    font-size: 0.85rem;
  }
  
  .datetime {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .weather {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
}

@media (max-width: 768px) {
  .top-header {
    padding: 0.5rem 0;
    font-size: 0.8rem;
  }
  
  .datetime-weather {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .datetime {
    font-size: 0.75rem;
  }
  
  .weather {
    font-size: 0.75rem;
  }
  
  .language-switcher {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .theme-switcher {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .top-header {
    padding: 0.4rem 0;
    font-size: 0.75rem;
  }
  
  .datetime-weather {
    gap: 0.4rem;
  }
  
  .datetime span:last-child {
    display: none;
  }
  
  .weather span:last-child {
    display: none;
  }
  
  .language-switcher span {
    display: none;
  }
  
  .theme-switcher span {
    display: none;
  }
}
  
  .cv-buttons {
    flex-direction: column;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .card-h {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
  }
  
  .card-b {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
  }
  
  /* About section responsive styling */
  #about {
    padding: 0.75rem 0 1.5rem 0;
  }
  
  #about .section-title {
    margin: 0 0 1rem 0;
  }
  
  #about .card-b {
    padding: 1rem 1.5rem 1.5rem;
  }
  
  /* CV section responsive styling */
  #cv {
    padding: 1rem 0;
  }
  
  #cv .section-title {
    margin: 0 0 0.75rem 0;
  }
  
  /* Skills section responsive styling */
  #skills {
    padding: 0.75rem 0 3rem 0;
  }
  
  #skills .section-title {
    margin: 0 0 0.75rem 0;
  }
  
  /* Contact section responsive styling */
  #contact {
    padding: 0.75rem 0 3rem 0;
  }
  
  #contact .section-title {
    margin: 0 0 0.75rem 0;
  }
}

/* Desktop Navigation - Always visible on desktop */
@media (min-width: 960px) {
  .navlinks {
    display: flex !important;
  }
  
  .menu-toggle {
    display: none !important;
  }
  
  .actions {
    display: flex !important;
  }
}

/* Skills grid responsive columns */
@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* About Section - Professional Styles */
.about-container {
  max-width: 100%;
  margin: 0 auto;
}

.about-content {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.about-intro {
  margin-bottom: 3rem;
  text-align: center;
}

.about-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.about-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-weight: 400;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-description:last-of-type {
  margin-bottom: 0;
}

.highlight {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.about-expertise {
  margin-top: 3rem;
}

.expertise-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.expertise-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-radius: 2px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.expertise-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s var(--k);
  position: relative;
  overflow: hidden;
}

.expertise-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  transform: scaleX(0);
  transition: transform 0.3s var(--k);
}

.expertise-item:hover::before {
  transform: scaleX(1);
}

.expertise-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--brand);
}

.expertise-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.expertise-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.expertise-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Responsive Design for About Section */
@media (max-width: 768px) {
  .about-content {
    padding: 2rem 1.5rem;
  }
  
  .about-heading {
    font-size: 2rem;
  }
  
  .about-description {
    font-size: 1rem;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .expertise-item {
    padding: 1.25rem;
  }
  
  .expertise-content h4 {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .about-content {
    padding: 1.5rem 1rem;
  }
  
  .about-heading {
    font-size: 1.75rem;
  }
  
  .expertise-item {
    padding: 1rem;
  }
}
