/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

html {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #f8c326, #fc6a03);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #f8c326, #fc6a03);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #f8c326 #1a1a1a;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(to right, #f8c326, #fc6a03);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-container {
  width: 256px;
  text-align: center;
}

.loading-bar-container {
  height: 8px;
  width: 100%;
  background: #374151;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
}

.loading-bar-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #f8c326, #fc6a03, #f8c326);
  animation: loading-bg 6s linear infinite;
  transform: translateX(-100%);
}

.loading-bar {
  height: 100%;
  background: linear-gradient(to right, #f8c326, #fc6a03);
  width: 0%;
  transition: width 0.1s ease;
}

.loading-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  filter: blur(2px);
  width: 0%;
  transition: width 0.1s ease;
}

.loading-percentage {
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(to right, #f8c326, #fc6a03);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.loading-text {
  color: #9ca3af;
  font-size: 0.875rem;
  animation: loading-pulse 2s ease-in-out infinite;
}

@keyframes loading-bg {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes loading-pulse {
  0%,
  100% {
    text-shadow: 0 0 0px rgba(139, 92, 246, 0);
  }
  50% {
    text-shadow: 0 0 2px rgba(139, 92, 246, 0.5);
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 20px 0;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  padding: 12px 0;
}

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

.nav-logo {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.nav-logo .accent {
  color: #ef4444;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #f8c326, #fc6a03);
  transition: width 0.3s ease;
}

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

.nav-icon {
  color: #d1d5db;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-icon:hover {
  color: #fff;
  transform: scale(1.2) rotate(5deg);
}

.mobile-nav {
  display: none;
  align-items: center;
  gap: 16px;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

.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(7px, -6px);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  padding: 16px;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  padding: 12px 0;
  text-align: center;
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: #fff;
}

/* Interactive Shapes */
.interactive-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  background: linear-gradient(to right, #f8c326, #fc6a03);
  opacity: 0.1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.shape:hover {
  opacity: 0.2;
  transform: scale(1.2);
}

.shape.circle {
  border-radius: 50%;
}

/* Animated Boxes */
.animated-boxes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.animated-box {
  position: absolute;
  background: #d1d5db;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Common Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-title {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 48px;
}

.subsection-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 32px;
}

.gradient-text {
  background: linear-gradient(to right, #f8c326, #fc6a03);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.emoji {
  margin-left: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(to right, #f8c326, #fc6a03);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(to right, #f8c326, #fc6a03);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid #f8c326;
  color: #fff;
}

.btn-outline:hover {
  background: #f8c326;
  color: #fff;
}

.btn-secondary {
  background: #f8c326;
  color: #fff;
}

.btn-secondary:hover {
  background: #6d28d9;
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 10;
  position: relative;
}

.hero-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 16px;
  background: linear-gradient(to right, #f8c326, #fc6a03, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 32px;
  color: #d1d5db;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

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

/* About Section */
.about {
  padding: 80px 0;
  background: linear-gradient(to bottom, #000, #111827);
}

.profile-section {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 32px;
  margin-bottom: 80px;
}

.profile-image {
  width: 256px;
  height: 256px;
  position: relative;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.profile-content {
  flex: 1;
  max-width: none;
}

.mobile-description {
  font-size: 1.125rem;
  line-height: 1.75;
  text-align: center;
}

.desktop-description {
  display: none;
}

.desktop-description p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* Skills Section */
.skills-section {
  margin-top: 80px;
}

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

.skill-category {
  padding: 24px;
  background: rgba(17, 24, 39, 0.5);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  border: 1px solid #374151;
}

.skill-category h4 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #f8c326;
  margin-bottom: 16px;
  text-align: center;
}

.skill-bar {
  margin-bottom: 16px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.skill-info span:first-child {
  color: #d1d5db;
}

.skill-info span:last-child {
  color: #9ca3af;
}

.skill-progress {
  height: 8px;
  background: #374151;
  border-radius: 9999px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(to right, #f8c326, #fc6a03);
  width: 0%;
  transition: width 1s ease;
}

/* Services Section */
.services {
  padding: 80px 0;
  background: #000;
}

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

.service-card {
  padding: 24px;
  background: #111827;
  border-radius: 12px;
  border: 1px solid #374151;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: #f8c326;
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: #f8c326;
}

.service-card:nth-child(even) .service-icon {
  color: #fc6a03;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 12px;
}

.service-card p {
  color: #9ca3af;
  line-height: 1.6;
}

/* Work Section */
.work {
  padding: 80px 0;
  background: linear-gradient(to bottom, #111827, #000);
}

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

.project-card {
  padding: 24px;
  background: #111827;
  border-radius: 12px;
  border: 1px solid #374151;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: #f8c326;
  transform: translateY(-4px);
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 12px;
  text-align: center;
}

.project-card p {
  color: #9ca3af;
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 9999px;
  background: linear-gradient(to right, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: #000;
}

.contact-content {
  max-width: 768px;
  margin: 0 auto;
}

.contact-form {
  background: #111827;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #374151;
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: #374151;
  border: 1px solid #4b5563;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f8c326;
}

.contact-links {
  text-align: center;
}

.contact-links p {
  color: #9ca3af;
  margin-bottom: 16px;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Footer */
.footer {
  padding: 48px 0;
  background: linear-gradient(to top, #111827, #000);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(to right, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: linear-gradient(to right, #f8c326, #fc6a03);
  transform: translateY(-2px);
}

.footer-text {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.email-link {
  color: #f8c326;
  text-decoration: none;
  margin-top: 8px;
  display: inline-block;
  transition: color 0.3s ease;
}

.email-link:hover {
  color: #c084fc;
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }

  .mobile-nav {
    display: none;
  }

  .hero-title {
    font-size: 6rem;
  }

  .hero-subtitle {
    font-size: 2rem;
  }

  .profile-section {
    flex-direction: row-reverse;
  }

  .profile-image {
    flex-shrink: 0;
  }

  .mobile-description {
    display: none;
  }

  .desktop-description {
    display: block;
    text-align: left;
  }

  .skill-category h4 {
    text-align: left;
  }

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

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

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

  .project-card h3,
  .project-card p {
    text-align: left;
  }

  .project-tags {
    justify-content: flex-start;
  }

  .service-card {
    text-align: left;
  }

  .contact-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 7rem;
  }

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

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

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

  .mobile-nav {
    display: flex;
  }

  .container {
    padding: 0 16px;
  }

  .nav-container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 2rem;
  }

  .subsection-title {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

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

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}
