/* Reset and base styles */
@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');

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

body {
    font-family: 'Fira Code', monospace;
    line-height: 1.6;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f0f0;
} */

/* Navigation */
:root {
    --accent-clr: aqua;
    --main-clr: white;
    --hover-clr: aqua;
    --other-clr: #888888;
}

/* Navbar styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: rgba(25, 25, 25, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo a {
    color: var(--main-clr);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--main-clr);
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: var(--main-clr);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--hover-clr);
}

.hover-effect {
    position: relative;
}

.hover-effect::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-clr);
    transition: width 0.3s ease;
}

.hover-effect:hover::after {
    width: 100%;
}

/* Container and general styles */
.container {
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 1rem;
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: clamp(1.2rem, 1vw, 1.35rem);
    color: var(--accent-clr);
}

.title {
    font-size: clamp(3.2rem, 3vw, 6rem);
}

.info {
    max-width: 500px;
    font-size: 1.35rem;
    padding-block-start: 1.3rem;
    color: var(--other-clr);
}

.btn {
    padding: 0.8rem 3rem;
    margin-block-start: 3rem;
    color: var(--main-clr);
    border-radius: 0.2rem;
    cursor: pointer;
}

.btn:active {
    transform: scale(1);
}

small {
    color: var(--other-clr);
}

.hero1 {
    color: aqua;
    height: 100vh;
    background: linear-gradient(235deg, #00120a 0%, #00070e 100%);
    justify-content: left;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 20px;
}

.hero2 {
    color: #05cdff;
    min-height: 100vh;
    background: linear-gradient(135deg, #000803 0%, #000407 100%);
    justify-content: left;
    align-items: center;
    position: relative;
    overflow: visible;
    padding-top: 10px;
    padding-bottom: 20px;
}

.hero3 {
    color: #05cdff;
    min-height: 100vh;
    background: linear-gradient(135deg, #000803 0%, #000407 100%);
    justify-content: left;
    align-items: center;
    position: relative;
    overflow: visible;
    padding-top: 20px;
}

.hero5 {
    color: #05cdff;
    height: 100vh;
    background: linear-gradient(135deg, #000803 0%, #000407 100%);
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
    padding-top: 20px;
}

.hero6 {
    color: #05cdff;
    min-height: 100vh;
    background: linear-gradient(135deg, #000803 0%, #000407 100%);
    justify-content: left;
    align-items: center;
    position: relative;
    overflow: visible;
    padding-top: 20px;
    padding-bottom: 40px; /* Add extra space at the bottom for mobile */
}


/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #000502 0%, #000509 100%);
    display: flex;
    justify-content: left;
    align-items: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Ensure hero content is above particles */
}

.hero h1 {
    /* color: #ffffff; */
    background: linear-gradient(#00c8ff, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* background: linear-gradient(#00c8ff,#); */
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeInUp 1s ease;
}

.social-icon {
    position: absolute;
    top: 90px;
    right: 30px;
    display: flex;
    gap: 15px;
}

.social-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icon img {
    width: 24px;
    height: 24px;
    transition: filter 0.3s ease;
}

.social-icon a:hover {
    transform: translateY(-3px);
    /* filter: drop-shadow(0 0 5px #00FFFF) brightness(0) invert(1) sepia(100%) ;
    color: blue; */
}

/* .social-icon a:hover img {
    filter: drop-shadow(0 0 5px #00FFFF) brightness(0) invert(1) sepia(100%) ;
} */

.hero p {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
    animation: fadeInUp 1s ease 0.5s both;
}

/* About Me Button */
/* About Me Button */
.about-btn {
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    background: #fff;
    color: #000000;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    /* Ensure it has a stacking context */
    z-index: 1003;
    /* Higher than particles and panel */
}


.about-btn:hover {
    background: #00c8ff;
    color: #080000;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.427);
}



/* About Me Panel */
.about-panel {
    position: fixed;
    top: 0;
    left: -100%;
    /* Start off-screen */
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #1582e1 0%, #00f2fe 100%);
    color: rgb(0, 0, 0);
    padding: 70px 20px;
    box-shadow: 5px 0 15px rgba(255, 255, 255, 0.3);
    transition: left 0.5s ease-in-out;
    z-index: 1002;
    overflow-y: auto;
}

.about-panel.active {
    left: 0;
    /* right: 0; */
}

.about-panel h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: left;
}

.about-panel p {
    color: #000506;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
}

.close-btn {
    position: absolute;
    top: 80px;
    right: 20px;
    background: none;
    border: none;
    color: rgb(0, 0, 0);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

/* Sections */
section {
    padding: 80px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

/* Education Timeline */
/* .timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 7px;
    background-color: #8a8888;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid #464646;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.hero3 h3{
    color: white;
}

.timeline-item:nth-child(odd)::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #000000;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #000000;
}

.timeline-item:nth-child(even)::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #040405;
    border-width: 10px 10px 10px 0;
    border-color: transparent #040405 transparent transparent;
}

.timeline-item:nth-child(even)::after {
    left: -16px;
} */

/* Projects Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.project {
    background: linear-gradient(#207cfc, #00f2fe);

    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.project h3 {
    margin-bottom: 15px;
    color: #000306;
}

.project p {
    color: rgb(0, 0, 0)
}

.project a {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: #000508;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.project a:hover {
    /* background: white; */
    background-color: black;

}

/* Skills */
.hero4 {
    color: #05cdff;
    height: 100vh;
    background: linear-gradient(135deg, #000803 0%, #000407 100%);
    justify-content: left;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 20px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* .skills h2 {
    color: aqua;
} */

.skill-item {
    width: 100px;
    height: 100px;
    perspective: 1000px;
}

/* .skill-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
} */

/* .skill-item:hover .skill-cube {
    transform: rotateY(180deg);
} */

/* .skill-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: rgb(0, 0, 0);
    border-radius: 10px;
}

.skill-front {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.skill-back {
    background: linear-gradient(135deg, #bd8bfa 0%, #e38eff 100%);
    transform: rotateY(180deg);
} */

/* Coding profiles */

.profiles {
    text-align: center;
    margin: 20px 0;
}

.profiles ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.profiles li {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profiles a {
    display: inline-block;
    text-decoration: none;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 50%;
    padding: 10px;
    transition: all 0.3s ease;
}

.profiles a:hover img {
    transform: scale(1.15);
}

.profiles img {
    width: 70px;
    height: 70px;
    transition: transform 0.2s;
    vertical-align: middle;
}

.profiles li {
    font-size: 0.9rem;
    margin-top: 10px;
    color: #05c8f9;
}

/* Certifications */
/* ...existing code... */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    justify-items: center;
    margin-top: 30px;
}

.cert-item {
    background: #101820;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(5, 205, 255, 0.1);
    color: #05cdff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
}

.cert-item p {
    margin: 0;
    font-size: 1rem;
    color: #05cdff;
}

.cert-item:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 24px rgba(5, 205, 255, 0.3);
    background: #16202a;
}
/* ...existing code... */

/* Achievements */
.achievements ul {
    list-style-type: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.achievements li {
    color: black;
    background: #f9f9f9;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.achievements li:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.614);
}

/* Contact Form */
.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.hero7 {
    color: #05cdff;
    height: 100vh;
    background: linear-gradient(135deg, #000803 0%, #000407 100%);
    justify-content: left;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 20px;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact input::placeholder,
.contact textarea::placeholder {
    font-family: 'Fira Code', 'Anonymous Pro', monospace;
    color: #b0b0b0;
    opacity: 1;
}

.contact button {
    padding: 10px 20px;
    background: #4facfe;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact button:hover {
    background: #3d8bfe;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #000000;
    color: white;
}

.social-icons {
    margin-top: 15px;
}


.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    /* color/ */
    color: #66acf3;
}

a:hover {
    /* color:#00c8ff; */
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #4facfe;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    background: #3d8bfe;
    transform: scale(1.1);
}

/* Dark Mode Toggle */
/* .dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
} */

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -300px;
        height: 100vh;
        background: rgba(25, 25, 25, 0.95);
        width: 250px;
        padding: 80px 20px 20px;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid #4facfe;
        border-width: 10px 10px 10px 0;
        border-color: transparent #4facfe transparent transparent;
    }

    .timeline-item::after {
        left: 15px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .about-panel {
        width: 100%;
    }
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    padding: 1rem;
}

.header-container>div {
    margin-top: 0rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid #515353;
    object-fit: cover;
    animation: bounce 1s infinite alternate;
    background-color: white;
    z-index: 100;
}

/* Bounce Animation */
@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

/* Particles.js container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

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

.animated-text-container {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #ffffff;
    /* Cursor effect */
    animation: typing 4s steps(40, end) forwards, blink 0.8s step-end infinite;
}

.skills {
    text-align: center;
    padding: 30px 0;
    background: #080808;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.skills-container {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.skills-wrapper {
    display: flex;
    animation: scrollSkills 15s linear infinite;
}

.skill-item {
    flex: 0 0 auto;
    margin: 0 20px;
    text-align: center;
    width: 120px;
}

.skill-item img {
    width: 70px;
    height: 70px;
}

.skill-item p {
    font-size: 14px;
    font-weight: bold;
}

/* Animation for smooth scrolling */
@keyframes scrollSkills {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Add these responsive styles to your existing CSS */

/* Base responsive adjustments for all screen sizes */
html {
    scroll-behavior: smooth;
}

/* Small screens (mobile phones) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .about-panel {
        width: 100%;
        padding: 60px 15px;
    }

    .about-panel p {
        font-size: 0.95rem;
    }

    section {
        padding: 60px 15px;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .project {
        padding: 15px;
    }

    .skill-item {
        width: 90px;
        height: 90px;
        margin: 0 10px;
    }

    .skill-item img {
        width: 50px;
        height: 50px;
    }

    .skill-item p {
        font-size: 12px;
    }

    .contact input,
    .contact textarea {
        padding: 8px;
    }

    .fab {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .profiles ul {
        flex-direction: column;
        gap: 15px;
    }
}

/* Medium screens (tablets) */
@media (min-width: 481px) and (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero2 {
        height: auto;
        min-height: 120vh;
        padding-bottom: 60px;
    }

    .profiles ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Make skills section responsive */
@media (max-width: 768px) {
    .skills-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        animation: none;
    }

    .skills-container {
        overflow: visible;
        white-space: normal;
    }

    .skills {
        white-space: normal;
        overflow: visible;
    }

    .skill-item {
        margin: 10px;
    }
}

/* Timeline fixes for small screens */
@media (max-width: 768px) {
    .timeline-item {
        left: 0 !important;
    }

    .timeline-item:nth-child(even)::before,
    .timeline-item:nth-child(odd)::before {
        left: 60px;
        border-width: 10px 10px 10px 0;
        border-color: transparent #040405 transparent transparent;
    }
}

/* Large screens (laptops and desktops) */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-wrapper {
        justify-content: center;
        flex-wrap: wrap;
        animation: none;
    }
}

/* Very large screens */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Fix for artifacts in animations */
.animated-text-container {
    animation: typing 3s steps(30, end) forwards, blink 0.8s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
}

@media (max-width: 480px) {
    .animated-text-container {
        white-space: normal;
        animation: fadeInUp 1s ease;
        border-right: none;
    }
}

/* Fix for hero sections on mobile */
@media (max-width: 768px) {

    .hero,
    .hero1,
    .hero2 {
        height: auto;
        min-height: 120vh;
        padding-top: 80px;
        padding-bottom: 60px;
    }
}

/* Improve contact form on mobile */
@media (max-width: 768px) {
    .contact form {
        gap: 15px;
    }

    .contact button {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }
}

/* Fix for footer on small screens */
@media (max-width: 480px) {
    footer {
        padding: 15px 10px;
    }

    .social-icons a {
        margin: 0 8px;
    }
}

/* Fix for About panel scrolling */
.about-panel {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Improve nav menu for tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .nav-links {
        width: 300px;
    }
}

/* Home page text responsive fixes */

/* Fix for animated text containers on small screens */
@media (max-width: 768px) {

    /* #, */
    #animatedSubtext {
        white-space: normal !important;
        /* Override the nowrap */
        width: 90% !important;
        /* Restrict width for better readability */
        max-width: 500px;
        overflow: visible !important;
        /* Allow text to wrap */
        animation: fadeInUp 1s ease !important;
        /* Replace typing animation with fade in */
        border-right: none !important;
        /* Remove cursor effect */
        text-align: center;
        margin: 0 auto;
        padding: 0 15px;
    }

    #animatedHeading {
        font-size: 2rem !important;
        line-height: 1.3;
        margin-top: 20px;
    }

    #animatedSubtext {
        font-size: 1rem !important;
        line-height: 1.5;
    }

    .animated-text-container {
        white-space: normal !important;
        width: auto !important;
        animation: fadeInUp 1s ease !important;
        border-right: none !important;
    }

    /* Ensure text is readable on very small screens */
    @media (max-width: 320px) {
        # {
            font-size: 1.7rem !important;
        }

        #animatedSubtext {
            font-size: 0.9rem !important;
        }
    }
}

/* Additional fixes for medium-sized screens */
  @media (min-width: 769px) and (max-width: 1024px) {
    #animatedHeading {
      font-size: 2.8rem !important;
      width: 100% !important;
    }
    
    #animatedSubtext {
      font-size: 1.3rem !important;
      width: 100% !important;
    }
  }
  
  /* Make sure the typing animation works properly on desktop */





/* styles.css */

/* styles.css */

/* body {
    background-color: black;
    margin: 10;
    padding: 10;
    /* font-family: Arial, sans-serif; */
/* } */

/* styles.css */

/* styles.css */

body {
    background-color: black;
    margin: 0;
    padding: 0;
    /* font-family: Arial, sans-serif; */
}

.hero4 {
    color: #05cdff;
    /* Aqua-ish color */
    height: 50vh;
    background: linear-gradient(135deg, #000803 0%, #000407 100%);
    justify-content: left;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 20px;
}

.skills {
    text-align: center;
    padding: 70px 0;
    background: #080808;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.skills h2 {
    color: #05cdff;
    /* Aqua-ish color for heading */
    margin-bottom: 20px;
    /* font-size: 2rem; */
    /* text-transform: uppercase; */
}

.skills-container {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    border: 2px solid #05cdff;
    /* Aqua-ish border */
    border-radius: 10px;
    box-shadow: 0 0 15px #05cdff,
        /* Aqua-ish glow in all directions */
        0 0 15px #05cdff inset;
    /* Inner glow */
    padding: 20px;
    /* Buffer from border */
    box-sizing: border-box;
}

.skills-wrapper {
    display: flex;
    animation: scrollSkills 20s linear infinite;
    /* Increased duration for smoother loop */
    width: max-content;
    /* Ensures wrapper width matches content */
}

.skill-item {
    flex: 0 0 auto;
    margin: 0 15px;
    text-align: center;
    width: 100px;
    height: 100px;
    perspective: 1000px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    /* Smooth flip transition */
}

.skill-item:hover {
    transform: rotateY(180deg);
    /* Flip on hover */
}

.skill-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 2px solid #05cdff;
    /* Aqua-ish border for each card */
    border-radius: 8px;
    box-shadow: 0 0 10px #05cdff;
    /* Aqua-ish box-shadow for each card */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skill-front {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    z-index: 2;
}

.skill-back {
    background: linear-gradient(135deg, #00ddeb 0%, #3a7bd5 100%);
    transform: rotateY(180deg);
    /* Back face starts flipped */
}

.skill-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.skill-item p {
    color: white;
    font-size: 14px;
    font-weight: bold;
    margin: 5px 0 0 0;
}

/* Animation for smooth, cyclic scrolling */
@keyframes scrollSkills {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Moves half the width for seamless loop */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-container {
        padding: 15px;
    }

    .skill-item {
        width: 80px;
        height: 80px;
        margin: 0 10px;
    }

    .skill-item img {
        width: 40px;
        height: 40px;
    }

    .skill-item p {
        font-size: 12px;
    }

    /* .skills h2 {
        font-size: 1.5rem;
    } */
}

/* Reset some basic elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: Arial, sans-serif;
} */

/* Navbar styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #000000;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00ffff;
    /* Change this to your preferred hover color */
}

.hover-effect {
    position: relative;
}

.hover-effect::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #00ffff;
    /* Change this to your preferred underline color */
    transition: width 0.3s ease;
}

.hover-effect:hover::after {
    width: 100%;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: relative;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -300px;
        /* Start off-screen */
        height: 100vh;
        background: #333;
        width: 250px;
        padding: 80px 20px 20px;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        left: 0;
        /* Slide in when active */
    }

    .nav-links li {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }
}

/* css styling for skills section */

body {
    background-color: black;
    margin: 0;
    padding: 0;
}

.hero4 {
    color: #05cdff;
    height: auto;
    min-height: 100vh;
    background: linear-gradient(135deg, #000803 0%, #000407 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.skills {
    text-align: center;
    background: #080808;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(5, 205, 255, 0.5);
}

.skills h2 {
    color: #05cdff;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.skills-category {
    margin-bottom: 40px;
}

.skills-category h3 {
    color: #05cdff;
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 1px solid #05cdff;
    padding-bottom: 10px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    justify-items: center;
}

.skill-item {
    background-color: #111;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    text-align: center;
    border: 1px solid #05cdff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(5, 205, 255, 0.7);
}

.skill-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-bottom: 10px;
}

.skill-item p {
    color: #05cdff;
    font-size: 14px;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }

    .skills {
        padding: 20px;
    }

    .skill-item {
        padding: 10px;
    }

    .skill-item img {
        width: 25px;
        height: 25px;
    }

    .skill-item p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }

    .hero4 {
        padding: 20px 10px;
    }

    .skills-category {
        margin-bottom: 30px;
    }

    .skills-category h3 {
        font-size: 16px;
    }
}

/* CSS for education */
/* Education Section Styling */
/* Education Section Styling */
.hero3 {
    /* margin: 30vh; */
    position: relative;
    color: #05cdff;
    min-height: 100vh;
    background: linear-gradient(135deg, #000803 0%, #000407 100%);
    padding: 40px 20px;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.education {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    background: rgba(8, 8, 8, 0.7);
    border-radius: 12px;
    /* Box shadow removed to eliminate outer border */
}

.education h2 {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    color: #05cdff;
    position: relative;
    padding-bottom: 12px;
}

/* .education h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: #05cdff;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px #05cdff;
} */

.education-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.edu-card {
    display: flex;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-left: 3px solid #05cdff;
    transition: transform 0.3s;
}

.edu-card:hover {
    transform: translateY(-3px);
}

.edu-icon {
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 205, 255, 0.15);
    color: #05cdff;
    font-size: 1.5rem;
}

.edu-content {
    flex: 1;
    padding: 15px;
}

.edu-year {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(5, 205, 255, 0.2);
    color: #05cdff;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.edu-card h3 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.edu-degree {
    color: #c5c5c5;
    margin-bottom: 12px;
    font-size: 1rem;
}

.gpa-label,
.score-label {
    display: block;
    color: #05cdff;
    margin-bottom: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.gpa-bar,
.score-bar {
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 6px;
}

.gpa-fill,
.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #0496ff, #05cdff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding-left: 8px;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 0 8px rgba(5, 205, 255, 0.4);
    transition: width 1s ease-in-out;
}

.edu-scores {
    margin-top: 12px;
}

.score-item {
    margin-bottom: 10px;
}

/* For Font Awesome icons - you'll need to include this library */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Animation for the score bars */
@keyframes fillBar {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.gpa-fill,
.score-fill {
    animation: fillBar 1.5s ease-out forwards;
}

/* Responsive design */
@media (max-width: 768px) {
    .edu-card {
        flex-direction: column;
    }

    .edu-icon {
        flex: 0 0 40px;
        width: 100%;
    }

    .education {
        padding: 20px;
    }

    .edu-content {
        padding: 12px;
    }

    .edu-card h3 {
        font-size: 1.1rem;
    }

    .edu-degree {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero3 {
        padding: 30px 15px;
        min-height: 70vh;
    }

    .education h2 {
        margin-bottom: 25px;
        font-size: 1.5rem;
    }

    .education-cards {
        gap: 20px;
    }

    .edu-card h3 {
        font-size: 1rem;
    }

    .edu-year {
        font-size: 0.75rem;
    }

    .gpa-label,
    .score-label {
        font-size: 0.8rem;
    }

    .gpa-fill,
    .score-fill {
        font-size: 0.75rem;
        padding-left: 6px;
    }

    .gpa-bar,
    .score-bar {
        height: 14px;
    }
}

/* upper github styling */

/* Base styling for the social icons container */
.social-icon {
    display: flex;
    gap: 15px;
    /* Space between icons */
    align-items: center;
}

/* Styling for each link */
.social-icon a {
    display: inline-block;
    transition: transform 0.3s ease;
    /* Smooth transition for hover effect */
}

/* Style for the images */
.social-icon img {
    width: 30px;
    /* Adjust size as needed */
    height: 30px;
    vertical-align: middle;
}

/* Hover effects */
.social-icon a:hover {
    transform: scale(1.2);
    /* Slightly enlarge on hover */
}

.social-icon a:hover img {
    filter: invert(82%) sepia(41%) saturate(7462%) hue-rotate(155deg) brightness(93%) contrast(101%);
    /* Aqua color */
}

/* achievement styling */