/* --------------------------------------------------------------
   trizen-studios-styles.css – FINAL: Desktop Image Full, Mobile Centered
   -------------------------------------------------------------- */

   html {
    min-height: 100%;
    height: 100%;
}

body
{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: large;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    background-image: url('Trizen-Studios-Background-Screen.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    cursor: url('Jason-Themed-Cursor-Resized.png') 0 0, auto;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Top Bar */
.top-bar
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
    backdrop-filter: blur(10px);
    z-index: 900;
}

/* Hamburger Menu Button */
.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1200;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    padding: 0.7rem;
    cursor: pointer;
    color: white;
    transition: background 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.hamburger:hover {
    background: rgba(0,255,255,0.3);
    border-color: cyan;
    box-shadow: 0 4px 12px rgba(0,255,255,0.4);
}

/* Dropdown Menu */
.dropdown-menu {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    padding: 10px 0;
    min-width: 200px;
    z-index: 1100;
    display: none;
    color: #fff;
}
.dropdown-menu.show {
    display: block;
}
.dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.dropdown-item:hover {
    background: rgba(0,255,255,0.1);
}

/* Dark Mode - Full Page Toggle */
body.dark-mode {
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('Trizen-Studios-Background-Screen.webp');
    background-blend-mode: multiply;
    color: #fff;
}
body.dark-mode .navbar {
    background-color: rgba(0,0,0,0.9);
    border-color: rgba(255,255,255,0.5);
}
body.dark-mode .search-bar input {
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
body.dark-mode .dropdown-menu {
    background: rgba(0,0,0,0.9);
}
body.dark-mode .result-item, body.dark-mode .thumbnail-item {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}
body.dark-mode main {
    background-color: rgba(0,0,0,0.5);
}

/* Icons Mode - Hide Text, Show Icons Only */
.navbar a.icon-mode {
    font-size: 0; /* Hide text */
    margin: 0 20px; /* Space between icons */
}
.navbar a.icon-mode::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background-size: contain;
    margin-right: 0;
    vertical-align: middle;
}
.navbar a.icon-mode[href*="trizen-studios.html"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>');
}

.navbar a.icon-mode[href*="about.html"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="white"><path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"></path></svg>');
}

.navbar a.icon-mode[href*="watch.html"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><rect x="2" y="4" width="20" height="16" rx="3" ry="3"/><polygon points="10,8 16,12 10,16" fill="white"/></svg>');
}

.navbar a.icon-mode[href*="contact.html"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="white"><path stroke-linecap="round" stroke-linejoin="round" d="M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5v2.25Z"></path></svg>');
}

.navbar a.icon-mode:hover::before {
    filter: brightness(0) saturate(100%) invert(50%) sepia(100%) saturate(10000%) hue-rotate(180deg) brightness(2);
}

/* Brand Header – Clickable to Home */
.brand-header
{
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    z-index: 1200;
    transition: top 0.3s ease;
    cursor: pointer;
    will-change: top;
}
.brand-header.shrunk { top: 15px; }
.logo
{
    width: 80px;
    height: auto;
    margin-right: 10px;
    transition: width 0.3s ease;
}
.company-name
{
    font-size: 1.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: font-size 0.3s ease;
}

/* Navbar – Desktop: Right of logo on shrink */
.navbar
{
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 12px 20px;
    transition: top 0.3s ease, left 0.3s ease, max-width 0.3s ease, padding 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    will-change: transform, top, left;
    transform-origin: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.navbar.shrunk
{
    top: 15px;
    left: 30%;
    transform: translateX(0);
    max-width: 500px;
    padding: 8px 15px;
}
.navbar ul
{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.navbar li { margin: 0; }
.navbar a
{
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: url('Jason-Themed-Cursor-Resized.png') 0 0, auto;
}
.navbar a:hover { color: cyan; }

/* --------------------------------------------------------------
   SEARCH BAR – Mobile: Bottom + Dropdown Above
   -------------------------------------------------------------- */
.search-bar
{
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    transition: top 0.3s ease, left 0.3s ease, right 0.3s ease, max-width 0.3s ease, transform 0.3s ease;
    width: 100%;
    max-width: 600px;
    text-align: center;
    will-change: transform, top, left, right;
}
.search-bar.default { top: 160px; }
.search-bar.shrunk
{
    top: 30px;
    right: 80px;  /* Move left of hamburger (hamburger is ~50px wide at right:20px) */
    left: auto;
    transform: none;
    max-width: 300px;
}
.input-group
{
    display: inline-flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;  /* For absolute positioning of button */
}
input#q
{
    width: 100%;
    padding: 0.8rem 3.5rem 0.8rem 1.5rem;  /* Added right padding for button */
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 9999px;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    outline: none;
}
button
{
    position: absolute;
    right: 0.5rem;  /* Position on the right */
    border-radius: 50%;
    padding: 0.7rem;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: white;
    cursor: url('Jason-Themed-Cursor-Resized.png') 0 0, auto;
    z-index: 2;
    transition: background 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-left: 0;  /* Removed negative margin */
}
button:hover
{
    background: rgba(0,255,255,0.3);
    border-color: cyan;
    box-shadow: 0 4px 12px rgba(0,255,255,0.4);
}
button i
{
    font-size: 1.1rem;
}
#r
{
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: rgba(0,0,0,0.6);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    max-height: 60vh;
    overflow-y: auto;
    z-index: 10000;
    color: #fff;
    backdrop-filter: blur(20px);
    margin-top: 8px;
    border: 1px solid rgba(0,0,0,0.2);
}
.search-bar.shrunk #r { left: 0; transform: translateX(0); width: 100%; }
#r:empty { display: none; }
.suggestion, .result-item
{
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: background 0.3s;
}
.suggestion:hover, .result-item:hover { background: rgba(0,255,255,0.1); }
.preview { font-size: 0.9rem; color: #ddd; }
.suggestion strong { color: cyan; }

/* Hero */
.hero
{
    position: relative;
    width: 90%;
    max-width: 1400px;
    margin: 2rem auto;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
    border-radius: 50px;
    margin-top: 200px;
}
.hero-image,
.hero-image-services
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
    border-radius: 50px;
}
.hero .hero-text
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
    padding: 1rem;
}
.hero .hero-text h1 { font-size: 3.5rem; margin: 0 0 0.5rem; }
.hero .hero-text p { font-size: 1.5rem; margin: 0; }

/* Contact Hero */
.hero-image-contact-us
{
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 3rem auto;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.contact-hero-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(50%); }
.hero-image-contact-us .hero-text
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 85%;
    padding: 1.2rem;
    background: rgba(0,0,0,0.5);
    border-radius: 16px;
    backdrop-filter: blur(6px);
}
.hero-image-contact-us .hero-text h1 { font-size: 2.6rem; margin: 0 0 0.4rem; line-height: 1.2; }
.hero-image-contact-us .hero-text p { font-size: 1.3rem; margin: 0; line-height: 1.4; }

/* --------------------------------------------------------------
   ABOUT SECTION – Text Left, Image Right (Responsive)
   -------------------------------------------------------------- */
.about-section
{
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.about-text
{
    flex: 1;
    min-width: 300px;
}
.about-text h2
{
    margin-top: 0;
    font-size: 2rem;
    color: #00ffff;
}
.about-text p
{
    font-size: 1.1rem;
    line-height: 1.7;
}
.about-image
{
    flex: 1;
    text-align: center;
}
.about-image img
{
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    filter: brightness(90%);
}

/* Mobile: Stack + Centered */
@media (max-width: 768px)
{
    .about-section
    {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .about-text, .about-image { min-width: 100%; }
    .about-image img { max-width: 85%; margin: 0 auto; display: block; }
    
    /* Center standalone images in main content - Mobile */
    section img:not(.about-image img),
    main img:not(.about-image img):not(.hero-image):not(.contact-hero-img) {
        max-width: 100%;
        width: 100%;
        height: auto;
        border-radius: 20px;
        display: block;
        margin: 1.5rem auto;
        object-fit: contain;
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    }
}

/* Social Icons */
.social-icons
{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.social-icons a { 
    transition: transform 0.3s ease; 
    display: inline-block;
}
.social-icons a:hover { transform: scale(1.15); }
.social-icons img, .social-icons i { 
    height: 70px; 
    width: auto; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); 
}
.social-icons .fa-youtube { font-size: 70px; }
.social-icons .fa-instagram { font-size: 70px; }

/* Layout */
main
{
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(0,0,0,0.3);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

/* Standalone images in main content - Desktop */
main img:not(.about-image img):not(.hero-image):not(.contact-hero-img),
section img:not(.about-image img) {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    margin: 2rem auto;
    object-fit: contain;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    filter: brightness(90%);
}
footer
{
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(0,0,0,0.4);
    margin-top: 3rem;
    color: #fff;
    font-size: 0.9rem;
}

/* --------------------------------------------------------------
   MOBILE: Clean Layout on All Pages (Extended to Tablets)
   -------------------------------------------------------------- */
   @media (max-width: 1024px)
   {
       .brand-header { top: 8px; left: 15px; z-index: 1200; }
       .brand-header.shrunk { top: 8px; }
       .logo { width: 60px; }
       .company-name { font-size: 1.4rem; }
   
       .navbar { top: 70px; left: 50%; transform: translateX(-50%); }
       .navbar.shrunk { top: 70px; left: 50%; transform: translateX(-50%); max-width: 400px; padding: 8px 15px; }
       .navbar ul { gap: 15px; justify-content: center; flex-wrap: wrap; }
   
       .search-bar, .search-bar.shrunk
       {
           top: auto !important;  /* Force bottom position */
           bottom: 20px !important;
           left: 50%;
           transform: translateX(-50%);
           max-width: 90%;
       }
       input#q { font-size: 1rem; padding: 0.7rem 1.2rem; }
       button { margin-left: -50px; padding: 0.6rem; }
   
       #r { top: auto; bottom: 100%; margin-bottom: 8px; margin-top: 0; }
   
       .hero { margin-top: 140px; height: 50vh; min-height: 300px; }
       .hero .hero-text h1 { font-size: 2.2rem; }
       .hero .hero-text p { font-size: 1.1rem; }
   
       .hero-image-contact-us { 
           aspect-ratio: 4 / 3; 
           margin: 2rem auto; 
           width: 95%;
       }
       .hero-image-contact-us .hero-text h1 { font-size: 1.8rem; }
       .hero-image-contact-us .hero-text p { font-size: 1rem; }
       section h3 { text-align: center; margin-top: 2rem; }
   
       .social-icons { 
           gap: 20px; 
           justify-content: center;
       }
       .social-icons img, .social-icons i { height: 55px; }
       .social-icons .fa-youtube, .social-icons .fa-instagram { font-size: 55px; }
       
       main { padding: 1.5rem; }
       
       /* Remove inline margin-left on social icons in mobile */
       section p a, 
       section div a,
       .hero-image-contact-us a {
           margin-left: 0 !important;
           margin-right: 0 !important;
       }
   }
   
   @media (max-width: 480px)
   {
       .brand-header .logo { width: 50px; }
       .brand-header .company-name { font-size: 1.2rem; }
       
       .navbar ul { gap: 8px; padding: 0 5px; }
       .navbar a { font-size: 0.9rem; }
       .navbar { padding: 8px 10px; }
       
       .search-bar, .search-bar.shrunk { 
           max-width: 85%; 
           bottom: 15px;
       }
       input#q { font-size: 0.9rem; padding: 0.6rem 1rem; }
       
       .hero { margin-top: 120px; height: 45vh; min-height: 250px; }
       .hero .hero-text h1 { font-size: 1.8rem; }
       .hero .hero-text p { font-size: 1rem; }
       
       .social-icons { 
           gap: 15px;
           margin: 1.5rem 0;
       }
       .social-icons img, .social-icons i { height: 45px; }
       .social-icons .fa-youtube, .social-icons .fa-instagram { font-size: 45px; }
       
       main { padding: 1rem; }
   }
   
   /* Prevent horizontal scrolling on all devices */
   * {
     box-sizing: border-box;
   }
   
   body {
     width: 100vw;
     max-width: 100vw;
     overflow-x: hidden;
   }
   
   .search-bar, .brand-header, .top-bar, .watch-container, .video-grid, .yt-header {
     max-width: 100vw;
     width: 100vw;
     box-sizing: border-box;
   }
   
   /* Mobile-specific: Ensure no padding causes overflow (Extended to Tablets) */
   @media (max-width: 1024px) {
     body {
       padding-left: 0;
       padding-right: 0;
     }
     .navbar, .search-bar, .brand-header, .top-bar, .watch-container, .video-grid, .yt-header {
       max-width: 100vw;
       width: 100vw;
       box-sizing: border-box;
     }
     .navbar ul {
       justify-content: center;
       flex-wrap: wrap;
     }
     .search-bar {
       text-align: center;
       width: 100vw;
     }
   }