:root {
  --bg:#0f1724;
  --card:#0b1220;
  --accent:#06b6d4;
  --accent-hover:#0891b2;
  --muted:#9aa6b2;
  --text:#e6eef8;
  --glass: rgba(255,255,255,0.03);
  --radius: 14px;
  --max-width:1400px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Light Theme */
[data-theme="light"] {
  --bg:#f8fafc;
  --card:#ffffff;
  --accent:#0891b2;
  --accent-hover:#0e7490;
  --muted:#475569;
  --text:#0f172a;
  --glass: rgba(0,0,0,0.03);
}

/* Light theme specific overrides */
[data-theme="light"] body {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

[data-theme="light"] .card {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

[data-theme="light"] .card:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,0,0,0.15);
}

[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

[data-theme="light"] header:hover {
  background: rgba(255, 255, 255, 0.98) !important;
}

[data-theme="light"] nav a {
  color: #64748b;
  font-weight: 500;
}

[data-theme="light"] nav a:hover,
[data-theme="light"] nav a.active-link {
  color: var(--accent);
}

[data-theme="light"] .logo {
  color: var(--text);
  font-weight: 700;
}

[data-theme="light"] .logo-dot {
  color: var(--accent);
}

[data-theme="light"] .hero-badge {
  background: rgba(8,145,178,0.15);
  border: 1px solid rgba(8,145,178,0.3);
  color: var(--accent);
}

[data-theme="light"] .hero-subtitle {
  color: rgba(15, 23, 42, 0.9) !important;
}

[data-theme="light"] .social-icon {
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--muted);
}

[data-theme="light"] .social-icon:hover {
  background: rgba(8,145,178,0.15);
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme="light"] .avatar {
  border: 4px solid rgba(0,0,0,0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

[data-theme="light"] .info-list li {
  color: var(--muted);
}

[data-theme="light"] .info-list a {
  color: var(--accent);
}

[data-theme="light"] .stats-card {
  background: linear-gradient(135deg, rgba(8,145,178,0.15), rgba(6,182,212,0.08));
  border: 1px solid rgba(8,145,178,0.3);
}

[data-theme="light"] .stat-number {
  color: var(--accent);
}

[data-theme="light"] .stat-label {
  color: var(--muted);
}

[data-theme="light"] .project {
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

[data-theme="light"] .project:hover {
  box-shadow: 0 8px 24px rgba(8,145,178,0.2);
  border-color: rgba(8,145,178,0.3);
}

[data-theme="light"] .project h3 {
  color: var(--text);
}

[data-theme="light"] .project p {
  color: var(--muted) !important;
}

[data-theme="light"] .badge {
  background: rgba(8,145,178,0.15);
  color: var(--accent);
  border: 1px solid rgba(8,145,178,0.3);
}

[data-theme="light"] .badge:hover {
  background: rgba(8,145,178,0.25);
  border-color: var(--accent);
}

[data-theme="light"] .skill-category {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.1);
}

[data-theme="light"] .skill-category:hover {
  border-color: rgba(8,145,178,0.4);
  background: rgba(8,145,178,0.08);
}

[data-theme="light"] .skill-category-title {
  color: var(--accent);
}

[data-theme="light"] .skill {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--text);
}

[data-theme="light"] .skill:hover {
  background: rgba(8,145,178,0.15);
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme="light"] .timeline::before {
  background: linear-gradient(180deg, var(--accent) 0%, rgba(8,145,178,0.3) 100%);
}

[data-theme="light"] .timeline-dot {
  background: var(--accent);
  border: 4px solid var(--card);
  box-shadow: 0 0 0 4px rgba(8,145,178,0.3);
}

[data-theme="light"] .timeline-content {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.1);
}

[data-theme="light"] .timeline-item:hover .timeline-content {
  background: rgba(8,145,178,0.08);
  border-color: rgba(8,145,178,0.3);
}

[data-theme="light"] .timeline-date {
  color: var(--accent);
}

[data-theme="light"] .timeline-title {
  color: var(--text);
}

[data-theme="light"] .timeline-subtitle,
[data-theme="light"] .timeline-description {
  color: var(--muted);
}

[data-theme="light"] .testimonial-card {
  background: linear-gradient(135deg, rgba(8,145,178,0.12), rgba(6,182,212,0.06));
  border: 1px solid rgba(8,145,178,0.25);
}

[data-theme="light"] .testimonial-card:hover {
  border-color: rgba(8,145,178,0.4);
  box-shadow: 0 8px 24px rgba(8,145,178,0.2);
}

[data-theme="light"] .quote-icon {
  color: var(--accent);
  opacity: 0.4;
}

[data-theme="light"] .testimonial-text {
  color: var(--text);
}

[data-theme="light"] .author-name {
  color: var(--text);
}

[data-theme="light"] .author-role {
  color: var(--muted);
}

[data-theme="light"] .author-avatar {
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: #ffffff;
  border: 3px solid rgba(0,0,0,0.1);
}

[data-theme="light"] .filter-btn {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--muted);
}

[data-theme="light"] .filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(8,145,178,0.12);
}

[data-theme="light"] .filter-btn.active {
  background: linear-gradient(90deg, var(--accent), #06b6d4);
  color: #ffffff;
}

[data-theme="light"] .view-more-projects {
  background: rgba(8,145,178,0.08);
  border: 1px solid rgba(8,145,178,0.2);
}

[data-theme="light"] .view-more-projects:hover {
  background: rgba(8,145,178,0.12);
  border-color: rgba(8,145,178,0.3);
}

[data-theme="light"] .github-stats {
  color: var(--muted);
}

[data-theme="light"] form input,
[data-theme="light"] form textarea {
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.9);
  color: var(--text);
}

[data-theme="light"] form input:focus,
[data-theme="light"] form textarea:focus {
  border-color: var(--accent);
  background: rgba(8,145,178,0.05);
}

[data-theme="light"] form label {
  color: var(--text);
}

[data-theme="light"] .theme-toggle {
  border: 1px solid rgba(0,0,0,0.15);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(8,145,178,0.12);
  border-color: var(--accent);
}

[data-theme="light"] .btn-outline {
  border: 1px solid rgba(0,0,0,0.2);
  color: var(--text);
}

[data-theme="light"] .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(8,145,178,0.12);
}

[data-theme="light"] footer {
  border-top: 1px solid rgba(0,0,0,0.1);
  color: var(--muted);
}

[data-theme="light"] .footer-text {
  color: var(--text);
}

[data-theme="light"] .footer-copyright {
  color: var(--muted);
}

[data-theme="light"] .scroll-to-top {
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  box-shadow: 0 4px 20px rgba(8,145,178,0.3);
  color: #ffffff;
}

[data-theme="light"] .scroll-to-top:hover {
  box-shadow: 0 6px 30px rgba(8,145,178,0.5);
}

[data-theme="light"] #particles-canvas {
  opacity: 0.15;
}

[data-theme="light"] .hamburger,
[data-theme="light"] .hamburger::before,
[data-theme="light"] .hamburger::after {
  background: var(--text);
}

[data-theme="light"] nav.active {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0,0,0,0.12);
}

/* Light mode loading screen */
[data-theme="light"] .loader {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

[data-theme="light"] .loader-logo {
  color: var(--text);
}

[data-theme="light"] .loader-spinner {
  border: 3px solid rgba(0,0,0,0.1);
  border-top: 3px solid var(--accent);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Loading Screen */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #071126 0%, #071728 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 30px;
  animation: fadeInOut 2s ease-in-out infinite;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border: 3px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), #0891b2);
  border-radius: 10px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0891b2, var(--accent));
}

/* Selection */
::selection {
  background: rgba(6,182,212,0.3);
  color: var(--text);
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #071126 0%, #071728 100%);
  background-attachment: fixed;
  color: var(--text);
  position: relative;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Floating Particles Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  cursor: none;
  overflow-x: hidden;
}

/* Prevent text overflow globally */
p, span, a, li, div {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Custom Cursor */
.custom-cursor {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
  mix-blend-mode: difference;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
  opacity: 0.5;
}

@media (max-width: 920px) {
  body {
    cursor: default;
  }
  .custom-cursor,
  .cursor-follower {
    display: none;
  }
}

/* Global Link Styles */
a {
  position: relative;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.wrap {
  width: 100%;
  margin: 0 auto;
  padding: 0 80px;
  position: relative;
  z-index: 1;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px;
  margin-bottom: 24px;
  position: sticky;
  top: 0;
  background: rgba(7, 17, 38, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-radius: var(--radius);
  transition: var(--transition);
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo-dot {
  color: var(--accent);
  font-size: 1.5rem;
}

nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

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

nav a.nav-link:hover {
  color: var(--accent);
}

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

nav a.active-link {
  color: var(--accent);
}

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

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.mobile-menu-toggle.active .hamburger {
  background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.btn {
  background: linear-gradient(90deg, var(--accent), #0fb8c7);
  padding: 10px 20px;
  border-radius: 10px;
  color: #041226;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6,182,212,0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(6,182,212,0.05);
  transform: translateY(-2px);
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  position: relative;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: rgba(6,182,212,0.1);
  transform: scale(1.05);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  position: absolute;
  transition: var(--transition);
}

.theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0);
}

.theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(6,182,212,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: 30px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  width: fit-content;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero h1 {
  margin: 0 0 20px 0;
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.name-highlight {
  color: #06b6d4;
  font-weight: 700;
  display: inline-block;
  position: relative;
}

.name-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4, transparent);
  opacity: 0.4;
}

.hero p {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.7;
  max-width: 600px;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(230, 238, 248, 0.9) !important;
  margin-bottom: 12px !important;
  line-height: 1.6;
  min-height: 2rem;
}

/* Typing Cursor Animation */
.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-weight: 400;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--muted);
  transition: var(--transition);
}

.social-icon:hover {
  background: rgba(6,182,212,0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.hero .actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.profile {
  justify-self: center;
  position: relative;
}

.avatar-wrapper {
  position: relative;
  width: fit-content;
}

.avatar-wrapper::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, var(--accent), #0fb8c7);
  border-radius: 50%;
  opacity: 0.3;
  animation: rotate 3s linear infinite;
  z-index: -1;
}

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

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.avatar:hover {
  transform: scale(1.05);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sections */
section {
  margin-top: 80px;
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-number {
  color: var(--accent);
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: 500;
  opacity: 0.8;
}

.card {
  background: rgba(255,255,255,0.02);
  padding: 48px 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.card:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

.info-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  padding: 8px 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.info-list .icon {
  font-size: 1.2rem;
}

.info-list a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.info-list a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.stats-card {
  background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(15,184,199,0.05));
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(6,182,212,0.2);
}

.stats-card h3 {
  margin: 0 0 20px 0;
  font-size: 1.2rem;
  color: var(--accent);
}

.stat-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

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

/* Project Filters */
.project-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(6,182,212,0.08);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(90deg, var(--accent), #0fb8c7);
  border-color: transparent;
  color: #041226;
  font-weight: 600;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.project.hidden {
  display: none;
}

/* View More Projects */
.view-more-projects {
  margin-top: 48px;
  text-align: center;
  padding: 32px;
  background: rgba(6,182,212,0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(6,182,212,0.1);
  transition: var(--transition);
}

.view-more-projects:hover {
  background: rgba(6,182,212,0.05);
  border-color: rgba(6,182,212,0.2);
  transform: translateY(-2px);
}

.view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
  padding: 12px 24px;
  border-radius: 10px;
}

.view-more-link:hover {
  gap: 16px;
}

.view-more-link svg {
  transition: var(--transition);
}

.view-more-link:hover svg {
  transform: translateX(4px);
}

.github-stats {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.project {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 8px 24px rgba(2,6,23,0.6);
  transition: var(--transition);
}

.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(6,182,212,0.2);
  border-color: rgba(6,182,212,0.3);
}

.project img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.project:hover img {
  transform: scale(1.05);
}

.project .pd {
  padding: 20px;
}

.project h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(6,182,212,0.08);
  color: var(--accent);
  border: 1px solid rgba(6,182,212,0.15);
  font-weight: 500;
  transition: var(--transition);
}

.badge:hover {
  background: rgba(6,182,212,0.15);
  border-color: var(--accent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.skill-category {
  background: rgba(255,255,255,0.02);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}

.skill-category:hover {
  border-color: rgba(6,182,212,0.3);
  background: rgba(6,182,212,0.03);
}

.skill-category-title {
  color: var(--accent);
  font-size: 1rem;
  margin: 0 0 16px 0;
  font-weight: 600;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill {
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  color: var(--text);
}

.skill:hover {
  background: rgba(6,182,212,0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding: 20px 0;
  margin-top: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(6,182,212,0.2) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 40px;
  transition: var(--transition);
}

.timeline-item:hover {
  transform: translateX(5px);
}

.timeline-dot {
  position: absolute;
  left: 20px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  border: 4px solid var(--card);
  box-shadow: 0 0 0 4px rgba(6,182,212,0.2);
  z-index: 2;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(6,182,212,0.3);
}

.timeline-content {
  background: rgba(255,255,255,0.02);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}

.timeline-item:hover .timeline-content {
  background: rgba(6,182,212,0.05);
  border-color: rgba(6,182,212,0.2);
}

.timeline-date {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-title {
  color: var(--text);
  font-size: 1.2rem;
  margin: 0 0 6px 0;
  font-weight: 600;
}

.timeline-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
  font-weight: 500;
}

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

/* Testimonials Styles */
.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(15,184,199,0.03));
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(6,182,212,0.15);
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

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

.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: rgba(6,182,212,0.3);
  box-shadow: 0 12px 40px rgba(6,182,212,0.2);
}

.quote-icon {
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
  opacity: 0.3;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}

.testimonial-text {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0fb8c7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #041226;
  font-weight: 700;
  font-size: 1.1rem;
  border: 3px solid rgba(255,255,255,0.1);
}

.author-name {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-role {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Contact form */
form {
  margin-top: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-group label {
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 500;
}

form input, form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(6,182,212,0.05);
}

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

form button {
  margin-top: 16px;
  width: auto;
  min-width: 150px;
}

#form-status {
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

#form-status.success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e;
}

#form-status.error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), #0fb8c7);
  border: none;
  border-radius: 50%;
  color: #041226;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(6,182,212,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(6,182,212,0.5);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}

footer {
  margin-top: 60px;
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-text {
  font-size: 1rem;
  margin: 0;
}

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

.footer-links a {
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-hover) !important;
}

.footer-copyright {
  font-size: 0.85rem;
  margin: 0;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0;
    gap: 40px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .profile {
    order: -1;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  nav {
    position: fixed;
    top: 70px;
    left: 20px;
    right: 20px;
    background: rgba(7, 17, 38, 0.98);
    backdrop-filter: blur(10px);
    padding: 0 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out, visibility 0s 0.3s;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 99;
  }
  
  nav.active {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    padding: 24px;
    transition: all 0.3s ease-in-out, visibility 0s 0s;
  }
  
  nav a {
    padding: 12px;
    border-radius: 8px;
    transition: var(--transition);
  }
  
  nav a:hover {
    background: rgba(6,182,212,0.1);
  }
  
  nav a.nav-link::after {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .projects {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 20px 16px;
    overflow-wrap: break-word;
  }
  
  section h2 {
    font-size: 1.6rem;
  }
  
  .avatar {
    width: 140px;
    height: 140px;
  }
  
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  body {
    padding: 16px 0;
  }
  
  .wrap {
    padding: 0 20px;
  }
  
  /* Fix About section text overflow */
  .info-list li {
    flex-wrap: wrap;
    word-break: break-word;
  }
  
  .info-list strong {
    flex-shrink: 0;
  }
  
  .info-list a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-item {
    padding-left: 45px;
  }
  
  .timeline-dot {
    left: 5px;
    width: 16px;
    height: 16px;
  }
  
  .testimonials-container {
    grid-template-columns: 1fr;
  }
  
  .theme-toggle {
    width: 35px;
    height: 35px;
  }
  
  .project-filters {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}
