/* ============================================
   ShieldIT Sàrl - Site Statique
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #4CAF50;
  --primary-dark: #388E3C;
  --dark: #2d2d2d;
  --text: #555555;
  --light-bg: #E5E5E5;
  --white: #ffffff;
  --font-main: 'Open Sans', Arial, sans-serif;
  --font-heading: 'Raleway', 'Open Sans', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.7;
  background-color: var(--white);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  background: var(--white);
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 30px;
  flex-shrink: 0;
}

.logo img {
  height: 50px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-left: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 20px;
}

.nav a {
  color: var(--dark);
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 3px;
  transition: all 0.3s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.btn-rdv {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  transition: background 0.3s !important;
}

.btn-rdv:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  padding: 5px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%),
              url('../images/chiemseherin-geneva-6977937.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 100px 15px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.8;
}

.hero .btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 14px 35px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  border: 2px solid var(--primary);
}

.hero .btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* Hero for sub-pages */
.hero-sub {
  padding: 120px 15px;
  height: 345px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */
.section {
  padding: 70px 0;
}

.section-light {
  background: var(--light-bg);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 15px;
}

.section-subtitle {
  text-align: center;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.about-text p {
  margin-bottom: 15px;
}

.team-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.team-card .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 2.5rem;
  color: var(--white);
  font-weight: 700;
}

.team-card h4 {
  font-family: var(--font-heading);
  color: var(--dark);
  margin-bottom: 5px;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--text);
}

/* ============================================
   SERVICES CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.4s ease,
              border-color 0.4s ease;

}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(76, 175, 80, 0.15),
              0 8px 16px rgba(0,0,0,0.08);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(76, 175, 80, 0.3);
}

.service-card .card-link {
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.service-card:hover .card-link {
  letter-spacing: 1px;
}

.service-card .card-icon {
  background: var(--primary);
  color: var(--white);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background-size: cover;
  background-position: center;
}

.service-card .card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .card-body {
  padding: 25px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.6;
}

.service-card .card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.service-card .card-link:hover {
  color: var(--primary-dark);
}

/* Make entire card clickable via the card-link */
.service-card {
  position: relative;
  cursor: pointer;
}

.service-card .card-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

/* ============================================
   PAGE CONTENT (Sub-pages)
   ============================================ */
.page-content {
  padding: 60px 0;
}

.page-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--dark);
  margin: 40px 0 15px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  margin-bottom: 15px;
}

.page-content ul {
  margin: 15px 0 25px 30px;
}

.page-content ul li {
  margin-bottom: 8px;
  position: relative;
}

.page-content ul li::marker {
  color: var(--primary);
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.sidebar {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.sidebar h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 8px;
}

.sidebar ul li a {
  color: var(--text);
  font-size: 0.9rem;
  padding: 5px 0;
  display: block;
  transition: all 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  color: var(--primary);
  padding-left: 10px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 50px 15px;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.cta-section p {
  font-size: 1.05rem;
  margin-bottom: 25px;
  opacity: 0.95;
}

.cta-section .btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s;
}

.cta-section .btn-white:hover {
  background: var(--dark);
  color: var(--white);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-block {
  margin-bottom: 25px;
}

.contact-info-block h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info-block p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--dark);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  margin-bottom: 20px;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.contact-form button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: var(--primary-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: #ccc;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a {
  color: #ccc;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero {
    padding: 60px 15px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* ==============================
   SCROLL ANIMATIONS
   ============================== */

/* Base state: hidden, shifted down */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Visible state */
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for cards */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Fade in from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from right */
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up */
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ==============================
   STATS / COUNTER SECTION
   ============================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Once revealed, restore card's own hover transition */
.service-card.reveal.visible {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.4s ease,
                border-color 0.4s ease;
}

/* Hover must override reveal.visible transform */
.service-card.reveal.visible:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.15),
                0 8px 16px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(76, 175, 80, 0.3);
}

/* =============================================
   Parallax Hero Effect
   ============================================= */
.hero-parallax {
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
    padding: 120px 15px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-parallax .hero-bg {
    position: absolute;
    top: -30%;
    left: 0;
    right: 0;
    bottom: -30%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 0;
}

.hero-parallax .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(44,62,80,0.7) 0%, rgba(44,62,80,0.5) 100%);
    z-index: 1;
}

.hero-parallax .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-parallax h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-parallax p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* =============================================
   Typewriter Effect
   ============================================= */
.typewriter-wrapper {
    display: inline-block;
    min-height: 4.5em;
}

.typewriter-text {
    border-right: 3px solid var(--white);
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--white); }
}

@media (max-width: 768px) {
    .hero-parallax {
        padding: 80px 15px;
        min-height: 300px;
    }
    .hero-parallax h1 {
        font-size: 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-parallax .hero-bg {
        top: 0;
        bottom: 0;
    }
    .typewriter-text {
        animation: none;
        border-right: none;
    }
}

/* ===================== DARK MODE ===================== */
[data-theme="dark"] {
  --white: #1a1a2e;
  --text: #e0e0e0;
  --dark: #f0f0f0;
  --light-bg: #16213e;
}

[data-theme="dark"] body {
  background-color: #1a1a2e;
}

[data-theme="dark"] .header {
  background: #0f0f23;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

[data-theme="dark"] .logo-text {
  color: #f0f0f0;
}

[data-theme="dark"] .section-services {
  background: #16213e;
}

[data-theme="dark"] .service-card {
  background: #0f3460;
  color: #e0e0e0;
}

[data-theme="dark"] .service-card h3 {
  color: #f0f0f0;
}

[data-theme="dark"] .service-card p {
  color: #c0c0c0;
}

[data-theme="dark"] .section-title {
  color: #f0f0f0;
}

[data-theme="dark"] .section-subtitle {
  color: #c0c0c0;
}

[data-theme="dark"] .about-text h3 {
  color: #f0f0f0;
}

[data-theme="dark"] .about-text p {
  color: #c0c0c0;
}

[data-theme="dark"] .stats-section {
  background: #0f0f23;
}

[data-theme="dark"] .stat-number {
  color: #4CAF50;
}

[data-theme="dark"] .stat-label {
  color: #c0c0c0;
}

[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}

[data-theme="dark"] footer {
  background: #0a0a1a;
}

[data-theme="dark"] .page-loader {
  background: #1a1a2e;
}

/* Dark mode toggle - iOS style switch */
.theme-switch {
  position: relative;
  width: 56px;
  height: 28px;
  background: #e0e0e0;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.theme-switch .switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}

.theme-switch .switch-thumb::after {
  content: "\2600";
}

[data-theme="dark"] .theme-switch {
  background: #4CAF50;
}

[data-theme="dark"] .theme-switch .switch-thumb {
  left: 31px;
  background: #1a1a2e;
}

[data-theme="dark"] .theme-switch .switch-thumb::after {
  content: "\263E";
  color: #f0f0f0;
}

.theme-switch:hover {
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15), 0 0 8px rgba(76,175,80,0.3);
}


[data-theme="dark"] .hero {
  color: #ffffff;
}

[data-theme="dark"] .hero .btn-primary {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

[data-theme="dark"] .hero .typewriter-text {
  border-right-color: #ffffff;
}

[data-theme="dark"] .nav a {
  color: #e0e0e0;
}

[data-theme="dark"] .nav a:hover,
[data-theme="dark"] .nav a.active {
  color: var(--primary);
}

/* Dark mode CTA text readability */
[data-theme="dark"] .cta-section {
  color: #ffffff;
}

[data-theme="dark"] .cta-section h2 {
  color: #ffffff;
}

[data-theme="dark"] .cta-section p {
  color: #e0e0e0;
}

[data-theme="dark"] .cta-section .btn-white {
  background: #ffffff;
  color: #0f3460;
}

[data-theme="dark"] .cta-section .btn-white:hover {
  background: #e0e0e0;
  color: #0f3460;
}

/* Dark mode service card hover fix */
[data-theme="dark"] .service-card:hover {
  background: #0a2a50 !important;
  color: #e0e0e0 !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
}

[data-theme="dark"] .service-card:hover h3 {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .service-card:hover p {
  color: #c0c0c0 !important;
}

/* Dark mode footer readability */
[data-theme="dark"] footer h4 {
  color: #ffffff !important;
}

[data-theme="dark"] footer p,
[data-theme="dark"] footer a,
[data-theme="dark"] footer li {
  color: #c0c0c0 !important;
}

[data-theme="dark"] footer a:hover {
  color: #4CAF50 !important;
}

[data-theme="dark"] .footer-line {
  border-color: rgba(255,255,255,0.15);
}

/* Dark mode logo - black square */
[data-theme="dark"] .logo img {
  filter: brightness(0.4) contrast(1.2) saturate(0);
}

/* Hero text readability - text shadow for contrast */
.hero h1 {
  text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
}

.typewriter-text {
  text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
}

/* Dark mode logo - make square darker */
[data-theme="dark"] .logo img {
  filter: brightness(0.4) contrast(1.2) saturate(0);
}

/* Dark mode logo visibility */
[data-theme="dark"] .logo img {
  filter: brightness(2) sepia(1) hue-rotate(70deg) saturate(3) drop-shadow(0 0 3px rgba(255,255,255,0.3));
}


/* ============================================
   FORM STATUS MESSAGES
   ============================================ */
.form-msg {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-msg-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-msg-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* Dark mode form inputs */
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
  background: #0f0f23;
  border-color: #333;
  color: #e0e0e0;
}

[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder {
  color: #888;
}

[data-theme="dark"] .contact-form label {
  color: #e0e0e0;
}

[data-theme="dark"] .form-msg-success {
  background: #1b5e20;
  color: #a5d6a7;
  border-color: #388e3c;
}

[data-theme="dark"] .form-msg-error {
  background: #b71c1c;
  color: #ffcdd2;
  border-color: #e53935;
}

/* ============================================
   3D TILT EFFECT ON SERVICE CARDS
   ============================================ */
.services-grid {
  perspective: 1200px;
}

.service-card {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.4s ease,
              border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-3deg) scale(1.02);
  box-shadow: 0 25px 50px rgba(76, 175, 80, 0.2),
              0 10px 20px rgba(0,0,0,0.1);
}

.service-card.reveal.visible:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-3deg) scale(1.02);
  box-shadow: 0 25px 50px rgba(76, 175, 80, 0.2),
              0 10px 20px rgba(0,0,0,0.1);
}

/* Card body content pops forward in 3D */
.service-card .card-body {
  position: relative;
}

/* ============================================
   ANIMATED ICONS ON HOVER
   ============================================ */
.service-card .card-icon {
  overflow: hidden;
  transition: transform 0.4s ease;
}

.service-card .card-icon img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.4s ease;
}

.service-card:hover .card-icon img {
  transform: scale(1.12) rotate(2deg);
  filter: brightness(1.1);
}

/* Contact info block icons bounce on hover */
.contact-info-block h3 {
  transition: transform 0.3s ease;
}

.contact-info-block:hover h3 {
  transform: scale(1.05);
}

/* ============================================
   GLASSMORPHISM ENHANCED
   ============================================ */
.contact-info-block {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 20px 25px;
  transition: all 0.3s ease;
}

.contact-info-block:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(76, 175, 80, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.sidebar {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

/* Light mode adjustments */
html:not([data-theme="dark"]) .contact-info-block {
  background: rgba(76, 175, 80, 0.04);
  border-color: rgba(76, 175, 80, 0.12);
}

html:not([data-theme="dark"]) .contact-info-block:hover {
  background: rgba(76, 175, 80, 0.08);
  border-color: rgba(76, 175, 80, 0.25);
  box-shadow: 0 8px 32px rgba(76, 175, 80, 0.1);
}

html:not([data-theme="dark"]) .sidebar {
  background: rgba(76, 175, 80, 0.04);
  border: 1px solid rgba(76, 175, 80, 0.1);
}

/* Dark mode glassmorphism */
[data-theme="dark"] .contact-info-block {
  background: rgba(15, 52, 96, 0.4);
  border-color: rgba(76, 175, 80, 0.15);
}

[data-theme="dark"] .contact-info-block:hover {
  background: rgba(15, 52, 96, 0.6);
  border-color: rgba(76, 175, 80, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .sidebar {
  background: rgba(15, 52, 96, 0.4);
  border-color: rgba(76, 175, 80, 0.15);
}

[data-theme="dark"] .service-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
              0 10px 20px rgba(76, 175, 80, 0.1);
}

/* Disable 3D tilt for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .service-card.reveal.visible:hover {
    transform: none;
  }
  .service-card .card-icon img {
    transition: none;
  }
  .service-card:hover .card-icon img {
    transform: none;
    filter: none;
  }
}

/* Disable 3D tilt on mobile/tablet */
@media (max-width: 768px) {
  .services-grid {
    perspective: none;
  }
  .service-card {
    transform-style: flat;
  }
  .service-card:hover,
  .service-card.reveal.visible:hover {
    transform: none;
  }
  .service-card:hover .card-icon img {
    transform: none;
    filter: none;
  }
}