:root {
    --primary-color: #9333EA;
    --secondary-color: #EC4899;
    --background: #000000;
    --text-color: #FFFFFF;
    --accent-color: #38BDF8;
    --button-color: #F59E0B;
    --course-text-color: #60A5FA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.resume-btn {
    
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;

    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(147, 51, 234, 0.2);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(147, 51, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0);
    }
}

.brackets {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20rem;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

.bracket {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.bracket.left {
    left: -5rem;
}

.bracket.right {
    right: -5rem;
}

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

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.gradient-text {
    font-size: 4rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: gradientShift 5s ease infinite;
}

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

.subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 2rem;
    
    font:uppercase;
    opacity: 0;
    font-family: "Rubik Mono One", monospace;
   font-weight: 400;
   font-style: normal;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn svg {
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

.primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.primary:hover {
    background-color: #7928CA;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(147, 51, 234, 0.2);
}

.secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.section {
    padding: 6rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.animate {
    opacity: 1;
    transform: translateY(0);
}

.section.animate-out {
    opacity: 0;
    transform: translateY(20px);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color:white;
}

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

.project-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.project-card.animate {
    animation: fadeInUp 1s ease forwards;
}

.project-card.animate-out {
    animation: fadeOutDown 1s ease forwards;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgb(131, 37, 32);
    color: var(--background);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: #cd2020;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(245, 11, 11, 0.2);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.course-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.course-card.animate {
    animation: fadeInUp 1s ease forwards;
}

.course-card.animate-out {
    animation: fadeOutDown 1s ease forwards;
}

.course-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.course-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--course-text-color);
    transition: color 0.3s ease;
}

.course-card:hover .course-title {
    color: #0077ff;
}

.course-status {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.sigma-text {

    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-top: 2rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

h8 {
    font-size: 2rem;
    font-familu: gills sans-serif;
    font-weight: bold; 
    color: transparent;
    background: linear-gradient(45deg, #6a11cb, #2575fc); 
    -webkit-background-clip: text; 
    background-clip: text; 
    border-right: 2px solid white;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 4s steps(300000, end) infinite, blink 0.5s step-end infinite;
}

@keyframes typing {
    0% {
        width: 0;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
    100% {
        border-color: white;
    }
}

#popup {
    position: fixed;
    top: 150px; 
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #ffffff;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 1.5em;
    font-family: 'Anurati', sans-serif;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

#popup.show {
    opacity: 1;
    visibility: visible;
}

.h7 {
    color: #EC4899;

}

#about {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1;
    font-size: 0.5rem;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    font-size: large;
    color: white;
    font-family: "Overpass", sans-serif;
   font-optical-sizing: auto;
   font-weight: bold;
   font-style: normal;
 
  

}

.about-text.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-3d {
    flex: 1;
    height: 400px;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-3d.animate {
    opacity: 1;
    transform: scale(1);
}

#three-canvas {
    width: 100%;
    height: 100%;
    cursor: move;
}

.skill-tag {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .gradient-text {
        font-size: 3rem;
    }
    
    .nav-links {
        display: none;
    }

    .projects-grid, .courses-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        flex-direction: column;
    }

    .about-3d {
        width: 100%;
    }
}

footer {
    background-color: #000000;
    color: #fff;
    text-align: center;
    padding: 20px 10px;
    display: flex;
    justify-content: center; 
    align-items: center;   
    flex-direction: column;
  }
  
  .footer-content {
    text-align: center;
  }
  
  .social-links {
    display: flex;         
    justify-content: center; 
    gap: 20px;             
    margin-top: 15px;
  }
  
  .animated-icon-btn {
    display: inline-block;
    position: relative;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    background: #000000;
    border: none;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .animated-icon-btn span {
    position: relative;
    z-index: 2;
  }
  
  .animated-icon-btn i {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 20px;
    color: #fff;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  .animated-icon-btn:hover {
    color: #000000;
    background: #fff;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-5px); 
  }
  
  .animated-icon-btn:hover i {
    right: 10px; 
    opacity: 1;
  }
  
  .animated-icon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #1e90ff, #ff7f50); 
    transition: all 0.4s ease;
    z-index: 1;
  }
  
  .animated-icon-btn:hover::before {
    left: 0;
  }
  
  .github-btn::before {
    background: linear-gradient(120deg, #8e44ad, #3498db); 
  }
  
  .linkedin-btn::before {
    background: linear-gradient(120deg, #0072b1, #00c6ff); 
  }
  
  .mail-btn::before {
    background: linear-gradient(120deg, #f39c12, #f39c92); 
  }
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, #7d05be, #d30808);
    width: 0;
    z-index: 5000;
    transition: width 0.1s ease-out;
}


hr.hr1 , hr.hr2 , hr.hr3 {
    border: none;
  border-top: 1px solid #ddd;
  margin: 40px 0;
  opacity: 0.2;
  display: block;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  margin-left: 90px;
  margin-right: 90px;
  border-style: inset;
  border-width: 1px;

}
h2{
    position: relative;
  font-size: 10rem; /* or 150px */
  font-weight: 400;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.07); /* dim transparent text */
  letter-spacing: 2px;
  font-family: 'Rubik Mono One', sans-serif;
  text-align: center;
  z-index: 1;
  
    
}

.pp{
    font-family: 'Rubik Mono One', sans-serif;
    letter-spacing: 7px;
    padding: 0.5rem 1rem;

}

