:root {
  --bg-dark: #0a1628;
  --bg-deep: #0f2040;
  --accent: #8b1a3a;
  --accent-soft: #d15976;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(
    135deg,
    var(--bg-dark) 0%,
    var(--bg-dark) 45%,
    var(--accent) 100%
  );
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.loaded {
  opacity: 1;
}

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

ul {
  list-style: none;
}

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

::selection {
  background: rgba(139, 26, 58, 0.4);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(139, 26, 58, 0.4);
  border-radius: 3px;
}

.cursor-follower {
  position: fixed;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(139, 26, 58, 0.12) 0%,
    rgba(139, 26, 58, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cursor-follower.visible {
  opacity: 1;
}

.top-accent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--bg-deep),
    var(--accent)
  );
  z-index: 10001;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 10000;
  transition: all 0.4s ease;
  background: rgba(10, 22, 40, 0.95);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

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

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.mobile-link {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.mobile-menu-footer {
  position: absolute;
  bottom: 2rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 2rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #0a1628 45%, #8b1a3a 100%);
}

.hero-bg-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(6rem, 18vw, 22rem);
  font-weight: 700;
  color: #fff;
  opacity: 0.03;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(139, 26, 58, 0.08);
  top: 10%;
  right: -5%;
}

.hero-orb-2 {
  width: 280px;
  height: 280px;
  background: rgba(15, 32, 64, 0.6);
  bottom: 8%;
  left: -5%;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.label-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-label span:last-child {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.hero-name {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.73);
  margin-bottom: 0.25rem;
}

.hero-university {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.75rem;
}

.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  border-color: rgba(139, 26, 58, 0.3);
  color: #fff;
  background: rgba(139, 26, 58, 0.08);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #a5244a;
  border-color: rgba(139, 26, 58, 0.5);
  box-shadow: 0 0 30px rgba(139, 26, 58, 0.3);
  transform: translateY(-2px);
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo-frame {
  position: relative;
  width: 280px;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.hero-photo-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent),
    rgba(139, 26, 58, 0.2),
    transparent
  );
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(139, 26, 58, 0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.tools-section,
.projects-section,
.experience-section,
.contact-section {
  position: relative;
  padding: 6rem 2rem;
}

.tools-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(45, 92, 255, 0.08),
      transparent 18%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255, 41, 116, 0.06),
      transparent 22%
    );
  pointer-events: none;
}

.tools-section::after {
  content: "";
  position: absolute;
  inset: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  pointer-events: none;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.section-divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 0 auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.tools-grid .tool-category:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 960px;
  margin-top: 0.25rem;
}

.tool-category {
  padding: 1.5rem 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tool-category:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 26, 58, 0.2);
  transform: translateY(-3px);
}

.tool-category-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  text-align: center;
}

.tool-category-header .iconify {
  color: var(--accent);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-category-header h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.tool-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 0.75rem;
  justify-items: center;
  justify-content: center;
  width: 100%;
}

.tool-items-web {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.tool-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  min-width: 80px;
  min-height: 80px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0.75rem 0.35rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tool-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 26, 58, 0.2);
  transform: translateY(-3px);
}

.tool-item .iconify {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.65);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-item span:last-child {
  font-family: "Poppins", sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

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

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: all 0.4s ease;
  min-height: 220px;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent),
    rgba(139, 26, 58, 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.project-card-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at top left,
    rgba(139, 26, 58, 0.08) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-card-bg {
  opacity: 1;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 26, 58, 0.2);
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(139, 26, 58, 0.08);
}

.project-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(139, 26, 58, 0.1);
  border: 1px solid rgba(139, 26, 58, 0.15);
  margin-bottom: 1.25rem;
}

.project-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.project-info {
  position: relative;
  z-index: 1;
  flex: 1;
}

.project-info h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.project-arrow {
  position: relative;
  z-index: 1;
  margin-top: 1.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.project-card:hover .project-arrow {
  border-color: rgba(139, 26, 58, 0.4);
  background: rgba(139, 26, 58, 0.12);
}

.experience-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.experience-card,
.achievement-card {
  padding: 2.25rem;
  border-radius: 24px;
  background: rgba(10, 22, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
}

.experience-card h3,
.achievement-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.experience-group {
  margin-bottom: 1rem;
}

.experience-group h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-soft);
  margin-bottom: 1rem;
}

.experience-group li,
.achievement-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.experience-group li:last-child,
.achievement-list li:last-child {
  border-bottom: none;
}

.experience-group strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
}

.experience-group span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.achievement-list li::before {
  content: "•";
  color: var(--accent);
  display: inline-block;
  width: 1rem;
  margin-left: -1rem;
}

.contact-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 24px;
  background: rgba(10, 22, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.contact-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1.25rem;
}

.contact-item {
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-title {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.contact-item a {
  display: inline-block;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.footer {
  padding: 2rem 2rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #0a1628;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

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

.footer-logo {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.footer-tagline {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.25rem;
}

.footer-copy {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.25);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-content {
    gap: 3rem;
  }

  .hero-photo-frame {
    width: 240px;
    height: 300px;
  }

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

  .tools-grid .tool-category:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 960px;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 5rem 1.25rem 2rem;
    min-height: auto;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-label {
    justify-content: center;
  }

  .hero-skills {
    justify-content: center;
  }

  .hero-cta {
    display: flex;
    justify-content: center;
  }

  .scroll-indicator {
    display: none;
  }

  .tools-section,
  .projects-section,
  .experience-section,
  .contact-section {
    padding: 4rem 1.25rem;
  }

  .tools-grid,
  .projects-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-photo-frame {
    width: 190px;
    height: 240px;
  }

  .hero-name {
    font-size: 1.8rem;
  }

  .tool-item {
    min-width: 70px;
    min-height: 70px;
    padding: 0.6rem 0.25rem;
  }

  .tool-item .iconify {
    font-size: 0.9rem;
  }

  .contact-card,
  .experience-card,
  .achievement-card {
    padding: 2rem 1.25rem;
  }
}
