:root {
  color-scheme: dark;
  --bg: #0f1218;
  --surface: #161b24;
  --surface-strong: #1f2633;
  --text: #e8eef8;
  --muted: #a1abc7;
  --accent: #00d9ff;
  --accent-soft: rgba(0, 217, 255, 0.16);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 24px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, rgba(124, 156, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #141820 0%, #0f1218 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  line-height: 1.65;
}

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

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

.site-shell {
  width: min(96%, var(--max-width));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.hero {
  padding: 64px 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background-image: linear-gradient(180deg, rgba(6, 10, 16, 0.15), rgba(6, 10, 16, 0.85) 60%, rgba(15, 18, 24, 1)),
    url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  backdrop-filter: blur(16px);
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  position: relative;
  animation: glitch 6s infinite;
}

.hero h1::before,
.hero h1::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0.75;
  clip-path: inset(0 0 50% 0);
}

.hero h1::before {
  left: 2px;
  text-shadow: 2px 0 0 #00ffff;
  animation: glitch-top 6s infinite;
}

.hero h1::after {
  left: -2px;
  text-shadow: -2px 0 0 #ff004b;
  animation: glitch-bottom 6s infinite;
}

@keyframes glitch {
  0%, 15%, 18%, 100% { transform: none; }
  16%, 17% { transform: translate(1px, -1px); }
  19%, 19.5% { transform: translate(-1px, 1px); }
}

@keyframes glitch-top {
  0%, 14%, 20%, 100% { clip-path: inset(0 0 50% 0); }
  15%, 16% { clip-path: inset(0 0 60% 0); }
  17%, 18% { clip-path: inset(0 0 40% 0); }
}

@keyframes glitch-bottom {
  0%, 14%, 20%, 100% { clip-path: inset(50% 0 0 0); }
  15%, 16% { clip-path: inset(40% 0 0 0); }
  17%, 18% { clip-path: inset(60% 0 0 0); }
}

.hero-gif {
  display: block;
  width: 100px;
  height: auto;
  margin: 16px auto 32px;
  box-shadow: 0 0 12px rgba(0, 139, 139, 0.6);
  border-radius: 12px;
}

.subtitle {
  max-width: 720px;
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.hero-social {
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 0.3s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(0, 139, 139, 0.5);
}

.button-primary {
  color: #fff;
  background: var(--accent);
}

.button-secondary {
  color: var(--text);
  border: 1px solid rgba(0, 217, 255, 0.14);
  background: rgba(0, 217, 255, 0.03);
}

.section {
  margin-top: 2rem;
}

.card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(17, 21, 29, 0.88);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.section h2 {
  margin-top: 0;
  font-size: 2rem;
}

.section p {
  margin: 16px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 10px rgba(0, 139, 139, 0.5);
}

.project-card a {
  text-decoration: none;
  color: inherit;
}

.tech-stack {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

.project-card h3 {
  margin: 0 0 12px;
}

.contact-card {
  display: grid;
  gap: 24px;
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 620px;
}

.contact-form label {
  display: grid;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 217, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.12);
  background: rgba(0, 217, 255, 0.06);
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.button-send {
  width: fit-content;
  padding: 14px 30px;
  box-shadow: 0 18px 36px rgba(0, 217, 255, 0.28);
  background: linear-gradient(135deg, #00d9ff, #00b7f0);
  border: 1px solid rgba(0, 217, 255, 0.7);
  box-shadow: 0 18px 36px rgba(0, 217, 255, 0.28);
}

.button-send:hover {
  background: linear-gradient(135deg, #00e5ff, #00c3ff);
}

.contact-card {
  background: rgba(11, 14, 20, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
}

.contact-form label {
  color: #eaf6ff;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 10, 16, 0.92);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(225, 235, 255, 0.54);
}

#about h2 {
  text-align: center;
}

#projects {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#projects h2 {
  grid-column: 1 / -1;
  text-align: center;
}

.certifications-grid h2 {
  grid-column: 1 / -1;
  margin-top: 0;
  color: #d6e9ff;
}

.certifications-grid {
  padding: 18px 0 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cert-card {
  padding: 32px;
  border-radius: 20px;
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.18);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  background: rgba(0, 139, 139, 0.12);
  border-color: rgba(0, 139, 139, 0.30);
  box-shadow: 0 18px 40px rgba(0, 139, 139, 0.08);
}

.cert-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  color: #00bcd4;
  text-shadow: 0 0 12px rgba(0, 188, 212, 0.45);
}

.cert-card h3 {
  margin: 12px 0;
  font-size: 1.25rem;
  color: var(--accent);
}

.cert-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.skills-grid h2 {
  grid-column: 1 / -1;
  text-align: center;
}

.skill-card {
  padding: 32px;
  border-radius: 20px;
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.12);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  background: rgba(0, 217, 255, 0.08);
  border-color: rgba(0, 139, 139, 0.24);
}

.skill-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.skill-card h3 {
  margin: 12px 0;
  font-size: 1.25rem;
  color: #00d9ff;
}

.skill-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  background: rgba(17, 21, 29, 0.5);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 64px;
}

.footer-content {
  width: min(96%, var(--max-width));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-message {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
}

.thank-you-message {
  text-align: center;
  color: #008b8b;
  font-weight: 600;
  margin-top: 20px;
}

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

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 255, 255, 0.12);
  border: 1px solid rgba(0, 255, 255, 0.25);
  color: #00ffff;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
}

.social-button:hover {
  background: rgba(0, 255, 255, 0.22);
  border-color: rgba(0, 255, 255, 0.55);
  transform: scale(1.2);
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.75);
}

@media (max-width: 840px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-shell {
    padding: 24px 0 48px;
  }

  .hero {
    padding: 36px 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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






