
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    background-color: #0a041c; 
    color: #f0f0f0; 
    overflow-x: hidden;
}

body.no-scroll {
    overflow-y: hidden;
}


a {
    text-decoration: none;
    color: #04ddfa; /* Cyan for links */
    transition: color 0.3s ease, transform 0.2s ease;
    
}

a:hover {
    color: #04ddfa;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #f0f0f0;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.5em; }

p {
    margin-bottom: 1em;
    color: #e0e0e0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    
    padding: 0 20px;
}

/* --- Animation Keyframes --- */
@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.1; transform: scale(0.7); }
    20% { opacity: 0.5; }
    50% { opacity: 1; transform: scale(1); }
    80% { opacity: 0.5; }
}

@keyframes moveBlob1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(15vw, 10vh) scale(1.3); opacity: 0.7; }
}

@keyframes moveBlob2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(-10vw, -15vh) scale(1.2); opacity: 0.4; }
}

@keyframes moveBlob3 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    100% { transform: translate(10vw, -10vh) scale(0.9); opacity: 0.6; }
}

/*Animation for typing cursor */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.text-center {
    text-align: center;
}

.lead {
    font-size: 1.4em;
    font-weight: 400;
    margin-bottom: 1.5em;
    color: #dbdbdb;
   
}

.lead-sm {
    font-size: 1.1em;
    margin-bottom: 1em;
    color: #c0c0c0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    color: #ffffff;
}

.btn-primary {
    background: transparent;
    border: 1px solid;
    border-radius: 10px;
    border-image: linear-gradient(90deg, #04ddfa, #b62cdc) 1;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
   border: 1px solid #04ddfa;
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}


/*Header & Navbar */
#main-header {
   backdrop-filter: blur(8px);
   -webkit-backdrop-filter: blur(8px); 
   background-color: rgba(10, 4, 28, 0.7); /* MODIFIED: Uncommented and set for desktop */
   color: #ffffff;
   padding: 0 20px;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 70px;
   z-index: 1000;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
   display: flex;
   align-items: center;
   transition: height 0.3s ease, background-color 0.3s ease;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: #fefefe;
}

#logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: #ffffff;
}

#logo a:hover {
    background: linear-gradient(90deg, #04ddfa, #d6f6fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#navbar {
    position: relative;
}

#navbar ul {
    display: flex;
    align-items: center;
}

#navbar ul li {
    margin-left: 25px;
}

#navbar ul li a {
    color: #ffffff;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

#navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #04ddfa, #dcd8dc);
    transition: width 0.3s ease;
    border-radius: 2px;
}

#navbar ul li a:hover::after,
#navbar ul li a.active::after {
    width: 100%;
}

#navbar ul li a:hover {
    color: #ffffff;
}

/* HAMBURGER MENU STYLES START */
.hamburger-menu {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

#navbar.nav-open .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#navbar.nav-open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

#navbar.nav-open .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.page-section {
    padding-top: calc(70px + 50px);
    padding-bottom: 80px;
    min-height: 80vh;
    position: relative;
}

.wavy-divider-wrapper {
  width: 100%;
  line-height: 0;
}

.wavy-divider-svg {
  display: block;
  width: 100%;
}


.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
    color: #f0f0f0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 230px;
    height: 1px;
    background: linear-gradient(90deg, #04ddfa, #f40fdd);
    border-radius: 2px;
}

.section-title-custom {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
    color: #f0f0f0;
}

.section-title-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 170px;
    height: 1px;
    background: linear-gradient(90deg, #04ddfa, #f40fdd);
    border-radius: 2px;
}


/*Hero Section */
#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(#230f27, #0B0D2A);
}

.full-height-section {
    min-height: 100vh;
}

.gradient-decor-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
}

.blob-1 {
    width: 60vw;
    height: 50vh;
    background: radial-gradient(circle, rgba(48, 248, 176, 0.4) 0%, transparent 65%);
    top: -15vh;
    left: 30vw;
    animation: moveBlob1 25s infinite alternate ease-in-out;
}

.blob-2 {
    width: 50vw;
    height: 40vh;
    background: radial-gradient(circle, rgba(200, 48, 248, 0.35) 0%, transparent 65%);
    top: 20vh;
    left: 45vw;
    animation: moveBlob2 30s infinite alternate ease-in-out;
    animation-delay: -7s;
}

.blob-3 {
    width: 55vw;
    height: 45vh;
    background: radial-gradient(circle, rgba(48, 112, 248, 0.3) 0%, transparent 70%);
    top: 40vh;
    left: 20vw;
    animation: moveBlob3 28s infinite alternate ease-in-out;
    animation-delay: -14s;
}

#hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

#hero h1 {
    font-size: 3.8em;
    margin-bottom: 0.2em;
    color: #f0f0f0;
    opacity: 0;
    animation: fadeInSlideUp 1s ease-out 0.5s forwards;
}

#hero .highlight {
    background: linear-gradient(90deg, #04ddfa, #b62cdc, #e5e5e5, #04ddfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: textShimmer 4s linear infinite;
}

#hero .lead { 
    font-size: 1.7em;
    margin-top: 1em;
    margin-bottom: 2em;
    color: #dcdbdb; 
    opacity: 0;
    animation: fadeInSlideUp 1s ease-out 0.9s forwards;
    max-width: 100%; 
    margin-left: auto;
    margin-right: auto;
}

.cursor-element {
    display: inline-block;
    background-color: #dcdbdb; 
    width: 2px; 
    height: 1.1em; 
    margin-left: 2px;
    animation: blink 0.7s infinite;
    vertical-align: baseline; 
    position: relative;
    top: 0.05em; 
}


.btn-hero-cta {
    display: inline-block;
    background-color: transparent;
    border: 2px solid rgba(170, 170, 220, 0.4);
    color: #e0e0e0;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    margin-top: 2.5em;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    opacity: 0;
    animation: fadeInSlideUp 1s ease-out 1.2s forwards;
}

.btn-hero-cta:hover {
    background-color: rgba(170, 170, 220, 0.1);
    border-color: rgba(200, 200, 255, 0.7);
    color: #fff;
    transform: translateY(-2px);
}

.btn-hero-cta i {
    margin-left: 10px;
    font-size: 0.9em;
    position: relative;
    top: -1px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    color: #f0f0f0;
    opacity: 0;
    animation: bounce 2s infinite 1.5s, fadeInSlideUp 1s ease-out 1.5s forwards;
    z-index: 2;
    transition: transform 0.3s ease, color 0.3s ease;
}

.scroll-down:hover {
    color: #04ddfa;
}

#hero .stars-container,
#contact .stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background-color: #f0f0f0;
    border-radius: 50%;
    opacity: 0;
    animation-name: twinkle;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    box-shadow: 0 0 3px rgba(240, 240, 240, 0.7), 0 0 6px rgba(240, 240, 240, 0.3);
}

/*About Me Section */
#about {
    background: linear-gradient(to bottom, #0B0D2A, #0a041c);
}

#about .section-title-custom {
    color: #f0f0f0;
}

#about p {
    color: #fefefe;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    border-radius: 50%;
    max-width: 250px;
    box-shadow: 0 8px 25px rgba(10, 4, 28, 0.2);
    border: 5px solid #ffffff;
}

/*Projects Section */
#projects {
    background-color: #0a041c;
}

.projects-list .project-item {
    display: flex;
    background-color: #0a041c;
    border-radius: 12px;
    margin-bottom: 110px;
    border: 1px solid #ffffff8a;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(30px);
}

.projects-list .project-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.projects-list .project-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(4, 221, 250, 0.2);
}

.project-item-image { 
    width: 480px;
    height: 270px; 
    overflow: hidden;
    border-radius: 8px 0 0 8px; 
}

.project-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-item-content {
    flex: 1; 
    padding: 20px 30px;
    display: flex;
    flex-direction: column; 
    max-width: 600px; 
    max-height: 270px;
}

.project-item:not(.project-item-reversed) .project-item-image {
    border-right: 1px solid #ffffff44; /* Separator line */
}

.project-item-content h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.project-repo-icon:hover {
    color: #f374de;
}

.project-description {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 10px; 
    color: #c0c0c0;
}

.project-tags {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto; 
}

.project-tags .tag {
    background-color: #0a041c;
    color: #f0f0f0;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    border: 1px solid #f374de88;
}

.project-links a {
    color: #f0f0f0;
    margin-right: 15px;
    margin-bottom: 10px;
    font-size: 0.95em;
    font-weight: 600;
    padding: 10px 18px;
    border: 1px solid #04ddfa;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.project-links a:hover {
    background-color: #04ddfa;
    color: #0a041c;
    transform: translateY(-1px);
}

.project-links i {
    margin-right: 8px;
}

.project-item-reversed {
    flex-direction: row-reverse;
}

.project-item-reversed .project-item-image {
    border-right: none;
    border-left: 1px solid #ffffff44;
    border-radius: 0 8px 8px 0;
}

/* Skills Section */
#skills {
    background-color: #0a041c;
}

.skills-list-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.skills-carousel-track {
    display: flex;
    width: calc( (110px + 35px) * 14 );
    animation: scrollCarousel 25s linear infinite;
}

.skills-list-container:hover .skills-carousel-track {
    animation-play-state: paused;
}

@keyframes scrollCarousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc( (110px + 35px) * -7 )); }
}

.skill-item-showcase {
    display: flex; 
    flex-direction: column; 
    align-items: center;
    gap: 12px; 
    min-width: 110px;
    text-align: center; 
    padding: 15px;
    background-color: #0a041c33; 
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent; 
    margin-right: 35px;
}

.skill-item-showcase:last-child { margin-right: 0; }
.skill-item-showcase:hover {
    background-color: #0a041c88; transform: translateY(-5px); border-color: #ffffff;
}

.skill-item-showcase .skill-icon, .skill-item-showcase .custom-svg-icon {
    font-size: 3.2em; color: #04ddfa;
}

.skill-item-showcase .custom-svg-icon { width: 52px; height: 52px; fill: #04ddfa; }
.skill-item-showcase span { font-size: 1em; color: #f0f0f0; font-weight: 600; }

/* Contact Section */
#contact {
    background-color: #0a041c;
    position: relative;
}

#contact .container {
    position: relative;
    z-index: 1;
}

#contact-form {
    max-width: 700px; margin: 0 auto 40px auto;
    background: rgba(10, 4, 28, 0.85); padding: 40px;
    border-radius: 12px; border: 1px solid #ffffffe0;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.form-group { 
    margin-bottom: 25px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: #f0f0f0; 
}

.form-group input[type="text"], .form-group input[type="email"], .form-group textarea {
    width: 100%; 
    padding: 14px; 
    border: 1px solid #ffffff94;
    border-radius: 8px; 
    font-family: 'Open Sans', sans-serif; 
    font-size: 1em;
    background-color: #0a041cbb; 
    color: #f0f0f0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea { 
    resize: vertical; 
    min-height: 120px; 
}

.form-group input:focus, .form-group textarea:focus {
    outline: none; 
    border-color: #ffffff;
}

#contact-form button[type="submit"] { 
    display: block; 
    width: 100%; 
    padding: 15px; 
    font-size: 1.1em; 
}

.contact-info { 
    text-align: center; 
    margin-top: 40px; 
}

.contact-info p { 
    margin-bottom: 0.5em; 
    font-size: 1.1em; 
    color: #f0f0f0; 
}

.contact-info a { 
    color: #04ddfa; 
}

.contact-info a:hover { 
    color: #8aecf9;
 }

/*Footer*/
#main-footer {
    background: linear-gradient(#0B0D2A, #2d1333);
    color: #c0c0c0;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #dddbdb;
}

#main-footer .footer-content {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 15px;
}

.social-icons-footer a {
    font-size: 1.6em; 
    margin: 0 12px; 
    color: #ffffff;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons-footer a:hover { 
    color: #04ddfa; 
    transform: translateY(3px) scale(1.3);
 }

#main-footer p { 
    margin: 0; 
    color: #c0c0c0; 
}

/*Responsive*/
@media (max-width: 992px) { /* Tablet */
    .project-item-image { 
        flex: 0 0 40%; 
        max-width: 40%; 
    }

    .project-item-content { 
        padding: 25px; 
    }

    .project-item-content h3 { 
        font-size: 1.6em; 
    }

    #hero h1 { 
        font-size: 3.5em; 
    }

    #hero .lead { 
        font-size: 1.4em; 
        max-width: 90%;
    } 

    .blob-1 { width: 70vw; height: 70vh; filter: blur(100px); }
    .blob-2 { width: 60vw; height: 60vh; filter: blur(100px); }
    .blob-3 { width: 65vw; height: 65vh; filter: blur(100px); }
}

@media (max-width: 768px) { 
    html { 
        scroll-padding-top: 60px; 
    } 

    .page-section { 
        padding-top: calc(60px + 30px); 
    }

    #hero { 
        padding-top: 60px; 
    } 

    h1 { 
        font-size: 2.2em; 
    }

    #hero h1 { 
        font-size: 2.8em; 
    }

    #hero .lead { 
        font-size: 1.3em; 
    } 

    .section-title, .section-title-custom { 
        font-size: 2em; 
        margin-bottom: 40px;
     }

    .section-title::after, .section-title-custom::after { 
        width: 120px; 
        height: 1px; 
    }

    #main-header {
        height: 60px; 
        background-color: rgba(10, 4, 28, 0.7); 
    }

    #main-header .container {
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        height: 100%; 
    }

    #logo { 
        margin: 0; 
    }
    
    /* HAMBURGER MENU  */
    .hamburger-menu {
        display: block; 
    }

    .project-links{
        margin-bottom: 20px;
    }

    #navbar ul {
        display: none; 
        flex-direction: column;
        position: fixed;
        top: 60px; 
        left: 0;
        width: 100%;
        height: calc(100vh - 60px); 
        background-color: rgba(10, 4, 28, 0.7); 
        backdrop-filter: blur(8px); 
        -webkit-backdrop-filter: blur(8px); 
        padding-top: 30px;
        align-items: center;
        justify-content: flex-start;
        overflow-y: auto;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    #navbar.nav-open ul { 
        display: flex;
        transform: translateX(0);
    }

    #navbar ul li { 
        margin: 15px 0;
        margin-left: 0;
        width: 80%;
        text-align: center;
    }
    
    #navbar ul li a { 
        font-size: 1.2em;
        padding: 10px;
        display: block;
    }

    #navbar ul li a::after { 
        display: none; 
    } 
    
    .about-content { 
        flex-direction: column; 
    }

    .about-image img { 
        max-width: 200px; 
        margin-top: 20px; 
    }

    .projects-list .project-item,
    .projects-list .project-item-reversed {
        flex-direction: column;
    }

    .project-item-image {
        flex: 0 0 auto;
        max-width: 100%;
        height: 250px;
        border-right: none !important;
        border-left: none !important;
    }

    .project-item-image img {
        border-right: none;
        border-left: none;
        border-bottom: 1px solid rgba(120, 29, 91, 0.4);
    }

    .project-item-reversed .project-item-image img {
         border-bottom: 1px solid rgba(120, 29, 91, 0.4);
    }

    .project-item-content { 
        padding: 20px; 
    }

    .skills-showcase-container { 
        gap: 20px; 
    }

    .skill-item-showcase { 
        min-width: 90px; 
        padding: 10px; 
        margin-right: 20px; 
    }

    .skill-item-showcase .skill-icon, .skill-item-showcase .custom-svg-icon { 
        font-size: 2.8em;
    }

    #contact-form { 
        padding: 30px; 
    }

    .blob-1 { width: 80vw; height: 70vh; top: -10vh; left: 10vw; filter: blur(80px); }
    .blob-2 { width: 70vw; height: 60vh; top: 15vh; left: 20vw; filter: blur(80px); }
    .blob-3 { width: 75vw; height: 65vh; top: 35vh; left: 5vw; filter: blur(80px); }
}

@media (max-width: 480px) { /* Small Mobile */
    #hero h1 { 
        font-size: 2.2em; 
    }

    #hero .lead { 
        font-size: 1.2em; 
    }

    .project-item-content h3 { 
        font-size: 1.4em; 
    }

    .project-tags .tag { 
        font-size: 0.8em; padding: 6px 10px; 
    }

    .project-links a {
        font-size: 0.9em; padding: 8px 15px;
        display: block; margin-right: 0; margin-bottom: 10px; text-align: center;
    }

    .project-links a:last-child { 
        margin-bottom: 0; }

    #contact-form { 
        padding: 25px; 
    }

    .btn { 
        padding: 12px 20px; 
        font-size: 0.95em; 
    }

    .blob-1 { width: 100vw; height: 60vh; filter: blur(60px); }
    .blob-2 { width: 90vw; height: 50vh; filter: blur(60px); }
    .blob-3 { width: 95vw; height: 55vh; filter: blur(60px); }
}
