  :root {
            --primary: #6c5ce7;
            --primary-dark: #5649c7;
            --secondary: #a29bfe;
            --accent: #00cec9;
            --dark: #2d3436;
            --light: #f5f6fa;
            --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            --light-bg: rgba(85, 85, 85, 0.8);
            --primary-color: #6c5ce7;
            --secondary-color: #a29bfe;
            --dark-bg: #523e3e;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'New Times Romans', sans-serif;
        }
        
        body {
            color: #fff;
            overflow-x: hidden;
            background-color: var(--dark-bg);
            background-image: 
                radial-gradient(circle at 15% 50%, rgba(108, 92, 231, 0.1) 0%, transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(0, 206, 201, 0.1) 0%, transparent 25%),
                radial-gradient(circle at 50% 80%, rgba(162, 155, 254, 0.1) 0%, transparent 25%);
        }
        
      h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif; /* Elegant display font */
  color: #222; /* Dark neutral color for readability */
  margin: 0.5em 0;
  line-height: 1.2;
}
    
    /* Navigation */
    nav {
      position: fixed;
      top: 1.5rem;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      z-index: 1000;
      width: auto;
      transition: all 0.4s ease;
    }
    
    nav.scrolled {
      top: 0.5rem;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-container {
      display: flex;
      align-items: center;
      background: transparent;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      border-radius: 50px;
      padding: 0.8rem 2rem;
      border: none;
      transition: all 0.4s ease;
      position: relative;
      box-shadow: none;
    }

    /* Neon border implementation */
    .nav-container::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border-radius: 50px;
      padding: 2px;
      background: linear-gradient(
        45deg,
        #ff00cc,
        #6c5ce7,
        #00cec9,
        #6c5ce7,
        #ff00cc
      );
      background-size: 400%;
      z-index: -1;
      -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      opacity: 0.8;
      animation: neon-border 8s linear infinite;
    }

    @keyframes neon-border {
      0% {
        background-position: 0 0;
      }
      50% {
        background-position: 400% 0;
      }
      100% {
        background-position: 0 0;
      }
    }

    .nav-container:hover::before {
      opacity: 1;
      box-shadow: 
        0 0 10px rgba(108, 92, 231, 0.8),
        0 0 20px rgba(0, 206, 201, 0.6);
    }
    
    .logo {
      font-weight: 700;
      font-size: 1.5rem;
      margin-right: 2rem;
      color: var(--primary);
      text-decoration: none;
      display: flex;
      align-items: center;
      transition: all 0.3s ease;
    }
    
    .logo:hover {
      transform: scale(1.05);
    }
    
    .logo img {
      width: 36px;
      height: 36px;
      margin-right: 0.8rem;
      border-radius: 50%;
    }
    
    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
    }
    
    .nav-links a {
      text-decoration: none;
      color: var(--accent);
      font-weight: 500;
      font-size: 1rem;
      transition: all 0.3s ease;
      position: relative;
      padding: 0.5rem 0;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .nav-links a::after {
      content: '';
      position: absolute;
      width: 0;
      height: 3px;
      bottom: 0;
      left: 0;
      background: var(--gradient);
      transition: width 0.3s ease;
    }
    
    .nav-links a:hover::after {
      width: 100%;
    }
    
    .nav-links a:hover {
      color: var(--primary);
    }
    
    .mobile-menu-btn {
      display: none;
      background: none;
      border: none;
      font-size: 1.5rem;
      color: var(--primary);
      cursor: pointer;
    }

        /* Mobile menu icons */
        .nav-links .mobile-icon {
            display: none;
            font-size: 1.2rem;
        }

        /* Hero Section */
   .hero {
  position: relative;
  padding: 8rem 2rem;
  text-align: center;
  height: auto;
  color: white;
  overflow: hidden;
  z-index: 1;
}

/* Background image */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('') 
              no-repeat center center/cover;
  z-index: -2;
}

/* Glass overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: hsla(0, 1%, 20%, 0.19); /* transparent glass layer */

  -webkit-backdrop-filter: blur(12px);   /* Safari support */
  z-index: -1;
}


        .hero-content {
            position: relative;
            z-index: 1;
            max-width: 90%;
            margin: 0 auto;
        }

        .hero h1{ color: rgb(20, 169, 255); font-size: x-large;}
        .hero p {
            font-size: 1.2rem;
            opacity: 0;
            margin: 5rem;
            text-align: center;
            margin-bottom: 0.5rem;
            transform: translateY(20px);
            animation: fadeInUp 1s ease forwards 2s; /* 2s delay after typing starts */
        }
        /* Default: hide pyramid version, show normal */
        .normal-heading {
            display: block;
        }
        .pyramid-heading {
            display: none;
        }

        /* Small screens: show pyramid, hide normal */
        @media (max-width: 767px) {
            .normal-heading {
                display: none;
            }
            .hero p{ width: 94% !important; text-align:center ; margin: auto;}
            .pyramid-heading {
                display: block;
                font-size: 1rem;
                line-height: 1.4;
                text-align: center;
                font-weight: bold;
            }
        }

        @keyframes fadeInUp {
            to {
                opacity: 0.9;
                transform: translateY(0);
            }
        }

        /* 3D Carousel Styles */
      .carousel-section {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  background: url(../Images/carounsel-bg.jpg) center/cover no-repeat;
  height: auto; /* set your desired height */
}


        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--primary-color);
            position: relative;
        }

        .section-title::after {
            content: '';
            display: block;
            width: 80px;
            height: 3px;
            background: var(--primary-color);
            margin: 0.5rem auto 0;
        }

        .section-subtitle {
            text-align: center;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 3rem;
            font-size: 1.1rem;
        }

        .carousel-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            perspective: 1200px;
            margin: 0 auto;
        }

        .carousel-container {
            perspective: 1000px;
            width: 100%;
            max-width: 800px;
            height: 300px;
            position: relative;
            margin: 0 auto;
        }

        .carousel {
            position: relative;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            animation: rotate 30s infinite linear;
            margin: 0 auto;
        }

        .carousel .item {
            position: absolute;
            width: 220px;
            height: 180px;
            background: rgba(60, 152, 218, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 1.3rem;
            font-weight: bold;
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
            transition: all 0.5s ease;
            cursor: pointer;
            overflow: hidden;
            transform-origin: center;
            left: calc(50% - 100px);
            top: calc(50% - 75px);
        }

        .carousel .item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.7;
            border-radius: 10px;
            transition: opacity 0.3s ease;
        }

        .carousel .item:hover img {
            opacity: 1;
        }

        .carousel .item .title {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.8rem;
    color: deeppink;
    padding: 5px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    text-align: center;

    /* Animation */
    animation: colorChange 4s infinite alternate;
}

/* Keyframes for 3 colors */
@keyframes colorChange {
    0%   { color: deeppink; }
    33%  { color: gold; }
    66%  { color: dodgerblue; }
    100% { color: deeppink; }
}


        @keyframes rotate {
            from { transform: rotateY(0deg); }
            to { transform: rotateY(360deg); }
        }

        /* Position items in a circle */
        .carousel .item:nth-child(1) { transform: rotateY(0deg) translateZ(300px); }
        .carousel .item:nth-child(2) { transform: rotateY(60deg) translateZ(300px); }
        .carousel .item:nth-child(3) { transform: rotateY(120deg) translateZ(300px); }
        .carousel .item:nth-child(4) { transform: rotateY(180deg) translateZ(300px); }
        .carousel .item:nth-child(5) { transform: rotateY(240deg) translateZ(300px); }
        .carousel .item:nth-child(6) { transform: rotateY(300deg) translateZ(300px); }

        /* Projects Showcase */
        .projects-showcase {
            padding: 4rem 0;
            background: var(--dark-bg);
        }

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

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }
        .project-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: var(--light-bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  z-index: 1;
}

/* Gradient border via pseudo-element */
.project-card::before {
  content: "";
  position: absolute;
  inset: 0; /* stretch full size */
  padding: 3px; /* border thickness */
  border-radius: 15px; 
  background: linear-gradient(45deg, #ff007f, #00ff8c, #007fff, #ffbb00, #8c00ff);
  background-size: 300% 300%;
  animation: moving-gradient 4s linear infinite;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

/* Inner content sits above */
.project-card > * {
  position: relative;
  z-index: 2;
}

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


        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }

        .project-image {
            height: 200px;
            overflow: hidden;
        }

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

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

        .project-content {
            padding: 1.5rem;
        }

        .project-content h3 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: deeppink;
        }

        .project-content p {
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

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

        .btn-visit, .btn-code {
            padding: 0.6rem 1.2rem;
            border-radius: 30px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .btn-visit {
            background: var(--primary-color);
            color: white;
        }

        .btn-visit:hover {
            background: var(--secondary-color);
            transform: translateY(-3px);
        }

        .btn-code {
            background: transparent;
            color: var(--primary-color);
            border: 2px solid var(--primary-color);
        }

        .btn-code:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-3px);
        }

        /* Under Development Projects Section */
        .under-development {
            padding: 4rem 0;
            background: linear-gradient(135deg, #5a5757, #1a1a2e);
            position: relative;
        }

        .under-development::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        }

        .dev-projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2.5rem;
            margin-top: 2rem;
        }

        .dev-project-card {
            background: rgba(30, 30, 40, 0.7);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .dev-project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
            border-color: var(--primary-color);
        }

        .dev-project-image {
            position: relative;
            height: 220px;
            overflow: hidden;
        }

        .dev-project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .dev-project-card:hover .dev-project-image img {
            transform: scale(1.05);
        }

        .dev-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--primary-color);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .dev-project-content {
            padding: 1.5rem;
        }

        .dev-project-content h3 {
            font-size: 1.3rem;
            margin-bottom: 0.8rem;
            color: white;
        }

        .dev-project-content p {
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .feature-list {
            list-style: none;
            margin-bottom: 1.5rem;
        }

        .feature-list li {
            position: relative;
            padding-left: 1.5rem;
            margin-bottom: 0.5rem;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.9rem;
        }

        .feature-list li:before {
            content: '•';
            color: var(--primary-color);
            position: absolute;
            left: 0;
        }

        .dev-progress {
            margin: 1.5rem 0;
        }

        .progress-container {
            width: 100%;
            height: 6px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 5px;
        }

        .dev-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            border-radius: 3px;
        }

        .progress-info {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.6);
        }

        .dev-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1rem;
            justify-content: flex-start;
        }

        .dev-tech span {
            background: rgba(255, 255, 255, 0.1);
            padding: 0.3rem 0.8rem;
            border-radius: 15px;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.8);
            white-space: nowrap;
        }

        /* Footer */
        footer {
            background: var(--dark);
            color: white;
            padding: 5rem 0 2rem;
           
        }
        
        .footer-container {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 3rem;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
        }
        
        .footer-logo {
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
            text-decoration: none;
        }
        
        .footer-logo img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 0.8rem;
        }
        
        .footer-about p {
            margin-bottom: 1.5rem;
            line-height: 1.6;
            opacity: 0.8;
        }
        
        .footer-social {
            display: flex;
            gap: 1rem;
        }
        
        .footer-social a {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            text-decoration: none;
            justify-content: center;
            color: white;
            transition: all 0.3s ease;
        }
        
        .footer-social a:hover {
            background: var(--primary);
            transform: translateY(-3px);
        }
        
        .footer-links h3 {
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            color: white;
            position: relative;
            padding-bottom: 0.5rem;
        }
        
        .footer-links h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 3px;
            background: var(--gradient);
            border-radius: 3px;
        }
        
        .footer-links ul {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 0.8rem;
        }
        
        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .footer-links a:hover {
            color: white;
            padding-left: 5px;
        }
        
        .footer-contact h3 {
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            color: white;
            position: relative;
            padding-bottom: 0.5rem;
        }
        
        .footer-contact h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 3px;
            background: var(--gradient);
            border-radius: 3px;
        }
        
        .footer-contact p {
            margin-bottom: 1rem;
            display: flex;
            align-items: flex-start;
            gap: 0.8rem;
            line-height: 1.6;
            opacity: 0.8;
        }
        
        .footer-contact i {
            color: var(--secondary);
            margin-top: 0.2rem;
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 3rem;
           
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
        }

        /* Animation for text */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .project-card, .dev-project-card {
            animation: fadeIn 0.5s ease forwards;
        }

        .project-card:nth-child(1) { animation-delay: 0.1s; }
        .project-card:nth-child(2) { animation-delay: 0.2s; }
        .project-card:nth-child(3) { animation-delay: 0.3s; }
        .project-card:nth-child(4) { animation-delay: 0.4s; }
        .project-card:nth-child(5) { animation-delay: 0.5s; }
        .project-card:nth-child(6) { animation-delay: 0.6s; }
        .dev-project-card:nth-child(1) { animation-delay: 0.1s; }
        .dev-project-card:nth-child(2) { animation-delay: 0.2s; }
        .dev-project-card:nth-child(3) { animation-delay: 0.3s; }

        /* Responsive Styles */
        @media (max-width: 1024px) {
            .projects-grid, .dev-projects-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .hero {
                padding: 6rem 1rem;
            }
            
            .hero h1 {
                font-size: 1.5rem;
            }
            
            .hero p {
                font-size: 1rem;
            }
            
            .carousel-container {
                height: 250px;
            }
            
            .carousel .item {
                width: 160px;
                height: 120px;
            }
            
            .projects-grid, .dev-projects-grid {
                grid-template-columns: 1fr;
            }
            
            .section-title {
                font-size: 2rem;
            }

            .mobile-menu-btn {
                display: block;
            }
            
            .nav-links {
                position: fixed;
                top: 80px;
                left: 0;
                width: 100%;
                background: rgba(245, 240, 240, 0.95);
                flex-direction: column;
                align-items: flex-start;
                padding: 1.4rem;
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
                transform: translateY(-150%);
                transition: transform 0.4s ease;
                z-index: 999;
                gap: 1.5rem;
                backdrop-filter: blur(10px);
            }
            
            .nav-links.active {
                transform: translateY(0);
            }
            
            .nav-links a {
                padding: 0.8rem 1rem;
                font-size: 0.8rem;
                width: 100%;
                border-radius: 8px;
                transition: all 0.3s ease;
            }
            
            .nav-links a:hover {
                background: rgba(108, 92, 231, 0.1);
            }
            
            .nav-links .mobile-icon {
                display: inline-block;
                width: 24px;
                text-align: center;
            }

            .footer-container {
                grid-template-columns: repeat(2, 1fr);
            }
            
            /* Ensure dev-tech stays horizontal on mobile */
            .dev-tech {
                overflow-x: auto;
                padding-bottom: 0.5rem;
                flex-wrap: nowrap;
                justify-content: flex-start;
            }
            
            .dev-tech span {
                flex-shrink: 0;
            }
        }

        @media (max-width: 480px) {
            .carousel-container {
                height: 200px;
            }
            
            .carousel .item {
                width: 140px;
                height: 100px;
            }
            
            .carousel .item .title {
                font-size: 0.9rem;
            }
            
            .project-content h3, .dev-project-content h3 {
                font-size: 1.3rem;
            }
            
            .project-links {
                flex-direction: column;
            }
            
            .btn-visit, .btn-code {
                width: 100%;
                text-align: center;
            }

            .footer-container {
                grid-template-columns: 1fr;
            }
            
            /* Adjust carousel for very small screens */
            .carousel .item {
                width: 120px;
                height: 90px;
                left: calc(50% - 60px);
                top: calc(50% - 45px);
            }
            
            .carousel .item:nth-child(1) { transform: rotateY(0deg) translateZ(200px); }
            .carousel .item:nth-child(2) { transform: rotateY(60deg) translateZ(200px); }
            .carousel .item:nth-child(3) { transform: rotateY(120deg) translateZ(200px); }
            .carousel .item:nth-child(4) { transform: rotateY(180deg) translateZ(200px); }
            .carousel .item:nth-child(5) { transform: rotateY(240deg) translateZ(200px); }
            .carousel .item:nth-child(6) { transform: rotateY(300deg) translateZ(200px); }
        }