/* ============================================
   Aeristhalon Inc - Corporate Website Styles
   Theme: Dark Navy + Orange Accent (IT Tech)
   ============================================ */

:root {
  --primary: #ff6b2b;
  --primary-dark: #e55a1f;
  --primary-light: #ff8f5c;
  --secondary: #0c1e3c;
  --secondary-light: #152a4f;
  --dark: #061224;
  --text: #4a5568;
  --text-dark: #1a202c;
  --text-light: #a0aec0;
  --white: #ffffff;
  --light-bg: #f4f7fc;
  --border: #e2e8f0;
  --shadow: 0 10px 40px rgba(12, 30, 60, 0.1);
  --shadow-lg: 0 20px 60px rgba(12, 30, 60, 0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--secondary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  display: flex;
  gap: 8px;
}

.loader span {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.loader span:nth-child(1) { animation-delay: -0.32s; }
.loader span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Top Bar */
.top-bar {
  background: var(--dark);
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-light);
}

.top-info li i {
  color: var(--primary);
  margin-right: 8px;
}

.top-social a {
  color: var(--text-light);
  margin-left: 12px;
  font-size: 14px;
}

.top-social a:hover {
  color: var(--primary);
}

/* Navbar */
.navbar {
  background: var(--white);
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  color: var(--white);
  flex-shrink: 0;
}

.brand-icon .brand-logo {
  width: 22px;
  height: 22px;
  display: block;
}

.brand-accent {
  color: var(--primary);
}

.navbar-nav .nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 18px !important;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230c1e3c' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #c44d15);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 43, 0.35);
}

.btn-outline-primary {
  color: var(--primary);
  border: 2px solid var(--primary);
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 10px 28px;
  border-radius: var(--radius);
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.6);
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--radius);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--secondary);
  border-color: var(--white);
}

.btn-nav {
  padding: 10px 24px !important;
  font-size: 14px;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 50%, #0a2540 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 43, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 43, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 107, 43, 0.15);
  color: var(--primary-light);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 107, 43, 0.3);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 800;
}

.text-accent {
  color: var(--primary);
}

.hero-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-stats .stat-item h3 {
  font-size: 2.2rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-stats .stat-item h3::after {
  content: '+';
  font-size: 1.4rem;
}

.hero-stats .stat-item:last-child h3::after {
  content: '%';
}

.hero-stats .stat-item p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin: 0;
  font-family: var(--font-primary);
}

.hero-image-wrap {
  position: relative;
}

.hero-img-main {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.hero-float-card {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.hero-float-card i {
  font-size: 2rem;
  color: #22c55e;
}

.hero-float-card strong {
  display: block;
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--text-dark);
}

.hero-float-card span {
  font-size: 12px;
  color: var(--text);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Section Common */
.section-padding {
  padding: 100px 0;
}

.bg-light-section {
  background: var(--light-bg);
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  position: relative;
  padding-left: 40px;
}

.section-subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 30px;
  height: 2px;
  background: var(--primary);
  transform: translateY(-50%);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.section-desc {
  max-width: 650px;
  font-size: 1.05rem;
}

/* About Section */
.about-image-grid {
  position: relative;
  padding-right: 40px;
}

.about-img-1 {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
}

.about-img-2 {
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 55%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.about-experience-badge {
  position: absolute;
  top: 30px;
  right: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 10px 30px rgba(255, 107, 43, 0.4);
}

.exp-number {
  display: block;
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.exp-text {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.feature-box {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--light-bg);
  border-radius: var(--radius);
  transition: var(--transition);
}

.feature-box:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-box i {
  font-size: 1.8rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-box h5 {
  font-size: 15px;
  margin-bottom: 4px;
}

.feature-box p {
  font-size: 13px;
  margin: 0;
  color: var(--text);
}

/* Service Cards */
.service-card {
  background: var(--white);
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 43, 0.1);
}

.service-card.featured {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--white);
}

.service-card.featured h4 {
  color: var(--white);
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.75);
}

.service-card.featured .service-link {
  color: var(--primary-light);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 107, 43, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card.featured .service-icon {
  background: rgba(255, 107, 43, 0.2);
}

.service-icon i {
  font-size: 1.8rem;
  color: var(--primary);
}

.service-card:hover .service-icon {
  background: var(--primary);
}

.service-card:hover .service-icon i {
  color: var(--white);
}

.service-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  margin-bottom: 16px;
}

.service-link {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
}

.service-link i {
  transition: var(--transition);
}

.service-link:hover i {
  transform: translateX(4px);
}

/* Process Section */
.process-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
}

.process-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 43, 0.1) 0%, transparent 70%);
}

.text-accent-light {
  color: var(--primary-light) !important;
}

.text-accent-light::before {
  background: var(--primary-light) !important;
}

.process-timeline {
  position: relative;
  padding-left: 20px;
}

.process-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
}

.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50px;
  width: 2px;
  height: calc(100% - 10px);
  background: rgba(255, 107, 43, 0.3);
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(255, 107, 43, 0.15);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}

.step-content h5 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.step-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0;
}

/* Advantage Cards */
.advantage-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.advantage-img {
  position: relative;
  overflow: hidden;
}

.advantage-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.advantage-card:hover .advantage-img img {
  transform: scale(1.05);
}

.advantage-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.advantage-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.advantage-body h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.advantage-body > p {
  font-size: 14px;
  margin-bottom: 16px;
}

.advantage-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.advantage-features li {
  font-size: 13px;
  padding: 4px 0;
  color: var(--text);
}

.advantage-features li i {
  color: var(--primary);
  margin-right: 8px;
}

/* Portfolio */
.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-btn {
  background: var(--white);
  border: 2px solid var(--border);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 24px;
  border-radius: 50px;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portfolio-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 30, 60, 0.95) 0%, rgba(12, 30, 60, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-card:hover img {
  transform: scale(1.08);
}

.portfolio-cat {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.portfolio-overlay h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin: 0;
}

.portfolio-item {
  transition: var(--transition);
}

.portfolio-item.hidden {
  display: none;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cta-box h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
  position: relative;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 28px;
  position: relative;
}

.cta-box .btn-primary {
  background: var(--white);
  color: var(--primary);
  position: relative;
}

.cta-box .btn-primary:hover {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact-info-card {
  background: var(--light-bg);
  padding: 36px;
  border-radius: var(--radius-lg);
  height: 100%;
}

.contact-info-card h4 {
  margin-bottom: 12px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: var(--white);
  font-size: 1.2rem;
}

.contact-item h6 {
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.contact-item a {
  color: var(--primary);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--primary-dark);
}

.contact-item p {
  margin: 0;
  font-size: 14px;
}

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-form .form-label {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-dark);
}

.contact-form .form-control,
.contact-form .form-select {
  border: 2px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.15);
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 30px;
}

.footer-brand {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: var(--white);
  margin-right: 8px;
  font-size: 16px;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.site-footer h5 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.site-footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact i {
  color: var(--primary);
  margin-top: 3px;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 40px 0 24px;
}

.copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* Back to Top */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(255, 107, 43, 0.4);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Form Success Message */
.form-success {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
}

.form-success.show {
  display: block;
}

/* Responsive */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 70px 0;
  }

  .hero-section .min-vh-100 {
    min-height: auto !important;
    padding-top: 60px;
    padding-bottom: 80px;
  }

  .about-image-grid {
    margin-bottom: 40px;
    padding-right: 0;
  }

  .about-experience-badge {
    right: 10px;
  }

  .navbar-collapse {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 10px;
    box-shadow: var(--shadow);
  }

  .btn-nav {
    margin-top: 10px;
    display: inline-block;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 50px 0;
  }

  .hero-stats .stat-item h3 {
    font-size: 1.6rem;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .contact-info-card,
  .contact-form {
    padding: 24px;
  }

  .about-img-2 {
    width: 50%;
  }
}

@media (max-width: 575.98px) {
  .top-bar {
    display: none !important;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
}
