/* ==========================================
   GRAPHIC DESIGN & BRANDING AGENCY TEMPLATE
   ========================================== */

/* COLOR PALETTE - 5 Primary Colors + Light/Dark Shades */
:root {
  /* Primary Colors */
  --color-primary-1: #687eff;        /* Electric Blue */
  --color-primary-2: #aa73cf;        /* Royal Purple */
  --color-primary-3: #ff7099;        /* Pink Rose */
  --color-primary-4: #37e8af;        /* Mint Green */
  --color-primary-5: #ff9230;        /* Peach Orange */
  
  /* Light Shades */
  --color-light-1: #e0e1eb;          /* Light Blue */
  --color-light-2: #f1f1f1;          /* Light Purple */
  --color-light-3: #ffdbe4;          /* Light Pink */
  --color-light-4: #defff9;          /* Light Mint */
  --color-light-5: #f1e8da;          /* Light Peach */
  
  /* Dark Shades */
  --color-dark-1: #3e5fd0;           /* Dark Blue */
  --color-dark-2: #a352b0;           /* Dark Purple */
  --color-dark-3: #cf6385;           /* Dark Pink */
  --color-dark-4: #20a488;           /* Dark Mint */
  --color-dark-5: #c28540;           /* Dark Peach */
  
  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-black: #272727;
  --color-gray-light: #F8F9FA;
  --color-gray: #646c76;
  --color-gray-dark: #474c54;
  
  /* Typography */
  --font-size-base: 19px;
  --font-size-h1: 2.5rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.5rem;
  
  /* Spacing */
  --section-padding: 80px 0;
  
  /* Shadows */
  --shadow-sm: 0 7px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  
  /* Border Radius */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
}

/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
  overflow-x: hidden;
  padding-top: 80px;
}

/* TYPOGRAPHY */
h1 { font-size: var(--font-size-h1); font-weight: 700; line-height: 1.2; }
h2 { font-size: var(--font-size-h2); font-weight: 600; line-height: 1.3; }
h3 { font-size: var(--font-size-h3); font-weight: 600; line-height: 1.4; }

p {
  font-size: var(--font-size-base);
  margin-bottom: 1rem;
  color: var(--color-gray-dark);
}

/* HEADER */
.navbar {
  background: linear-gradient(135deg, var(--color-primary-1), var(--color-primary-2));
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.54rem !important;
  font-weight: 700;
  color: var(--color-white) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--color-white) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--color-light-1) !important;
  transform: translateY(-2px);
}

/* HERO SECTION */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-primary-1) 0%, var(--color-primary-2) 50%, var(--color-primary-3) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../DOC_images/hero-bg.webp') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  padding-top: 100px !important;
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

/* SECTIONS */
.section {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2.64rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-primary-1), var(--color-primary-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CARDS */
.card {
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-1);
  margin: 1rem 0;
}

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-member {
  text-align: center;
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 4px solid var(--color-light-1);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TESTIMONIALS */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 1rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--color-primary-1);
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: serif;
}

/* FAQ */
.faq-item {
  background: var(--color-white);
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  background: var(--color-gray-light);
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  background: var(--color-light-1);
}

.faq-question.active {
  background: var(--color-primary-1);
  color: var(--color-white);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer.active {
  padding: 1.5rem;
  max-height: 200px;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
}

/* CONTACT FORM */
.contact-form {
  background: var(--color-gray-light);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  margin-top: 3rem;
}

.form-control {
  border: 2px solid var(--color-gray-light);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-1), var(--color-primary-2));
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  color: white;
  cursor: pointer;
}

/* FOOTER */
.footer {
  background: linear-gradient(135deg, var(--color-light-1), var(--color-gray-dark));
  color: var(--color-white);
  padding: 3rem 0 1rem;
}

.footer a {
  color: var(--color-white);
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-primary-1);
}

/* SPACE PAGE */
#space {
  min-height: 80vh;
  background: linear-gradient(135deg, var(--color-light-1), var(--color-light-2));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PROGRESS BAR */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
}

/* NAVBAR SCROLLED STATE */
.navbar.navbar-scrolled {
  background: rgba(127, 127, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* BACK TO TOP BUTTON */
.back-to-top {
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(128, 147, 252, 0.40);
}

/* FORM VALIDATION STYLES */
.is-invalid {
  border-color: #eb434f !important;
}

.is-valid {
  border-color: #1bb746 !important;
}

.invalid-feedback {
  color: #e93851;
  font-size: 1.00rem;
  margin-top: 0.34rem;
}

/* LOADING ANIMATION */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-1), var(--color-primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: var(--color-white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ENHANCED ANIMATIONS */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-up {
  animation: slideInUp 0.6s ease forwards;
}

.animate-left {
  animation: slideInLeft 0.6s ease forwards;
}

.animate-right {
  animation: slideInRight 0.6s ease forwards;
}

/* ENHANCED HOVER EFFECTS */
.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-photo {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* GALLERY ENHANCEMENTS */
.gallery-item a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.gallery-item a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-primary-1), var(--color-primary-2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item a:hover::after {
  opacity: 0.8;
}

.gallery-item a::before {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-item a:hover::before {
  opacity: 1;
}

/* ENHANCED TESTIMONIALS */
.testimonials-slider {
  position: relative;
}

.testimonial-card {
  transition: all 0.5s ease;
}

/* ENHANCED FAQ */
.faq-question {
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.55rem;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: translateY(-50%) rotate(45deg);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  
  .gallery-item a::before {
    font-size: 1.56rem;
  }
}



/* Team Social Links - Rounded Style */
.team-social-links {
    margin-top: 20px;
    padding: 15px 0;
}

.social-icons-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.facebook-link:hover {
    background: linear-gradient(135deg, #0d6efd, #1877f2);
}

.linkedin-link {
    background: linear-gradient(135deg, #0a66c2, #2196f3);
}

.linkedin-link:hover {
    background: linear-gradient(135deg, #084a8a, #0a66c2);
}

.x-link {
    background: linear-gradient(135deg, #000000, #333333);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 20px;
}

.x-link:hover {
    background: linear-gradient(135deg, #1a1a1a, #000000);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
