/* ===== CSS Variables ===== */
:root {
  --bg-primary: #0b0d17;
  --bg-secondary: #10122a;
  --bg-card: #161938;
  --bg-card-hover: #1c2045;
  --text-primary: #e8e8f0;
  --text-secondary: #8888a8;
  --accent-primary: #7c5cfc;
  --accent-secondary: #06d6a0;
  --accent-pink: #ff6b9d;
  --gradient-main: linear-gradient(135deg, #7c5cfc 0%, #06d6a0 100%);
  --gradient-warm: linear-gradient(135deg, #ff6b9d 0%, #ffa726 100%);
  --gradient-cool: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --border-color: rgba(124, 92, 252, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(124, 92, 252, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-secondary);
}

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

::selection {
  background: rgba(124, 92, 252, 0.3);
  color: #fff;
}

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

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 13, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(124, 92, 252, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

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

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

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

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero-shape-1 {
  width: 600px;
  height: 600px;
  background: rgba(124, 92, 252, 0.3);
  top: -200px;
  right: -100px;
  animation: float1 20s ease-in-out infinite;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(6, 214, 160, 0.2);
  bottom: -100px;
  left: -50px;
  animation: float2 25s ease-in-out infinite;
}

.hero-shape-3 {
  width: 300px;
  height: 300px;
  background: rgba(255, 107, 157, 0.15);
  top: 50%;
  left: 50%;
  animation: float3 18s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 92, 252, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 252, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--accent-secondary);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.gradient-text {
  background: var(--gradient-main);
  -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: 16px;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 92, 252, 0.4);
  color: #fff;
}

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

.btn-outline:hover {
  border-color: var(--accent-primary);
  background: rgba(124, 92, 252, 0.08);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.hero-tech {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-tech span {
  padding: 6px 14px;
  background: rgba(124, 92, 252, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-secondary);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.scroll-mouse:hover {
  opacity: 1;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

/* ===== Section Base ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-number {
  color: var(--accent-primary);
  font-size: 0.9em;
  font-weight: 600;
  margin-right: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

.subsection-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 64px 0 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.subsection-title i {
  color: var(--accent-primary);
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.about-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-main);
  padding: 3px;
  margin-bottom: 24px;
  overflow: hidden;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.about-detail i {
  color: var(--accent-primary);
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
}

.about-detail a {
  color: var(--text-secondary);
}

.about-detail a:hover {
  color: var(--accent-primary);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

/* ===== Skills Section ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

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

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(124, 92, 252, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: var(--accent-primary);
}

.skill-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
}

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

.skill-tags span {
  padding: 5px 12px;
  background: rgba(124, 92, 252, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition);
}

.skill-card:hover .skill-tags span {
  border-color: var(--border-color);
}

/* ===== Experience Timeline ===== */
.timeline {
  position: relative;
  margin-top: 48px;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

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

.timeline-marker {
  position: absolute;
  left: -34px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  z-index: 1;
}

.timeline-marker.current {
  background: var(--accent-primary);
  box-shadow: 0 0 12px rgba(124, 92, 252, 0.5);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.timeline-content:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-glow);
}

.timeline-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gradient-main);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.timeline-date {
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-company {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.timeline-company i {
  color: var(--accent-primary);
  margin-right: 6px;
  font-size: 0.85rem;
}

.timeline-content > p:last-child {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== Education ===== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.education-card:hover {
  border-color: var(--border-color);
  transform: translateY(-3px);
}

.edu-year {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.education-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.edu-institution {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.edu-score {
  color: var(--accent-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== Portfolio ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 48px;
}

.project-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.project-card:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.project-card:nth-child(even) {
  direction: rtl;
}

.project-card:nth-child(even) > * {
  direction: ltr;
}

/* Browser Mockup */
.browser-mockup {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card:nth-child(even) .browser-mockup {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.browser-header {
  background: #1e1e2e;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.dot-red, .dot-yellow, .dot-green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28ca41; }

.browser-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-url i {
  font-size: 0.65rem;
  color: var(--accent-secondary);
}

.browser-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
  background: #0d0d1a;
}

.browser-screenshot {
  width: 100%;
  display: block;
}

.mockup-inner {
  text-align: center;
  padding: 24px;
}

/* Grandi Firme Mockup */
.mockup-grandifirme {
  background: linear-gradient(145deg, #1a1a1a 0%, #2a1810 100%);
}

.mockup-logo-gf {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #d4a84b;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(212, 168, 75, 0.3);
}

.mockup-title-gf {
  font-family: 'Georgia', serif;
  font-size: 1.2rem;
  color: #d4a84b;
  margin-bottom: 4px;
}

.mockup-sub-gf {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.mockup-brands {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.mockup-brands span {
  padding: 3px 10px;
  border: 1px solid rgba(212, 168, 75, 0.3);
  border-radius: 4px;
  font-size: 0.65rem;
  color: rgba(212, 168, 75, 0.7);
}

/* Prenoty Mockup */
.mockup-prenoty {
  background: linear-gradient(145deg, #0a1628 0%, #1a0a2e 100%);
}

.mockup-icon-prenoty {
  font-size: 2.5rem;
  color: #3b82f6;
  margin-bottom: 12px;
}

.mockup-title-prenoty {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.mockup-sub-prenoty {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.mockup-features {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.mockup-features span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

.mockup-features i {
  color: #3b82f6;
  font-size: 0.7rem;
}

/* Gestionale Mockup */
.mockup-gestionale {
  background: #111827;
  padding: 0;
}

.mockup-gestionale .mockup-inner {
  padding: 0;
  width: 100%;
  height: 100%;
}

.mockup-dashboard {
  display: flex;
  height: 100%;
  min-height: 240px;
}

.mockup-sidebar {
  width: 48px;
  background: #1f2937;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.sb-item {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.sb-item.active {
  background: var(--accent-primary);
  box-shadow: 0 0 8px rgba(124, 92, 252, 0.5);
}

.mockup-main {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-topbar {
  height: 8px;
  width: 60%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.mockup-cards-row {
  display: flex;
  gap: 8px;
}

.mc {
  flex: 1;
  height: 40px;
  border-radius: 6px;
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid rgba(124, 92, 252, 0.2);
}

.mockup-table {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mt-row {
  height: 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
}

.mt-row.header {
  background: rgba(255, 255, 255, 0.08);
  height: 16px;
}

/* Project Info */
.project-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-info h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-info > p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tech span {
  padding: 4px 12px;
  background: rgba(124, 92, 252, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--accent-primary);
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition);
}

.project-link:hover {
  color: var(--accent-primary);
}

.project-link i {
  font-size: 0.85rem;
}

.private-badge {
  color: var(--text-secondary);
  font-weight: 500;
  cursor: default;
}

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  margin-top: 48px;
}

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

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

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(124, 92, 252, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.1rem;
}

.contact-item h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-item a:hover {
  color: var(--accent-primary);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(136, 136, 168, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  background: rgba(124, 92, 252, 0.04);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1);
}

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

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-status.success {
  color: var(--accent-secondary);
}

.form-status.error {
  color: var(--accent-pink);
}

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

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.heart {
  color: var(--accent-pink);
}

.footer-social {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-copy {
  color: rgba(136, 136, 168, 0.5);
  font-size: 0.8rem;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-main);
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.3);
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(124, 92, 252, 0.4);
}

/* ===== 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);
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -50px) scale(1.05); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 40px) scale(1.08); }
  66% { transform: translate(50px, -20px) scale(0.92); }
}

@keyframes float3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(11, 13, 23, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 20px 24px;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cookie-content p {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cookie-content a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* ===== Policy Page ===== */
.policy-content {
  margin-top: 32px;
}

.policy-content h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--text-primary);
}

.policy-content h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text-primary);
}

.policy-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.7;
}

.policy-content ul {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 16px 24px;
  line-height: 1.8;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.88rem;
}

.policy-table th,
.policy-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border-subtle);
}

.policy-table th {
  background: rgba(124, 92, 252, 0.08);
  color: var(--text-primary);
  font-weight: 600;
}

.policy-table td {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .policy-table {
    font-size: 0.78rem;
  }

  .policy-table th,
  .policy-table td {
    padding: 8px 10px;
  }
}

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

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(even) {
    direction: ltr;
  }

  .browser-mockup {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .project-card:nth-child(even) .browser-mockup {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(11, 13, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 4px;
    transition: right var(--transition);
    border-left: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero {
    padding: 100px 20px 60px;
  }

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

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

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

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

  .timeline {
    padding-left: 32px;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-marker {
    left: -28px;
    width: 12px;
    height: 12px;
  }

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

  .contact-form {
    padding: 24px;
  }

  .section {
    padding: 72px 0;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.2rem;
  }

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

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

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

  .hero-tech {
    gap: 8px;
  }

  .hero-tech span {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
}
