/* ===================================
   Vitraining Modern Style
   ================================== */

/* CSS Variables */
:root {
  --primary-color: #61D2B4;
  --primary-dark: #33b391;
  --primary-light: #7de0c6;
  --secondary-color: #2c3e50;
  --accent-color: #3498db;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --text-muted: #95a5a6;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --gradient-primary: linear-gradient(135deg, #61D2B4 0%, #3498db 100%);
  --gradient-secondary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

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

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

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

/* Section Padding */
.section-padding {
  padding: 100px 0;
}

@media (max-width: 991px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* Section Header */
.section-header {
  margin-bottom: 60px;
}

.section-subtitle {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 42px;
  margin-bottom: 20px;
}

.section-title .text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-subheader {
  margin-bottom: 40px;
}

.section-subheader h3 {
  font-size: 28px;
  color: var(--text-dark);
}

/* Buttons */
.btn {
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 50px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary-custom {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-color);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
}

.btn-lg {
  padding: 15px 40px;
  font-size: 16px;
}

/* Navbar */
.navbar {
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 15px 0;
}

.navbar-brand img {
  transition: var(--transition);
}

.navbar-nav .nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  padding: 10px 20px !important;
  transition: var(--transition);
}

.navbar.scrolled .navbar-nav .nav-link {
  color: var(--text-dark);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/pattern-overlay.png') repeat;
  opacity: 0.05;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 56px;
  color: var(--white);
  margin-bottom: 25px;
  line-height: 1.2;
}

.hero-title .text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 35px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.hero-image {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-features {
  margin-top: 60px;
}

.feature-stat h3 {
  font-size: 42px;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.feature-stat h3 .counter::after {
  content: '+';
  margin-left: 2px;
}

.feature-stat p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: auto;
}

/* Services Section */
.services-section {
  background: var(--light-bg);
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: var(--transition);
}

.service-icon i {
  font-size: 32px;
  color: var(--white);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-title {
  font-size: 22px;
  margin-bottom: 15px;
}

.service-desc {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-list {
  list-style: none;
  margin-bottom: 25px;
}

.service-list li {
  padding: 8px 0;
  color: var(--text-dark);
  font-size: 15px;
}

.service-list li i {
  color: var(--primary-color);
  margin-right: 10px;
}

.service-link {
  font-weight: 600;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-link i {
  transition: var(--transition);
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Products Section */
.products-section {
  background: var(--white);
}

.product-card {
  display: flex;
  gap: 25px;
  padding: 30px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.product-icon {
  width: 70px;
  height: 70px;
  min-width: 70px;
  background: rgba(97, 210, 180, 0.1);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon i {
  font-size: 28px;
  color: var(--primary-color);
}

.product-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.product-content p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 15px;
}

.product-features {
  list-style: none;
}

.product-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-dark);
}

.product-features li i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 12px;
}

/* Portfolio Section */
.portfolio-section {
  background: var(--light-bg);
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: var(--white);
}

.portfolio-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(97, 210, 180, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-link {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 20px;
  transition: var(--transition);
}

.portfolio-link:hover {
  transform: scale(1.1);
  color: var(--primary-dark);
}

.portfolio-info {
  padding: 25px;
}

.portfolio-info h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.portfolio-info p {
  color: var(--text-light);
  font-size: 14px;
}

/* CTA Section */
.cta-section {
  background: var(--gradient-primary);
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Team Section */
.team-section {
  background: var(--white);
}

.team-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.team-image {
  overflow: hidden;
  height: 280px;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team-card:hover .team-image img {
  transform: scale(1.1);
}

.team-info {
  padding: 25px;
}

.team-info h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.team-info p {
  color: var(--primary-color);
  font-size: 14px;
  margin-bottom: 15px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-social a {
  width: 36px;
  height: 36px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: var(--white);
}

.contact-section .section-title,
.contact-section .section-subtitle {
  color: var(--white);
}

.contact-section .section-description {
  color: rgba(255,255,255,0.8);
}

.contact-info h3 {
  font-size: 28px;
  color: var(--white);
  margin-bottom: 15px;
}

.contact-info > p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(97, 210, 180, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 20px;
  color: var(--primary-color);
}

.contact-details h4 {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 5px;
}

.contact-details p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.contact-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

.form-control {
  padding: 14px 18px;
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  font-size: 15px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(97, 210, 180, 0.1);
  outline: none;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  appearance: none;
}

/* Footer */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.8);
  padding: 70px 0 30px;
}

.footer-about p {
  line-height: 1.8;
}

.footer h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 25px;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links ul li a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-newsletter p {
  margin-bottom: 20px;
  font-size: 14px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 14px;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

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

.newsletter-form button {
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  transform: scale(1.1);
}

.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 40px 0;
}

.copyright {
  margin: 0;
  font-size: 14px;
}

.designer {
  margin: 0;
  font-size: 14px;
}

.designer a {
  color: var(--primary-color);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  animation: pulse-whatsapp 2s infinite;
}

.floating-whatsapp:hover {
  background: #20BA5A;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

/* Responsive Styles */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 48px;
  }
  
  .section-title {
    font-size: 36px;
  }
}

@media (max-width: 991px) {
  .navbar {
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 15px 0;
  }
  
  .navbar-nav .nav-link {
    color: var(--text-dark);
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .section-description {
    font-size: 16px;
  }
  
  .product-card {
    flex-direction: column;
    text-align: center;
  }
  
  .product-icon {
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 32px;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .contact-form-wrapper {
    padding: 25px;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer-links ul li a:hover {
    padding-left: 0;
  }
  
  .floating-whatsapp {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
}

@media (max-width: 575px) {
  .section-padding {
    padding: 50px 0;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .feature-stat h3 {
    font-size: 32px;
  }
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.min-vh-100 {
  min-height: 100vh;
}
