/* General Styles */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

html {
    scroll-behavior: smooth;
    /* Fallback for browsers that don't support scroll-behavior */
    -webkit-overflow-scrolling: touch;
}

/* Ensure smooth scrolling works in Safari */
@supports not (scroll-behavior: smooth) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    padding-top: 56px;
    color: var(--text-color);
}

/* Page transition (respect reduced motion) */
@media (prefers-reduced-motion: no-preference) {
    body {
        transition: opacity 200ms ease;
    }
    body.is-exiting {
        opacity: 0;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

h1 {
    font-weight: 600;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: left;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 600px;
    margin-bottom: 2rem;
    text-align: left;
}

/* Navigation */
.navbar {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-dark .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.navbar-dark .navbar-brand {
    color: var(--primary-color);
    font-weight: 700;
}

.navbar-dark .navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-dark .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(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    max-height: 500px;
    min-height: 400px;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero-section::before {
    display: none; /* Removing the gradient overlay */
}

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

.hero-section .display-1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0;
    opacity: 0.8;
}

/* About Section */
#about {
    background-color: #ffffff;
    padding: 80px 0;
}

#about .fas {
    color: #0d6efd;
    margin-right: 10px;
}

.about-card {
    padding: 2rem 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    text-align: left;
}

.about-card:hover {
    transform: none;
}

.about-card i {
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 1;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

/* Projects Section */
#projects {
    padding: 80px 0;
}

#projects .section-title,
#projects .section-subtitle {
    text-align: left;
}

.card {
    border: none;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    overflow: hidden;
}

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

.card-img-top {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 24px;
    padding: 10px;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    color: var(--primary-color);
}

/* Contact Section */
#contact {
    background-color: var(--light-gray);
    padding: 80px 0;
}

#contact .section-title,
#contact .section-subtitle {
    text-align: left;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-dark {
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background-color: var(--dark-gray);
    transform: translateY(-2px);
}

/* Social Links */
.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--dark-gray);
}

/* Section Backgrounds */
.bg-light {
    background-color: var(--light-gray) !important;
}

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

/* Cards in black sections */
.bg-black .card {
    background-color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.bg-black .card:hover {
    transform: translateY(-5px);
}

.bg-black .card-title {
    color: var(--secondary-color);
}

.bg-black .card-text {
    color: rgba(255, 255, 255, 0.7);
}

/* Contact Section */
#contact .btn-outline-light {
    border-width: 2px;
    padding: 0.8rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 350px;
        padding: 60px 0;
    }
    
    .hero-section .display-1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-card {
        margin-bottom: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .row > [class*='col-'] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Project Detail Page */
.project-hero {
    padding-top: 120px;
    padding-bottom: 60px;
}

.project-hero .display-4 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 600;
}

.project-image {
    margin-bottom: 60px;
}

.project-image img {
    object-fit: cover;
    width: 100%;
}

.content-block h2 {
    font-weight: 600;
    margin-bottom: 12px;
}

.content-block {
    margin-bottom: 32px;
}

.content-block p {
    line-height: 1.6;
    color: var(--text-color);
}

.project-highlights .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    background-color: #000000;
    transition: none;
}

.project-highlights {
  margin-top: 0px;
  margin-bottom: 40px;
}

.project-highlights h3 {
    font-weight: 600;
    color: #ffffff;
}

.project-highlights strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.project-highlights p {
    color: #ffffff;
    font-size: 0.95rem;
}

/* Remove hover interaction for sidebar card */
.project-highlights .card:hover {
    transform: none;
}

@media (max-width: 991.98px) {
    .project-hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .project-highlights .card {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 991.98px) {
  .project-highlights {
    margin-top: 0px;
    margin-bottom: 40px;
    }
}

/* Showcase Detail Page Styles */
.showcase-image {
    width: 100%;
    max-width: 1296px;
    height: auto;
    max-height: none;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    aspect-ratio: 1296 / 432;
}

.project-image {
    /* Remove background and padding */
    background: none;
    max-width: 1296px;
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 1296px) {
    .showcase-image {
        max-width: 100vw;
        aspect-ratio: 1296 / 432;
    }
    .project-image {
        max-width: 100vw;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .showcase-image {
        max-width: 100vw;
        width: 100vw;
        aspect-ratio: 1296 / 432;
    }
    .project-image {
        max-width: 100vw;
        width: 100vw;
    }
}

@media (max-width: 768px) {
    .showcase-image {
        aspect-ratio: 1296 / 432;
    }
}

@media (max-width: 767px) {
    .showcase-image {
        aspect-ratio: 1296 / 432;
        min-height: 254px;
        object-fit: cover;
    }
}

/* Product Design Section */
#product-design {
    padding: 80px 0;
}

/* UI & Visual Design Section */
#ui-design {
    padding: 80px 0;
}

/* Carousel Accessibility Improvements */
.carousel-control-prev,
.carousel-control-next {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 1rem;
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    border-radius: 4px;
    max-width: 80%;
    margin: 0 auto;
    bottom: 2rem;
}

.carousel-caption p {
    margin: 0;
    color: white;
    font-size: 1rem;
    line-height: 1.5;
}

/* Carousel Image Container Sizing for Showcase Studies */
.carousel-inner {
  max-width: 1200px;
  max-height: 738px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  aspect-ratio: 1200 / 738;
}

.carousel-inner .carousel-item img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  max-height: 738px;
  object-fit: contain;
  aspect-ratio: 1200 / 738;
}

@media (max-width: 1200px) {
  .carousel-inner {
    max-width: 100vw;
    max-height: calc(100vw * 0.615);
  }
  .carousel-inner .carousel-item img {
    max-width: 100vw;
    max-height: calc(100vw * 0.615);
  }
} 

/* Responsive: Sidebar above Objectives on showcase detail pages for <768px */
@media (max-width: 767.98px) {
  .showcase-content-row {
    display: flex;
    flex-direction: column-reverse;
  }
}
@media (min-width: 768px) {
  .showcase-content-row {
    display: flex;
    flex-direction: row;
  }
} 

p {
  margin-bottom: 10px;
} 

@media (min-width: 768px) and (max-width: 991px) {
    .project-image {
        max-width: 100vw !important;
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .project-image .container-fluid {
        max-width: 100vw !important;
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .project-image .row {
        margin: 0 !important;
        padding: 0 !important;
    }
    .project-image .col-12 {
        padding: 0 !important;
    }
    .showcase-image {
        max-width: 100vw !important;
        width: 100vw !important;
        aspect-ratio: 1296 / 432;
        margin: 0 !important;
    }
} 

/* Hero headshot */
.hero-headshot {
  width: 144px;
  height: 144px;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  overflow: hidden;
  object-fit: cover;
  display: block;
}

@media (min-width: 992px) {
  .hero-headshot {
    width: 200px;
    height: 200px;
  }
} 