/**
* Theme Name: Sarks Redesign
* Description: Modern, premium design with glassmorphism and advanced scrolling effects.
*/

/*--------------------------------------------------------------
# Variables & Design System
--------------------------------------------------------------*/
:root {
  /* Colors */
  --color-bg: #0a0a0a;
  --color-surface: #121212;
  --color-surface-transparent: rgba(18, 18, 18, 0.7);
  --color-primary: #e31818;
  --color-primary-dark: #b31212;
  --color-text-main: #ffffff;
  --color-text-muted: #a0a0a0;
  --color-border: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-main: "Inter", sans-serif;
  --font-heading: "Outfit", sans-serif;

  /* Effects */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-blur: blur(12px);
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(227, 24, 24, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.2;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 16px;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-primary {
  color: var(--color-primary) !important;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-smooth);
}

#header.scrolled {
  padding: 10px 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo img {
  height: 60px;
  width: auto;
}

.navbar ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.navbar a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  position: relative;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-smooth);
}

.navbar a:hover,
.navbar a.active {
  opacity: 1;
  color: #fff;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navbar ul {
    display: none; /* Handle mobile menu with JS */
  }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3),
    var(--color-bg)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1200px;
  padding: 0 20px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  font-weight: 300;
}

.btn-hero {
  display: inline-block;
  padding: 15px 40px;
  background: var(--color-primary);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
  border: 0;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(227, 24, 24, 0.5);
  background: var(--color-primary-dark);
  color: white;
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/*--------------------------------------------------------------
# Cards (Concepts & Elements)
--------------------------------------------------------------*/
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(227, 24, 24, 0.1),
    transparent 60%
  );
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(227, 24, 24, 0.3);
  box-shadow: var(--shadow-soft);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 40px;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.feature-card a {
  color: #fff;
  transition: var(--transition-smooth);
}

.feature-card:hover a {
  color: var(--color-primary);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-img img {
  width: 100%;
  max-height: 400px; /* Constrain height to match text better */
  object-fit: cover; /* Maintain aspect ratio */
  display: block;
  transition: transform 0.5s ease;
}

.about-img:hover img {
  transform: scale(1.05);
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.check-list {
  list-style: none;
}

.check-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
}

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

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: #050505;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.footer-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fff;
}

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

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

.footer-links a {
  color: var(--color-text-muted);
  transition: 0.3s;
}

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

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
}

/*--------------------------------------------------------------
# PHP Email Form
--------------------------------------------------------------*/
.php-email-form .loading {
  display: none;
  background: var(--color-surface);
  text-align: center;
  padding: 15px;
}

.php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Music Button
--------------------------------------------------------------*/
.music-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.music-btn:hover {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}

@media (max-width: 991px) {
  .music-btn {
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Hero Title Adjustment */
.hero-title-small {
  font-size: 2.5rem;
  display: block;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .hero-title-small {
    font-size: 1.8rem;
  }
}
