/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    color: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .logo {
    font-size: 1.2rem;
    font-weight: bold;
  }
  
  .logo img {
    height: 80px;  /* Set a specific height */
    width: auto;   /* Maintain aspect ratio */
    display: block;
    transition: transform 0.3s ease;
  }
  
  .logo img:hover {
    transform: scale(1.05);
  }
  
  .nav-links {
    display: flex;
    align-items: center;
  }
  
  .nav-links a {
    color: #fff;
    margin: 0 0.75rem;
    font-weight: 400;
  }
  
  .nav-links a:hover {
    color: #ffcc70;
  }
  
  /* Dropdown Menu */
  .nav-item {
    position: relative;
    display: inline-block;
    margin: 0 0.75rem;
  }
  
  .nav-item > a {
    color: #fff;
    font-weight: 400;
    display: flex;
    align-items: center;
  }
  
  .nav-item > a:hover {
    color: #ffcc70;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #111;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1001;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    font-size: 0.9rem;
  }
  
  .dropdown-content a:hover {
    background-color: #222;
    color: #ffcc70;
  }
  
  .nav-item:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease forwards;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .dropdown-indicator {
    margin-left: 5px;
    font-size: 10px;
    transition: transform 0.3s ease;
  }
  
  .nav-item:hover .dropdown-indicator {
    transform: rotate(180deg);
  }
  
  .menu-icon {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
  }
  
  /* Mobile Navigation */
  @media screen and (max-width: 768px) {
    .navbar {
      padding: 1rem;
      width: 100%;
      box-sizing: border-box;
    }
    
    .nav-links {
      position: fixed;
      top: 60px;
      right: -100%;
      width: 70%;
      height: calc(100vh - 60px);
      background: #111;
      flex-direction: column;
      align-items: center;
      padding: 2rem 0;
      transition: right 0.3s ease;
      box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
      right: 0;
    }
    
    .nav-links a {
      margin: 1rem 0;
      display: block;
      width: 100%;
      text-align: center;
    }
    
    .menu-icon {
      display: block;
    }
    
    /* Mobile dropdown styles */
    .nav-item {
      display: block;
      width: 100%;
      margin: 0;
      text-align: center;
    }
    
    .nav-item > a {
      justify-content: center;
      padding: 1rem 0;
    }
    
    .nav-item.active > a {
      color: #ffcc70;
    }
    
    .dropdown-content {
      position: static;
      width: 100%;
      background: #1a1a1a;
      box-shadow: none;
      display: none;
      padding: 0;
    }
    
    .nav-item.active .dropdown-content {
      display: block;
      animation: fadeInUp 0.3s ease forwards;
    }
    
    .dropdown-content a {
      padding: 0.8rem 0;
      font-size: 0.9rem;
      opacity: 0;
      transform: translateY(10px);
      animation: fadeInUp 0.3s ease forwards;
      animation-delay: calc(var(--index) * 0.1s);
    }
    
    .dropdown-content a::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255,204,112,0.2), transparent);
      transform: scaleX(0);
      transition: transform 0.3s ease;
    }
    
    .dropdown-content a:active::after {
      transform: scaleX(1);
    }
    
    .nav-item.active .dropdown-content a {
      opacity: 1;
      transform: translateY(0);
    }
    
    .dropdown-indicator {
      display: inline-block;
      margin-left: 5px;
      transition: transform 0.3s ease;
    }
    
    .nav-item.active .dropdown-indicator {
      transform: rotate(180deg);
    }

    .project-details h2 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .project-content h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .slide-content h3 {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .slide-content p {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-top: 0.4rem;
    }

    .spec-label, .spec-value {
        font-size: 0.85rem;
    }
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes shimmer {
    0% {
      background-position: -200% center;
    }
    100% {
      background-position: 200% center;
    }
  }
  
  @media screen and (max-width: 576px) {
    .logo img {
      height: 45px;  /* Even smaller on very small screens */
    }

    .project-details h2 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .project-content h3 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .slide-content h3 {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .slide-content p {
        font-size: 0.8rem;
        line-height: 1.2;
        margin-top: 0.3rem;
    }

    .spec-label, .spec-value {
        font-size: 0.8rem;
    }

    .btn-view-project {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
  }
  

/* Adjust main content to account for fixed navbar */
.page-title {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.98));
    position: relative;
    margin-bottom: 2rem;
    margin-top: 100px; /* Add margin-top to create space below navbar */
}

.page-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #fff;
    margin: 0;
    position: relative;
    display: inline-block;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #ffcc70;
}

/* Projects Grid */
.projects-grid {
    padding: 2rem 1rem;
    background: #000;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.projects-container {
    max-width: 1900px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    box-sizing: border-box;
    padding: 0 2rem;
}

.project-card {
    position: relative;
    background: rgba(17, 17, 17, 0.95);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 204, 112, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Premium border effect */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(
        45deg,
        rgba(255, 204, 112, 0.1),
        rgba(255, 255, 255, 0.05),
        rgba(255, 204, 112, 0.1)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.4s ease;
}

.project-card:hover::before {
    background: linear-gradient(
        45deg,
        rgba(255, 204, 112, 0.3),
        rgba(255, 255, 255, 0.1),
        rgba(255, 204, 112, 0.3)
    );
}

/* Add corner accents */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    pointer-events: none;
    background: 
        linear-gradient(45deg, rgba(255, 204, 112, 0.15) 0%, transparent 15%) top left,
        linear-gradient(-45deg, rgba(255, 204, 112, 0.15) 0%, transparent 15%) top right,
        linear-gradient(-135deg, rgba(255, 204, 112, 0.15) 0%, transparent 15%) bottom right,
        linear-gradient(135deg, rgba(255, 204, 112, 0.15) 0%, transparent 15%) bottom left;
    background-size: 50px 50px;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover::after {
    opacity: 1;
}

.project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-details {
    padding: 1.5rem;
}

.project-details h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.project-specs {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 204, 112, 0.1);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 204, 112, 0.1);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: #ffcc70;
    font-weight: 500;
    font-size: 0.9rem;
}

.spec-value {
    color: #fff;
    text-align: right;
    font-size: 0.9rem;
}

.button-container {
    text-align: center;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.view-project-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 204, 112, 0.1);
    color: #ffcc70;
    border: 2px solid #ffcc70;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 204, 112, 0.2);
}

.view-project-btn:hover {
    background: #ffcc70;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 112, 0.3);
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .project-card {
        max-width: 500px;
    }
}

@media screen and (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 0.8rem;
        width: 100%;
        box-sizing: border-box;
    }

    .project-card {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }

    .project-image {
        height: 220px;
        width: 100%;
        box-sizing: border-box;
    }

    .project-details {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .project-details h2 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .project-specs {
        padding: 1rem;
        margin: 1rem 0;
    }

    .spec-item {
        display: flex;
        justify-content: space-between;
        padding: 0.8rem 0;
        font-size: 0.9rem;
    }

    .spec-label, .spec-value {
        font-size: 0.9rem;
    }

    .page-title {
        padding: 3rem 1.5rem;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .projects-grid {
        padding: 2rem 1rem;
    }

    .project-image {
        height: 250px;
    }

    .project-details {
        padding: 1.5rem;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 0 0 12px 12px;
    }

    .project-details h2 {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
        text-align: center;
    }

    .view-project-btn {
        padding: 1.2rem;
        font-size: 1rem;
        background: rgba(255, 204, 112, 0.15);
        border-width: 2px;
        margin-top: 1.5rem;
        font-weight: 600;
    }
}

@media screen and (max-width: 576px) {
    .projects-grid {
        padding: 1rem 0.5rem;
    }

    .projects-container {
        padding: 0 0.5rem;
        width: 100%;
    }

    .project-card {
        max-width: 100%;
        margin: 0;
    }

    .project-image {
        height: 200px;
    }

    .project-details {
        padding: 0.8rem;
    }

    .project-details h2 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .project-specs {
        margin: 0.8rem 0;
    }

    .spec-item {
        padding: 0.6rem 0;
    }

    .view-project-btn {
        padding: 1rem;
        font-size: 0.95rem;
        background: rgba(255, 204, 112, 0.2);
    }
}

/* Animation for cards */
.project-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for cards */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
/* Continue for all 18 cards */

/* Projects Showcase */
.projects-showcase {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 700px;
}

.project-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    gap: 2rem;
    padding: 1rem;
    transition: none;
    overflow: hidden; /* Prevent content from spilling out */
}

.project-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: none;
}

.project-slide:not(.active) {
    display: none; /* Hide inactive slides completely */
}

/* Project Content */
.project-content {
    flex: 1;
    max-width: 50%;
    padding: 2.5rem;
    background: rgba(26, 26, 26, 0.95);
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Prevents content overflow */
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    height: auto;
    overflow-y: auto;
}

/* Project Header */
.project-header {
    border-bottom: 2px solid rgba(255, 204, 112, 0.3);
    padding-bottom: 1.5rem;
}

.project-header h2 {
    font-size: 2.8rem;
    color: #ffcc70;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.location {
    font-size: 1.2rem;
    color: #fff;
    margin-top: 0.8rem;
    opacity: 0.8;
}

/* Project Description */
.project-description {
    flex: 0 1 auto;
    overflow-y: auto;
    max-height: 40vh; /* Limit description height on small screens */
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #fff;
}

/* Navigation Controls */
.project-controls {
    position: absolute;
    width: 100%;
    bottom: 2rem;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0;
    z-index: 20;
    max-width: 95%;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
}

.prev-project,
.next-project {
    width: 40px;
    height: 40px;
    background: rgba(17, 17, 17, 0.9);
    border: 2px solid #ffcc70;
    color: #ffcc70;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Specific positioning for arrows */
.prev-project {
    margin-left: 1rem;
}

.next-project {
    margin-right: 1rem;
}

.prev-project:hover,
.next-project:hover {
    background: #ffcc70;
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 204, 112, 0.3);
}

/* Project dots positioning adjusted for arrows */
.project-dots {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 15;
    background: rgba(17, 17, 17, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Splash Screen and Logo Transition */
#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

#splashScreen.fade-out {
    opacity: 0;
    pointer-events: none;
}

#splashVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.logo-transition.visible {
    opacity: 1;
    visibility: visible;
}

.logo-transition.fade-out {
    opacity: 0;
    visibility: hidden;
}

.logo-container {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.5s ease-out;
}

.logo-transition.visible .logo-container {
    transform: translateY(0);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #fff;
    margin: 0;
    letter-spacing: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #ffcc70;
    margin-top: 1rem;
    letter-spacing: 2px;
    opacity: 0.9;
}

.main-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.main-content.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .page-title {
        margin-top: 80px; /* Slightly less margin for mobile */
        padding: 3rem 1.5rem;
    }

    .page-title h1 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 576px) {
    .page-title {
        margin-top: 60px; /* Even less margin for smaller screens */
        padding: 2.5rem 1rem;
    }

    .page-title h1 {
        font-size: 1.8rem;
    }
}