/*
Theme Name: DigiFoxStudio
Theme URI: https://digifoxstudio.com
Author: DigiFoxStudio Team
Author URI: https://digifoxstudio.com
Description: A premium dark-themed WordPress agency theme for DigiFoxStudio - featuring modern design, orange accents, and conversion-focused layouts. Perfect for creative digital agencies.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digifoxstudio
Tags: dark, agency, portfolio, custom-menu, featured-images, flexible-header, custom-logo, theme-options
*/

/* ===================================
   ROOT VARIABLES & COLOR PALETTE
   =================================== */
:root {
  --primary-orange: #FF6B35;
  --primary-orange-hover: #FF8555;
  --dark-bg: #0F0F0F;
  --dark-secondary: #1A1A1A;
  --dark-tertiary: #252525;
  --text-white: #FFFFFF;
  --text-gray: #B0B0B0;
  --text-light-gray: #E0E0E0;
  --accent-border: #333333;
  --transition-speed: 0.3s;
  
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

/* ===================================
   GLOBAL RESET & BASE STYLES
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--dark-bg);
  color: var(--text-white);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-orange);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

a {
  color: var(--primary-orange);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

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

/* ===================================
   CONTAINER & LAYOUT
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-dark {
  background-color: var(--dark-secondary);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--accent-border);
  transition: all var(--transition-speed) ease;
}

.site-header.scrolled {
  background-color: rgba(15, 15, 15, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo img {
  height: 50px;
  width: auto;
  transition: transform var(--transition-speed) ease;
}

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

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.main-navigation a {
  color: var(--text-white);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 0;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-orange);
  transition: width var(--transition-speed) ease;
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===================================
   BUTTONS & CTAs
   =================================== */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary-orange);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

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

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

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-tagline {
  color: var(--primary-orange);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero-title {
  font-size: 3 rem;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-title .highlight {
  color: var(--primary-orange);
  display: block;
}

.hero-description {
  font-size: 1 rem;
  color: var(--text-light-gray);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--dark-secondary);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  padding: 2.5rem;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-orange-hover));
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-orange);
  box-shadow: 0 10px 40px rgba(255, 107, 53, 0.2);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 107, 53, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: var(--primary-orange);
}

.service-card h3 {
  color: var(--text-white);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-gray);
  line-height: 1.6;
}

/* ===================================
   PORTFOLIO SECTION
   =================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 15, 15, 0.95) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

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

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

.portfolio-overlay h3 {
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: var(--text-light-gray);
  margin: 0;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-form {
  background-color: var(--dark-secondary);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--accent-border);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background-color: var(--dark-tertiary);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  color: var(--text-white);
  font-family: var(--font-primary);
  transition: all var(--transition-speed) ease;
}

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

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

.contact-info h3 {
  color: var(--text-white);
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--dark-secondary);
  border-radius: 8px;
  border-left: 4px solid var(--primary-orange);
}

.contact-item h4 {
  color: var(--primary-orange);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--text-gray);
  margin: 0;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
  background-color: var(--dark-secondary);
  border-top: 1px solid var(--accent-border);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.8;
}

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--accent-border);
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  
  .hero-title { font-size: 3.5rem; }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container,
  .container-wide {
    padding: 0 1.5rem;
  }
  
  .main-navigation {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 4rem 0;
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center { text-align: center; }
.text-orange { color: var(--primary-orange); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.fade-in {
  animation: fadeIn 0.8s ease-in;
}

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