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

:root {
  --primary-color: #ff6f61;
  --primary-hover: #ff4a3c;
  --secondary-color: #4a90e2;
  --accent-color: #ffd369;
  --dark-bg: #0d1b2a;
  --dark-secondary: #1b263b;
  --dark-tertiary: #415a77;
  --text-primary: #e0e0e0;
  --text-secondary: #c0c0c0;
  --text-muted: #8b8b8b;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 700;
}

.logo {
  font-size: 1.8rem;
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(255, 211, 105, 0.5);
}

.logo-text {
  font-size: 1.3rem;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color);
}

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

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

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #0d1b2a 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  background: var(--accent-color);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 3s;
}

.particle:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation-delay: 6s;
}

.particle:nth-child(4) {
  width: 100px;
  height: 100px;
  top: 40%;
  right: 30%;
  animation-delay: 9s;
}

.particle:nth-child(5) {
  width: 70px;
  height: 70px;
  bottom: 30%;
  right: 10%;
  animation-delay: 12s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

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

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.title-line {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.title-main {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 211, 105, 0.3);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.hero-subtitle {
  font-size: 1.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 300;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 111, 97, 0.4);
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 111, 97, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  box-shadow: 0 4px 15px rgba(255, 211, 105, 0.2);
  position: relative;
  z-index: 1;
}

.btn-secondary:hover {
  background: var(--accent-color);
  color: var(--dark-bg);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 211, 105, 0.4);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  width: 3px;
  height: 15px;
  background: var(--accent-color);
  border-radius: 3px;
  opacity: 0.6;
}

.scroll-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Section Styles */
section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent-color);
  text-shadow: 0 0 20px rgba(255, 211, 105, 0.3);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* About Section */
.about-section {
  background: var(--dark-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-card {
  background: var(--dark-bg);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 211, 105, 0.1);
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.card-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(255, 211, 105, 0.5));
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.about-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-description {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-description p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Projects Section */
.projects-section {
  background: var(--dark-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--dark-secondary);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 211, 105, 0.1);
}

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

.project-image {
  position: relative;
  height: 250px;
  background: linear-gradient(135deg, var(--dark-tertiary), var(--dark-bg));
  overflow: hidden;
}

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 5rem;
  opacity: 0.3;
}

.project-info {
  padding: 2rem;
}

.project-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.project-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.4rem 1rem;
  background: var(--dark-tertiary);
  color: var(--text-primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  display: inline-block;
}

.project-link:hover {
  color: var(--primary-hover);
  transform: translateX(5px);
}

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

.contact-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--dark-bg);
  border-radius: 15px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
}

.social-card:not(.disabled):hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.social-card.youtube {
  border-color: rgba(255, 0, 0, 0.3);
}

.social-card.youtube:hover {
  border-color: #ff0000;
  background: rgba(255, 0, 0, 0.05);
}

.social-card.email {
  border-color: rgba(255, 211, 105, 0.3);
}

.social-card.email:hover {
  border-color: var(--accent-color);
  background: rgba(255, 211, 105, 0.05);
}

.social-card.discord {
  border-color: rgba(88, 101, 242, 0.3);
}

.social-card.discord:not(.disabled):hover {
  border-color: #5865f2;
  background: rgba(88, 101, 242, 0.05);
}

.social-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.social-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--dark-secondary);
}

.social-card.youtube .social-icon {
  color: #ff0000;
}

.social-card.email .social-icon {
  color: var(--accent-color);
}

.social-card.discord .social-icon {
  color: #5865f2;
}

.social-icon svg {
  width: 30px;
  height: 30px;
}

.social-info h3 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 0.3rem;
}

.social-info p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255, 211, 105, 0.1);
}

.footer-content {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 700;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 211, 105, 0.1);
}

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

.secret-button {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  cursor: default;
  position: relative;
}

.secret-button:hover {
  color: var(--primary-color);
  cursor: pointer;
  text-shadow: 0 0 10px var(--primary-color);
  transform: scale(2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(13, 27, 42, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .title-main {
    font-size: 3rem;
  }

  .title-line {
    font-size: 1.2rem;
  }

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

  .hero-description {
    font-size: 1rem;
  }

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

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

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

  .social-links {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1.5rem;
  }

  section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .title-main {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

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

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

  .about-card {
    padding: 2rem 1.5rem;
  }

  .project-info {
    padding: 1.5rem;
  }
}
