/* Golden Flare Architecture Studio - Custom CSS */

/* CSS Custom Properties */
:root {
  --primary-color: #E6B800;
  --secondary-color: #2C3E50;
  --primary-dark: #B8950D;
  --primary-light: #F4D03F;
  --secondary-light: #34495E;
  --accent-gold: #FFD700;
  --text-dark: #1A1A1A;
  --text-light: #FFFFFF;
  --text-muted: #6C757D;
  --bg-light: #FAFAFA;
  --bg-dark: #212529;
  --shadow-light: rgba(230, 184, 0, 0.15);
  --shadow-dark: rgba(44, 62, 80, 0.2);
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #FFFFFF;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2.5rem;
  position: relative;
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

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

/* Bootstrap 5 Overrides */
.btn {
  border-radius: 0;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
  color: var(--text-dark);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-light);
}

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

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

.btn-secondary {
  background: var(--gradient-secondary);
  border-color: var(--secondary-color);
  color: var(--text-light);
}

.btn-secondary:hover {
  background: var(--secondary-light);
  border-color: var(--secondary-light);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.navbar-brand:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  margin: 0 1rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

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

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 62, 80, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(230, 184, 0, 0.8) 100%), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23f8f9fa" points="0,0 1000,300 1000,1000 0,700"/><polygon fill="%23e9ecef" points="0,700 1000,1000 0,1000"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(230, 184, 0, 0.1) 50%, transparent 70%);
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero .btn {
  animation: fadeInUp 1s ease-out 0.6s both;
}

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

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  display: block;
  margin: 1rem auto;
}

.section-alt {
  background: var(--bg-light);
}

/* Cards */
.card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  transition: all 0.3s ease;
  height: 250px;
  object-fit: cover;
}

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

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--secondary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-muted);
}

/* Services Grid */
.service-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-light);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.service-item:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Portfolio Filter */
.portfolio-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: var(--text-dark);
}

/* Portfolio Grid */
.portfolio-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--bg-light);
  transition: all 0.3s ease;
}

.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: all 0.3s ease;
  color: white;
  text-align: center;
  padding: 2rem;
}

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

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

/* Team Cards */
.team-card {
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.team-card:hover .team-photo {
  border-color: var(--secondary-color);
  transform: scale(1.05);
}

/* Contact Form */
.form-control {
  border: 2px solid #e9ecef;
  border-radius: 0;
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(230, 184, 0, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.contact-info {
  background: var(--gradient-secondary);
  color: white;
  padding: 3rem;
  border-radius: 10px;
}

.contact-info h4 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-right: 1rem;
  width: 20px;
}

/* Footer */
.footer {
  background: var(--gradient-secondary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

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

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

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(230, 184, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-3px);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hide {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--text-dark);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(100px);
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero {
    min-height: 70vh;
    background-attachment: scroll;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .navbar-nav {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
    text-align: center;
  }
  
  .portfolio-filter {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-info {
    margin-top: 2rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .service-item,
  .team-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .back-to-top,
  .loading {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}