@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #d4af37; /* Gold */
  --bg-dark: #0a0a0a;
  --bg-light: #f5f5f5;
  --text-light: #ffffff;
  --text-dark: #1a1a1a;
  --glass-bg: rgba(10, 10, 10, 0.7);
  --glass-border: rgba(212, 175, 55, 0.2);
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
}

/* Typography */
.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
  letter-spacing: 2px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 400;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.8)), url('../images/hero.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 5vw;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease forwards;
}

.hero p {
  font-size: 1.5rem;
  max-width: 600px;
  margin-bottom: 40px;
  font-weight: 300;
  opacity: 0.9;
  animation: fadeInUp 1s ease forwards 0.5s;
  opacity: 0;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: fadeInUp 1s ease forwards 0.8s;
  opacity: 0;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary-color);
  z-index: -1;
  transition: var(--transition);
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  color: var(--bg-dark);
}

/* Sections */
section {
  padding: 100px 5%;
}

/* About Us */
.about {
  display: flex;
  align-items: center;
  gap: 50px;
  background: #111;
}

.about-content {
  flex: 1;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 20px;
}

.about-image {
  flex: 1;
  height: 500px;
  background-image: url('../images/project1.png');
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  z-index: -1;
}

/* Projects */
.projects {
  background: var(--bg-dark);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 30px;
}

.project-card {
  position: relative;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  z-index: 1;
  opacity: 0.8;
  transition: var(--transition);
}

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

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

.project-info {
  position: absolute;
  bottom: -50px;
  left: 30px;
  z-index: 2;
  transition: var(--transition);
  opacity: 0;
}

.project-card:hover .project-info {
  bottom: 30px;
  opacity: 1;
}

.project-info h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.project-info p {
  color: #ddd;
  font-size: 1rem;
}

/* Modal Popup */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #111;
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  display: flex;
  overflow: hidden;
  position: relative;
  transform: translateY(50px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--primary-color);
}

.modal-media {
  flex: 1.5;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-media iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slider-slide.active {
  opacity: 1;
  z-index: 1;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures varying sizes don't break layout */
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  font-size: 1.5rem;
  transition: var(--transition);
}

.slider-arrow:hover {
  background: var(--primary-color);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.modal-details {
  flex: 1;
  padding: 50px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-details h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.modal-meta {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.modal-meta p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #ccc;
}

.modal-meta strong {
  color: #fff;
  display: inline-block;
  width: 120px;
}

.modal-link {
  margin-top: 20px;
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 5px;
}

/* Contact */
.contact {
  background: #111;
}

.contact-container {
  display: flex;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: #ccc;
  margin-bottom: 30px;
  line-height: 1.6;
}

.contact-form {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255,255,255,0.1);
}

.contact-form textarea {
  height: 150px;
  resize: none;
}

.contact-form button {
  align-self: flex-start;
  cursor: pointer;
}

/* Footer */
footer {
  background: #050505;
  padding: 50px 5%;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

footer p {
  color: #666;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 900px) {
  .about, .contact-container {
    flex-direction: column;
  }
  .modal-content {
    flex-direction: column;
    height: 90vh;
  }
  .modal-media {
    flex: 1;
  }
  .modal-details {
    flex: 1;
    padding: 30px;
  }
  .nav-links {
    display: none; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.active {
    display: flex;
  }
  .hero h1 {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}

