/* ============================================
   GCEYA 7 — Portfolio Stylesheet
   Dark & Modern | Blue Primary (#3B82F6)
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #3B82F6;
  --primary-light: #60A5FA;
  --primary-dark: #2563EB;
  --accent: #3B82F6;

  /* Dark Theme (default) */
  --bg-primary: #0B0F1A;
  --bg-secondary: #111827;
  --bg-card: #1A1F2E;
  --bg-card-hover: #222840;
  --bg-sidebar: #0D1117;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-color: #1E293B;
  --border-light: #334155;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
  --gradient: linear-gradient(135deg, var(--primary), #8B5CF6);
  --overlay: rgba(0, 0, 0, 0.7);

  --sidebar-width: 80px;
  --sidebar-expanded: 220px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-sidebar: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border-color: #E2E8F0;
  --border-light: #CBD5E1;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --overlay: rgba(255, 255, 255, 0.8);
}

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

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  transition: background var(--transition), color var(--transition);
}

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

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

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0 80px;
  position: relative;
}

/* --- Custom Cursor --- */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transition: transform 0.1s;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.15s;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

.cursor-ring.hover {
  width: 52px;
  height: 52px;
  border-color: var(--primary-light);
  opacity: 0.8;
}

/* --- Sidebar Navigation --- */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  z-index: 1000;
  transition: width var(--transition), background var(--transition);
}

.sidebar:hover {
  width: var(--sidebar-expanded);
}

.sidebar-header {
  margin-bottom: 40px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  overflow: hidden;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  width: 100%;
  padding: 0 12px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.nav-link svg {
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex-shrink: 0;
}

.nav-link span {
  opacity: 0;
  transition: opacity var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
}

.sidebar:hover .nav-link span {
  opacity: 1;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

.sidebar-footer {
  margin-top: auto;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* --- Mobile Header --- */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  transition: background var(--transition);
}

.mobile-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-mobile {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-toggle-mobile svg {
  width: 18px;
  height: 18px;
}

.hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-menu-overlay.active {
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 64px;
  right: -280px;
  width: 280px;
  height: calc(100vh - 64px);
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border-color);
  z-index: 999;
  transition: right var(--transition);
  padding: 24px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
}

/* --- Main Content Offset --- */
.main-content {
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition);
}

/* --- Hero Section --- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 40px;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-name span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 20px;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
}

.stat-number::after {
  content: '+';
  font-size: 1.2rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 380px;
  max-width: 100%;
}

.hero-image-wrapper img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  object-fit: cover;
}



.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
}

.floating-badge svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.badge-1 {
  top: 20%;
  right: -20px;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 25%;
  left: -20px;
  animation-delay: 1.5s;
}

.badge-3 {
  top: 90%;
  left: 60%;
  transform: translateX(-50%);
  animation-delay: 0.75s;
}

.badge-3 svg {
  color: var(--primary-light);
}

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

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 20px; }
}

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

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 12px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 20px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.section-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: start;
}

.about-content h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.detail-item {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
}

.detail-label {
  color: var(--text-muted);
  font-weight: 500;
  min-width: 70px;
}

.detail-value {
  color: var(--text-primary);
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 0;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.skill-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 3px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Services Section --- */
.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

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

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

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

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

.service-features li {
  padding: 5px 12px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* --- Projects Section --- */
.project-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: none;
  transition: all var(--transition);
  font-family: inherit;
}

.tab-btn:hover {
  transform: translateY(-2px);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* --- Track List (Java Projects) --- */
.spotify-tracklist {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
}

.track-strip {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  border-radius: 8px;
  transition: background-color 0.2s ease;
  cursor: default;
}

.track-strip:hover {
  background: rgba(255, 255, 255, 0.03);
}

.track-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 24px;
  opacity: 0.9;
}

.track-info {
  flex: 1;
}

.track-info h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.track-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin: 0;
  line-height: 1.5;
}

.track-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.track-action {
  font-size: 0.82rem;
  font-weight: 600;
  cursor: none;
  transition: all var(--transition);
  font-family: inherit;
}

.track-action.view-ui {
  text-decoration: none;
  background-color: #22C55E;
  color: #1E2024;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
}

.track-action.view-ui:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.track-action.open-code {
  background: transparent;
  border: none;
  color: var(--primary);
  padding: 10px 14px;
  border-radius: 6px;
}

.track-action.open-code:hover {
  background: rgba(59, 130, 246, 0.1);
}

.hidden-code-container {
  display: none;
}

/* --- Design Grid (Web/App Design Cards) --- */
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.design-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-overlay,
.live-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 100%);
  transition: background 0.3s ease;
}

.design-card:hover .card-bg {
  transform: scale(1.05);
}

.design-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 100%);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2;
}

.figma-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.card-text h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.card-text p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--text-secondary);
}

.live-text {
  color: #22C55E !important;
  font-weight: 600;
}

.live-site-link {
  text-decoration: none;
}

/* --- Code Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 10002;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.code-container {
  width: 90%;
  max-width: 900px;
  background: #1E1E1E;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  margin: 0 auto;
}

.code-header {
  background: #2D2D2D;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mac-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mac-btn.red { background: #FF5F56; }
.mac-btn.yellow { background: #FFBD2E; }
.mac-btn.green { background: #22C55E; }

.code-filename {
  color: #858585;
  font-size: 0.9rem;
  font-family: monospace;
  margin-left: 1rem;
}

.code-container pre {
  margin: 0;
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: auto;
  color: #D4D4D4;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.code-container pre::-webkit-scrollbar {
  width: 8px;
}

.code-container pre::-webkit-scrollbar-thumb {
  background: #4A4A4A;
  border-radius: 4px;
}

/* --- Design Lightbox --- */
.lightbox-scroll-container {
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  margin: 0 auto;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-scroll-container::-webkit-scrollbar {
  width: 8px;
}

.lightbox-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.lightbox-scroll-container::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

#lightbox-image {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Contact Section --- */
.contact {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-value {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

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

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-muted);
  transition: all var(--transition);
}

.social-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

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

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.form-error {
  font-size: 0.8rem;
  color: #EF4444;
  min-height: 20px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  position: relative;
}

.btn-loading {
  display: none;
}

.btn-submit.loading .btn-text { opacity: 0; }
.btn-submit.loading .btn-loading {
  display: flex;
  position: absolute;
  animation: spin 1s linear infinite;
}

.btn-submit.loading .btn-loading svg {
  width: 22px;
  height: 22px;
}

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

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: #22C55E;
  font-size: 0.9rem;
}

.form-success.show {
  display: flex;
}

.form-success svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 100;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .mobile-header { display: flex; }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-desc { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image-wrapper { width: 300px; }

    .about-grid {
      grid-template-columns: 1fr;
      gap: 40px;
    }
  
    .skills-grid {
      margin-top: 0;
    }

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

  .section { padding: 80px 0 60px; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-image-wrapper { width: 250px; }
  .floating-badge { display: none; }

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

  .project-tabs { gap: 8px; }
  .tab-btn { padding: 8px 14px; font-size: 0.82rem; }

  .track-strip { flex-direction: column; align-items: flex-start; gap: 16px; }
  .track-icon { margin-right: 0; }
  .track-actions { opacity: 1; }

  .container { padding: 0 16px; }

  .footer-content { flex-direction: column; text-align: center; }

  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 1.8rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .stat-number { font-size: 1.6rem; }
  .btn { padding: 12px 22px; font-size: 0.88rem; }
  .service-card { padding: 24px; }
}

/* Touch devices - show normal cursor */
@media (hover: none) {
  body { cursor: auto; }
  a, button, .tab-btn, .btn, .open-code, .design-card { cursor: pointer; }
  .cursor-dot, .cursor-ring { display: none; }
}
