/* style3D.css
   Shared style for all 3D projects
   Keep this file linked in your 3D project pages: <link rel="stylesheet" href="style3D.css"> */

:root{
  --bg:#000000;
  --panel:#111111;
  --muted:#bfbfbf;
  --accent:white;
  --nav-height:120px;
  --side-width:300px;
  --transition:0.3s;
  --font-stack: 'Eras Bold ITC', Arial, sans-serif;
}

/* Font-face (move your font-folder alongside this file) */
@font-face{
  font-family: 'Eras Bold ITC';
  src: url('Eras Bold ITC/eras-itc-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Global reset */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--accent);
  font-family:var(--font-stack);
  cursor: url('ARROW.png'), auto;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Loading screen */
#loading-screen{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  background:var(--bg);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
  transition:opacity 1s ease;
}
body.loaded #loading-screen{opacity:0;pointer-events:none}

/* Hide main interface until loaded */
body:not(.loaded) main,
body:not(.loaded) header,
body:not(.loaded) footer,
body:not(.loaded) nav{display:none}

/* Navbar */
nav{
  width:100%;
  height:var(--nav-height);
  position:fixed;
  top:0;
  left:0;
  background:transparent; /* keep logo visible on background */
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:1000;
  pointer-events:auto;
}
nav a{display:inline-flex;align-items:center}
.logo{height:var(--nav-height);display:block}

.menu-icon{
  position:absolute;
  right:20px;
  height:var(--nav-height);
  background:none;
  border:0;
  padding:0;
  cursor:url('STAR_TINY.png'), auto;
  margin-top: 20px;
}
.menu-icon img{height:var(--nav-height);width:auto;display:block}

/* Side menu & overlay */
.side-menu-overlay{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.7);
  z-index:999;
  display:none;
}
.side-menu-overlay.active{display:block}

.side-menu{
  position:fixed;
  top:0;
  right:0;
  width:var(--side-width);
  height:100%;
  background:var(--panel);
  color:var(--accent);
  padding:20px;
  z-index:1000;
  transform:translateX(100%);
  transition:transform 0.3s ease;
}
.side-menu.open{transform:translateX(0)}

.btn-close{
  position:absolute;
  top:0;
  right:20px;
  background:none;
  border:0;
  cursor:url('STAR_TINY.png'), auto;
  padding:0;
}
.btn-close img{height:var(--nav-height);width:auto}

.side-menu ul{padding:120px 0 0 0;list-style:none;margin:0}
.side-menu li{margin-bottom:20px}
.side-menu a{color:var(--accent);text-decoration:none;font-size:1.1rem}
.side-menu a:focus{outline:2px solid rgba(255,255,255,0.12);outline-offset:4px}

/* Main layout */
main{
  min-height:100vh;
  padding-top:calc(var(--nav-height) + 10px);
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
}

main .content{max-width:900px;width:100%;padding:20px}
main img{width:100%;max-width:900px;display:block;margin:20px auto}

/* Project grid and scrollers */
.project-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px,1fr));
  gap:20px;
  padding:20px;
}

.scroller-wrapper, .film-scroller{overflow:hidden;position:relative;width:100%;margin-bottom:30px}
.scroller-track{display:flex;width:max-content;animation:scroll-horizontal 50s linear infinite}
.film-scroller .scroller-track{animation-duration:60s}

.project-item{flex:0 0 auto;width:300px;margin-right:20px;text-align:center;animation:fadeIn 0.6s ease both;transition:transform var(--transition)}
.project-item video,.project-item img{width:100%;height:320px;object-fit:cover;display:block;border-radius:6px}
.project-item:hover{transform:scale(1.2)}

.web-section{display:flex;justify-content:center;gap:60px;padding:20px 0}
.web-section .project-item{width:600px;margin:0}
.film-scroller .project-item{flex:0 0 auto;width:600px;margin-right:20px}

@keyframes scroll-horizontal{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)}
}

@keyframes fadeIn{from{opacity:0;transform:scale(0.95)}to{opacity:1;transform:scale(1)}}

/* Headings, small utilities */
h1,h2,h3{margin:0 0 12px 0}
h1{font-size:2rem}
section{margin:28px 0}
section p{font-family:Helvetica, Arial, sans-serif;color:var(--muted);line-height:1.5}

/* Contact & footer */
section#contact{padding:40px 20px}
section#contact h2{font-size:1.5rem;margin-bottom:10px}
footer{text-align:center;padding:20px;background:var(--panel)}

/* Lightbox */
.lightbox{display:none;position:fixed;inset:0;width:100%;height:100%;background:rgba(0,0,0,0.9);justify-content:center;align-items:center;z-index:2000}
.lightbox img{max-width:90%;max-height:90%;border-radius:10px;animation:zoomIn 0.4s ease}
@keyframes zoomIn{from{transform:scale(0.7);opacity:0}to{transform:scale(1);opacity:1}}

/* Button and link cursors */
a,button,.menu-icon,.btn-close{cursor:url('STAR_TINY.png'), auto}

/* Accessibility & focus states */
:focus{outline:none}
a:focus,button:focus{outline:2px solid rgba(255,255,255,0.12);outline-offset:3px}

/* Responsive tweaks */
@media (max-width:900px){
  .web-section{flex-direction:column;gap:20px}
  .project-item{width:260px}
  .project-item video,.project-item img{height:220px}
}

@media (max-width:480px){
  nav{height:80px}
  .logo{height:80px}
  .menu-icon img,.btn-close img{height:80px}
  .side-menu{width:85%}
  .project-item{width:220px}
  .project-item video,.project-item img{height:180px}
}

/* Utility classes for small variants used across pages */
.center{display:flex;justify-content:center;align-items:center}
.muted{color:var(--muted)}

/* End of style3D.css */