/* Ocean Driftwood Architecture Studio - Custom Styles */

:root {
  --primary-color: #2C5F5D;
  --secondary-color: #E8B86D;
  --dark-teal: #1a3938;
  --light-teal: #4a7f7d;
  --cream: #f5f0e8;
  --sand: #d4a574;
  --white: #ffffff;
  --text-dark: #2a2a2a;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark-teal);
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--primary-color);
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(180deg, rgba(44, 95, 93, 0.95) 0%, rgba(44, 95, 93, 0.85) 100%) !important;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  z-index: 1030;
  box-shadow: 0 2px 20px rgba(44, 95, 93, 0.1);
}

.navbar.scrolled {
  background: rgba(44, 95, 93, 0.98) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--white) !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

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

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

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

.navbar-toggler {
  border: 2px solid var(--secondary-color) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(232, 184, 109, 0.3) !important;
}

.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='%23E8B86D' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Buttons */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background-color: var(--secondary-color) !important;
  border: 2px solid var(--secondary-color) !important;
  color: var(--dark-teal) !important;
  font-weight: 700;
}

.btn-primary:hover {
  background-color: var(--sand) !important;
  border-color: var(--sand) !important;
  color: var(--dark-teal) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(232, 184, 109, 0.4);
}

.btn-outline,
.btn-outline-primary {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 600;
}

.btn-outline:hover,
.btn-outline-primary:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(44, 95, 93, 0.3);
}

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

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

.btn-link {
  color: var(--primary-color) !important;
  text-decoration: none !important;
  font-weight: 600;
}

.btn-link:hover {
  color: var(--secondary-color) !important;
  text-decoration: underline !important;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

/* Hero Section */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-teal) 0%, var(--primary-color) 50%, var(--light-teal) 100%);
  position: relative;
}

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h100v100H0z" fill="none"/%3E%3Cpath d="M20 80q10-20 20 0t20 0 20 0 20 0" stroke="%23E8B86D" stroke-width="0.5" fill="none" opacity="0.3"/%3E%3C/svg%3E');
  opacity: 0.1;
  animation: wave 20s linear infinite;
}

@keyframes wave {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}

.text-white h1,
.text-white .display-1 {
  color: var(--white) !important;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.text-white .fs-4,
.text-white .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.2s ease-out;
}

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

/* Cards */
.card {
  border: none !important;
  border-radius: 0;
  transition: var(--transition);
  background-color: var(--white);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(44, 95, 93, 0.2) !important;
}

.card-img-top {
  transition: var(--transition);
  height: 250px;
  object-fit: cover;
}

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

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--dark-teal) !important;
  font-weight: 700;
  font-size: 1.25rem;
}

.card-text {
  color: var(--text-dark);
  line-height: 1.8;
}

/* Shadow Utilities */
.shadow {
  box-shadow: 0 10px 30px rgba(44, 95, 93, 0.1) !important;
}

.shadow-sm {
  box-shadow: 0 5px 15px rgba(44, 95, 93, 0.08) !important;
}

.shadow-lg {
  box-shadow: 0 20px 50px rgba(44, 95, 93, 0.15) !important;
}

/* Hover Effects */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(44, 95, 93, 0.2);
}

/* Portfolio */
.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0;
  height: 350px;
  transition: var(--transition);
}

.portfolio-item.tall {
  grid-row: span 2;
  height: 720px;
}

.portfolio-item.wide {
  grid-column: span 2;
}

.portfolio-card {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(44, 95, 93, 0.95) 0%, rgba(44, 95, 93, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--white);
}

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

.portfolio-overlay h3,
.portfolio-overlay .h3 {
  color: var(--white) !important;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Filter Buttons */
.filter-btn {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  margin: 0.25rem;
  padding: 0.5rem 1.5rem;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
}

/* Timeline */
.timeline-item {
  position: relative;
  padding: 2rem;
  background: var(--white);
  margin-bottom: 2rem;
  border-left: 4px solid var(--secondary-color);
  transition: var(--transition);
}

.timeline-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(44, 95, 93, 0.15);
}

.timeline-path {
  position: relative;
}

.timeline-path::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
}

/* Forms */
.form-label {
  color: var(--dark-teal);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control,
.form-control-lg,
.form-select,
.form-select-lg {
  border: 2px solid var(--primary-color) !important;
  border-radius: 0;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-control-lg:focus,
.form-select:focus,
.form-select-lg:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(232, 184, 109, 0.25) !important;
  outline: none;
}

.form-check-input {
  border: 2px solid var(--primary-color) !important;
  border-radius: 0;
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(44, 95, 93, 0.25) !important;
}

.form-check-label {
  color: var(--text-dark);
  font-weight: 500;
}

/* Badges */
.badge {
  background-color: var(--secondary-color) !important;
  color: var(--dark-teal) !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0;
  font-size: 0.85rem;
}

/* Icons */
.bi {
  vertical-align: middle;
}

.bi-droplet-half,
.bi-lightning-charge,
.bi-tree,
.bi-wind {
  color: var(--primary-color);
}

.rounded-circle.bg-light {
  background-color: rgba(232, 184, 109, 0.2) !important;
  transition: var(--transition);
}

.hover-lift:hover .rounded-circle {
  background-color: var(--secondary-color) !important;
}

.hover-lift:hover .bi {
  color: var(--white) !important;
}

/* Background Utilities */
.bg-light {
  background-color: var(--cream) !important;
}

.bg-white {
  background-color: var(--white) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

/* Text Colors */
.text-muted {
  color: rgba(42, 42, 42, 0.6) !important;
}

.text-white {
  color: var(--white) !important;
}

.text-white * {
  color: var(--white) !important;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

.text-decoration-none {
  text-decoration: none !important;
}

.text-decoration-none:hover {
  text-decoration: underline !important;
}

/* List Styles */
.list-unstyled li {
  padding: 0.5rem 0;
  color: var(--text-dark);
}

/* Border Utilities */
.border-top {
  border-top: 1px solid rgba(44, 95, 93, 0.2) !important;
}

.border-start {
  border-left-color: var(--secondary-color) !important;
}

.border-3 {
  border-width: 3px !important;
}

/* Footer */
footer {
  background: linear-gradient(180deg, var(--dark-teal) 0%, var(--primary-color) 100%);
  color: var(--white);
  padding: 4rem 0 2rem;
}

footer h5,
footer .h5 {
  color: var(--secondary-color) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

footer p,
footer li,
footer a {
  color: rgba(255, 255, 255, 0.85) !important;
}

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

footer .bi-facebook,
footer .bi-instagram,
footer .bi-linkedin,
footer .bi-twitter {
  font-size: 1.5rem;
  color: var(--white) !important;
  transition: var(--transition);
}

footer .bi-facebook:hover,
footer .bi-instagram:hover,
footer .bi-linkedin:hover,
footer .bi-twitter:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-3px);
}

/* Opacity Utilities */
.opacity-25 {
  opacity: 0.25 !important;
}

.opacity-75 {
  opacity: 0.75 !important;
}

/* Spacing Utilities Override */
.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.py-3 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

/* Object Fit */
.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Sticky Elements */
.sticky-top {
  position: sticky;
  top: 80px;
  z-index: 1020;
}

.position-fixed {
  position: fixed !important;
  top: 0;
  z-index: 1030;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out;
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

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

/* Loading Spinner */
.spinner-border {
  border-color: var(--secondary-color);
  border-right-color: transparent;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 95, 93, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--secondary-color);
  }
  
  .navbar-nav {
    gap: 0.5rem !important;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .portfolio-masonry {
    grid-template-columns: 1fr;
  }
  
  .portfolio-item.tall,
  .portfolio-item.wide {
    grid-column: span 1;
    grid-row: span 1;
    height: 350px;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem;
  }
}

@media (max-width: 767.98px) {
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .display-1 {
    font-size: 2rem !important;
  }
  
  .fs-4 {
    font-size: 1rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .portfolio-item {
    height: 250px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* Accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 2px solid var(--secondary-color);
}

/* Selection */
::selection {
  background-color: var(--secondary-color);
  color: var(--dark-teal);
}

::-moz-selection {
  background-color: var(--secondary-color);
  color: var(--dark-teal);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-teal);
}