/* ===== Base Styles ===== */
:root {
  --color-primary: #2A2A2A;
  --color-secondary: #5C4B3D;
  --color-accent: #E67C30;
  --color-accent-light: #F5A623;
  --color-accent-dark: #D55400;
  --color-light: #F8F8F8;
  --color-warm-light: #F5F1EB;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  line-height: 1.6;
  color: var(--color-primary);
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* ===== Section Container ===== */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  background: 
    linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15)),
    url('../images/HQ1.jpg') center/cover no-repeat,
    #F5F0E8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 768px) {
  .hero {
    background: 
      linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
      url('../images/HQ1.jpg') center/cover no-repeat,
      #F5F0E8;
    background-attachment: scroll;
  }
}
.logo-placeholder {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 20;
  padding: 0;
  background: transparent;
  border: none;
}

.logo-placeholder img {
  width: 150px; /* Increase logo size */
  animation: bounce 2s infinite;
  display: block;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-12px);
  }
  60% {
    transform: translateY(-6px);
  }
}
.hero-content {
  max-width: 800px;
  width: calc(100% - 40px);
  padding: 25px;
  margin: 0 20px;
  background: rgba(255, 255, 255, 0.72); /* Semi-transparent white */
  backdrop-filter: blur(12px); /* Stronger glass effect */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Subtler shadow */
  box-sizing: border-box;
  color: var(--color-primary); /* Dark text */
  border: 1px solid rgba(255, 255, 255, 0.4); /* Light border */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* ===== Typewriter Effect Fix ===== */
.typewriter-text {
  display: inline-block;
  font-weight: 500;
  color: #333;
  font-size: clamp(0.9rem, 3.5vw, 1.1rem); /* Responsive font scaling */
  overflow: hidden;
  border-right: 2px solid var(--color-accent);
  animation:
    typing 3s steps(40, end) forwards,
    blink 0.6s steps(1, end) forwards;
  text-align: center;
  max-width: 100%;
  /* Allow text to wrap if needed */
  white-space: normal;
  word-break: break-word;
}

/* Animation adjustments for small screens */
@keyframes typing {
  from { 
    width: 0;
    white-space: nowrap; /* Only prevent wrapping during animation */
  }
  to { 
    width: 100%;
    white-space: normal; /* Allow wrapping after animation */
  }
}
@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--color-accent); }
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
/* Mobile-specific fixes */
@media (max-width: 360px) {
  .hero-content {
    width: 95%;
    padding: 15px;
  }
  
  .typewriter-text {
    font-size: 0.9rem;
    animation: 
      typing 2.5s steps(30, end) forwards,
      blink 0.6s steps(1, end) forwards;
  }
  
  .hero h1 {
    font-size: 2.5rem !important;
    line-height: 1.2;
  }
}

.hero p {
  color: var(--color-primary); /* Dark text */
  opacity: 0.85; /* Slightly transparent */
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.7); /* White border */
}

.cta-button:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero-content {
    background: rgba(255, 255, 255, 0.82); /* Slightly more opaque */
    backdrop-filter: blur(8px); /* Reduced blur for performance */
    padding: 20px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* ===== Carousel Styles ===== */
.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
}

.carousel {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}

.carousel-btn:hover {
  background: var(--color-accent);
  color: white;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D9D9D9;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 0 5px;
  transition: all 0.3s;
}

.project-card:hover {
  box-shadow: 0 8px 16px rgba(230, 124, 48, 0.2);
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover img {
  transform: scale(1.03);
}

.project-info {
  padding: 20px;
  background: white;
  border-top: 3px solid var(--color-accent);
}

.project-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.project-info p {
  color: #5E5E5E;
  font-size: 0.9rem;
}

/* ===== About Section ===== */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  background: var(--color-warm-light);
}

.about-content {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-features {
  list-style: none;
  padding: 0;
}

.about-features li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-features i {
  color: var(--color-accent);
}
/* ===== Services Section ===== */
.services {
  background: var(--color-warm-light);
  text-align: center;
  padding: 80px 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 15px;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}
/* ===== Services Section Updates ===== */
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly wider cards */
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

/* Service-specific icon colors */
.fa-industry { color: var(--color-accent-dark); }
.fa-texture { color: #8E6C88; } /* Unique purple for Tyrolean */
.fa-scroll { color: #D4AF37; } /* Gold for wallpaper */
.fa-clipboard-check { color: #5CAB7D; } /* Green for consultancy */

/* Responsive Adjustments */
@media (max-width: 768px) {
  .services {
    padding: 60px 15px;
  }
  
  .services-grid {
    gap: 20px;
  }
}

/* ===== Contact Form ===== */
.contact {
  text-align: center;
}

.contact h2 {
  margin-bottom: 40px;
}

#contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(230, 124, 48, 0.2);
}

#contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

#contact-form button {
  background: var(--color-accent); /* Always orange */
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact-form button:hover {
  transform: translateY(-3px); /* Floating effect */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.success-message {
  color: var(--color-primary);
  text-align: center;
  padding: 20px;
  background: var(--color-warm-light);
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
}

/* ===== Ultra-Compact Footer (Same Structure as Reference) ===== */
/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
footer {
  background-color: #cc6a1c;
  color: #fff;
  padding: 10px 0;
  font-family: 'Inter', sans-serif;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a {
  color: white;
  font-size: 1.2rem;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
}

.footer-contact {
  font-size: 0.8rem;
  line-height: 1.3;
  text-align: right;
}

.footer-contact a {
  color: white;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* Bottom Row */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 200;
  flex-wrap: nowrap;
  padding-top: 4px;
}

.footer-bottom .tagline {
  font-style: italic;
  opacity: 0.85;
}

.footer-bottom .copyright {
  text-align: right;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .footer-contact {
    text-align: center;
    font-size: 0.68rem;
  }

  .footer-social a {
    font-size: 1.1rem;
    margin: 0 5px;
  }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .hero {
    height: 100vh;
    min-height: 100vh;
    background-attachment: scroll;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-content {
    width: 90%;
    padding: 20px;
    margin: 0 auto;
  }

  .logo-placeholder {
    top: 15px;
    left: 15px;
    padding: 8px 12px;
    font-size: 1rem;
  }
  
  .about {
    flex-direction: column;
  }

  section {
    padding: 60px 20px;
  }

  .carousel-slide {
    flex: 0 0 100%;
  }
}

@media (min-width: 768px) {
  .carousel-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    flex: 0 0 33.33%;
  }
}

@media (min-width: 1440px) {
  .carousel-slide {
    flex: 0 0 25%;
  }
}