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

:root {
  --primary-color: #0a0e27;
  --secondary-color: #1a1f3a;
  --accent-color: #00d4ff;
  --accent-light: #00f0ff;
  --text-light: #e0e0e0;
  --text-muted: #a0a0a0;
  --neon-pink: #ff006e;
  --neon-purple: #8338ec;
  --neon-green: #06ffa5;
}

body {
  font-family: 'Segoe UI', Trebuchet MS, sans-serif;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  overflow-x: hidden;
  cursor: crosshair;
  min-height: 100vh;
  scroll-behavior: smooth;
  position: relative;
}

/* Animated background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(131, 56, 236, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.1) 0%, transparent 50%);
  animation: backgroundShift 15s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes backgroundShift {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -30px);
  }
}

/* Header Styles */
.header {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1d3d 100%);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 50%, rgba(131, 56, 236, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(255, 0, 110, 0.2) 0%, transparent 40%);
  animation: headerGlow 8s ease-in-out infinite;
  z-index: 1;
}

.header::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(6, 255, 165, 0.05) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(131, 56, 236, 0.05) 50%, transparent 70%);
  animation: slideBackground 20s linear infinite;
  z-index: 0;
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeInDown 1s ease-out;
}

.title {
  font-size: 5.5rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--neon-green) 0%, var(--accent-light) 25%, var(--accent-color) 50%, var(--neon-pink) 75%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  margin-bottom: 1rem;
  animation: titleGlow 4s ease-in-out infinite, gradientShift 8s ease infinite;
  filter: drop-shadow(0 0 20px rgba(131, 56, 236, 0.5)) drop-shadow(0 0 40px rgba(255, 0, 110, 0.3));
}

.subtitle {
  font-size: 1.4rem;
  color: var(--accent-light);
  letter-spacing: 0.08em;
  font-weight: 300;
  animation: fadeInUp 1s ease-out 0.2s both, subtitlePulse 3s ease-in-out 0.5s infinite;
  text-transform: uppercase;
  color: var(--neon-green);
}

/* Gallery Container */
.gallery-container {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  animation: fadeIn 1.2s ease-out 0.5s both;
  width: 100%;
}

/* Gallery Item */
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(131, 56, 236, 0.2),
    0 0 60px rgba(255, 0, 110, 0.1),
    inset 0 0 20px rgba(6, 255, 165, 0.05);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  border: 2px solid rgba(131, 56, 236, 0.3);
  background: linear-gradient(135deg, rgba(131, 56, 236, 0.1), rgba(255, 0, 110, 0.05));
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(6, 255, 165, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(131, 56, 236, 0.1) 0%, transparent 50%);
  animation: pulseBackground 4s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover {
  transform: translateY(-20px) scale(1.05) rotateX(5deg);
  box-shadow: 
    0 30px 80px rgba(131, 56, 236, 0.5),
    0 0 100px rgba(255, 0, 110, 0.3),
    inset 0 0 40px rgba(6, 255, 165, 0.1);
  border-color: var(--neon-green);
}

.gallery-item:nth-child(even):hover {
  box-shadow: 
    0 30px 80px rgba(6, 255, 165, 0.4),
    0 0 100px rgba(131, 56, 236, 0.3),
    inset 0 0 40px rgba(255, 0, 110, 0.1);
  border-color: var(--neon-pink);
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.320, 1), filter 0.7s ease;
  filter: brightness(0.9) contrast(1.1) saturate(0.8);
}

.gallery-item:hover img {
  transform: scale(1.15) rotate(3deg);
  filter: brightness(1.3) contrast(1.2) saturate(1.2) hue-rotate(10deg);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(131, 56, 236, 0.4) 0%,
    rgba(255, 0, 110, 0.2) 50%,
    rgba(6, 255, 165, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease-out;
  z-index: 2;
  backdrop-filter: blur(2px);
}

.gallery-item:hover .overlay {
  opacity: 1;
  animation: overlayPulse 0.6s ease-out;
}

.content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.95) 100%);
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
  z-index: 3;
}

.gallery-item:hover .content {
  transform: translateY(0);
}

.content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-light);
  font-weight: 700;
}

.content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease-out;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 100px rgba(0, 212, 255, 0.4);
  animation: scaleIn 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.modal-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.close {
  position: absolute;
  right: 30px;
  top: 30px;
  font-size: 40px;
  font-weight: bold;
  color: var(--accent-light);
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  background: rgba(0, 212, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close:hover {
  color: var(--accent-color);
  background: rgba(0, 212, 255, 0.3);
  transform: rotate(90deg);
}

.modal-caption {
  padding: 1.5rem;
  text-align: center;
  background: rgba(0, 212, 255, 0.05);
  color: var(--text-light);
  font-size: 1.1rem;
}

/* About Section */
.about-section {
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(131, 56, 236, 0.05) 0%, rgba(255, 0, 110, 0.03) 100%);
}

.about-container {
  text-align: center;
}

.about-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--neon-green), var(--accent-light), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.8s ease-out;
}

.about-text {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  padding: 2rem;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(131, 56, 236, 0.15), rgba(255, 0, 110, 0.08));
  border: 1px solid rgba(6, 255, 165, 0.3);
  transition: all 0.4s ease;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(131, 56, 236, 0.3);
  border-color: var(--neon-green);
}

.feature h3 {
  font-size: 1.5rem;
  color: var(--neon-green);
  margin-bottom: 0.8rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(26, 31, 58, 0.95) 100%);
  border-top: 1px solid rgba(131, 56, 236, 0.3);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section {
  animation: fadeInUp 0.8s ease-out;
}

.footer-section h3 {
  font-size: 1.3rem;
  color: var(--neon-green);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-section ul li a:hover {
  color: var(--neon-green);
  padding-left: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(131, 56, 236, 0.5);
  border-radius: 8px;
  color: var(--neon-green);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.social-link:hover {
  background: rgba(131, 56, 236, 0.2);
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(6, 255, 165, 0.4);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(131, 56, 236, 0.5), transparent);
  margin: 2rem 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.designer-credit {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.designer-credit strong {
  color: var(--neon-pink);
  font-weight: 700;
}

.copyright {
  font-size: 0.9rem;
  color: var(--text-muted);
  animation: fadeIn 0.8s ease-out 0.7s both;
}

/* Animations */
@keyframes headerGlow {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes slideBackground {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(100px, 100px);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes titleGlow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(131, 56, 236, 0.5)) drop-shadow(0 0 40px rgba(255, 0, 110, 0.3));
    text-shadow: 0 0 30px rgba(6, 255, 165, 0.2);
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(131, 56, 236, 0.8)) drop-shadow(0 0 80px rgba(255, 0, 110, 0.6));
    text-shadow: 0 0 60px rgba(6, 255, 165, 0.4);
  }
}

@keyframes subtitlePulse {
  0%, 100% {
    opacity: 0.8;
    letter-spacing: 0.08em;
  }
  50% {
    opacity: 1;
    letter-spacing: 0.12em;
  }
}

@keyframes overlayPulse {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes pulseBackground {
  0%, 100% {
    transform: scale(1);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes glitchFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    transform: translate(0);
  }
  20%, 24%, 55% {
    opacity: 0.8;
    transform: translate(2px, 2px);
  }
}

@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(131, 56, 236, 0.3);
    box-shadow: 0 0 10px rgba(131, 56, 236, 0.2);
  }
  50% {
    border-color: rgba(6, 255, 165, 0.8);
    box-shadow: 0 0 30px rgba(6, 255, 165, 0.5);
  }
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Design */

/* Tablets and Medium Devices */
@media (max-width: 1024px) {
  .title {
    font-size: 3.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.8rem;
    padding: 4rem 1.5rem;
  }

  .gallery-item {
    height: 300px;
    border-radius: 15px;
  }

  .content {
    padding: 1.5rem;
  }

  .content h3 {
    font-size: 1.3rem;
  }
}

/* Small Tablets and Large Phones */
@media (max-width: 768px) {
  .header {
    height: 80vh;
  }

  .title {
    font-size: 2.5rem;
    letter-spacing: 0.1em;
  }

  .subtitle {
    font-size: 1rem;
    letter-spacing: 0.06em;
  }

  .gallery-container {
    padding: 3rem 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
  }

  .gallery-item {
    height: 220px;
    border-radius: 12px;
    border: 1.5px solid rgba(131, 56, 236, 0.3);
  }

  .gallery-item:hover {
    transform: translateY(-12px) scale(1.03) rotateX(3deg);
  }

  .image-wrapper {
    border-radius: 12px;
  }

  .gallery-item img {
    filter: brightness(0.85) contrast(1.1) saturate(0.9);
  }

  .gallery-item:hover img {
    transform: scale(1.12) rotate(2deg);
  }

  .content {
    padding: 1rem;
  }

  .content h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .content p {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
  }

  .modal-content {
    max-width: 95%;
    max-height: 85%;
    border-radius: 15px;
  }

  .close {
    right: 15px;
    top: 15px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .modal-caption {
    font-size: 0.95rem;
    padding: 1rem;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  .header {
    height: 70vh;
  }

  .title {
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
  }

  .subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
  }

  .gallery-container {
    padding: 2rem 0.8rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.8rem;
  }

  .gallery-item {
    height: 180px;
    border-radius: 10px;
    border: 1px solid rgba(131, 56, 236, 0.25);
    box-shadow: 
      0 4px 16px rgba(131, 56, 236, 0.15),
      0 0 40px rgba(255, 0, 110, 0.08),
      inset 0 0 10px rgba(6, 255, 165, 0.03);
  }

  .gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
      0 20px 50px rgba(131, 56, 236, 0.3),
      0 0 60px rgba(255, 0, 110, 0.15),
      inset 0 0 20px rgba(6, 255, 165, 0.08);
  }

  .gallery-item:nth-child(even):hover {
    box-shadow: 
      0 20px 50px rgba(6, 255, 165, 0.25),
      0 0 60px rgba(131, 56, 236, 0.15),
      inset 0 0 20px rgba(255, 0, 110, 0.08);
  }

  .gallery-item img {
    filter: brightness(0.9) contrast(1.05) saturate(0.85);
  }

  .gallery-item:hover img {
    transform: scale(1.1) rotate(1.5deg);
  }

  .overlay {
    background: linear-gradient(
      135deg,
      rgba(131, 56, 236, 0.35) 0%,
      rgba(255, 0, 110, 0.15) 50%,
      rgba(6, 255, 165, 0.08) 100%
    );
  }

  .content {
    padding: 0.8rem;
  }

  .content h3 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
  }

  .content p {
    font-size: 0.7rem;
    letter-spacing: 0.02em;
  }

  .modal-content {
    max-width: 98%;
    max-height: 80%;
    border-radius: 12px;
  }

  .close {
    right: 12px;
    top: 12px;
    width: 35px;
    height: 35px;
    font-size: 25px;
  }

  .modal-caption {
    font-size: 0.85rem;
    padding: 0.8rem;
  }

  .about-section {
    padding: 3rem 1rem;
  }

  .about-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .about-text {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .about-features {
    gap: 1rem;
  }

  .feature {
    padding: 1.5rem;
  }

  .feature h3 {
    font-size: 1.1rem;
  }

  .feature p {
    font-size: 0.85rem;
  }

  .footer-content {
    gap: 2rem;
    margin-bottom: 1.5rem;
  }

  .footer-section h3 {
    font-size: 1rem;
  }

  .footer-section p {
    font-size: 0.85rem;
  }

  .designer-credit {
    font-size: 0.9rem;
  }

  .copyright {
    font-size: 0.8rem;
  }
}

/* Extra Small Phones (Below 380px) */
@media (max-width: 380px) {
  .title {
    font-size: 1.5rem;
    letter-spacing: 0.06em;
  }

  .subtitle {
    font-size: 0.75rem;
  }

  .gallery-container {
    padding: 1.5rem 0.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.6rem;
  }

  .gallery-item {
    height: 150px;
    border-radius: 8px;
  }

  .content {
    padding: 0.6rem;
  }

  .content h3 {
    font-size: 0.8rem;
  }

  .content p {
    font-size: 0.65rem;
  }
}






