/* 
==============================================
MAIN STYLESHEET - CENTIMANE
==============================================
*/

/* 
==============================================
TABLE OF CONTENTS:
----------------------------------------------
    1. Variables & Reset
    2. Base Styles
    3. Navigation
    4. Buttons
    5. Hero Section
    6. Services Section
    7. Industries Section
    8. Case Studies Section
    9. About Section
    10. Contact Section
    11. Footer
    12. Animations
==============================================
*/

/* 
==============================================
1. Variables & Reset
==============================================
*/
:root {
  --primary: #000000;
  --primary-glow: rgba(0, 0, 0, 0.3);
  --secondary: #333333;
  --accent: #555555;
  --success: #2e7d32;
  --success-light: #4caf50;
  --info: #0d47a1;
  --info-light: #1976d2;  
  --danger: #b71c1c;
  --danger-light: #e53935;
  --light: #ffffff;
  --dark: #000000;
  --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --gradient: linear-gradient(135deg, #000000, #333333);
  --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 
==============================================
2. Base Styles
==============================================
*/
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--secondary);
  line-height: 1.6;
  background-color: var(--light);
  overflow-x: hidden;
}

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

h1 {
  font-size: 2.5rem;
  font-weight: 600;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

h5 {
  font-size: 1.125rem;
  font-weight: 500;
}

h6 {
  font-size: 1rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--accent);
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary);
}

section {
  padding: 6rem 0;
}

/* 
==============================================
3. Navigation
==============================================
*/
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 0;
  z-index: 1000;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

#navbar.scrolled {
  background-color: var(--light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
}

.logo {
  padding-left: 20px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: var(--light);
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--light);
  transition: var(--transition);
}

.nav-links li a:hover::after {
  width: 100%;
}

#navbar.scrolled .nav-links li a {
  color: var(--dark);
}

#navbar.scrolled .nav-links li a::after {
  background-color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 20px;
}

#navbar.scrolled .mobile-menu-btn {
  color: var(--dark);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--light);
  z-index: 2000;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  margin-bottom: 2rem;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: auto;
}

.mobile-menu-links li a {
  color: var(--dark);
  font-weight: 500;
  font-size: 1.25rem;
  display: block;
  padding: 0.5rem 0;
}

.mobile-menu-cta {
  margin-top: 2rem;
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1500;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.backdrop.active {
  display: block;
  opacity: 1;
}

/* 
==============================================
4. Buttons
==============================================
*/
.cta-button, .secondary-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  border: none;
}

.cta-button {
  background-color: var(--primary);
  color: var(--light);
  margin-right: 20px;
}

.cta-button:hover {
  background-color: var(--secondary);
  color: var(--light);
  transform: translateY(-2px);
}

.secondary-button {
  background-color: transparent;
  color: var(--light);
  border: 2px solid var(--light);
}

.secondary-button:hover {
  background-color: var(--light);
  color: var(--primary);
  transform: translateY(-2px);
}

#navbar .cta-button {
  margin-right: 20px;
}

/* 
==============================================
5. Hero Section
==============================================
*/
#hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--dark);
  color: var(--light);
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-logo {
  margin-bottom: 2rem;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
  color: var(--light);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Special logo handling for hero section */
#hero .hero-logo img {
  content: url('assets/images/logo/WCropped.png');
}

/* 
==============================================
6. Services Section
==============================================
*/
#services {
  background-color: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2rem;
  background-color: var(--light);
  border-radius: 8px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.service-title {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.25rem;
}

.service-desc {
  color: var(--secondary);
  flex-grow: 1;
}

/* 
==============================================
7. Industries Section
==============================================
*/
#industries {
  background-color: var(--light);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.industry-card {
  padding: 2rem;
  background-color: var(--light);
  border-radius: 8px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  height: 100%;
}

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

.industry-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.industry-title {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.25rem;
}

.industry-desc {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.industry-stats {
  margin-top: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.stat-icon {
  color: var(--success);
  margin-right: 0.75rem;
  font-size: 1rem;
}

/* 
==============================================
8. Case Studies Section
==============================================
*/
#case-studies {
  background-color: var(--light);
}

.case-studies-minimal {
  max-width: 900px;
  margin: 0 auto;
}

.case-study-item {
  margin-bottom: 4rem;
}

.case-study-header {
  margin-bottom: 1.5rem;
}

.case-study-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.case-study-client {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
}

.case-study-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.case-interactive {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  margin-bottom: 2rem;
}

.case-interactive:hover {
  box-shadow: var(--shadow-elevated);
}

.case-study-description {
  color: var(--secondary);
}

.case-study-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.result-metric {
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--accent);
}

.case-study-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  background-color: #f0f0f0;
  color: var(--secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.case-study-divider {
  height: 1px;
  background-color: #eee;
  margin: 4rem 0;
}

/* 
==============================================
9. About Section
==============================================
*/
#about {
  background-color: var(--light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.about-text h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.75rem;
}

.about-text p {
  color: var(--secondary);
  margin-bottom: 2rem;
}

.advantage-item {
  display: flex;
  margin-bottom: 2rem;
}

.advantage-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.advantage-text h4 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.advantage-text p {
  margin-bottom: 0;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 
==============================================
10. Contact Section
==============================================
*/
#contact {
  background-color: var(--light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.contact-info p {
  color: var(--secondary);
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  color: var(--primary);
  font-size: 1.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-link {
  color: var(--secondary);
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--primary);
}

.contact-form {
  background-color: var(--light);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: var(--dark);
  font-family: 'Montserrat', sans-serif;
  transition: var(--transition);
}

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

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

.contact-form .cta-button {
  margin-top: 1rem;
  width: 100%;
}

/* 
==============================================
11. Footer
==============================================
*/
footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 4rem 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-about {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-desc {
  margin-bottom: 2rem;
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  color: var(--light);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-glow);
  color: var(--light);
  transform: translateY(-2px);
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--light);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

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

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

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  margin-top: 4rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* 
==============================================
12. Animations
==============================================
*/
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Dark Theme */
[data-theme="dark"] {
  --primary: #ffffff;
  --primary-glow: rgba(255, 255, 255, 0.3);
  --secondary: #e0e0e0;
  --accent: #cccccc;
  --light: #121212;
  --dark: #ffffff;
  --gradient: linear-gradient(135deg, #ffffff, #cccccc);
}

/* Dark theme logo adjustments */
[data-theme="dark"] #navbar .logo img {
  content: url('assets/images/logo/WCropped.png');
}

[data-theme="dark"] footer .footer-logo img {
  content: url('assets/images/logo/BNC.png');
}

[data-theme="dark"] #navbar.scrolled {
  background-color: #121212;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .industry-card,
[data-theme="dark"] .case-interactive,
[data-theme="dark"] .contact-form {
  background-color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .mobile-menu {
  background-color: #1a1a1a;
}

[data-theme="dark"] .tech-tag {
  background-color: #333333;
  color: #ffffff;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
  background-color: #1a1a1a;
  border-color: #333333;
  color: #e0e0e0;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .case-study-divider {
  background-color: #333333;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  width: 40px;
  height: 40px;
  overflow: hidden;
}

#navbar.scrolled .theme-toggle {
  color: var(--dark);
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#navbar.scrolled .theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Icon Fallbacks */
.icon-fallback {
  font-style: normal;
}