@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    10% { clip: rect(112px, 9999px, 76px, 0); }
    20% { clip: rect(85px, 9999px, 77px, 0); }
    30% { clip: rect(27px, 9999px, 97px, 0); }
    40% { clip: rect(64px, 9999px, 98px, 0); }
    50% { clip: rect(61px, 9999px, 85px, 0); }
    60% { clip: rect(99px, 9999px, 114px, 0); }
    70% { clip: rect(34px, 9999px, 115px, 0); }
    80% { clip: rect(98px, 9999px, 129px, 0); }
    90% { clip: rect(43px, 9999px, 96px, 0); }
    100% { clip: rect(82px, 9999px, 64px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 119px, 0); }
    10% { clip: rect(79px, 9999px, 66px, 0); }
    20% { clip: rect(20px, 9999px, 115px, 0); }
    30% { clip: rect(25px, 9999px, 69px, 0); }
    40% { clip: rect(106px, 9999px, 83px, 0); }
    50% { clip: rect(104px, 9999px, 56px, 0); }
    60% { clip: rect(38px, 9999px, 103px, 0); }
    70% { clip: rect(79px, 9999px, 40px, 0); }
    80% { clip: rect(110px, 9999px, 82px, 0); }
    90% { clip: rect(15px, 9999px, 16px, 0); }
    100% { clip: rect(46px, 9999px, 53px, 0); }
}
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #1A1A2E, #16213E, #0F3460);
    color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
#achievements {
    padding: 60px 20px;
}

#achievements h2 {
    color:white;
    text-shadow: 2px 2px 10px rgba(0, 188, 212, 0.6);
    font-weight: 700;
}

#achievements .card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    border: none;
    box-shadow: 0px 4px 12px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out;
    height: 100%;
}

#achievements .card:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(255, 255, 255, 0.3);
}

#achievements .btn-primary {
    background: linear-gradient(45deg, #ffcc00, #ff6600);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    color: #121212;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

#achievements .btn-primary:hover {
    transform: scale(1.1);
    box-shadow: 0px 8px 15px rgba(255, 255, 255, 0.3);
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0.5px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 0.5px);
    background-size: 40px 40px; 
    z-index: 0; 
}

.hero h1 {
    font-size: 50px;
    font-weight: 600;
    color: white;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 1; 
}

.hero p {
    font-size: 18px;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

@keyframes animateBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes animateBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero {
    background-size: 200% 200%;
    animation: animateBg 10s infinite alternate ease-in-out;
}

.profile-pic {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    box-shadow: 0px 6px 20px rgba(255, 255, 255, 0.2);
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}
.profile-pic:hover {
    transform: scale(1.1);
    box-shadow: 0px 10px 30px rgba(255, 255, 255, 0.4);
}

.navbar {
    background: rgba(15, 20, 40, 0.95);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 12px 20px;
    margin: 15px auto;
    max-width: 90%;
    box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease-in-out;
}

.navbar:hover {
    background: rgba(25, 30, 50, 0.98) !important;
    box-shadow: 0px 6px 40px rgba(0, 188, 212, 0.2);
}

.scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4facfe);
    width: 0%;
    z-index: 1000;
    transition: width 0.2s ease-out;
}

.navbar-nav .nav-item {
    margin: 0 10px;
    position: relative;
}

.nav-link {
    position: relative;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 10px 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transform-style: preserve-3d;
}

.nav-link::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ff6b6b, #ffa07a, #ffcc70, #33cc99, #4facfe, #338aff, #6a5acd, #ff6b6b);
    background-size: 300%;
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4facfe);
    transition: width 0.3s ease;
}

.nav-link.active::after {
    width: 100%;
    animation: gradientSlide 3s infinite alternate;
}

.nav-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    opacity: 0;
    border-radius: 10px;
}

.nav-link:hover .nav-pulse {
    animation: particleBurst 0.6s forwards;
}

.nav-link:hover::before {
    opacity: 1;
    animation: running-border 1.5s linear infinite;
}

.nav-link:hover, .nav-link.active {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) rotateY(10deg);
}

.nav-icon {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-link:hover .nav-icon {
    transform: rotate(15deg) scale(1.2);
    color: white;
}

.nav-text {
    text-shadow: 0 0 5px transparent;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.nav-link:hover .nav-text {
    text-shadow: 0 0 10px #4facfe, 0 0 20px rgba(79, 172, 254, 0.5);
}

.dropdown-menu {
    border-radius: 10px;
    background: rgba(15, 20, 40, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    display: block;
    visibility: hidden;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 5px;
    padding: 8px 12px;
    transition: all 0.3s ease-in-out;
    transform: translateX(-10px);
    opacity: 0;
}

.dropdown:hover .dropdown-item {
    transform: translateX(0);
    opacity: 1;
    transition-delay: calc(0.1s * var(--i));
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.navbar-toggler {
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(79, 172, 254, 1)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    transform: rotate(90deg);
}

@keyframes running-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes particleBurst {
    0% { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(3); opacity: 0; }
}

@media (max-width: 992px) {
    .navbar {
        max-width: 95%;
        border-radius: 15px;
    }

    .nav-link {
        padding: 8px 12px;
        margin: 5px 0;
    }

    .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: none;
        box-shadow: none;
    }
}

.footer {
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: #ccc;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    box-shadow: 0px -2px 10px rgba(255, 255, 255, 0.1);
}

.btn-custom {
    background: linear-gradient(45deg, #ffcc00, #ff6600);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    color: #121212;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}
.btn-custom:hover {
    transform: scale(1.1);
    box-shadow: 0px 8px 15px rgba(255, 255, 255, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    .profile-pic {
        width: 180px;
        height: 180px;
    }
}
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    border: none;
    box-shadow: 0px 4px 12px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out;
    height: 100%;
    position: relative;
}
.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(255, 255, 255, 0.3);
}

.btn-custom {
    background: linear-gradient(45deg, #ffcc00, #ff6600);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    color: #121212;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}
.btn-custom:hover {
    transform: scale(1.1);
    box-shadow: 0px 8px 15px rgba(255, 255, 255, 0.3);
}

#contact form {
    max-width: 600px;
    margin: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}
#projects {
    padding: 60px 20px;
}

#projects h1 {
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 188, 212, 0.6);
    font-weight: 800;
    position: relative;
    display: inline-block; 
}

#projects h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px; 
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(0,188,212,0.8), rgba(0,188,212,0.2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

#projects h1:hover::after {
    transform: scaleX(1);
}

.card {
    border-radius: 15px;
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
}

.card-body {
    min-height: 200px;  
    display: flex;
    flex-direction: column;
}

.btn {
    width: 100%;
    font-weight: bold;
}

.btn-outline-info {
    border-radius: 8px;
    transition: 0.3s;
}

.btn-outline-info:hover {
    background-color: #00bcd4;
    color: #fff;
}
.contact-box {
    background: black;
    border-radius: 10px;
    text-align: center;
}

.contact-box h4 {
    font-weight: bold;
    margin-bottom: 10px;
}

.contact-box p {
    font-size: 18px;
    margin-bottom: 15px;
}

.map-box iframe {
    border-radius: 10px;
}
#push{
    position: relative;
    top: 50px;
}
#eee{
    position: relative;
    top: 50px;
}
.record-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: red;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.record-btn::after {
    content: "🎵";
    font-size: 20px;
    color: white;
    z-index: 2;
}

.record-btn1 {
    position: fixed;
    bottom: 95px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: black;
    border: 1px white solid;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 1px white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.record-btn1::after {
    content: "⚡";
    font-size: 20px;
    color: white;
    z-index: 2;
}

@media (max-width: 768px) {

    .hero h1 {
        font-size: 36px;
        padding: 0 20px;
    }

    .navbar {
        padding: 10px 15px;
    }

    .navbar-brand img {
        width: 30px;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-item {
        margin: 5px 0;
    }
    .typing-container {
        min-height: 180px; 
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #changing-text {
        font-size: 2.5rem;
        font-weight: 700;
        background: linear-gradient(90deg, #4facfe 0%, #00f2fe 50%, #a6c1ee 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-align: center;
        position: relative;
        padding: 0 10px;
        line-height: 1.3;
    }

    .cursor {
        display: inline-block;
        width: 3px;
        height: 40px;
        background: linear-gradient(to bottom, #4facfe, #a6c1ee);
        animation: blink 0.7s infinite, pulse 2s infinite;
        margin-left: 5px;
        vertical-align: middle;
    }

    @keyframes blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.3; }
    }

    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }

    .text-line {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        margin: 5px 0;
    }

    #projects h2 {
        font-size: 28px;
    }

    .card {
        margin-bottom: 20px;
    }

    .card-title {
        font-size: 20px;
        font-weight: bold;

    }

    .card-text {
        font-size: 14px;
    }

    .footer {
        font-size: 12px;
    }

    .record-btn,
    .record-btn1 {
        bottom: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
    }

    .record-btn1 {
        bottom: 70px;
    }

    .record-btn::after,
    .record-btn1::after {
        font-size: 16px;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .dropdown-item {
        color: white;
    }

    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 480px) {

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    #projects h2 {
        font-size: 24px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-text {
        font-size: 12px;
    }

    .footer {
        font-size: 10px;
    }

    .record-btn,
    .record-btn1 {
        width: 35px;
        height: 35px;
    }

    .record-btn1 {
        bottom: 60px;
    }

    .record-btn::after,
    .record-btn1::after {
        font-size: 14px;
    }
}
#Coursera{
    position: relative;
    left: 60px;
}
@media only screen and (max-width: 768px) {
    body::before {
      content: "This portfolio is optimized for desktop viewing. Please access from a computer or enable desktop mode.";
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: #0f0c29;
      color: white;
      z-index: 9999;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px;
      text-align: center;
      font-size: 1.2rem;
    }

    body > *:not(::before) {
      display: none !important;
    }
  }

  #badges {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin: 40px auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 95%;
}

#badges h2 {
    color: #fff;
    font-size: 2.2rem;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.7);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

#badges h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -10px;
    left: 25%;
    background: linear-gradient(90deg, transparent, #00bcd4, transparent);
}

.badges-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    white-space: nowrap;
}

.badges-track {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 40s linear infinite;
}

.badge-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 30px;
    filter: drop-shadow(0 0 5px rgba(0, 188, 212, 0.5));
    transition: all 0.4s ease;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    display: inline-block;
}

.badge-img:hover {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(0, 188, 212, 0.8));
    background: rgba(255, 255, 255, 0.2);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .badge-img {
        width: 80px;
        height: 80px;
        margin: 0 15px;
        padding: 10px;
    }

    #badges h2 {
        font-size: 1.8rem;
    }
}
.screenshot-image {
    /* OR */
    top: -60%; /* Pull image upward (adjust percentage as needed) */
}