/* Electric Storm Architecture Studio CSS */

:root {
  --primary-color: #1a237e;
  --secondary-color: #00e676;
  --dark-primary: #0d47a1;
  --light-primary: #3949ab;
  --accent-color: #64ffda;
  --text-dark: #212121;
  --text-light: #ffffff;
  --text-muted: #757575;
  --background-light: #fafafa;
  --background-dark: #121212;
  --shadow-light: rgba(26, 35, 126, 0.1);
  --shadow-medium: rgba(26, 35, 126, 0.2);
  --shadow-heavy: rgba(26, 35, 126, 0.3);
  --gradient-electric: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-storm: linear-gradient(45deg, #0d47a1 0%, #1a237e 30%, #00e676 100%);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

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

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

/* Bootstrap Overrides */
.btn-primary {
  background: var(--gradient-electric);
  border: none;
  color: var(--text-light);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:focus {
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.3);
  color: var(--text-light);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

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

.btn-outline-primary:focus {
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.3);
  color: var(--text-light);
  background: var(--primary-color);
  border-color: var(--primary-color);
}

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

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

.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  background: var(--gradient-electric);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text-light);
  background: var(--gradient-electric);
  transform: translateY(-2px);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.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='%23212121' 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(26, 35, 126, 0.9) 0%, rgba(0, 230, 118, 0.8) 100%), 
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff10" points="0,0 1000,300 1000,1000 300,1000"/><polygon fill="%23ffffff05" points="200,200 800,0 1000,800 400,1000"/></svg>');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%2300e676" fill-opacity="0.1"><polygon points="36,34 6,34 6,6 36,6"/></g></g></svg>');
  animation: electric-grid 20s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  text-align: center;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

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

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

/* Electric Storm Effects */
.electric-bolt {
  position: absolute;
  width: 2px;
  height: 100px;
  background: var(--secondary-color);
  opacity: 0;
  animation: lightning 3s infinite;
}

.electric-bolt:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.electric-bolt:nth-child(2) { top: 60%; right: 15%; animation-delay: 1s; }
.electric-bolt:nth-child(3) { bottom: 30%; left: 70%; animation-delay: 2s; }

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

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

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

/* Cards */
.card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  box-shadow: 0 5px 15px var(--shadow-light);
}

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

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

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

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Project Grid */
.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-storm);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

.project-info {
  text-align: center;
  color: var(--text-light);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.project-item:hover .project-info {
  transform: translateY(0);
}

/* Forms */
.form-control {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
  background: white;
}

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

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

/* Contact Section */
.contact-info {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-light);
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--background-light);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: var(--gradient-electric);
  color: var(--text-light);
  transform: translateX(10px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-electric);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--text-light);
  font-size: 1.2rem;
}

.contact-item:hover .contact-icon {
  background: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
  background: var(--background-dark);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

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

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.social-link {
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all 0.3s ease;
  text-decoration: none;
}

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

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

@keyframes lightning {
  0%, 90%, 100% {
    opacity: 0;
    transform: scaleY(0);
  }
  5%, 10% {
    opacity: 1;
    transform: scaleY(1);
  }
}

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

@keyframes pulse-electric {
  0%, 100% {
    box-shadow: 0 0 5px var(--secondary-color);
  }
  50% {
    box-shadow: 0 0 20px var(--secondary-color), 0 0 30px var(--secondary-color);
  }
}

.electric-pulse {
  animation: pulse-electric 2s infinite;
}

/* Loading Animation */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
  
  .hero {
    background-attachment: scroll;
    text-align: center;
  }
  
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    margin-top: 1rem;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 10px 30px var(--shadow-light);
  }
  
  .contact-info {
    padding: 2rem;
    margin-top: 2rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 2rem 0;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .contact-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
}

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

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

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

.border-electric {
  border: 2px solid var(--secondary-color);
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(26, 35, 126, 0.1);
  z-index: 9999;
}

.scroll-progress {
  height: 100%;
  background: var(--gradient-electric);
  width: 0%;
  transition: width 0.1s ease;
}