/* Storm Flare Architecture Studio - CSS */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background-color: #1a1a1a;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

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

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

p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #e0e0e0;
  margin-bottom: 1.5rem;
}

a {
  color: #ff6b35;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Bootstrap 5 Overrides */
.btn {
  border-radius: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 30px;
  font-size: 14px;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: #ff6b35;
  color: #ffffff;
  border: 2px solid #ff6b35;
}

.btn-primary:hover {
  background-color: #e55a2e;
  color: #ffffff;
  border-color: #e55a2e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-outline-primary {
  background-color: transparent;
  color: #ff6b35;
  border: 2px solid #ff6b35;
}

.btn-outline-primary:hover {
  background-color: #ff6b35;
  color: #ffffff;
  border-color: #ff6b35;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background-color: #ffffff;
  color: #1a1a1a;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Navigation */
.navbar {
  background-color: rgba(26, 26, 26, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 107, 53, 0.1);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background-color: rgba(26, 26, 26, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.navbar-nav .nav-link {
  color: #e0e0e0 !important;
  font-weight: 500;
  margin: 0 15px;
  padding: 8px 0 !important;
  position: relative;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover {
  color: #ff6b35 !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ff6b35;
  transition: width 0.3s ease;
}

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

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

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

/* Mobile Menu Animation */
.mobile-menu-btn {
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.mobile-menu-btn span:nth-child(1) {
  top: 0px;
}

.mobile-menu-btn span:nth-child(2) {
  top: 10px;
}

.mobile-menu-btn span:nth-child(3) {
  top: 20px;
}

.mobile-menu-btn.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
  background: #ff6b35;
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.mobile-menu-btn.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
  background: #ff6b35;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::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="storm" patternUnits="userSpaceOnUse" width="100" height="100"><path d="M20 20L80 20L60 80L40 40Z" fill="%23ff6b35" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23storm)"/></svg>') repeat;
  animation: stormMove 20s linear infinite;
}

@keyframes stormMove {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-100px) translateY(-100px); }
}

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

.hero-title {
  background: linear-gradient(45deg, #ffffff, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #e0e0e0;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-cta {
  animation: fadeInUp 1s ease 0.9s both;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease forwards;
}

/* Section Styles */
.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background-color: #1a1a1a;
}

.section-light {
  background-color: #2a2a2a;
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(45deg, #ff6b35, #ffffff);
}

/* Card Styles */
.card {
  background-color: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(255, 107, 53, 0.2);
  border-color: #ff6b35;
}

.card-img-top {
  transition: all 0.3s ease;
}

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

.card-body {
  padding: 2rem;
}

.card-title {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-text {
  color: #e0e0e0;
  font-size: 1rem;
}

/* Project Grid */
.project-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  cursor: pointer;
  group: hover;
}

.project-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 107, 53, 0.8), rgba(26, 26, 26, 0.8));
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

.project-item:hover::before {
  opacity: 1;
}

.project-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  opacity: 0;
  transition: all 0.3s ease;
}

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

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

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

/* Forms */
.form-control {
  background-color: #2a2a2a;
  border: 2px solid #3a3a3a;
  border-radius: 0;
  color: #ffffff;
  padding: 12px 15px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background-color: #2a2a2a;
  border-color: #ff6b35;
  color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-control::placeholder {
  color: #999999;
}

.form-label {
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-error {
  color: #ff6b35;
  font-size: 14px;
  margin-top: 0.25rem;
  display: none;
}

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

/* Footer */
.footer {
  background-color: #0f0f0f;
  color: #e0e0e0;
  padding: 3rem 0 1rem;
  border-top: 1px solid #3a3a3a;
}

.footer h5 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #ff6b35;
}

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

.footer ul li {
  padding: 0.25rem 0;
}

.footer ul li a {
  color: #cccccc;
  transition: all 0.3s ease;
}

.footer ul li a:hover {
  color: #ff6b35;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid #3a3a3a;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: #999999;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: #2a2a2a;
  border: 2px solid #3a3a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s ease;
  font-size: 18px;
}

.social-icon:hover {
  background-color: #ff6b35;
  border-color: #ff6b35;
  color: #ffffff;
  transform: translateY(-3px);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(26, 26, 26, 0.98);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 0 !important;
    margin: 5px 0;
  }
  
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .section {
    padding: 60px 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 60vh;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .btn {
    padding: 10px 25px;
    font-size: 13px;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .project-img {
    height: 250px;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 30px 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
    margin-top: 1rem;
  }
}