:root {
  --font-body: 'Chillax', sans-serif;
  --bg-color: #000000;
  --text-color: #ffffff;
  --accent-color: #ffd700;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 1rem 0;
}

p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #a1a1aa;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

* {
  box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

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

.section {
  padding: 8rem 0;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 4rem;
  margin-bottom: 5rem;
  color: #fff;
  font-weight: 500;
}

/* Glass Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-effect:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
#navbar.scrolled {
  padding: 1rem 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-wrapper {
  cursor: pointer;
  transition: transform 0.2s;
}
.logo-wrapper:hover {
  transform: scale(1.05);
}
.logo-wrapper:active {
  transform: scale(0.95);
}
.logo-img {
  height: 22px;
}
.desktop-links {
  display: flex;
  gap: 3rem;
}
.nav-hover-effect {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}
.nav-hover-effect:hover {
  opacity: 1 !important;
}
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1100;
}
.hamburger {
  position: relative;
  width: 24px;
  height: 14px;
}
.hamburger .line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  display: block;
  transition: all 0.3s ease;
}
.hamburger .line1 { top: 0; }
.hamburger .line2 { top: 6px; }
.hamburger .line3 { bottom: 0; }
.hamburger.open .line1 { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open .line2 { width: 0; opacity: 0; }
.hamburger.open .line3 { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}
.mobile-link {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}
.mobile-menu.active .mobile-link {
  transform: translateY(0);
  opacity: 1;
}

/* Background Canvas */
#interactive-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}
.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 500;
  margin: 0 0 2rem 0;
  color: #fff;
  letter-spacing: -1px;
  transform: translateY(30px);
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-title-light {
  font-weight: 400;
  opacity: 0.6;
}
.hero-subtitle {
  font-size: 1.6rem;
  color: #888;
  max-width: 700px;
  margin: 0;
  line-height: 1.6;
  transform: translateY(30px);
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
.hero-tags {
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.4s forwards;
}
.hero-tag-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  opacity: 0;
  transform: translateY(10px);
  animation: slideUp 0.5s ease forwards;
}
.hero-tag-wrapper:nth-child(1) { animation-delay: 0.5s; }
.hero-tag-wrapper:nth-child(2) { animation-delay: 0.6s; }
.hero-tag-wrapper:nth-child(3) { animation-delay: 0.7s; }
.hero-tag-wrapper:nth-child(4) { animation-delay: 0.8s; }

.dot {
  width: 4px;
  height: 4px;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0.4;
  transition: all 0.3s ease-out;
}
.hero-tag-wrapper:hover .dot {
  transform: scale(1.5);
  opacity: 1;
}
.hero-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
  opacity: 0.5;
  transition: all 0.3s ease-out;
}
.gradient-1 { --grad: linear-gradient(135deg, #ff4d4d 0%, #f9cb28 100%); }
.gradient-2 { --grad: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%); }
.gradient-3 { --grad: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); }
.gradient-4 { --grad: linear-gradient(135deg, #f80759 0%, #bc4e9c 100%); }

.hero-tag-wrapper:hover .hero-tag {
  transform: scale(1.05);
  opacity: 1;
  background-image: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}
.service-card {
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: default;
  border-radius: 24px;
}
.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.card-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #fff;
}
.card-desc {
  color: #aaa;
  font-size: 1rem;
  line-height: 1.5;
}
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.tag {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 100px;
  color: #ddd;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tag:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  z-index: 1;
}
/* Warm Tags for Card 1 */
.tag-w1 { background: linear-gradient(#0a0a0a, #0a0a0a) padding-box, linear-gradient(135deg, #ff4d4d 0%, #f9cb28 100%) border-box; }
.tag-w1:hover { background: linear-gradient(135deg, #ff4d4d 0%, #f9cb28 100%) border-box; }
.tag-w2 { background: linear-gradient(#0a0a0a, #0a0a0a) padding-box, linear-gradient(135deg, #ff7b00, #ffea00) border-box; }
.tag-w2:hover { background: linear-gradient(135deg, #ff7b00, #ffea00) border-box; }
.tag-w3 { background: linear-gradient(#0a0a0a, #0a0a0a) padding-box, linear-gradient(135deg, #e52d27, #b31217) border-box; }
.tag-w3:hover { background: linear-gradient(135deg, #e52d27, #b31217) border-box; }

/* Cool Tags for Card 2 */
.tag-c1 { background: linear-gradient(#0a0a0a, #0a0a0a) padding-box, linear-gradient(135deg, #00c6ff 0%, #0072ff 100%) border-box; }
.tag-c1:hover { background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%) border-box; }
.tag-c2 { background: linear-gradient(#0a0a0a, #0a0a0a) padding-box, linear-gradient(135deg, #0052D4, #6FB1FC) border-box; }
.tag-c2:hover { background: linear-gradient(135deg, #0052D4, #6FB1FC) border-box; }
.tag-c3 { background: linear-gradient(#0a0a0a, #0a0a0a) padding-box, linear-gradient(135deg, #0cebeb, #20e3b2) border-box; }
.tag-c3:hover { background: linear-gradient(135deg, #0cebeb, #20e3b2) border-box; }

/* Magenta/Purple Tags for Card 3 */
.tag-m1 { background: linear-gradient(#0a0a0a, #0a0a0a) padding-box, linear-gradient(135deg, #f80759 0%, #bc4e9c 100%) border-box; }
.tag-m1:hover { background: linear-gradient(135deg, #f80759 0%, #bc4e9c 100%) border-box; }
.tag-m2 { background: linear-gradient(#0a0a0a, #0a0a0a) padding-box, linear-gradient(135deg, #8E2DE2, #4A00E0) border-box; }
.tag-m2:hover { background: linear-gradient(135deg, #8E2DE2, #4A00E0) border-box; }
.tag-m3 { background: linear-gradient(#0a0a0a, #0a0a0a) padding-box, linear-gradient(135deg, #ff0844, #ffb199) border-box; }
.tag-m3:hover { background: linear-gradient(135deg, #ff0844, #ffb199) border-box; }

/* Thematic Card Borders using Mask Composite for Hollow Glass Effect */
.card-theme-1, .card-theme-2, .card-theme-3 {
  border: none; /* remove default glass border */
  position: relative;
}
.card-theme-1::before, .card-theme-2::before, .card-theme-3::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  transition: all 0.3s ease;
}

.card-theme-1::before {
  background: linear-gradient(135deg, rgba(255,77,77,0.4), rgba(249,203,40,0.4));
}
.card-theme-1:hover::before {
  background: linear-gradient(135deg, #ff4d4d, #f9cb28);
}

.card-theme-2::before {
  background: linear-gradient(135deg, rgba(0,198,255,0.4), rgba(0,114,255,0.4));
}
.card-theme-2:hover::before {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.card-theme-3::before {
  background: linear-gradient(135deg, rgba(248,7,89,0.4), rgba(188,78,156,0.4));
}
.card-theme-3:hover::before {
  background: linear-gradient(135deg, #f80759, #bc4e9c);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}
.project-card {
  display: block;
  overflow: hidden;
  cursor: pointer;
  border-radius: 24px;
}
.project-card:hover {
  transform: translateY(-10px);
}
.project-img-wrapper {
  height: 240px;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-card:hover .project-img {
  transform: scale(1.05);
}
.project-content {
  padding: 2.5rem;
}
.project-title {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: #fff;
}
.project-desc {
  color: #888;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}
.contact-info {
}
.contact-text {
  font-size: 1.3rem;
  color: #aaa;
  line-height: 1.6;
}
.contact-email {
  margin-top: 2rem;
  color: #fff;
  font-weight: 500;
  opacity: 0.8;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem;
  border-radius: 24px;
}
.form-input {
  padding: 1.2rem;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  outline: none;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.form-input:focus {
  border-color: rgba(255,255,255,0.3);
}
.form-select {
  background-color: #0a0a0a;
  cursor: pointer;
}
.form-select option {
  color: #fff;
  background-color: #0a0a0a;
}
.form-select option[disabled] {
  color: #888;
}
.contact-btn {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  font-family: 'Chillax', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  width: 100%;
  margin-top: 1rem;
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}
.contact-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.contact-btn:active {
  transform: translateY(0);
}
.contact-status {
  font-size: 0.9rem;
  text-align: center;
  min-height: 20px;
}
.status-error { color: #FF4B4B; }
.status-success { color: #4CAF50; }

/* Footer */
.footer {
  margin: 0 2rem 2rem 2rem;
  padding: 3rem 0;
  border: none;
  border-radius: 20px;
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-title {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: #fff;
}
.footer-copyright {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}
.footer-social a {
  color: #ccc;
  transition: color 0.3s;
}
.footer-social a:hover {
  color: #fff;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }


/* Responsive */
@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  .section { padding: 5rem 0; }
  .section-title { font-size: 2.5rem; margin-bottom: 3rem; }
  
  .desktop-links { display: none !important; }
  .mobile-toggle { display: flex !important; }

  .hero-section { padding: 100px 0 60px 0; }
  .hero-container { text-align: center; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.1rem; margin: 0 auto; padding: 0 1rem; }
  .hero-tags { margin-top: 4rem; justify-content: center; gap: 1.5rem; }

  .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .projects-grid { grid-template-columns: 1fr; gap: 2rem; }
  .project-img-wrapper { height: 200px; }
  .project-content { padding: 1.5rem; }
  .project-title { font-size: 1.3rem; }
  .project-card:hover { transform: none; }
  
  .contact-form { padding: 1.5rem; }
  .contact-text { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .section-title { font-size: 2rem; }
  .section { padding: 4rem 0; }
}
