/* 
* Brandrise Creatives Website Styles - Redesign
* Author: Brandrise Creatives
* Version: 2.0
*/

/* ===== Base Styles ===== */
:root {
  /* Brand Colors */
  --primary: #304787;       /* Primary blue */
  --secondary: #208344;     /* Green */
  --accent: #f27b2e;        /* Orange */
  --accent-alt: #c63d3b;    /* Red */
  
  /* Neutral Colors */
  --dark: #0a0a0a;
  --dark-light: #1a1a1a;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --light: #ffffff;
  
  /* Typography */
  --font-primary: "Inter", sans-serif;
  --font-secondary: "Playfair Display", serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--light);
  background-color: var(--dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--gray-light);
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--accent), var(--accent-alt));
  z-index: -1;
  transition: var(--transition-fast);
  opacity: 0;
}

.btn:hover::before {
  opacity: 1;
}

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

.btn-primary:hover {
  color: var(--light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--light);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--light);
  border: 2px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
  border-color: var(--light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: var(--transition-medium);
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== Cursor Effect ===== */
.cursor,
.cursor-follower {
  position: fixed;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: difference;
}

.cursor {
  width: 8px;
  height: 8px;
  background-color: var(--light);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
}

.cursor-follower {
  width: 30px;
  height: 30px;
  border: 1px solid var(--light);
  transition: transform 0.3s ease;
}

.cursor.active {
  width: 50px;
  height: 50px;
  opacity: 0.5;
}

.cursor-follower.active {
  transform: scale(0.5);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  transition: var(--transition-fast);
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  transition: var(--transition-fast);
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-item {
  margin-left: var(--space-md);
}

.nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
}

.nav-link::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  color: var(--accent);
  overflow: hidden;
  white-space: nowrap;
  transition: var(--transition-medium);
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--light);
  margin: 5px 0;
  transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--dark);
  padding: 100px var(--space-md) var(--space-md);
  z-index: 99;
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: var(--transition-medium);
}

.mobile-menu.active .mobile-nav-item {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.active .mobile-nav-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-item:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-item:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-item:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-nav-item:nth-child(5) { transition-delay: 0.5s; }

.mobile-nav-link {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.5rem;
  display: inline-block;
  padding: 0.5rem 0;
  position: relative;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-fast);
}

.mobile-nav-link:hover::after,
.mobile-nav-link.active::after {
  width: 100%;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slider {
  height: 100%;
}

.swiper-slide {
  width: 100%;
  height: 100%;
}

.slide-content {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: var(--space-sm);
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* Swiper Navigation */
.swiper-button-prev,
.swiper-button-next {
  color: var(--light);
  width: 50px;
  height: 50px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  backdrop-filter: blur(5px);
  transition: var(--transition-fast);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: var(--accent);
  color: var(--dark);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 1.25rem;
  font-weight: bold;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: var(--light);
  opacity: 0.5;
  transition: var(--transition-fast);
}

.swiper-pagination-bullet-active {
  background-color: var(--accent);
  opacity: 1;
  transform: scale(1.2);
}

/* ===== Marquee Section ===== */
.marquee-section {
  background-color: var(--dark-light);
  padding: var(--space-sm) 0;
  overflow: hidden;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 20s linear infinite;
}

.marquee-content span {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 var(--space-md);
  color: var(--accent);
}

.marquee-content i {
  font-size: 0.5rem;
  color: var(--gray);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Services Overview ===== */
.services-overview {
  padding: var(--space-xl) 0;
  background-color: var(--dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.service-card {
  background-color: var(--dark-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: var(--transition-fast);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,255,255,0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--light);
}

.service-description {
  color: var(--gray-light);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--accent);
  font-weight: 600;
  transition: var(--transition-fast);
}

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

.service-link:hover {
  color: var(--light);
}

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

/* ===== Portfolio Showcase ===== */
.portfolio-showcase {
  padding: var(--space-xl) 0;
  background-color: var(--dark-light);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.portfolio-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

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

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: var(--transition-medium);
}

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

.overlay-content {
  text-align: center;
  transform: translateY(20px);
  transition: var(--transition-medium);
  width: 100%;
}

.portfolio-item:hover .overlay-content {
  transform: translateY(0);
}

.overlay-content h3 {
  margin-bottom: 5px;
  color: var(--light);
}

.overlay-content p {
  color: var(--gray-light);
  margin-bottom: var(--space-sm);
}

.portfolio-cta {
  text-align: center;
  margin-top: var(--space-lg);
}

/* ===== Stats Section ===== */
.stats-section {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  text-align: center;
}

.stat-item {
  padding: var(--space-md);
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--light);
}

.stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.8);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  padding: var(--space-xl) 0;
  background-color: var(--dark);
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-md);
}

.testimonial-card {
  background-color: var(--dark-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin: var(--space-md);
  border: 1px solid rgba(255,255,255,0.05);
}

.testimonial-content {
  margin-bottom: var(--space-md);
  font-style: italic;
  position: relative;
}

.testimonial-content::before,
.testimonial-content::after {
  content: '"';
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
}

.testimonial-content::before {
  top: -20px;
  left: -10px;
}

.testimonial-content::after {
  bottom: -40px;
  right: -10px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

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

.author-info h4 {
  margin-bottom: 5px;
  color: var(--light);
}

.author-info p {
  color: var(--gray);
  font-size: 0.875rem;
}

/* ===== Team Section ===== */
.team-section {
  padding: var(--space-xl) 0;
  background-color: var(--dark-light);
}

.team-description {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.team-member {
  background-color: var(--dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
  position: relative;
}

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

.member-image {
  position: relative;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.team-member:hover .member-image img {
  transform: scale(1.05);
}

.member-social {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.team-member:hover .member-social {
  opacity: 1;
}

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

.member-social a:hover {
  background-color: var(--accent);
  color: var(--dark);
}

.member-info {
  padding: var(--space-md);
  text-align: center;
}

.member-name {
  margin-bottom: 5px;
  color: var(--light);
}

.member-position {
  color: var(--gray);
  font-size: 0.875rem;
}

.team-cta {
  text-align: center;
  margin-top: var(--space-lg);
}

/* ===== CTA Section ===== */
.cta-section {
  padding: var(--space-xl) 0;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('public/images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-text {
  margin-bottom: var(--space-lg);
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-sm);
}

.cta-description {
  max-width: 600px;
  margin: 0 auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--dark);
  padding-top: var(--space-xl);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.footer-about {
  padding-right: var(--space-md);
}

.footer-logo img {
  height: 50px;
  width: auto;
  margin-bottom: var(--space-sm);
}

.footer-about-text {
  margin-bottom: var(--space-md);
  color: var(--gray-light);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--dark-light);
  color: var(--light);
  transition: var(--transition-fast);
}

.social-link:hover {
  background-color: var(--accent);
  color: var(--dark);
}

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

.footer-nav-list,
.footer-services-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav-link,
.footer-services-link {
  color: var(--gray-light);
  transition: var(--transition-fast);
}

.footer-nav-link:hover,
.footer-services-link:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--gray-light);
}

.footer-info-item i {
  color: var(--accent);
}

.footer-bottom {
  padding: var(--space-md) 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.copyright {
  color: var(--gray);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  color: var(--gray);
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

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

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-md);
}

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

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

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive Styles ===== */
@media screen and (max-width: 992px) {
  .nav-list {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .footer-about {
    text-align: center;
    padding-right: 0;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
}