/* --- Variables & Reset --- */
:root {
      --primary: #FF9933;
      /* Saffron */
      --primary-dark: #cc7a00;
      --secondary: #002244;
      /* Navy Blue */
      --text-dark: #1a1a1a;
      --text-light: #666;
      --bg-light: #f9f9f9;
      --white: #ffffff;
      --transition: all 0.3s ease;
      --nav-height: 80px;
}

* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
}

html {
      scroll-behavior: auto;
      /* Let Lenis handle it */
}

body {
      font-family: 'Inter', sans-serif;
      color: var(--text-dark);
      line-height: 1.6;
      overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
      font-family: 'Poppins', sans-serif;
      font-weight: 700;
      line-height: 1.2;
}

a {
      text-decoration: none;
      color: inherit;
}

ul {
      list-style: none;
}

/* --- Utilities --- */
.container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 2rem;
}

.section {
      padding: 5rem 0;
}

.bg-light {
      background-color: var(--bg-light);
}

.bg-dark {
      background-color: var(--text-dark);
      color: var(--white);
}

.btn-primary {
      background-color: var(--primary);
      color: var(--white);
      padding: 0.8rem 2rem;
      border-radius: 5px;
      font-weight: 600;
      transition: var(--transition);
      display: inline-block;
}

.btn-primary:hover {
      background-color: var(--primary-dark);
      transform: translateY(-2px);
}

.btn-outline {
      border: 2px solid var(--white);
      color: var(--white);
      padding: 0.8rem 2rem;
      border-radius: 5px;
      font-weight: 600;
      transition: var(--transition);
}

.btn-outline:hover {
      background-color: var(--white);
      color: var(--text-dark);
}

/* --- Removed Legacy/Commented Out CSS --- */

/* --- 2. Navbar Styles --- */
#navbar {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: var(--nav-height);
      background-color: #fff;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      z-index: 9999;
}

.container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      height: 100%;
}

.nav-container {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
}

/* Logo Styles */
.logo-wrapper {
      display: flex;
      align-items: center;
      text-decoration: none;
      color: var(--text-light);
      gap: 10px;
      justify-self: start;
}

.logo-img img {
      height: 45px;
      width: auto;
      display: block;
}

.logo-text-group {
      display: flex;
      flex-direction: column;
}

.logo-text {
      font-weight: 700;
      font-size: 1.2rem;
      line-height: 1;
}

.logo-sub {
      font-size: 0.75rem;
      color: #666;
      letter-spacing: 0.5px;
}

/* --- 3. Desktop Menu --- */
.desktop-menu {
      display: flex;
      align-items: center;
      gap: 30px;
      justify-self: center;
}

.desktop-menu a {
      text-decoration: none;
      color: var(--text-color);
      font-weight: 500;
      transition: color 0.3s ease;
}

.desktop-menu a:hover {
      color: var(--primary-color);
}

/* btn-primary-sm styles removed */

/* Ensure social icons align right */
.social-icons-header {
      justify-self: end;
      display: flex;
      gap: 15px;
}

.social-icon {
      transition: all 0.3s ease;
      color: var(--text-dark);
}

.social-icons-header a:hover .social-icon {
      color: var(--primary);
      transform: translateY(-2px);
}

/* Footer Socials Styling */
footer .socials a {
      margin: 0 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
}

footer .social-icon {
      color: #888;
}

footer a:hover .social-icon {
      color: var(--primary);
      transform: scale(1.1);
}

/* Mobile Menu Socials */
.social-icons-mobile .social-icon {
      color: var(--text-dark);
}

.social-icons-mobile a:hover .social-icon {
      color: var(--primary);
}

/* --- 4. Hamburger Menu Icon --- */
.hamburger-menu {
      display: none;
      /* Hidden on desktop */
      flex-direction: column;
      justify-content: space-between;
      width: 30px;
      height: 21px;
      background: var(--bg-light);
      border: none;
      cursor: pointer;
      z-index: 1001;
      /* Above overlay */
}

.hamburger-menu .line {
      width: 100%;
      height: 3px;
      background-color: var(--primary-dark);
      border-radius: 3px;
      transition: all 0.3s ease-in-out;
      transform-origin: left;
}

/* Hamburger Animation to "Close" Icon */
.hamburger-menu.active .line-1 {
      transform: rotate(70deg);
}

.hamburger-menu.active .line-2 {
      opacity: 0;
      transform: translateX(-10px);
}

.hamburger-menu.active .line-3 {
      transform: rotate(-10deg);
}

/* --- 5. Mobile Overlay --- */
.mobile-nav-overlay {
      position: fixed;
      top: 0;
      right: 0;
      width: 100%;
      /* Covers whole screen usually, or you can do 70% */
      height: 100vh;
      background: white;
      z-index: 999;
      /* Below hamburger, above content */
      display: flex;
      justify-content: center;
      align-items: center;
      transform: translateX(100%);
      /* Hidden by default */
      transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav-overlay.active {
      transform: translateX(0);
      /* Slide in */
}

.mobile-links {
      display: flex;
      flex-direction: column;
      gap: 30px;
}


.mobile-links a {
      font-size: 1.5rem;
      text-decoration: none;
      color: var(--text-color);
      font-weight: 600;
      transition: color 0.3s;
}

.mobile-links a:hover {
      color: var(--primary);
}

.mobile-links a:active {
      color: var(--primary-dark);
}


/* --- 6. Responsive Media Queries --- */
@media (max-width: 850px) {

      /* Tablet and Mobile */
      .nav-container {
            display: flex;
            justify-content: space-between;
      }

      .desktop-menu,
      .social-icons-header {
            display: none;
            /* Hide desktop menu & header socials */
      }

      .hamburger-menu {
            display: flex;
            /* Show hamburger */
      }
}


/* --- Hero Section & Carousel --- */
/* --- Hero Section & Carousel --- */
.hero-section {
      position: relative;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--white);
      overflow: hidden;
      padding: 0;
      background-color: #e6f2ff;
}

/* Full width and height */
.hero-carousel {
      width: 100%;
      max-width: 1200px;
      height: 100%;
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      display: grid;
      grid-template-areas: "hero-stack";
      z-index: 1;
}

.slide {
      grid-area: hero-stack;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 1s ease-in-out;
      display: flex;
}

.slide.active {
      opacity: 1;
      z-index: 2;
}

.hero-img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      object-position: center;
}

.overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
      pointer-events: none;
      z-index: 3;
}

.hero-content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      z-index: 4;
      /* Above overlay */
      width: 100%;
      padding: 0 20px;
}

.hero-title {
      font-size: 4rem;
      margin-bottom: 0.5rem;
      color: var(--primary);
}

.hero-subtitle {
      font-size: 1.5rem;
      margin-bottom: 1.5rem;
      font-weight: 300;
}

.hero-vision {
      font-size: 1.1rem;
      margin-bottom: 2rem;
      font-style: italic;
      border-left: 4px solid var(--primary);
      padding-left: 1rem;
}

.hero-buttons {
      gap: 1rem;
      display: flex;
}

/* --- Stats Strip --- */
.stats-section {
      background: var(--white);
      padding: 3rem 0;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
      position: relative;
      z-index: 10;
      margin-top: -3rem;
      /* Overlap Hero */
      border-radius: 8px 8px 0 0;
}

.stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 2rem;
      text-align: center;
}

.stat-card h3 {
      font-size: 2.5rem;
      color: var(--primary);
      margin-bottom: 0.5rem;
}

.stat-card p {
      font-weight: 600;
      color: var(--text-light);
      font-size: 0.9rem;
}

/* --- About --- */
.split-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
}

.about-image img {
      width: 100%;
      border-radius: 10px;
      box-shadow: 20px 20px 0 var(--primary);
}

.section-tag {
      color: var(--primary);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 0.9rem;
}

.timeline {
      margin-top: 2rem;
      border-left: 2px solid #ddd;
      padding-left: 2rem;
}

.timeline-item {
      margin-bottom: 1.5rem;
      position: relative;
}

.timeline-item::before {
      content: '';
      position: absolute;
      left: -2.4rem;
      top: 5px;
      width: 12px;
      height: 12px;
      background: var(--primary);
      border-radius: 50%;
}

.timeline-item .year {
      font-weight: 700;
      display: block;
      margin-bottom: 0.2rem;
}

.tags span {
      display: inline-block;
      background: #eee;
      padding: 0.3rem 0.8rem;
      border-radius: 20px;
      font-size: 0.8rem;
      margin-right: 0.5rem;
      margin-top: 0.5rem;
}

/* --- Development Projects --- */
.projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      margin-top: 3rem;
}

.project-card {
      background: var(--white);
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
      transition: var(--transition);
}

.project-card:hover {
      transform: translateY(-5px);
}

.card-img {
      height: 200px;
      overflow: hidden;
}

.card-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: var(--transition);
}

.project-card:hover .card-img img {
      transform: scale(1.05);
}

.card-body {
      padding: 1.5rem;
}

.card-tag {
      color: var(--primary);
      font-size: 0.8rem;
      font-weight: 700;
}

.card-body h3 {
      margin: 0.5rem 0;
      font-size: 1.2rem;
}

.read-more {
      color: var(--secondary);
      font-weight: 600;
      font-size: 0.9rem;
      margin-top: 1rem;
      display: inline-block;
}

/* --- Gallery (CSS Grid) --- */
/* --- Gallery (Redesigned) --- */
.gallery-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
      margin-top: 3rem;
}

.gallery-card {
      position: relative;
      border-radius: 20px;
      overflow: hidden;
      aspect-ratio: 1 / 1;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
      transition: all 0.4s ease;
      cursor: pointer;
}

.gallery-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: grayscale(100%);
      transition: all 0.5s ease;
}

.gallery-card:hover img {
      filter: grayscale(0%);
      transform: scale(1.05);
}

.card-overlay {
      position: absolute;
      bottom: 20px;
      left: 20px;
      z-index: 2;
}

.card-overlay .tag {
      background: rgba(0, 0, 0, 0.7);
      color: #fff;
      padding: 0.5rem 1rem;
      border-radius: 50px;
      font-size: 0.8rem;
      font-weight: 600;
      backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
      .gallery-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
      }
}

@media (max-width: 600px) {
      .gallery-grid {
            grid-template-columns: 1fr;
      }
}

/* --- Video Section --- */
.video-layout {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 2rem;
      margin-top: 2rem;
}

.featured-video {
      position: relative;
      cursor: pointer;
}

.featured-video iframe {
      width: 100%;
      height: 300px;
}


/* --- Blog --- */
.blog-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      margin-top: 2rem;
}

.blog-card {
      background: var(--white);
      padding: 2rem;
      border: 1px solid #a4a4a4;
      border-radius: 8px;
}

.date-badge {
      background: var(--secondary);
      color: white;
      padding: 0.2rem 0.6rem;
      font-size: 0.8rem;
      border-radius: 4px;
      display: inline-block;
      margin-bottom: 1rem;
}

/* --- Map --- */
.map {
      width: 100%;
      height: 250px;
}

/* --- Contact --- */
.contact-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
}

.contact-form {
      background: var(--white);
      padding: 2rem;
      border-radius: 10px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
      margin-bottom: 1rem;
}

.form-group {
      margin-bottom: 1.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
      width: 100%;
      padding: 1rem;
      border: 1px solid #ddd;
      border-radius: 5px;
      font-family: inherit;
}

.block {
      width: 100%;
}

.map-box {
      height: 200px;
      background: #eee;
      margin-top: 2rem;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
}

/* --- Footer --- */
footer {
      background: #111;
      color: #888;
      padding: 2rem 0;
      margin-top: 4rem;
}

.footer-content {
      display: flex;
      justify-content: space-between;
}

.socials a {
      margin-left: 1.5rem;
      color: var(--white);
      transition: 0.3s;
}

.socials a:hover {
      color: var(--primary);
}

/* --- RESPONSIVENESS (Specific to request) --- */

/* 1150px Layout */
@media (max-width: 1150px) {
      .hero-title {
            font-size: 3rem;
      }

      .container {
            padding: 0 1.5rem;
      }
}

@media (max-width: 900px) {
      .stats-grid {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 1.5rem;
      }

      .gallery-grid {
            grid-template-columns: repeat(2, 1fr) !important;
            grid-template-rows: auto !important;
      }

      .g-1,
      .g-2,
      .g-3,
      .g-4 {
            grid-column: auto !important;
            grid-row: auto !important;
      }

      .g-2 {
            grid-column: 1 / -1 !important;
      }

      .contact-container {
            gap: 2rem;
      }

      .split-layout {
            grid-template-columns: 1fr;
            gap: 2rem;
      }

      .about-image {
            order: -1;
            max-width: 600px;
            margin: 0 auto;
      }
}

@media (max-width: 600px) {
      .hero-title {
            font-size: 2.2rem;
      }

      .hero-subtitle {
            font-size: 1.1rem;
      }

      .stats-grid {
            grid-template-columns: 1fr !important;
      }

      .gallery-grid {
            grid-template-columns: 1fr !important;
      }

      .contact-container {
            grid-template-columns: 1fr;
      }

      .video-layout {
            grid-template-columns: 1fr;
      }

      .footer-content {
            flex-direction: column;
            gap: 1.5rem;
            text-align: center;
      }

      .socials a {
            margin: 0 10px;
      }

      .mobile-links a {
            font-size: 1.2rem;
      }

      .slide {
            background-size: contain;
            background-position: center top;
            /* Ensure top alignment for posters */
      }
}

/* 768px (720px approx) Layout */
@media (max-width: 768px) {
      .desktop-menu {
            display: none;
      }

      .hamburger-menu {
            display: flex;
      }

      .hero-title {
            font-size: 2.5rem;
      }

      .hero-buttons {
            flex-direction: column;
      }

      .stats-grid {
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
      }

      .split-layout {
            grid-template-columns: 1fr;
            gap: 2rem;
      }

      .about-image {
            order: -1;
      }

      .gallery-grid {
            display: flex;
            flex-direction: column;
      }

      .gallery-item {
            height: 250px;
      }

      .video-layout {
            grid-template-columns: 1fr;
      }

      .contact-container {
            grid-template-columns: 1fr;
      }
}

/* 420px Layout */
@media (max-width: 420px) {
      .hero-title {
            font-size: 2rem;
      }

      .hero-subtitle {
            font-size: 1rem;
      }

      .stats-grid {
            grid-template-columns: 1fr;
      }

      .section-header h2 {
            font-size: 1.8rem;
      }

      .footer-content {
            flex-direction: column;
            text-align: center;
            gap: 1rem;
      }

      .socials a {
            margin: 0 0.5rem;
      }
}

/* Menu Animation States */
.hamburger-menu.active .line-1 {
      transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-menu.active .line-2 {
      opacity: 0;
}

.hamburger-menu.active .line-3 {
      transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Image Modal --- */
.modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      z-index: 5000;
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
}

.modal-overlay.active {
      opacity: 1;
      pointer-events: auto;
}

.modal-content {
      max-width: 90%;
      max-height: 90%;
}

.modal-content img {
      max-width: 100%;
      max-height: 90vh;
      border-radius: 5px;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
      transform: scale(0.8);
      transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content img {
      transform: scale(1);
}

/* --- Video Gallery Updates --- */
.video-card {
      aspect-ratio: 16 / 9;
      border-radius: 15px;
      /* Slightly less rounded for rects looks better */
}

.gallery-card video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: grayscale(100%);
      transition: all 0.5s ease;
      border-radius: 15px;
}

.gallery-card:hover video {
      filter: grayscale(0%);
      transform: scale(1.05);
}

.play-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: white;
      font-size: 3rem;
      opacity: 0.8;
      pointer-events: none;
      z-index: 2;
      text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.gallery-card:hover .play-icon {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1.1);
}

.modal-content video {
      max-width: 100%;
      max-height: 90vh;
      border-radius: 5px;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-modal {
      position: absolute;
      top: 20px;
      right: 30px;
      font-size: 3rem;
      color: #fff;
      cursor: pointer;
      z-index: 5001;
      transition: color 0.3s;
}

.close-modal:hover {
      color: var(--primary);
}

/* End of file */