/* Google Fonts already loaded in HTML */
* {
  box-sizing: border-box;
}

:root {
  --bg-dark: #0D0D0D;
  --bg-dark-alt: #121212;
  --text-light: #fff;
  --accent: #19baa4;
  --accent-glow: 0 0 12px #0c7864;
  --radius: 16px;
  --transition: 0.4s cubic-bezier(0.4,0,0.2,1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bg-dark-alt);
  z-index: 1000;
  box-shadow: 0 2px 16px #000a;
  padding: 0.5rem 0;
  width: 100%;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  max-width: 100%;
  display: block;
}

.logo span {
  color: var(--accent);
  text-shadow: var(--accent-glow);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
  position: absolute;
  left: 0; bottom: -4px;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0d0d0d 60%, #121212 100%);
  width: 100%;
}

.hero-bg-parallax {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 60% 40%, #00e5ff22 0%, transparent 70%),
              radial-gradient(circle at 20% 80%, #00e5ff11 0%, transparent 80%);
  z-index: 1;
  pointer-events: none;
  animation: parallaxMove 10s linear infinite alternate;
}

@keyframes parallaxMove {
  0% { background-position: 60% 40%, 20% 80%; }
  100% { background-position: 65% 45%, 25% 85%; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.headline {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  line-height: 1.1;
  word-wrap: break-word;
}

.headline span {
  color: var(--accent);
  text-shadow: var(--accent-glow);
}

.tagline {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #e0f7fa;
  word-wrap: break-word;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #0d0d0d;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px #00e5ff44;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.cta-btn:hover {
  background: #0c7864;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

/* Ripple effect styles */
.cta-btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background: rgba(0,229,255,0.4);
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* About Section */
.about-section {
  padding: 7rem 0 4rem 0;
  background: var(--bg-dark-alt);
  width: 100%;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  width: 100%;
}

.about-text {
  flex: 1 1 320px;
  min-width: 0;
}

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent);
  word-wrap: break-word;
}

.about-image {
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.about-image img {
  width: 320px;
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 32px #00e5ff22;
  height: auto;
}

/* Services Section */
.services-section {
  padding: 6rem 0 4rem 0;
  width: 100%;
}

.services-section h2 {
  text-align: center;
  color: var(--accent);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  word-wrap: break-word;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  width: 100%;
}

.service-card {
  background: rgba(24, 28, 31, 0.35); /* semi-transparent */
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 16px #00e5ff11;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0,229,255,0.18);
  min-width: 0;
}

.service-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-shadow: var(--accent-glow);
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  word-wrap: break-word;
}

.service-card p {
  color: #b2ebf2;
  font-size: 1rem;
  word-wrap: break-word;
}

.service-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px #00e5ff33;
  background: rgba(24, 28, 31, 0.55);
  border: 1.5px solid rgba(0,229,255,0.28);
}

/* Portfolio Section */
.portfolio-section {
  padding: 6rem 0 4rem 0;
  background: var(--bg-dark-alt);
  width: 100%;
}

.portfolio-section h2 {
  text-align: center;
  color: var(--accent);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  word-wrap: break-word;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  width: 100%;
}

.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px #00e5ff11;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  min-height: 400px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.portfolio-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition), filter var(--transition);
}

.portfolio-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, #00e5ff33 0%, #0d0d0d99 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.portfolio-item:hover img {
  transform: scale(1.07);
  filter: brightness(0.8);
}

.portfolio-item:hover::after {
  opacity: 1;
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 0 4rem 0;
  width: 100%;
}

.testimonials-section h2 {
  text-align: center;
  color: var(--accent);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  word-wrap: break-word;
}

.testimonial-slider {
  position: relative;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  overflow: hidden;
  width: 100%;
}

.testimonial-slide {
  display: none;
  background: #181c1f;
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 2px 16px #00e5ff11;
  color: #e0f7fa;
  font-size: 1.1rem;
  min-height: 140px;
  transition: opacity var(--transition), transform var(--transition);
  word-wrap: break-word;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 1s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-slide span {
  display: block;
  margin-top: 1.2rem;
  color: var(--accent);
  font-weight: 600;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.testimonial-controls button {
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: #0d0d0d;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 2px 16px #00e5ff44;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.testimonial-controls button:hover {
  background: #0c7864;
  color: #fff;
  transform: scale(1.1);
}

/* Contact Section */
.contact-section {
  padding: 6rem 0 4rem 0;
  background: var(--bg-dark-alt);
  width: 100%;
}

.contact-container {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  width: 100%;
}

.contact-form {
  flex: 1 1 320px;
  min-width: 0;
}

.contact-form h2 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  word-wrap: break-word;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  background: #181c1f;
  border: none;
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  box-shadow: 0 2px 16px #00e5ff11;
  transition: box-shadow var(--transition);
  width: 100%;
  box-sizing: border-box;
  height: 56px;
}

.contact-form textarea {
  min-height: 120px;
  max-height: 250px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 4px 32px #00e5ff33;
}

.contact-form button {
  margin-top: 0.5rem;
}

.contact-map {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 455px;
  padding-top: 102px;
  min-height: 300px;
}

.contact-map iframe {
  width: 100%;
  min-width: 260px;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px #00e5ff11;
  max-width: 100%;
  height: 100%;
}

.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  max-width: 100%;
}

/* Footer */
.footer {
  background: #181c1f;
  padding: 2rem 0 1rem 0;
  color: #b2ebf2;
  text-align: center;
  width: 100%;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.footer-social {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social a {
  color: var(--accent);
  font-size: 2rem;
  transition: color var(--transition), transform var(--transition);
}

.footer-social a:hover {
  color: #fff;
  transform: scale(1.2);
}

.footer-copy {
  font-size: 1rem;
  word-wrap: break-word;
}

/* Animations for fade-in/slide-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.slide-in {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}

.slide-in.visible {
  opacity: 1;
  transform: none;
}

/* --- Enhanced Responsive Styles --- */
@media (max-width: 900px) {
  .about-container, .contact-container {
    flex-direction: column;
    gap: 2rem;
  }
  .nav-links {
    gap: 1.2rem;
  }
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio-item img {
    height: 200px;
  }
  .portfolio-item {
    min-height: 200px;
  }
  .logo img {
    height: 60px !important;
  }
  .contact-container {
    flex-direction: column;
    gap: 24px;
  }
  .contact-form, .contact-illustration {
    max-width: 100%;
  }
  .contact-illustration img {
    max-width: 300px;
  }
  .contact-map {
    min-height: 220px;
    height: 220px;
    margin-top: 1rem;
  }
  .contact-map img {
    height: 220px;
  }
}

@media (max-width: 700px) {
  .nav-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .logo {
    flex: 1 1 auto;
  }
  .hamburger {
    display: flex !important;
    margin-left: auto;
    margin-right: 0;
    order: 2;
    position: relative;
    right: 0;
    left: auto;
    z-index: 1101;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-dark-alt);
    flex-direction: column;
    align-items: flex-end;
    width: 200px;
    box-shadow: 0 8px 32px #000a;
    padding: 1rem 1.5rem;
    gap: 1rem;
    display: none;
    z-index: 1001;
    transition: none;
    height: auto;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    text-align: right;
  }
  .nav-links a {
    font-size: 1rem;
    padding: 0.5rem 0.5rem;
    border-radius: var(--radius);
  }
}

@media (max-width: 500px) {
  .container {
    width: 100%;
    padding: 0 0.5rem;
  }
  .logo img {
    height: 36px !important;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    padding-left: 0;
  }
  .nav-links li {
    width: 100%;
  }
  .hero-content {
    padding-top: 5rem;
    padding-bottom: 1rem;
  }
  .headline {
    font-size: 1.1rem;
  }
  .about-image img {
    width: 100%;
    min-width: 0;
  }
  .services-grid, .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .service-card, .portfolio-item {
    padding: 1rem 0.5rem;
  }
  .portfolio-item img {
    height: 120px;
  }
  .portfolio-item {
    min-height: 120px;
  }
  .testimonial-slider {
    padding: 0;
  }
  .footer-container {
    gap: 0.5rem;
  }
}

/* Hamburger styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  margin-left: 1rem;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: var(--accent);
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 700px) {
  .hamburger {
    display: flex !important;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-dark-alt);
    flex-direction: column;
    align-items: flex-end;
    width: 200px;
    box-shadow: 0 8px 32px #000a;
    padding: 1rem 1.5rem;
    gap: 1rem;
    display: none;
    z-index: 1001;
  }
  .nav-links.active {
    display: flex;
  }
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: #181c1f;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px #00e5ff11;
  padding: 2rem 1.5rem;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 180px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.testimonial-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 24px #00e5ff22;
}

.testimonial-card p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.testimonial-card span {
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
} 

.success-message {
  color: #19baa4;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  animation: fadeIn 1s ease-in-out;
  opacity: 0;
  animation-fill-mode: forwards;
  margin-top: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .our-team-flex {
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: center !important;
  }
  .our-team-flex > div {
    min-width: 90vw !important;
    max-width: 98vw !important;
    width: 100% !important;
  }
}