/* 
  Styling for the website - Dark theme with true black background.
*/

/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif; /* Keep placeholder fonts for now */
    color: #f8f8f8; /* Light text for dark background */
    background-color: #000000; /* True black background */
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #007bff; /* Accent blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3; /* Darker blue on hover */
}

/* Fonts (Placeholder for now) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Raleway:wght@300;400;600&display=swap');


/* Main layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Transparent black for header */
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 20px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f8f8f8; /* Light title */
}

.site-title a {
    color: white;
    text-decoration: none;
}

.site-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav ul li {
    display: inline-block;
    margin-left: 20px;
}

.site-nav a {
    color: #f8f8f8; /* Light links */
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.site-nav a:hover {
    color: #007bff; /* Accent blue on hover */
}

/* Main content */
main {
    padding-top: 120px; /* Increased offset for fixed header to prevent overlap */
}

section {
    padding: 80px 0;
    background-color: #000000;
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 40px;
    color: #f8f8f8; /* Light headings */
}

/* Hero Section */
.hero-section {
    min-height: 40vh;
    display: flex;
    align-items: center;
}

.hero-section .tagline {
    font-size: 1.8em;
    font-weight: 300;
    max-width: 600px;
    color: #f8f8f8; /* Light tagline */
}

/* About Section */
.about-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #d0d0d0; /* Slightly darker light for secondary text */
    margin-bottom: 20px;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    background-color: #111; /* Slightly off-black for items */
    border-radius: 8px;
    text-decoration: none;
    color: #f8f8f8; /* Light text */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* Darker shadow */
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5); /* Stronger dark shadow */
}

.portfolio-item img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.item-overlay {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7); /* True black with slight transparency */
}

.item-overlay h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px;
    color: #f8f8f8; /* Light headings */
}

.item-overlay p {
    font-size: 0.9rem;
    color: #d0d0d0; /* Slightly darker light for secondary text */
    margin: 0;
}

/* Trusted By Section */
.logos-wrapper {
    --logo-scale: 0.64; /* Update this value to scale all client logos */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.client-logo {
    width: 150px;
    transform: scale(var(--logo-scale, 1));
    transition: transform 0.3s ease;
    filter: invert(0);
}

/* Contact Section */
.contact-section {
    background: #000000; /* True black background */
}

.contact-section p {
    color: #d0d0d0; /* Slightly darker light for secondary text */
}

.contact-section a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.3s ease, color 0.3s ease;
}

.contact-section a:hover {
    border-bottom-color: #007bff;
    color: #0056b3;
}

#email-contact-link {
    color: #ffffff;
    text-decoration: underline;
}

/* Footer */
.site-footer {
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #d0d0d0; /* Secondary text color */
    background-color: #000000; /* True black background */
}

.site-footer a {
    color: #f8f8f8; /* Light links */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #007bff;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accordion styles */
.accordion-button {
  cursor: pointer;
  width: 100%;
  text-align: left;
  padding: 15px;
  outline: none;
  transition: background-color 0.2s, color 0.2s;
  position: relative;
  font-family: 'Montserrat', sans-serif; /* Keep placeholder fonts for now */
  font-size: 1rem;
  font-weight: 500;
  border: none;
  background-color: transparent;
  border-bottom: 1px solid #333; /* Dark border */
  color: #f8f8f8; /* Light text */
}

.accordion-button:hover {
  background-color: #111; /* Slightly off-black on hover */
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #111; /* Slightly off-black background */
  padding-left: 15px;
  color: #d0d0d0; /* Secondary text color */
}
.video-responsive {
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9; /* Modern aspect ratio control */
    margin: 0 auto; /* Center the video container */
    max-width: 80vw; /* Limit width to 80% of viewport */
}

.video-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}
.centered-image-container {
    text-align: center;
    margin: 0 auto;
}

.centered-image-container img {
    display: block; /* Ensure image is treated as a block for margin auto to work */
    margin: 0 auto; /* Center the image itself */
    max-width: 100%; /* Ensure image doesn't overflow its container */
    height: auto; /* Maintain aspect ratio */
}

.portfolio_image, .dynamic_portfolio_image {
  position: static; /* Let flexbox handle positioning */
  max-width: 80vw; /* Limit width to 80% of viewport */
  max-height: 100%;
  width: auto; /* Allow image to size based on aspect ratio */
  height: auto; /* Maintain aspect ratio */
  object-fit: contain; /* Show entire image, letterboxing if necessary */
  margin: 0 auto; /* Center the image */
  display: block; /* Ensure block-level behavior for centering */
}
