 @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

        /* Global Styles */
        :root {
            --primary-color: #00ffff;
            --secondary-color: #ff00ff;
            --text-color:#ffffff;
            --dark-bg: #121212;
            --card-bg: rgba(30, 30, 30, 0.7);
        }
        
        html {
            scroll-behavior: smooth;
         }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
          background: linear-gradient(135deg, #000000, #1a1a2e, #16213e);
            color: var(--text-color);
            line-height: 1.6;
            overflow-x: hidden;
         }
         
        
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        section {
            padding: 80px 0;
        }
        
        h1, h2, h3 {
            font-weight: 700;
            line-height: 1.2;
        }
        
        h1 {
            font-size: 3.5rem;
            margin-bottom: 10px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        h2 {
            font-size: 2.5rem;
            margin-bottom: 35px;
            position: relative;
            display: inline-block;
        } 
        
        h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            border-radius: 2px;
         }
         
        p {
            margin-bottom: 15px;
            font-size: 1.1rem;
        }
        
        .btn {
            display: inline-block;
            padding: 10px 30px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            color: #000;
            border: none;
            border-radius: 30px;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.3s ease;
            
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
        }
        
       .back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; 
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px; 
    cursor:pointer;
    font-size: 23px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
    z-index: 999;
    -webkit-animation: up 5s infinite; 
}

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

.back-to-top:hover {
     box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3); 
}
        
        /* Header & Navigation */
        header {
            position: relative;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            padding: 20px 0;
            transition: all 0.3s ease;
        }
        
        header.scrolled {
          background-color: rgba(0, 0, 0, 0.9);
        }
        
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--text-color);
            text-decoration: none;
        }
        
        .logo span {
            color: var(--primary-color);
        }
        
        .nav-links {
            display: flex;
            list-style: none;
        }
        
        .nav-links li {
            margin-left: 30px;
        }
        
        .nav-links a {
            color: var(--text-color);
            text-decoration: none;
            font-weight: 500;
            font-size: 1.1rem;
            transition: color 0.3s ease;
            position: relative;
        }
        
        .nav-links a:hover {
            color: var(--primary-color);
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: width 0.3s ease;
        }
        
        .nav-links a:hover::after {
            width: 100%;
        }
    .theme-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: 90px;
    color: var(--text-color);
    z-index: 999;
}

/* Light mode styles */
body.light-mode {
    background: #f5f7fa;
    color: #333;
} 

.light-mode .theme-toggle{
  color: #333;
}

.light-mode .btn,
.light-mode .back-to-top {
    background: linear-gradient(135deg, #000000, #1a1a2e, #16213e);
    color: white;
}

.light-mode .project-tag,
.light-mode .contact-item i,
.light-mode .skill:hover,
.light-mode .social-icons a:hover {
        background: linear-gradient(135deg, #000000, #1a1a2e, #16213e);
    color: white;
}

.light-mode .project-card,
.light-mode .contact-form{
  background:white;
}

.light-mode .skill{
  color: white;
}

.light-mode .form-group input,
.light-mode .form-group textarea{
  border: 1px solid #ccc;
}

.light-mode .nav-links a,
.light-mode .logo,
.light-mode .logo span,
.light-mode .project-title{
    color: #333;
}

.light-mode h1 {
    background: linear-gradient(135deg, #000000, #1a1a2e, #16213e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.light-mode h2::after {
    background: linear-gradient(135deg, #000000, #1a1a2e, #16213e);
}
        
        
        /* Hero Section */
        #hero {
            height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
        }
        
        .hero-content {
            max-width: 600px;
        }
        
        .img-content{
          display:none;
        }
        
        .hero-content p {
            font-size: 1.2rem;
            margin-bottom: 30px;
        }
        
        
        .social-icons {
            display: flex;
            margin-top: 30px;
        }
        
        .social-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: var(--card-bg);
            border-radius: 50%;
            margin-right: 15px;
            color: var(--text-color);
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .social-icons a:hover {
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            color: #000;
            transform: translateY(-3px);
        }
        
        /* About Section */
        .about-content {
            display: flex;
            align-items: center;
            gap: 50px;
        }
        
        .about-text {
            flex: 1;
        }
        
        .about-text .school {
          color:lightblue;
        }
        
        .about-text .school:hover {
          color:indianred;
        }
        
        .skills {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
        }
        
        .skill {
            background-color: var(--card-bg);
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
        }
        
        .skill:hover{
          background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
          color:black;
        }
      
      #about .about-btn{
        padding-left:5rem;
      }
    
        /*achievement section*/
.container-card {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  grid-gap: 8rem;
  margin: 4rem; 
}

.card-section .section-title{
  font-size: 55px;
}
.card {
  height: 300px;
  width: 340px; 
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-rows: 1fr 1fr;
  transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  
}

.img-card {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: -1;
  transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
 .card:hover {
     transform: scale(1.035, 1.035);
    }

.card:hover img {
      transform: translateY(-5px);
    }
  
        
        /* Projects Section */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        
        .project-card {
            background-color: var(--card-bg);
            border-radius: 10px;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        
        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 255, 255, 0.2);
        }
        
        .project-img {
            height: 200px;
            overflow: hidden;
        }
        
        .project-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .project-title {
          color: white;
        }
        
        .project-title:hover{
          color: var(--secondary-color);
        }
        
        .project-info {
            padding: 20px;
        }
        
        .project-info h3 {
            margin-bottom: 10px;
            font-size: 1.3rem;
        }
        
        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 15px 0;
        }
        
        .project-tag {
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            color: #000;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        
                /* Simplified Slideshow Styles */
.slideshow-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    display: none;
    height: 100%;
    width: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
}

/* Navigation arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    line-height: 40px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    user-select: none;
    transition: background-color 0.3s;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}
        
        
        /* Contact Section */

        .contact-container {
            display: flex;
            gap: 50px;
        }
        
        .contact-info {
            flex: 1;
        }
        
        .contact-info p {
            margin-bottom: 30px;
        }
        
        .contact-details {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .contact-item {
            display: flex;
            align-items: center;
        }
        
        .contact-item i {
            width: 50px;
            height: 50px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            color: #000;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 1.2rem;
        }
        
        .contact-form {
            flex: 1;
            background-color: var(--card-bg);
            padding: 30px;
            border-radius: 10px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }
        
        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 12px 15px;
            background-color: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 5px;
            color: var(--text-color);
            font-size: 1rem;
        }
        
        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }
        
        /* Footer */
        footer {
            text-align: center;
            padding: 10px 0;
        }
        
        /* Animations */
        @keyframes float {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-20px);
            }
        }
        
        .floating {
            animation: float 6s ease-in-out infinite;
        }
        
        /* Responsive Design */
        @media (max-width: 992px) {
            .about-content, .contact-container {
                flex-direction: column;
            }
        }
        
        @media (max-width: 768px) {
         .img-content{
          display:block;
          border-radius:5%;
          width:50%;
          margin-top:-3rem;
          margin-bottom:1rem;
        }
          
            h1 {
                font-size: 2.5rem;
            }
            
            h2 {
                font-size: 2rem;
            }
            
            .nav-links {
              display:none;
            }
            
            section {
                padding: 60px 0;
            }
        }
        
        @media (max-width: 576px) {
            .container {
                width: 95%;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .projects-grid {
                grid-template-columns: 1fr;
            }
             #about .about-btn{
              padding-left:1.5rem;
           }
        }
        @media screen and (max-width: 640px) {
  .container-card {
    height: auto;
    margin: 1.5rem;
    grid-template-columns: repeat(2, 1fr); 
    gap: 1rem; 
  }
  
   .card-section .section-title{
    font-size: 40px;
  }
  
  .card{
    height: 140px;
    width: 160px;
  }
  
  .light-mode .nav-links a{
    color:white;
  }
}