/* Reset + Base */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    color: white;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-top: 4rem;
    cursor: none;
}

/* Grid Background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(78, 205, 196, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 107, 107, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
    transform-origin: center;
}

/* Warp Background */
.warp-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(15, 23, 42, 0.8) 0%,
        rgba(30, 27, 75, 0.9) 100%);
    z-index: -2;
    overflow: hidden;
}

.warp-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(
        circle at center,
        rgba(78, 205, 196, 0.05) 0%,
        transparent 50%
    );
    animation: warpMove 20s linear infinite;
}

.warp-bg::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(
        circle at center,
        rgba(255, 107, 107, 0.05) 0%,
        transparent 50%
    );
    animation: warpMove 15s linear infinite reverse;
}

@keyframes warpMove {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Add the warp-bg div to your HTML */
.grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        transparent 0%, 
        rgba(15, 23, 42, 0.8) 100%);
    pointer-events: none;
    z-index: -1;
}

@keyframes gridMove {
    0% {
        transform: perspective(1000px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(1000px) rotateX(60deg) translateY(40px);
    }
}

/* Add hover effect to grid */
.grid-bg:hover {
    animation-play-state: paused;
}

/* Add subtle glow effect */
.grid-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, 
        rgba(163, 184, 255, 0.05) 0%,
        transparent 50%);
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Header */
header {
    text-align: center;
    padding: 4rem 2rem;
}
header h1 {
    font-size: 3rem;
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
header p {
    margin-top: 0.5rem;
    font-size: 1.25rem;
    color: #E0E0E0;
}

/* About Section */
.about-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 27, 75, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, 
        rgba(78, 205, 196, 0.1) 0%,
        transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
}

.about-image, .about-video-card {
    flex: 0 1 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #E0E0E0;
    margin-bottom: 3rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(26, 26, 46, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(78, 205, 196, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #B8B8B8;
    font-size: 1rem;
}

.image-frame, .video-frame {
    background: #232323;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    padding: 1rem;
    margin-bottom: 1rem;
}

.image-frame img, .video-frame img, .video-frame iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.image-frame:hover img, .video-frame:hover img, .video-frame:hover iframe {
    transform: scale(1.05);
}

.image-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center,
        rgba(78, 205, 196, 0.2) 0%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-frame:hover .image-glow {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Section Layout */
.section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5rem 2rem;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section.reverse {
    flex-direction: row-reverse;
}

.text-content h2 {
    font-size: 2rem;
    background: linear-gradient(
        90deg,
        #FF6B6B,
        #4ECDC4,
        #FF6B6B
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradientText 8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes gradientText {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.text-content {
    max-width: 450px;
    flex: 1;
}

.text-content p {
    font-size: 1.125rem;
    color: #B8B8B8;
    line-height: 1.6;
}

/* Card Stack */
.card-stack {
    position: relative;
    width: 300px;
    height: 350px;
    perspective: 1000px;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background-color: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 107, 107, 0.1) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.6),
        0 0 20px rgba(78, 205, 196, 0.2);
}

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

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    transition: transform 0.5s ease;
}

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

.card h2, .card p {
    padding: 0.5rem 1rem;
    transition: transform 0.5s ease;
}

.card:hover h2 {
    transform: translateY(-5px);
}

/* Position Styles with enhanced transitions */
.card-back {
    transform: translate(20px, 20px) rotateX(2deg) rotateY(-2deg);
    opacity: 0.5;
    background-color: rgba(22, 33, 62, 0.8);
    z-index: 1;
}

.card-middle {
    transform: translate(10px, 10px) rotateX(1deg) rotateY(-1deg);
    opacity: 0.75;
    background-color: rgba(26, 26, 46, 0.8);
    z-index: 2;
}

.card-front {
    transform: translate(0, 0);
    opacity: 1;
    background-color: rgba(26, 26, 46, 0.8);
    z-index: 3;
}

/* Add shine effect */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.75s;
}

.card:hover::after {
    left: 150%;
}

/* Controls */
.card-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    justify-content: center;
}

#nextCardBtn1, #prevCardBtn1,
#nextCardBtn2, #prevCardBtn2,
#nextCardBtn3, #prevCardBtn3 {
    height: 40px;
    padding: 0 1.5rem;
    font-size: 1rem;
    background: #16213e;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Border Beam Effect */
#nextCardBtn1::before, #prevCardBtn1::before,
#nextCardBtn2::before, #prevCardBtn2::before,
#nextCardBtn3::before, #prevCardBtn3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(163, 184, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

#nextCardBtn1:hover::before, #prevCardBtn1:hover::before,
#nextCardBtn2:hover::before, #prevCardBtn2:hover::before,
#nextCardBtn3:hover::before, #prevCardBtn3:hover::before {
    left: 100%;
}

#nextCardBtn1:hover, #prevCardBtn1:hover,
#nextCardBtn2:hover, #prevCardBtn2:hover,
#nextCardBtn3:hover, #prevCardBtn3:hover {
    background-color: #FF6B6B;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #111827;
    padding: 1rem;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
 }

/* Magic UI Navigation */
.magic-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(78, 205, 196, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .gradient-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #E0E0E0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4ECDC4;
}

/* Magic UI Footer */
.magic-footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(78, 205, 196, 0.1);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.footer-section h3.gradient-text {
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.social-link {
    color: #E0E0E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #4ECDC4;
}

.contact-link {
    display: inline-block;
    margin-top: 1rem;
    color: #FF6B6B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #4ECDC4;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a2b1d0;
}

/* Custom Cursor */
.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: #4ECDC4;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 107, 107, 0.5);
    position: fixed;
    top: -13px;
    left: -13px;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9998;
    transition: all 0.2s ease-out;
}

/* Cursor effects for interactive elements */
a:hover ~ .cursor-outline,
button:hover ~ .cursor-outline,
.card:hover ~ .cursor-outline {
    transform: scale(1.5);
    background-color: rgba(163, 184, 255, 0.1);
}

@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
        align-items: stretch;
    }
    .about-image, .about-video-card {
        align-items: stretch;
        margin-bottom: 1.5rem;
    }
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #fff;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.video-frame {
    position: relative;
    cursor: pointer;
}

/* Mobile Responsive Styles */
@media (max-width: 1200px) {
  .about-container,
  .section,
  .nav-container,
  .footer-container {
    max-width: 95%;
    padding: 0 1rem;
  }
}

@media (max-width: 900px) {
  /* Navigation */
  .nav-links {
    gap: 1rem;
  }

  /* Header */
  header h1 {
    font-size: 2.5rem;
  }

  /* About Section */
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-image, 
  .about-video-card {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Sections */
  .section {
    flex-direction: column;
    padding: 3rem 1rem;
    gap: 2rem;
  }

  .section.reverse {
    flex-direction: column;
  }

  .text-content {
    max-width: 100%;
    text-align: center;
  }

  .card-stack {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Header */
  header {
    padding: 2rem 1rem;
  }

  header h1 {
    font-size: 2rem;
  }

  /* About Section */
  .about-section {
    padding: 3rem 1rem;
  }

  .about-text h2 {
    font-size: 2.5rem;
  }

  .about-description {
    font-size: 1.1rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 1rem;
  }

  /* Card Stack */
  .card-stack {
    height: 300px;
  }

  .card img {
    height: 150px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  /* Header */
  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 1rem;
  }

  /* About Section */
  .about-text h2 {
    font-size: 2rem;
  }

  .about-description {
    font-size: 1rem;
  }

  /* Card Stack */
  .card-stack {
    height: 250px;
  }

  .card img {
    height: 120px;
  }

  /* Modal */
  .modal-content {
    width: 95%;
    padding: 0.5rem;
  }

  #videoFrame {
    height: 300px;
  }
}

/* Fix for cursor on mobile */
@media (hover: none) {
  .cursor-dot,
  .cursor-outline {
    display: none;
  }

  body {
    cursor: auto;
  }
}
