/* ==========================================
   CUSTOM FONT DECLARATIONS
   ========================================== */
@font-face {
    font-family: 'StretchPro';
    src: url('assets/StretchPro.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Lokeya Alternate';
    src: url('assets/Lokeya Alternate.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'AppleGaramond';
    src: url('assets/AppleGaramond.ttf') format('truetype'),
         url('assets/AppleGaramond.otf') format('opentype');
    font-display: swap;
}

/* ==========================================
   GLOBAL & FLUID LAYOUT STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Stops horizontal scrolling entirely */
    background-color: #0d0d0d;
    color: #000000;
    font-family: 'AppleGaramond', Georgia, serif;
}

/* Container stretching & adapting to screens */
.container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    background-color: #ffffff;
    color: #000000;
    padding: clamp(12px, 3vw, 30px);
}

/* Header Bar */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 20px 0;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
}

.waves-logo-img {
    height: clamp(28px, 5vw, 38px);
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'StretchPro', sans-serif;
    font-size: clamp(1rem, 3.5vw, 1.5rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000000;
}

/* Hero Section Aspect Ratio Scaling */
.hero-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Fluid video container */
    min-height: 220px;
    background-color: #000000;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 25px;
}

.hero-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay-text {
    position: absolute;
    bottom: clamp(12px, 4vw, 35px);
    left: clamp(12px, 4vw, 35px);
    right: clamp(12px, 4vw, 35px);
    color: #ffffff;
    font-family: 'AppleGaramond', Georgia, serif;
    font-size: clamp(1.1rem, 3.5vw, 2.1rem);
    font-weight: bold;
    line-height: 1.2;
    max-width: 750px;
    text-shadow: 0 4px 18px rgba(0,0,0,0.9);
}

/* Sub Bar */
.sub-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0 25px 0;
    font-family: 'AppleGaramond', Georgia, serif;
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    font-weight: bold;
    color: #111111;
    flex-wrap: wrap;
    gap: 10px 15px;
}

/* BIO Section */
.bio-section {
    text-align: center;
    padding: 20px 10px 40px 10px;
    max-width: 850px;
    margin: 0 auto;
}

.bio-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.bio-pfp-icon {
    width: clamp(36px, 6vw, 48px);
    height: auto;
    object-fit: contain;
}

.bio-title {
    font-family: 'StretchPro', sans-serif;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    letter-spacing: 2px;
    color: #000000;
}

.bio-text {
    font-family: 'AppleGaramond', Georgia, serif;
    font-size: clamp(0.98rem, 2.2vw, 1.15rem);
    line-height: 1.6;
    color: #222222;
}

.bio-text p {
    margin-bottom: 14px;
}

.bio-text .tagline {
    font-family: 'StretchPro', sans-serif;
    font-size: clamp(0.65rem, 2vw, 0.85rem);
    margin-top: 25px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000000;
}

/* SERVICES Section */
.services-section {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: clamp(25px, 4vw, 45px) 15px;
    margin-bottom: 40px;
    border-radius: 12px;
}

.services-title {
    font-family: 'StretchPro', sans-serif;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.services-list {
    font-family: 'AppleGaramond', Georgia, serif;
    font-style: italic;
    font-size: clamp(0.9rem, 2.3vw, 1.3rem);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    color: #ffffff;
}

/* WORKS Grid Scaling */
.works-section {
    padding: 10px 0 40px 0;
}

.works-title {
    font-family: 'StretchPro', sans-serif;
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 25px;
    color: #000000;
}

#works-grid {
    display: grid;
    /* Grid switches cleanly from 1 column on mobile to multi-column on desktop */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.work-card {
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3; /* Card sizes smoothly based on width */
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12px;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.work-card-title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-family: 'AppleGaramond', Georgia, serif;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.75);
    padding: 5px 10px;
    border-radius: 6px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 35px 15px 50px 15px;
}

.cta-section h3 {
    font-family: 'StretchPro', sans-serif;
    font-size: clamp(1.2rem, 4vw, 2rem);
    line-height: 1.4;
    letter-spacing: 1px;
    color: #000000;
}

.cta-section .blue-text {
    color: #3b82f6;
}

/* Footer */
.site-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 30px 15px 20px 15px;
    border-radius: 12px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 3vw, 22px);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-socials a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.social-icon-img {
    width: clamp(24px, 4.5vw, 30px);
    height: clamp(24px, 4.5vw, 30px);
    object-fit: contain;
}

.social-svg {
    width: clamp(22px, 4vw, 26px);
    height: clamp(22px, 4vw, 26px);
    fill: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'AppleGaramond', Georgia, serif;
    font-size: clamp(0.65rem, 1.8vw, 0.8rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-top: 1px solid #222222;
    padding-top: 15px;
    color: #ffffff;
    flex-wrap: wrap;
    gap: 8px;
}

/* Mobile Breakpoints */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .sub-bar span {
        font-size: 0.82rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}/* Add the following block to the END of your existing CSS.
   It only improves responsiveness and does not remove existing styles. */

img,
video,
svg,
canvas{
  max-width:100%;
  height:auto;
  display:block;
}

*{
  word-wrap:break-word;
}

@media (min-width:1400px){
  .container{max-width:1320px;}
}

@media (max-width:992px){
  .site-header{gap:12px;}
  .sub-bar{justify-content:center;}
  #works-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width:768px){
  .site-header{
    flex-direction:column;
    text-align:center;
    gap:12px;
  }
  .hero-overlay-text{max-width:100%;}
  #works-grid{grid-template-columns:1fr;}
  .footer-socials{justify-content:center;}
}

@media (max-width:480px){
  .container{padding:12px;}
  .hero-banner{min-height:180px;}
  .services-list br{display:none;}
  .services-list span{display:inline;}
}