/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --accent: #f093fb;
  --accent-gold: #ffd700;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

:root.dark-theme {
  --primary: #4c6ef5;
  --secondary: #845ef7;
  --accent: #da77f2;
  --accent-gold: #ffc107;
  --text: #1a1a2e;
  --text-muted: rgba(26, 26, 46, 0.7);
  --glass-bg: rgba(0, 0, 0, 0.25);
  --glass-border: rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animated Background Shapes */
.background-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--secondary);
  top: 50%;
  right: -50px;
  animation-delay: -5s;
}

.shape-3 {
  width: 350px;
  height: 350px;
  background: var(--accent);
  bottom: -100px;
  left: 30%;
  animation-delay: -10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(30px, 30px) rotate(5deg);
  }
  50% {
    transform: translate(-20px, 50px) rotate(-5deg);
  }
  75% {
    transform: translate(20px, -30px) rotate(3deg);
  }
}

/* Glass Effect */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 15px;
  display: flex;
  justify-content: center;
}

nav {
  display: flex;
  gap: 8px;
  padding: 10px 25px;
  border-radius: 50px;
  align-items: center;
}

.nav-btn {
  color: var(--text);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 400;
  font-size: 0.95rem;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  margin-left: 5px;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 20px 60px;
}

#hero h1 {
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: -2px;
  margin-bottom: 15px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

#hero h1 .word {
  display: inline;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 0.15em;
}

#hero h1 .word.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 10px;
}

/* Sections */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 2.5rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 40px;
}

/* Content Cards */
.content-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 50px;
  border-radius: 24px;
  text-align: center;
}

.content-card h2 {
  font-size: 2rem;
  margin-bottom: 25px;
}

.content-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 18px;
  color: var(--text-muted);
}

.content-card p strong {
  color: var(--text);
}

.content-card p:last-child {
  margin-bottom: 0;
}

/* Links */
.link {
  color: var(--accent-gold);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.link:hover {
  color: var(--text);
}

.link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.link:hover::after {
  width: 100%;
}

/* Skills */
#experience {
  text-align: center;
}

.skills {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.skill-card {
  padding: 35px 45px;
  border-radius: 20px;
  min-width: 180px;
}

.skill-icon {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent-gold), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-card h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  padding: 35px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-card h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.project-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-card .link {
  font-weight: 500;
}

.project-current {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255, 215, 0, 0.2);
  color: var(--accent-gold);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: auto;
}

/* Contact */
#contact .content-card p {
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
}

.form-input {
  padding: 15px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary);
}

.form-submit {
  border: none;
  cursor: pointer;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 20px;
  font-size: 0.95rem;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

.cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* Footer */
footer {
  padding: 40px 20px;
  text-align: center;
}

footer .glass {
  display: inline-block;
  padding: 25px 50px;
  border-radius: 20px;
}

footer p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.social-links {
  margin-top: 15px;
}

.social-link {
  color: var(--text);
  text-decoration: none;
  margin: 0 15px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.social-link:hover {
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.social-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.social-link:hover::after {
  width: 100%;
}

/* Animations */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.show {
  opacity: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Selection */
::selection {
  background: rgba(255, 215, 0, 0.3);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  nav {
    gap: 5px;
    padding: 8px 15px;
  }

  .nav-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  section h2 {
    font-size: 2rem;
  }

  .content-card {
    padding: 30px 20px;
  }

  .skill-card {
    padding: 25px 30px;
    min-width: 150px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 2rem;
    letter-spacing: -1px;
  }

  .shape-1,
  .shape-2,
  .shape-3 {
    width: 200px;
    height: 200px;
  }
}
