@import url("https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&display=swap");

:root {
  --primary-color: #ff4400;
  --secondary-color: #8b4513;
  --accent-color: #ff8833;
  --dark-bg: #1a0f0f;
  --light-text: #ffffff;
  --gradient: linear-gradient(135deg, #ff4400, #ff8833, #8b4513);
}

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

body {
  font-family: "Crimson Text", serif;
  line-height: 1.6;
  background-color: var(--dark-bg);
  color: var(--light-text);
  position: relative;
  overflow-x: hidden;
}

.background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
  will-change: transform;
}

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

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1001;
  background: rgba(26, 15, 15, 0.95);
  backdrop-filter: blur(5px);
  height: 60px;
  display: flex;
  align-items: center;
  will-change: transform;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 2rem;
  width: 100%;
}

.logo {
  font-size: 1.2rem;
  font-weight: bold;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links a {
  color: var(--light-text);
  text-decoration: none;
  margin-left: 2rem;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

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

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

/* Hero Section */
.hero {
  padding-top: 60px;
  display: flex;
  align-items: center;
  text-align: center;
  background: var(--dark-bg);
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
}

/* Banner Container */
.hero::after {
  content: "";
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
  padding-bottom: calc(900 / 1920 * 100%);
  background-image: url("../image.jpg");
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center top;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 68, 0, 0.2),
    transparent
  );
  opacity: 0.3;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  padding-top: calc(900 / 1920 * 100% + 60px);
  padding-bottom: 40px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  color: var(--light-text);
  text-shadow: 0 0 20px rgba(255, 68, 0, 0.5);
  font-family: "Crimson Text", serif;
  letter-spacing: 1px;
  position: relative;
}

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

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(
    270deg,
    #ff4400,
    #ff8833,
    #8b4513,
    #ff4400,
    #ff8833
  );
  background-size: 300% 100%;
  color: var(--light-text);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: gradientFlow 8s ease infinite;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 60%
  );
  transform: rotate(45deg);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.cta-button:hover::before {
  transform: rotate(45deg) translate(50%, 50%);
}

.cta-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  animation: gradientFlow 4s ease infinite;
}

/* Services Section */
.services {
  padding: 2rem 0 2.5rem;
  position: relative;
  background: rgba(26, 15, 15, 0.15);
  border-top: 1px solid rgba(255, 136, 51, 0.1);
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--dark-bg), transparent);
  pointer-events: none;
  opacity: 0.85;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: rgba(139, 69, 19, 0.15);
  padding: 2.5rem;
  border-radius: 15px;
  transition: transform 0.3s ease, background-color 0.3s ease,
    border-color 0.3s ease;
  border: 1px solid rgba(255, 136, 51, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  will-change: transform;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(255, 68, 0, 0.15);
  background: rgba(139, 69, 19, 0.25);
}

.service-icon {
  font-size: 2.5rem;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.5rem;
}

.service-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.service-content p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

/* Contact Section */
.contact {
  padding: 2rem 0;
  background: rgba(26, 15, 15, 0.95);
}

.contact h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.contact-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.email-link {
  display: inline-block;
  color: var(--accent-color);
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: transform 0.3s ease;
  background: rgba(139, 69, 19, 0.15);
  border: 1px solid rgba(255, 136, 51, 0.1);
  position: relative;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  will-change: transform;
}

.email-link:hover {
  background: rgba(139, 69, 19, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 68, 0, 0.15);
  border-color: var(--accent-color);
}

.portfolio-note {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
  font-weight: 600;
  padding: 1rem 1.5rem;
  background: rgba(139, 69, 19, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(255, 136, 51, 0.2);
  display: inline-block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-note:hover {
  background: rgba(139, 69, 19, 0.25);
  border-color: rgba(255, 136, 51, 0.3);
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
  background: rgba(26, 15, 15, 0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero::after {
    background-size: 100% auto;
  }

  .hero .container {
    padding-top: calc(900 / 1920 * 100% + 60px);
  }

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

@media (max-width: 480px) {
  .hero::after {
    background-size: 100% auto;
  }

  .hero .container {
    padding-top: calc(900 / 1920 * 100% + 60px);
  }

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

/* Add smooth transitions */
.hero::after {
  transition: opacity 0.3s ease;
}

.hero:hover::after {
  opacity: 0.95;
}

/* Enhance visual hierarchy */
.services {
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--dark-bg), transparent);
  pointer-events: none;
}

@keyframes servicePulse {
  0% {
    transform: translateZ(0);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    background: rgba(139, 69, 19, 0.15);
    border-color: rgba(255, 136, 51, 0.1);
  }
  50% {
    transform: translateZ(0);
    box-shadow: 0 0 40px rgba(255, 68, 0, 0.3);
    background: rgba(139, 69, 19, 0.3);
    border-color: var(--accent-color);
  }
  100% {
    transform: translateZ(0);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    background: rgba(139, 69, 19, 0.15);
    border-color: rgba(255, 136, 51, 0.1);
  }
}

.service-card.highlight {
  animation: servicePulse 2s ease-in-out;
  animation-fill-mode: forwards;
}

.email-link.highlight {
  animation: servicePulse 2s ease-in-out;
  animation-fill-mode: forwards;
}

/* Animation Classes */
.animate-ready {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Theme Toggle Animation */
.theme-toggle {
  display: none;
}

/* Smooth Transitions for Theme Switch */
body {
  transition: none;
}

.navbar,
.service-card,
.contact,
.footer {
  transition: none;
}

/* Enhanced Service Cards */
.service-card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Enhanced CTA Button */
.cta-button {
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 60%
  );
  transform: rotate(45deg);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.cta-button:hover::before {
  transform: rotate(45deg) translate(50%, 50%);
}
