/* Cosmic Noir Architecture Studio - CSS */

/* CSS Custom Properties */
:root {
  --primary-color: #1a1a2e;
  --secondary-color: #e94560;
  --dark-bg: #0f0f23;
  --light-text: #ffffff;
  --gray-text: #b8b8d1;
  --accent-blue: #4fc3f7;
  --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 100%);
  --gradient-secondary: linear-gradient(135deg, #e94560 0%, #ff6b7d 100%);
  --cosmic-glow: 0 0 30px rgba(233, 69, 96, 0.3);
  --shadow-dark: 0 10px 30px rgba(15, 15, 35, 0.5);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
}

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

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

body {
  font-family: var(--font-primary);
  background: var(--gradient-primary);
  color: var(--light-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Cosmic Background Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(79, 195, 247, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(233, 69, 96, 0.05) 0%, transparent 50%);
  z-index: -1;
  animation: cosmicFloat 20s ease-in-out infinite;
}

@keyframes cosmicFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(1deg); }
  66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--light-text) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

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

/* Bootstrap 5 Overrides */
.container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

.btn {
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-secondary);
  color: var(--light-text);
  box-shadow: var(--cosmic-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(233, 69, 96, 0.5);
  background: var(--gradient-secondary);
  color: var(--light-text);
}

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

.btn-outline-light:hover {
  background: var(--light-text);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Navigation */
.navbar {
  background: rgba(26, 26, 46, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(233, 69, 96, 0.1);
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.98) !important;
  box-shadow: var(--shadow-dark);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light-text) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--gray-text) !important;
  font-weight: 500;
  margin: 0 1rem;
  position: relative;
  transition: var(--transition-smooth);
}

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

.navbar-nav .nav-link:hover {
  color: var(--light-text) !important;
}

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

.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
}

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

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

.hero-title {
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--gray-text);
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons .btn {
  margin: 0.5rem 1rem 0.5rem 0;
}

/* Cards and Content Sections */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

.card {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(233, 69, 96, 0.1);
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--cosmic-glow);
  border-color: rgba(233, 69, 96, 0.3);
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--light-text);
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

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

/* Portfolio Grid */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(233, 69, 96, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

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

.portfolio-content h4 {
  color: var(--light-text);
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  color: var(--light-text);
  opacity: 0.9;
}

/* Forms */
.form-control {
  background: rgba(26, 26, 46, 0.6);
  border: 2px solid rgba(233, 69, 96, 0.2);
  border-radius: var(--border-radius);
  color: var(--light-text);
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  background: rgba(26, 26, 46, 0.8);
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(233, 69, 96, 0.25);
  color: var(--light-text);
}

.form-control::placeholder {
  color: var(--gray-text);
}

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

.form-error {
  color: var(--secondary-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-control.error {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(233, 69, 96, 0.25);
}

/* Footer */
.footer {
  background: var(--dark-bg);
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(233, 69, 96, 0.1);
}

.footer h5 {
  color: var(--light-text);
  margin-bottom: 1rem;
}

.footer p, .footer a {
  color: var(--gray-text);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: rgba(233, 69, 96, 0.1);
  border-radius: 50%;
  margin-right: 0.5rem;
  transition: var(--transition-smooth);
}

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

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

.fade-in-up {
  animation: fadeInUp 1s ease-out;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Animation */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(233, 69, 96, 0.3);
  border-top: 3px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

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

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-secondary);
  color: var(--light-text);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--cosmic-glow);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-nav {
    background: rgba(26, 26, 46, 0.98);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(233, 69, 96, 0.1);
  }
  
  .hero-section {
    text-align: center;
    padding: 2rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}

@media (max-width: 767.98px) {
  .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .portfolio-item img {
    height: 250px;
  }
  
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .portfolio-item img {
    height: 200px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .back-to-top,
  .hero-buttons {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  h1, h2, h3 {
    color: black;
  }
}