:root {
  --brand: #22d3ee;
  --brand-50: rgba(34, 211, 238, 0.08);

  /* carousel depth default */
  --carousel-depth: 250px;
}

/* --- Reset & Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  scroll-behavior: smooth;
  font-family: system-ui, sans-serif;
}

/* --- Navigation --- */
.nav-link {
  opacity: 0.8;
  transition: 0.3s;
}
.nav-link:hover {
  opacity: 1;
}

#mobileMenu .nav-link {
  padding: 0.6rem 0;
}

#themeToggle::before {
  content: "🌙";
}
.dark #themeToggle::before {
  content: "☀️";
}

/* --- Section Titles --- */
.section-title {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 30px;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 2.4rem;
  }
}

/* --- Cards --- */
.stat-card,
.skill-card,
.testi-card,
.project-card {
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.dark .stat-card,
.dark .skill-card,
.dark .testi-card,
.dark .project-card {
  background: rgba(2, 6, 23, 0.5);
  border-color: rgba(30, 41, 59, 0.8);
}

.stat-card,
.skill-card,
.testi-card {
  padding: 1rem;
}
.project-card {
  overflow: hidden;
}
.project-card .project-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}
.project-card:hover img {
  transform: scale(1.08);
}

/* --- Buttons & Inputs --- */
.btn-outline {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 0.75rem;
  cursor: pointer;
}
.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 0.75rem;
  cursor: pointer;
}
.filter-btn.active {
  background: var(--brand);
  color: white;
  border-color: transparent;
}
.input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(100, 116, 139, 0.3);
  background: rgba(255, 255, 255, 0.7);
}
.dark .input {
  background: rgba(2, 6, 23, 0.4);
  border-color: rgba(30, 41, 59, 0.8);
}

/* --- Responsive Fixes --- */
@media (max-width: 768px) {
  .w-\[35rem\] {
    width: 18rem !important;
    height: 18rem !important;
  }
  .section-title {
    font-size: 1.8rem;
  }

  /* Navigation collapse */
  nav ul {
    display: none;
    flex-direction: column;
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
  }
  nav ul.active {
    display: flex;
  }
}

@media (max-width: 480px) {
  :root {
    --carousel-depth: 140px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .stat-card,
  .skill-card,
  .testi-card {
    padding: 0.7rem;
  }

  .project-card .project-img {
    aspect-ratio: 4/3;
  }

  .btn-outline,
  .filter-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
}



/* Mobile Navbar Adjustments */
@media (max-width: 768px) {
  .navbar {
    padding: 0.7rem 1rem; /* thoda chota padding */
  }
  .logo {
    font-size: 1.2rem; /* logo size chota */
  }
  .nav-links {
    gap: 0.8rem; /* links ke beech ka gap kam */
  }
  .nav-link {
    font-size: 0.9rem; /* font thoda chota */
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.5rem 0.8rem;
  }
  .logo {
    font-size: 1rem;
  }
  .nav-links {
    gap: 0.6rem;
  }
  .nav-link {
    font-size: 0.8rem;
  }
}


html, body {
  overflow-x: hidden;
}


.navbar {
  transform: translateZ(0); /* GPU render fix */
}



.grid-container {
  overflow: hidden;
}




* {
            margin-top: 0px;
            padding: 0px;
            box-sizing: border-box;
        }

       /* === Circular Carousel Styles === */
/* -------------------------
   Circular Carousel Styles
--------------------------*/

.carousel-container {
  position: relative;
  width: 300px;
  height: 400px;
  perspective: 1200px;
  margin: 0 auto;
}

.carousel {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Card Wrapper for each card */
.card-wrapper {
  position: absolute;
  width: 280px;
  height: 390px;
  left: 10px;
  top: 20px;
}

.card-wrapper:nth-child(1) {
  transform: rotateY(0deg) translateZ(250px);
}
.card-wrapper:nth-child(2) {
  transform: rotateY(90deg) translateZ(250px);
}
.card-wrapper:nth-child(3) {
  transform: rotateY(180deg) translateZ(250px);
}
.card-wrapper:nth-child(4) {
  transform: rotateY(270deg) translateZ(250px);
}

/* Individual Card Flip */
.card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  cursor: pointer;
}
.card.flipped {
  transform: rotateY(180deg);
}

/* Card Faces */
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  background: white;
  border: 2px solid #ccc;
}
.card-front { }
.card-back {
  transform: rotateY(180deg);
}

/* Images inside cards */
.card-image img,
.back-image img {
  width: 100%;
  height: 100%;         /* yeh line change ki gayi */
  border: 0px solid #ddd;
  border-radius: 10px;
  object-fit: cover;    /* contain → cover */

}

/* Text styles */
.card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
  color: #222;
}
.card-subtitle {
  font-size: 0.9rem;
  text-align: center;
  color: #555;
}
.card-description {
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  color: #333;
  margin-top: 10px;
}

/* Flip hint */
.flip-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.3);
  color: white;
  padding: 3px 8px;
  border-radius: 15px;
  font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-container {
    width: 250px;
    height: 350px;
  }
  .card-wrapper {
    width: 230px;
    height: 330px;
  }
  .card-wrapper:nth-child(1) {
    transform: rotateY(0deg) translateZ(180px);
  }
  .card-wrapper:nth-child(2) {
    transform: rotateY(90deg) translateZ(180px);
  }
  .card-wrapper:nth-child(3) {
    transform: rotateY(180deg) translateZ(180px);
  }
  .card-wrapper:nth-child(4) {
    transform: rotateY(270deg) translateZ(180px);
  }
}

@media (max-width: 380px) {
  .carousel-container {
    width: 220px;
    height: 320px;
  }
  .card-wrapper {
    width: 200px;
    height: 300px;
  }
  .card-face {
    padding: 10px;
  }
}


        
/* Contact Form Styles */
.contact-form-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.contact-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-form-header h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-form-header p {
    color: #8b9dc3;
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-form-group {
    margin-bottom: 25px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-form-group label {
    display: block;
    color: #8b9dc3;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.contact-form-group input, 
.contact-form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.contact-form-group input::placeholder, 
.contact-form-group textarea::placeholder {
    color: #6b7280;
}

.contact-form-group input:focus, 
.contact-form-group textarea:focus {
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.contact-form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.contact-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.contact-submit-btn:hover {
    background: linear-gradient(45deg, #00b8e6, #0088bb);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-email-info {
    text-align: center;
    color: #8b9dc3;
    font-size: 0.95rem;
}

.contact-email-link {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email-link:hover {
    color: #00b8e6;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .contact-form-header h1 {
        font-size: 1.7rem;
    }
}

/* Animation for form elements */
.contact-form-group, 
.contact-form-row {
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.contact-form-group:nth-child(1) { animation-delay: 0.1s; }
.contact-form-group:nth-child(2) { animation-delay: 0.2s; }
.contact-form-group:nth-child(3) { animation-delay: 0.3s; }
.contact-form-group:nth-child(4) { animation-delay: 0.4s; }
.contact-form-group:nth-child(5) { animation-delay: 0.5s; }
.contact-form-group:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating animation */
.contact-form-container {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}
     

        
