@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Google Sans', 'Roboto', sans-serif;
    text-decoration: none;
    outline: none;
    border: none;
}

/* Google Workspace Tokens */
:root {
    --google-blue: #1a73e8;
    --google-blue-hover: #1557b0;
    --google-green: #1e8e3e;
    --bg-light: #f8f9fa; 
    --bg-white: #ffffff; 
    --text-dark: #202124; 
    --text-gray: #5f6368; 
    --border-color: #dadce0;
    --elevation-1: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --elevation-2: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}

html { font-size: 62.5%; overflow-x: hidden; scroll-behavior: smooth; }
body { background: var(--bg-light); color: var(--text-dark); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

/* Navbar */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem 9%; background: var(--bg-white);
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.1); transition: 0.2s;
}
header .logo { font-size: 2.2rem; font-weight: 700; color: var(--text-dark); }
header .logo i { color: var(--google-blue); padding-right: 5px; }
header .navbar ul { list-style: none; display: flex; align-items: center; }
header .navbar li { margin-left: 2.5rem; }
header .navbar ul li a { font-size: 1.5rem; color: var(--text-gray); font-weight: 500; transition: .2s; }
header .navbar ul li a.active, header .navbar ul li a:hover { color: var(--google-blue); }
#menu { font-size: 2.5rem; color: var(--text-dark); cursor: pointer; display: none; }

section { min-height: 100vh; padding: 10rem 9% 2rem; background: var(--bg-light); }
.heading { font-size: 3.5rem; color: var(--text-dark); font-weight: 700; text-align: center; }
.heading span { color: var(--google-blue); }

/* Filters */
.work .button-group { display: flex; flex-wrap: wrap; gap: 1rem; margin: 3rem auto; justify-content: center; align-items: center; }
.work .button-group .btn {
    outline: none; padding: 1rem 2rem; background: var(--bg-white); color: var(--google-blue);
    border: 1px solid var(--border-color); border-radius: 2.5rem; cursor: pointer; font-weight: 500;
    font-size: 1.4rem; box-shadow: var(--elevation-1); transition: 0.3s;
}
.work .button-group .btn:hover, .work .button-group .btn.is-checked { background: var(--google-blue); color: var(--bg-white); box-shadow: var(--elevation-2); border-color: var(--google-blue); }

/* Project Cards */
.work .box-container { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 2rem auto; justify-content: center; }
.work .box-container .grid-item .box {
    border-radius: 8px; box-shadow: var(--elevation-1); position: relative; overflow: hidden;
    height: 30rem; background: var(--bg-white); border: 1px solid var(--border-color); transition: 0.3s;
}
.work .box-container .grid-item .box:hover { box-shadow: var(--elevation-2); border-color: transparent; }
.work .box-container .box img { height: 100%; width: 100%; object-fit: cover; }
.work .box-container .box .content {
    height: 100%; width: 100%; position: absolute; top: 80%; left: 0;
    background: rgba(255, 255, 255, 0.95); display: flex; flex-direction: column; transition: 0.3s;
}
.work .box-container .box .content .tag {
    display: flex; justify-content: space-between; align-items: center;
    height: 6rem; width: 100%; padding-left: 2rem; background: var(--bg-white); border-bottom: 1px solid var(--border-color);
}
.work .box-container .box .content .tag h3 { font-size: 2rem; color: var(--text-dark); }
.work .box-container .box:hover .content { top: 25%; }
.work .desc { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.work .desc p { font-size: 1.4rem; color: var(--text-gray); line-height: 1.6; }
.work .desc .btns { display: flex; justify-content: space-between; width: 100%; margin-top: 2rem; }
.work .desc .btns .btn {
    padding: 1rem 2rem; border-radius: 2.5rem; font-size: 1.4rem; font-weight: 500;
    color: var(--google-blue); background: var(--bg-white); border: 1px solid var(--border-color); transition: 0.3s;
}
.work .desc .btns .btn:hover { background: rgba(26, 115, 232, 0.05); color: var(--google-blue-hover); box-shadow: var(--elevation-1); }

/* Back Button */
.backbtn { display: flex; justify-content: center; margin-bottom: 2rem; margin-top: 4rem; }
.backbtn .btn { padding: 1.2rem 3rem; border-radius: 2.5rem; color: var(--bg-white); background: var(--google-blue); font-size: 1.5rem; font-weight: 500; box-shadow: var(--elevation-1); transition: 0.3s; display: flex; align-items: center; gap: 1rem; }
.backbtn .btn:hover { background: var(--google-blue-hover); box-shadow: var(--elevation-2); transform: translateY(-2px); }

/* Scroll Top */
#scroll-top { position: fixed; top: -140%; right: 2rem; padding: 1rem 1.5rem; font-size: 2rem; background: var(--bg-white); color: var(--google-blue); border-radius: 5px; border: 1px solid var(--border-color); box-shadow: var(--elevation-2); transition: 0.3s; z-index: 1000; }
#scroll-top.active { top: calc(100% - 8rem); }
#scroll-top:hover { background: var(--google-blue); color: var(--bg-white); transform: translateY(-3px); }

/* Media Queries */
@media(max-width:768px){
  #menu{ display: block; }
  header .navbar{ position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-white); border-top: 1px solid var(--border-color); padding: 1rem 0; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: .2s linear; box-shadow: var(--elevation-1); }
  header .navbar.active{ clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
  header .navbar ul{ flex-direction: column; }
  header .navbar ul li{ margin: 1rem; text-align: center; }
}
@media(max-width:450px){
  html{ font-size: 55%; }
  section{ padding: 8rem 2rem 2rem; }
  .work .box-container .grid-item .box { width: 95% !important; }
}

/* =========================================
   GOOGLE DRIVE STYLE IMMERSIVE VIEWER
   ========================================= */
.lightbox-modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: #000000; opacity: 0; transition: opacity 0.2s ease; font-family: 'Google Sans', sans-serif; }
.lightbox-modal.show { display: block; opacity: 1; }

.lightbox-appbar { position: absolute; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent); z-index: 10001; transition: opacity 0.3s; color: white; }
.appbar-left { display: flex; align-items: center; gap: 20px; font-size: 1.6rem; font-weight: 500; letter-spacing: 0.3px; }
.appbar-right { display: flex; align-items: center; gap: 25px; font-size: 1.4rem; font-weight: 500; }
.icon-btn { background: transparent; color: white; border: none; font-size: 2rem; cursor: pointer; padding: 10px; border-radius: 50%; transition: background 0.2s; outline: none; }
.icon-btn:hover { background: rgba(255,255,255,0.1); }

.lightbox-content { position: relative; width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; }
#lightbox-img { max-width: 90%; max-height: 85vh; object-fit: contain; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
#lightbox-img.zoomed { transform: scale(1.6); cursor: zoom-out; }

.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(32,33,36,0.6); color: white; display: flex; justify-content: center; align-items: center; font-size: 1.8rem; cursor: pointer; transition: 0.2s; z-index: 10001; }
.nav-btn:hover { background: rgba(255,255,255,0.2); }
.prev-slide { left: 30px; }
.next-slide { right: 30px; }

.ui-hidden { opacity: 0 !important; pointer-events: none; }

@media (max-width: 768px) { .nav-btn { display: none; } #lightbox-img { max-width: 100%; max-height: 80vh; } }

/* =========================================
   ENTERPRISE PULSE HOVER (PROJECT CARDS)
   ========================================= */
.pulse-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}
.pulse-hover:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 0 0 15px rgba(26, 115, 232, 0.05), 0 4px 10px rgba(0,0,0,0.15) !important;
    border-color: var(--google-blue) !important;
}
