:root {
    --primary: #1fddeb;
    --dark: #07030a;
    --glass: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --muted: #b1b1b1;
}

* { cursor: none !important; margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body { background: var(--dark); color: var(--text); font-family: 'Sora', sans-serif; overflow-x: hidden; }

.bg-blur { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 50% 50%, #2a1454 0%, #07030a 70%); z-index: -1; }

/* Custom Cursor */
.cursor { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; position: fixed; pointer-events: none; z-index: 999; }
.cursor-follower { width: 40px; height: 40px; border: 1px solid var(--primary); border-radius: 50%; position: fixed; pointer-events: none; transition: transform 0.1s ease-out; z-index: 998; }

.glass-nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 10%; position: fixed; width: 100%; top: 0; background: var(--glass); backdrop-filter: blur(15px); z-index: 100; }
.logo { font-size: 2rem; font-weight: 800; }
.logo span { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 40px; }
.nav-links a { color: white; text-decoration: none; font-weight: 500; font-size: 0.9rem; }

.hero { height: 100vh; display: flex; align-items: center; padding: 0 10%; }
.glitch-text { font-size: 7vw; font-family: 'Space Grotesk'; font-weight: 800; line-height: 1; background: linear-gradient(90deg, #fff, var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* About */
.about-section { padding: 100px 10%; }
.about-container { display: flex; align-items: center; gap: 80px; }
.about-image { flex: 1; }
.image-border { border: 2px solid var(--primary); border-radius: 20px; padding: 15px; transform: rotate(-3deg); transition: 0.5s; }
.about-image img { width: 100%; border-radius: 15px; }
.about-text { flex: 1.5; }
.section-title { font-size: 3rem; margin-bottom: 30px; font-family: 'Space Grotesk'; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0; gap: 20px; }
.stat-item h1 { color: var(--primary); font-size: 2.5rem; }

/* 3 COLUMN GRID */
.portfolio-section { padding: 100px 10%; }
.filter-tabs { margin-bottom: 50px; text-align: center; }
.filter-btn { background: transparent; border: 1px solid var(--glass); color: white; padding: 12px 25px; margin: 5px; border-radius: 30px; transition: 0.3s; }
.filter-btn.active { background: var(--primary); border-color: var(--primary); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.project-card { perspective: 1000px; }
.card-inner { position: relative; border-radius: 20px; overflow: hidden; transition: transform 0.5s ease; transform-style: preserve-3d; background: var(--glass); }
.project-card:hover .card-inner { transform: rotateY(10deg) rotateX(5deg); }
.card-inner img { width: 100%; height: 450px; object-fit: cover; opacity: 0.8; transition: 0.5s; }
.card-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); transform: translateZ(50px); }

/* Contact */
.contact-section { padding: 100px 10%; background: #0f0715; }
.contact-container { display: flex; gap: 50px; }
.contact-form { flex: 2; display: flex; flex-direction: column; gap: 20px; }
.input-group { display: flex; gap: 20px; }
input, textarea { width: 100%; padding: 15px; background: var(--dark); border: 1px solid var(--glass); border-radius: 10px; color: white; outline: none; }
.contact-info { flex: 1; display: flex; flex-direction: column; gap: 30px; justify-content: center; }
.info-item { display: flex; align-items: center; gap: 20px; font-size: 1.1rem; }
.info-item i { color: var(--primary); font-size: 1.5rem; }

.magnetic-btn { background: var(--primary); color: white; border: none; padding: 18px 35px; border-radius: 50px; font-weight: bold; cursor: pointer; }

@media (max-width: 1024px) { 
    .project-grid { grid-template-columns: repeat(2, 1fr); } 
    .about-container, .contact-container { flex-direction: column; }
}
@media (max-width: 600px) { .project-grid { grid-template-columns: 1fr; } }

/* Style the popup box */
dialog {
  border: none;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  width: 300px;
  text-align: center;
}

/* The dark background behind the popup */
dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px); /* Optional: blurs the background */
}

/* Simple Fade-in Animation */
dialog[open] {
  animation: show 0.3s ease normal;
}

@keyframes show {
  from { opacity: 0; transform: translateY(-10%); }
  to { opacity: 1; transform: translateY(0%); }
}