* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --secondary: #06b6d4;
  --accent: #ec4899;
  --background: #0a0e27;
  --surface: #1a1f3a;
  --surface-light: #252b48;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --border: #334155;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1729 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== NAVIGATION ===== */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.logo h1 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #ec4899 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

.logo p {
  font-size: 0.7rem;
  color: var(--secondary);
  opacity: 0.9;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ec4899, #7c3aed);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.menu-toggle:active {
  transform: scale(0.95);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ec4899 0%, #06b6d4 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease 0.2s both;
  line-height: 1.5;
}

.hero-content .btn {
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-image {
  position: relative;
  min-height: 450px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  border-radius: 25px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: float 3s ease-in-out infinite;
}

.hero-image::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
  animation: rotate 8s linear infinite;
}

.placeholder-image {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 14px 36px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  user-select: none;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
  z-index: 0;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #ec4899 0%, #7c3aed 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(124, 58, 237, 0.4);
}

.btn-primary:active {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
  padding: 100px 0;
  position: relative;
}

.portfolio::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.portfolio::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.portfolio h2,
.blog h2,
.about h2,
.contact h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  background: linear-gradient(135deg, #ec4899 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.portfolio > .container > p,
.blog > .container > p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  scroll-behavior: smooth;
}

.filter-btn {
  padding: 10px 24px;
  background-color: var(--surface);
  color: var(--text-secondary);
  border: 2px solid var(--border);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #ec4899 0%, #7c3aed 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.portfolio-item {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
  animation: scaleIn 0.5s ease-out;
}

.portfolio-item:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.15);
}

.portfolio-item-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

.portfolio-item-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.portfolio-item:hover .portfolio-item-image::before {
  opacity: 1;
}

.portfolio-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 0;
}

.portfolio-item:hover .portfolio-item-image img {
  transform: scale(1.08);
}

.portfolio-item-content {
  padding: 2rem;
}

.portfolio-item-category {
  display: inline-block;
  background: rgba(236, 72, 153, 0.2);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.portfolio-item-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.portfolio-item-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.portfolio-item-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.portfolio-item-link:hover {
  color: var(--accent);
}

/* ===== BLOG SECTION ===== */
.blog {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.blog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.blog-post {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
  animation: scaleIn 0.5s ease-out;
}

.blog-post:hover {
  border-color: var(--secondary);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
}

.blog-post-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(236, 72, 153, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
  font-size: 3.5rem;
  transition: all 0.3s ease;
}

.blog-post-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.blog-post:hover .blog-post-image {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(236, 72, 153, 0.15) 100%);
}

.blog-post:hover .blog-post-image::after {
  opacity: 1;
}

.blog-post-content {
  padding: 2rem;
}

.blog-post-date {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.blog-post-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-post-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 100px 0;
  position: relative;
}

.about .container {
  max-width: 800px;
}

.about p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.8;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  background-color: var(--surface);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--secondary);
  background-color: var(--surface-light);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1), inset 0 0 0 1px rgba(6, 182, 212, 0.2);
  transform: translateY(-2px);
}

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

/* ===== FOOTER ===== */
.footer {
  padding: 50px 0 30px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
  font-size: 0.95rem;
  animation: slideInUp 0.6s ease-out;
}

.footer p {
  margin: 0;
  line-height: 1.6;
}

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

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

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(236, 72, 153, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.8);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  /* Navigation Mobile */
  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    display: none !important;
    z-index: 99;
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-links li {
    padding: 0;
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.2);
    font-size: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  /* Hero Section */
  .hero {
    padding: 60px 0 50px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-image {
    min-height: 300px;
    margin-top: 2rem;
    border-radius: 16px;
  }

  /* Section Headings */
  .portfolio h2,
  .blog h2,
  .about h2,
  .contact h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
  }

  .portfolio > .container > p,
  .blog > .container > p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  /* Portfolio & Blog Grids */
  .portfolio-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-item,
  .blog-post {
    border-radius: 12px;
  }

  .portfolio-item-image,
  .blog-post-image {
    height: 280px;
  }

  .portfolio-item-content,
  .blog-post-content {
    padding: 1.5rem;
  }

  .portfolio-item-title,
  .blog-post-title {
    font-size: 1.1rem;
  }

  .portfolio-item-description,
  .blog-post-excerpt {
    font-size: 0.9rem;
  }

  /* Filters */
  .portfolio-filters {
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .filter-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 20px;
  }

  /* Sections Padding */
  .portfolio,
  .blog,
  .contact {
    padding: 60px 0;
  }

  .about {
    padding: 60px 0;
  }

  .about .container {
    max-width: 100%;
  }

  .about p {
    font-size: 1rem;
    line-height: 1.7;
  }

  /* Forms */
  .contact-form {
    max-width: 100%;
    gap: 1.25rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  .container {
    padding: 0 12px;
  }

  .logo h1 {
    font-size: 1.4rem;
  }

  .logo p {
    font-size: 0.6rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

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

  .hero-image {
    min-height: 240px;
  }

  .portfolio h2,
  .blog h2,
  .about h2,
  .contact h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .portfolio > .container > p,
  .blog > .container > p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .portfolio-grid,
  .blog-grid {
    gap: 1rem;
  }

  .portfolio-item-image,
  .blog-post-image {
    height: 240px;
  }

  .portfolio-item-content,
  .blog-post-content {
    padding: 1.25rem;
  }

  .portfolio-item-category {
    padding: 4px 10px;
    font-size: 0.7rem;
  }

  .portfolio-item-title,
  .blog-post-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .portfolio-item-description,
  .blog-post-excerpt {
    font-size: 0.85rem;
  }

  .blog-post-date {
    font-size: 0.8rem;
  }

  .portfolio-item-link {
    font-size: 0.85rem;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .portfolio,
  .blog,
  .about,
  .contact {
    padding: 45px 0;
  }

  .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
}
