/* Storm Shadow Architecture Studio - Modern CSS */

/* CSS Custom Properties */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #ff6b35;
  --accent-light: #2d2d2d;
  --accent-lighter: #404040;
  --text-light: #f8f9fa;
  --text-muted: #adb5bd;
  --shadow-dark: rgba(26, 26, 26, 0.3);
  --shadow-light: rgba(255, 107, 53, 0.2);
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #ff8f35 100%);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease-out;
  --border-radius: 8px;
  --border-radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

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

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

a:hover {
  color: #ff8f35;
  text-decoration: none;
}

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

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

.btn-primary {
  background: var(--gradient-secondary);
  color: var(--text-light);
  box-shadow: 0 4px 15px var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-light);
  color: var(--text-light);
}

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

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

.card {
  background: var(--accent-light);
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px var(--shadow-dark);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-dark);
}

.card-body {
  padding: 2rem;
}

.form-control {
  background: var(--accent-light);
  border: 2px solid transparent;
  color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  background: var(--accent-lighter);
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem var(--shadow-light);
  color: var(--text-light);
}

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

/* Navigation */
.navbar {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--accent-light);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(26, 26, 26, 0.98);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-nav .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text-light);
  background: var(--accent-light);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  background: var(--accent-light);
  border-radius: var(--border-radius);
}

.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%28248, 249, 250, 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;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-primary);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23404040" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
  opacity: 0.1;
}

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

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

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.7s forwards;
}

.hero-buttons {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.9s forwards;
}

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

/* Floating Elements Animation */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  background: var(--secondary-color);
  opacity: 0.1;
  animation: float 20s infinite linear;
}

.floating-element:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: -2s;
}

.floating-element:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: -8s;
}

.floating-element:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 80%;
  left: 70%;
  animation-delay: -15s;
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-dark {
  background: var(--accent-light);
}

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

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-secondary);
  margin: 1rem auto;
  border-radius: 2px;
}

/* Services/Features */
.service-card {
  text-align: center;
  padding: 2rem;
  height: 100%;
  transition: var(--transition-smooth);
}

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

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

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

.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: rgba(26, 26, 26, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

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

/* Contact Form */
.contact-form {
  background: var(--accent-light);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 40px var(--shadow-dark);
}

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

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

.form-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-success {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

/* Footer */
.footer {
  background: var(--primary-color);
  border-top: 1px solid var(--accent-light);
  padding: 3rem 0 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

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

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

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

.social-link {
  width: 50px;
  height: 50px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  font-size: 1.2rem;
}

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

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

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
  100% {
    transform: translateY(0px) rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--shadow-light);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: var(--gradient-primary);
}

.shadow-custom {
  box-shadow: 0 10px 30px var(--shadow-dark);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

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

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--accent-light);
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-nav {
    padding: 1rem 0;
    background: var(--accent-light);
    border-radius: var(--border-radius);
    margin-top: 1rem;
  }

  .hero {
    min-height: 100vh;
    text-align: center;
    padding: 2rem 0;
  }

  .section {
    padding: 3rem 0;
  }

  .service-card {
    margin-bottom: 2rem;
  }

  .contact-form {
    padding: 2rem 1rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

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

@media (max-width: 576px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  .portfolio-item img {
    height: 250px;
  }

  .floating-elements {
    display: none;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .floating-elements,
  .btn {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    border: 1px solid #ddd;
    box-shadow: none;
  }
}