/* =========================================
   1. VARIABLES & MODERN TOKENS
   ========================================= */
:root {
   /* Color Palette - Premium & Modern */
   --primary: #2563eb;
   /* Vibrant Slate Blue */
   --primary-dark: #1d4ed8;
   --accent: #fbbf24;
   /* Industrial Amber */
   --accent-dark: #f59e0b;
   --dark: #0f172a;
   /* Deep Charcoal Navy */
   --dark-soft: #1e293b;
   --light: #f8fafc;
   /* Soft Gray */
   --white: #ffffff;
   --glass-bg: rgba(255, 255, 255, 0.7);
   --glass-border: rgba(255, 255, 255, 0.3);

   /* Typography */
   --font-heading: 'Outfit', sans-serif;
   --font-body: 'Inter', sans-serif;

   /* Shadows & Effects */
   --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
   --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
   --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
   --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
   --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
}

body {
   font-family: var(--font-body);
   color: var(--dark-soft);
   background: var(--light);
   line-height: 1.6;
   overflow-x: hidden;
   padding-bottom: 90px;
}

h1,
h2,
h3,
h4,
.brand-text h2 {
   font-family: var(--font-heading);
   color: var(--dark);
   font-weight: 700;
}

a {
   text-decoration: none;
   color: inherit;
   transition: var(--transition);
}

img {
   max-width: 100%;
   display: block;
}

ul {
   list-style: none;
}

/* =========================================
   3. LAYOUT & UTILITIES
   ========================================= */
.container {
   max-width: 1280px;
   margin: 0 auto;
   padding: 0 24px;
}

.flex-between {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.grid-2 {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 48px;
}

.grid-3 {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
   gap: 32px;
}

.section {
   padding: 96px 0;
}

.bg-light {
   background: var(--light);
}

.bg-dark {
   background: var(--dark);
   color: var(--white);
}

.text-center {
   text-align: center;
}

/* Glassmorphism Classes */
.glass {
   background: var(--glass-bg);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   border: 1px solid var(--glass-border);
   box-shadow: var(--shadow-lg);
}

.glass-dark {
   background: rgba(15, 23, 42, 0.8);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   4. BUTTONS
   ========================================= */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 14px 32px;
   font-weight: 600;
   border-radius: 8px;
   font-size: 0.95rem;
   cursor: pointer;
   gap: 8px;
   transition: var(--transition);
}

.btn.primary {
   background: var(--primary);
   color: var(--white);
   border: 1px solid var(--primary);
   box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn.primary:hover {
   background: var(--primary-dark);
   transform: translateY(-2px);
   box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn.outline {
   border: 2px solid var(--white);
   color: var(--white);
   background: transparent;
}

.btn.outline:hover {
   background: var(--white);
   color: var(--primary);
   transform: translateY(-2px);
}

.btn.full-width {
   width: 100%;
}

/* =========================================
   5. HEADER & NAV (MODERN GLASS)
   ========================================= */
.top-bar {
   background: var(--dark);
   color: rgba(255, 255, 255, 0.7);
   font-size: 0.85rem;
   padding: 12px 0;
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tb-content span {
   margin-right: 24px;
   display: inline-flex;
   align-items: center;
   gap: 8px;
}

.tb-content i {
   color: var(--accent);
}

.main-header {
   background: rgba(255, 255, 255, 0.8);
   backdrop-filter: blur(16px);
   -webkit-backdrop-filter: blur(16px);
   padding: 16px 0;
   position: sticky;
   top: 0;
   z-index: 1000;
   border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-logo {
   display: flex;
   align-items: center;
   gap: 16px;
}

.brand-logo img {
   height: 50px;
   width: auto;
   transition: var(--transition);
}

.brand-logo:hover img {
   transform: scale(1.05);
}

.desktop-nav {
   display: flex;
   gap: 32px;
   align-items: center;
   font-weight: 500;
   font-size: 0.95rem;
}

.desktop-nav a {
   position: relative;
   padding: 4px 0;
   color: var(--dark-soft);
}

.desktop-nav a::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 0;
   height: 2px;
   background: var(--primary);
   transition: var(--transition);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
   width: 100%;
}

.desktop-nav a:hover,
.desktop-nav a.active {
   color: var(--primary);
}

.nav-cta {
   background: var(--primary);
   color: white !important;
   padding: 10px 24px !important;
   border-radius: 6px;
   font-weight: 600;
}

.nav-cta:hover {
   background: var(--primary-dark) !important;
   color: white !important;
}

/* =========================================
   5.5 MOBILE SIDEBAR & OVERLAY
   ========================================= */
.mobile-sidebar {
   display: none;
   position: fixed;
   top: 0;
   right: -320px;
   /* Start off-screen */
   width: 300px;
   height: 100vh;
   background: var(--white);
   z-index: 2000;
   transition: var(--transition);
   box-shadow: var(--shadow-xl);
   padding: 40px;
   flex-direction: column;
}

.mobile-sidebar.active {
   right: 0;
}

.mobile-menu-overlay {
   display: none;
   position: fixed;
   inset: 0;
   background: rgba(15, 23, 42, 0.5);
   z-index: 1500;
   backdrop-filter: blur(8px);
   -webkit-backdrop-filter: blur(8px);
}

.mobile-menu-overlay.active {
   display: block;
}

/* Sidebar Contents */
.sidebar-head {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 48px;
   border-bottom: 1px solid rgba(0, 0, 0, 0.05);
   padding-bottom: 24px;
}

.sidebar-head img {
   height: 48px;
   width: auto;
}

.close-menu {
   font-size: 1.5rem;
   cursor: pointer;
   color: var(--dark-soft);
}

.sidebar-links li {
   margin-bottom: 16px;
}

.sidebar-links a {
   font-family: var(--font-heading);
   font-size: 1.25rem;
   color: var(--dark);
   display: block;
   padding: 12px;
   border-radius: 8px;
   transition: var(--transition);
}

.sidebar-links a:hover,
.sidebar-links a.active {
   background: var(--light);
   color: var(--primary);
   padding-left: 20px;
}

.mobile-trigger {
   display: none;
   font-size: 1.75rem;
   color: var(--primary);
   cursor: pointer;
   transition: var(--transition);
}

.mobile-trigger:hover {
   color: var(--primary-dark);
}

/* =========================================
   6. HERO SECTION (DYNAMIC)
   ========================================= */
.hero {
   min-height: 85vh;
   position: relative;
   display: flex;
   align-items: center;
   background: var(--dark);
   color: var(--white);
   overflow: hidden;
}

.hero-bg {
   position: absolute;
   inset: 0;
   background: url('render.php?type=gallery&id=2') center/cover no-repeat;
   opacity: 0.4;
   filter: grayscale(20%);
   animation: panHero 30s linear infinite alternate;
}

@keyframes panHero {
   from {
      transform: scale(1) translateX(0);
   }

   to {
      transform: scale(1.1) translateX(-20px);
   }
}

.hero-content {
   position: relative;
   z-index: 10;
   max-width: 850px;
}

.tagline {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   background: rgba(37, 99, 235, 0.15);
   color: var(--accent);
   padding: 6px 16px;
   font-weight: 600;
   font-size: 0.85rem;
   border-radius: 20px;
   border: 1px solid rgba(251, 191, 36, 0.3);
   margin-bottom: 24px;
   text-transform: uppercase;
   letter-spacing: 1px;
}

.hero h1 {
   font-size: 4.5rem;
   line-height: 1.1;
   margin-bottom: 28px;
   color: var(--white);
   letter-spacing: -1px;
}

.hero p {
   font-size: 1.25rem;
   opacity: 0.9;
   margin-bottom: 40px;
   max-width: 650px;
   color: rgba(255, 255, 255, 0.8);
}

.btn-row {
   display: flex;
   gap: 20px;
}

/* =========================================
   7. PAGE HEADER
   ========================================= */
.page-header {
   padding: 120px 0 80px;
   background: var(--dark);
   position: relative;
   overflow: hidden;
}

.page-header::before {
   content: '';
   position: absolute;
   inset: 0;
   background: linear-gradient(to bottom, rgba(37, 99, 235, 0.2), transparent);
}

.page-header-content {
   position: relative;
   z-index: 2;
}

.page-header h1 {
   font-size: 3.5rem;
   margin-bottom: 16px;
   color: var(--white);
}

.breadcrumb {
   font-size: 0.95rem;
   color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
   color: var(--accent);
   font-weight: 500;
}

.breadcrumb span {
   color: var(--white);
}

/* =========================================
   8. MODERN COMPONENTS
   ========================================= */
.sec-head {
   text-align: center;
   margin-bottom: 64px;
}

.sec-head h2 {
   font-size: 3rem;
   margin-bottom: 16px;
   color: var(--dark);
   position: relative;
   display: inline-block;
}

.sec-head h2::after {
   content: '';
   position: absolute;
   bottom: -8px;
   left: 50%;
   transform: translateX(-50%);
   width: 60px;
   height: 4px;
   border-radius: 2px;
   background: var(--accent);
}

/* Redesigned Cards */
.card {
   background: var(--white);
   padding: 48px 32px;
   border-radius: 16px;
   transition: var(--transition);
   border: 1px solid rgba(0, 0, 0, 0.05);
   box-shadow: var(--shadow-md);
   position: relative;
   overflow: hidden;
   z-index: 1;
}

.card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 4px;
   background: var(--primary);
   transform: scaleX(0);
   transition: var(--transition);
}

.card:hover {
   transform: translateY(-8px);
   box-shadow: var(--shadow-xl);
}

.card:hover::before {
   transform: scaleX(1);
}

.icon-big {
   font-size: 3.5rem;
   background: linear-gradient(135deg, var(--primary), var(--accent));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   margin-bottom: 24px;
}

.card h3 {
   font-size: 1.5rem;
   margin-bottom: 16px;
}

.card p {
   color: var(--dark-soft);
   opacity: 0.8;
}

/* Gallery */
.gallery-grid-dynamic {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
   gap: 20px;
}

.g-box {
   position: relative;
   aspect-ratio: 4/3;
   overflow: hidden;
   border-radius: 12px;
   cursor: pointer;
}

.g-box img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: 0.7s ease;
}

.g-overlay {
   position: absolute;
   inset: 0;
   background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0;
   transition: 0.4s;
   transform: translateY(20px);
}

.g-overlay i {
   color: var(--accent);
   font-size: 2.5rem;
}

.g-box:hover img {
   transform: scale(1.15);
}

.g-box:hover .g-overlay {
   opacity: 1;
   transform: translateY(0);
}

/* About Specific */
.about-img-wrapper {
   position: relative;
}

.img-frame {
   border-radius: 20px;
   box-shadow: var(--shadow-xl);
   border: 8px solid var(--white);
}

.exp-badge {
   position: absolute;
   bottom: -32px;
   right: -32px;
   background: var(--primary);
   color: var(--white);
   padding: 32px;
   border-radius: 20px;
   text-align: center;
   box-shadow: var(--shadow-xl);
   border: 4px solid var(--white);
}

.exp-badge strong {
   display: block;
   font-size: 2.5rem;
   margin-bottom: 4px;
}

/* Form Control */
.contact-form-box {
   background: var(--white);
   padding: 48px;
   box-shadow: var(--shadow-xl);
   border-radius: 20px;
   border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
   margin-bottom: 24px;
}

.form-group label {
   display: block;
   font-weight: 600;
   margin-bottom: 10px;
   font-size: 0.9rem;
   color: var(--dark);
}

.form-group input,
.form-group textarea {
   width: 100%;
   padding: 14px 18px;
   border: 1px solid #e2e8f0;
   border-radius: 10px;
   font-family: inherit;
   font-size: 1rem;
   transition: var(--transition);
   background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
   border-color: var(--primary);
   outline: none;
   box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
   background: var(--white);
}

/* =========================================
   9. FOOTER & DOCK
   ========================================= */
.main-footer {
   background: var(--dark);
   color: rgba(255, 255, 255, 0.6);
   padding-top: 80px;
}

.grid-footer {
   display: grid;
   grid-template-columns: 1.5fr 1fr 1fr;
   gap: 64px;
}

.f-title {
   color: var(--white);
   margin-bottom: 32px;
   font-size: 1.25rem;
   font-weight: 700;
   position: relative;
   padding-bottom: 12px;
}

.f-title::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 40px;
   height: 3px;
   background: var(--accent);
}

.f-links li {
   margin-bottom: 16px;
   transition: var(--transition);
}

.f-links a:hover {
   color: var(--accent);
   padding-left: 8px;
}

.copy-bar {
   border-top: 1px solid rgba(255, 255, 255, 0.05);
   text-align: center;
   padding: 32px;
   margin-top: 80px;
   font-size: 0.9rem;
}

/* Island Dock (Mobile) */
.mobile-dock-island {
   display: none;
   position: fixed;
   bottom: 24px;
   left: 50%;
   transform: translateX(-50%);
   width: 90%;
   max-width: 420px;
   background: rgba(15, 23, 42, 0.85);
   backdrop-filter: blur(20px);
   border-radius: 100px;
   justify-content: space-between;
   align-items: center;
   padding: 12px 32px;
   box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
   z-index: 5000;
   border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-dock-island a {
   color: rgba(255, 255, 255, 0.5);
   font-size: 1.4rem;
   transition: var(--transition);
}

.mobile-dock-island a.active {
   color: var(--accent);
}

.dock-center {
   width: 64px;
   height: 64px;
   background: var(--primary);
   color: var(--white) !important;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   transform: translateY(-32px);
   box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
   border: 5px solid var(--dark);
   position: relative;
}

/* =========================================
   10. MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
   .grid-2 {
      grid-template-columns: 1fr;
      gap: 48px;
   }

   .hero h1 {
      font-size: 3.5rem;
   }
}

@media (max-width: 768px) {

   .desktop-nav,
   .top-bar {
      display: none;
   }

   .mobile-trigger {
      display: block;
   }

   .mobile-sidebar {
      display: flex;
   }

   .mobile-dock-island {
      display: flex;
   }

   .hero {
      min-height: 70vh;
      text-align: center;
   }

   .hero h1 {
      font-size: 2.75rem;
   }

   .hero p {
      font-size: 1.1rem;
   }

   .btn-row {
      flex-direction: column;
      width: 100%;
   }

   .section {
      padding: 64px 0;
   }

   .grid-footer {
      grid-template-columns: 1fr;
      gap: 48px;
   }

   .page-header h1 {
      font-size: 2.5rem;
   }

   .exp-badge {
      position: relative;
      bottom: 0;
      right: 0;
      margin-top: 32px;
      width: 100%;
   }
}