/* ===================================================
   GLOBAL STYLES AND RESET
   =================================================== */
* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for the entire page */
}

body {
    background-color: rgb(0, 0, 33);
    color: white;
    font-family: 'Poppins', sans-serif;
}

/* Common utility classes */
.purple {
    color: rgb(160, 91, 224);
}

.text-gray {
    color: gray;
    margin-bottom: 15px;
    display: block;
}

/* Common transition effects */
a, button, .btn, .project-card, .contact-card, .about-image img {
    transition: all 0.3s ease;
}

section {
    transition: opacity 0.5s ease;
}

/* ===================================================
   NAVIGATION STYLES
   =================================================== */
nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 80px;
    background-color: rgb(18, 18, 62);
    transition: all 0.4s ease;
}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    list-style-type: none;
    margin: 0 20px;
}

nav ul a {
    text-decoration: none;
    color: white;
}

nav ul a:hover {
    color: rgb(160, 91, 224);
    transform: translateY(-2px);
}

nav ul a.active {
    color: rgb(160, 91, 224);
    font-weight: 500;
}

.left {
    font-size: 1.7rem;
    font-weight: 600;
}

/* Make navbar fixed/sticky at the top */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensures navbar stays on top of other elements */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Add padding to body to prevent content from hiding behind navbar */
body {
    padding-top: 80px; /* Should match the height of your navbar */
}

/* Adjust the first section to account for fixed navbar */
.firstSection {
    margin-top: 30px; /* Reduced from previous value since we have padding on body */
}

/* Style for navbar when scrolled */
nav.scrolled {
    background-color: rgba(18, 18, 62, 0.95); /* Slightly transparent */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
    height: 70px; /* Slightly smaller when scrolled */
}

/* Enhanced styles for active navigation links */
nav ul li a {
    position: relative;
    padding: 5px 0;
}

/* Underline effect for active link */
nav ul li a.active {
    color: rgb(160, 91, 224);
    font-weight: 500;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: rgb(160, 91, 224);
    border-radius: 5px;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

/* Hover effect for non-active links */
nav ul li a:not(.active)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: rgb(160, 91, 224);
    border-radius: 5px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

nav ul li a:not(.active):hover::after {
    transform: scaleX(0.8);
}

/* Modern Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(160, 91, 224, 0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle:hover {
    background: rgba(160, 91, 224, 0.2);
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger to X animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .right {
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        background: rgba(18, 18, 62, 0.95);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .right.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .right ul {
        flex-direction: column;
        padding: 0.5rem 0;
        gap: 0;
    }
    
    .right ul li {
        margin: 0;
    }
    
    .right ul li a {
        display: block;
        padding: 0.75rem 1rem;
        margin: 0 0.5rem;
        border-radius: 4px;
        transition: all 0.2s ease;
    }
    
    .right ul li a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .right ul li a.active {
        background: rgba(160, 91, 224, 0.2);
    }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
    
    /* Home Section */
    .firstSection {
        margin: 40px 0;
        padding: 20px 3%;
    }
    
    .firstSection .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .LeftSection {
        order: 2;
        text-align: center;
        max-width: 100%;
    }
    
    .intro-text {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
        margin-bottom: 1.5rem;
    }
    
    .rightSection {
        order: 1;
        max-width: 100%;
    }
    
    .rightSection img {
        width: clamp(200px, 50vw, 300px);
        height: auto;
    }
    
    /* About Section */
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    /* Skills Section */
    .Secondsection {
        padding: 20px 3%;
    }
    
    .skills-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .analytics-icon {
        display: none;
    }
    
    .Secondsection h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .Secondsection h2 {
        font-size: clamp(1.1rem, 3.5vw, 1.4rem);
        margin-bottom: 0.75rem;
    }
    
    /* Projects Section */
    .project-card {
        min-width: 280px;
    }
    
    .project-icon {
        display: none;
    }
    
    /* Contact Section */
    .contact-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
}

/* ===================================================
   COMMON SECTION STYLES
   =================================================== */
main hr {
    border: 0;
    background: #9c97f1;
    height: 1.2px;
    margin: 22px 50px;
}

/* Section Header Layout */
.section-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.header-text {
    flex: 1;
}

.analytics-icon, .project-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    padding: 5px;
    opacity: 0.8;
    margin-left: 20px;
}

.analytics-icon {
    filter: brightness(0) invert(1); /* Makes icon white */
}

/* ===================================================
   HOME SECTION (FIRST SECTION)
   =================================================== */
.firstSection {
    margin: 110px 0;
    padding: 0 5%;
}

.firstSection .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.LeftSection {
    flex: 1;
    max-width: 500px;
}

.intro-text {
    font-size: clamp(1.8rem, 3.5vw, 2.3rem);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.rightSection {
    flex: 1;
    text-align: center;
    max-width: 400px;
}

.LeftSection .btn {
    padding: 12px 20px;
    background: #1e2167;
    color: white;
    border: 2.3px solid white;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.LeftSection .btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);  /* Makes icons white */
}

.LeftSection .buttons {
    padding: 50px 0;
}

.buttons .btn {
    text-decoration: none;
    margin-right: 15px;
    transition: transform 0.2s ease;
}

.buttons .btn:hover {
    transform: translateY(-2px);
}



.rightSection img {
    width: 80%;
}

#element {
    color: rgb(169, 112, 225);
}

/* ===================================================
   ABOUT SECTION
   =================================================== */
.about-section {
    max-width: 85vw;
    margin: 0 auto;
    padding: 40px 0;
}

.about-header h1 {
    font-size: 2.5rem;
    margin-top: 10px;
    margin-bottom: 0;
}

.about-header .text-gray {
    margin-bottom: 6px;
    font-size: 1.15rem;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgb(160, 91, 224);
    box-shadow: 0 0 20px rgba(160, 91, 224, 0.4);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

.about-content {
    flex: 2;
    min-width: 300px;
}

.about-cards {
    margin-bottom: 20px;
}

.about-card {
    background-color: rgb(18, 18, 62);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid rgb(160, 91, 224);
}

.about-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: rgb(160, 91, 224);
}

.about-text {
    line-height: 1.7;
    margin-bottom: 25px;
    color: #e0e0e0;
}

.about-section .btn {
    padding: 12px 20px;
    background: #1e2167;
    color: white;
    border: 2.3px solid white;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.about-section .btn:hover {
    transform: translateY(-2px);
    background-color: rgb(32, 36, 114);
}

/* ===================================================
   SKILLS SECTION
   =================================================== */
.Secondsection {
    padding: 40px 5%;
}

.Secondsection .container {
    max-width: 1200px;
    margin: 0 auto;
}

.Secondsection h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
}

.Secondsection h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}

/* Skills Container */
.skills-container {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.programming-skills,
.frameworks-tools,
.databases {
    flex: 1;
    max-width: 32%;
}

/* Responsive Skills Section */
@media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .programming-skills,
    .frameworks-tools,
    .databases {
        max-width: 100%;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .skills-container {
        gap: 1.5rem;
    }
    
    .skill-item {
        padding: 12px;
    }
    
    .skill-name {
        font-size: 0.95rem;
    }
    
    .skill-desc {
        font-size: 0.8rem;
    }
}

/* New skill item structure */
.skill-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgb(160, 91, 224);
}

.skill-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.skill-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.skill-name {
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.skill-desc {
    font-size: 0.85rem;
    color: #b0b0b0;
    line-height: 1.3;
}



/* ===================================================
   PROJECTS SECTION
   =================================================== */
.projects-section {
    max-width: 85vw;
    margin: 0 auto;
    padding: 40px 0;
    position: relative;
}

.projects-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    overflow-x: auto;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgb(160, 91, 224) rgba(255, 255, 255, 0.1);
    flex-wrap: nowrap; /* IMPORTANT: Prevent wrapping to make horizontal scroll work */
    justify-content: flex-start; /* Align items to the start */
    align-items: stretch; /* Make all cards the same height */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Scrollbar styling */
.projects-container::-webkit-scrollbar {
    height: 8px;
}

.projects-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.projects-container::-webkit-scrollbar-thumb {
    background: rgb(160, 91, 224);
    border-radius: 4px;
}

/* Project card base styles */
.project-card {
    background-color: rgb(18, 18, 62);
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    min-width: 300px;
    scroll-snap-align: start;
    flex: 0 0 auto;   /* Don't grow, don't shrink, use auto basis */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid rgb(160, 91, 224);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(160, 91, 224, 0.3);
}

.project-img {
    border-radius: 6px;
    overflow: hidden;
    height: 180px;
    margin-bottom: 15px;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: rgb(160, 91, 224);
}

.project-description {
    flex-grow: 1; /* Take up available space */
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
    color: #e0e0e0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tech span {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #e0e0e0;
}

/* Enhanced Project Buttons */
.project-links {
    display: flex;
    gap: 12px;
    margin-top: auto; /* Push buttons to the bottom of card */
}

.project-btn {
    padding: 10px 15px;
    font-size: 0.95rem;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border: none;
}

/* Style for Code button */
.project-links .btn:first-child {
    background: #2a2e6b;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-links .btn:first-child:hover {
    background: #343985;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Style for Live Demo button */
.project-links .btn:last-child {
    background: rgb(160, 91, 224);
    color: white;
    border: none;
}

.project-links .btn:last-child:hover {
    background: rgb(175, 116, 230);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(120, 60, 180, 0.3);
}

/* Button icons */
.project-links .btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-right: 8px;
    filter: brightness(0) invert(1); /* Make icons white */
}

/* Disabled button styles */
.project-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(160, 91, 224, 0.3) !important; /* Override hover states */
    box-shadow: none !important;
}

/* Add shine effect to buttons */
@keyframes shine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.project-links .btn:not(.disabled):hover {
    background-size: 200% 100%;
    animation: shine 1.5s infinite;
}

.project-links .btn:first-child:not(.disabled):hover {
    background-image: linear-gradient(90deg, #2a2e6b 0%, #3d42a5 50%, #2a2e6b 100%);
}

.project-links .btn:last-child:not(.disabled):hover {
    background-image: linear-gradient(90deg, rgb(160, 91, 224) 0%, rgb(190, 130, 245) 50%, rgb(160, 91, 224) 100%);
}

/* Coming soon styles */
.project-card.coming-soon {
    position: relative;
    overflow: hidden;
}

.project-card.coming-soon::before {
    content: "Coming Soon";
    position: absolute;
    top: 20px;
    right: -35px;
    background: rgb(160, 91, 224);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.project-card.coming-soon .project-img {
    filter: blur(1px);
}

.project-card.coming-soon .project-img img {
    opacity: 0.7;
}



/* Subtle arrow indicators at the edges */
.projects-container::before,
.projects-container::after {
    content: "→";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: rgb(160, 91, 224);
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.projects-container::before {
    content: "←";
    left: 15px;
}

.projects-container::after {
    right: 15px;
}

/* ===================================================
   CONTACT SECTION
   =================================================== */
.contact-section {
    padding: 40px 5%;
}

.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Contact Info Cards */
.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background-color: rgb(18, 18, 62);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    background-color: #1e2167;
}

.contact-card img {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: rgb(160, 91, 224);
}

.contact-card p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.contact-card a {
    color: rgb(160, 91, 224);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: white;
}

/* Contact Form */
.contact-form {
    flex: 2;
    min-width: 300px;
    background: rgba(18, 18, 62, 0.3);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(160, 91, 224, 0.1);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(160, 91, 224, 0.2);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    resize: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(160, 91, 224);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(160, 91, 224, 0.1);
    transform: translateY(-2px);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, rgb(160, 91, 224), rgb(120, 60, 180));
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: white;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(160, 91, 224, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn i {
    font-size: 18px;
    transition: all 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(3px) rotate(15deg);
}

.submit-btn.sending i {
    animation: fly 0.6s ease-out;
}

.submit-btn.sent i {
    animation: checkBounce 0.5s ease;
}

@keyframes fly {
    0% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(20px) rotate(25deg) scale(1.2); }
    100% { transform: translateX(100px) rotate(45deg) scale(0.8); opacity: 0; }
}

@keyframes checkBounce {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    50% { transform: scale(1.3) rotate(0deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent, rgba(255, 255, 255, 0.1));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.submit-btn:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(160, 91, 224, 0.5);
    background: linear-gradient(135deg, rgb(175, 110, 235), rgb(140, 80, 200));
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover::after {
    opacity: 1;
}

.submit-btn:active {
    transform: translateY(-3px) scale(0.98);
    transition: transform 0.1s ease;
    box-shadow: 0 12px 25px rgba(160, 91, 224, 0.4);
}

.submit-btn.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    animation: successPulse 0.6s ease;
}

.submit-btn.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    animation: errorShake 0.5s ease;
}

.form-submitted {
    animation: formSuccess 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===================================================
   FOOTER SECTION
   =================================================== */
footer {
    background-color: #0e0e1a;
    padding: 30px 0 0 0;
}

.footer {
    display: flex;
    padding: 0 110px 20px;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-first, .footer-second, .footer-third {
    width: 28%;
    min-width: 200px;
    margin-bottom: 20px;
}

/* Footer Profile Section */
.footer-profile {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid rgb(160, 91, 224);
    box-shadow: 0 0 10px rgba(160, 91, 224, 0.4);
}

.footer-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.footer-profile img:hover {
    transform: scale(1.1);
}

.footer-first h3 {
    color: rgb(160, 91, 224);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.footer-first p {
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* Footer Headings */
.footer-second h4, .footer-third h4 {
    color: rgb(160, 91, 224);
    margin-bottom: 15px;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
}

.footer-second h4::after, .footer-third h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: rgb(160, 91, 224);
}

/* Footer Links */
.footer ul {
    list-style-type: none;
}

.footer-second ul li {
    margin-bottom: 8px;
}

.footer-second ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-second ul li a:hover {
    color: rgb(160, 91, 224);
    transform: translateX(5px);
}

/* Footer Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: rgb(160, 91, 224);
    transform: translateY(-5px);
}

.social-icons a img {
    width: 20px;
    height: 20px;
    filter: none;
    opacity: 1;
}

/* Copyright Section */
.footer-rights {
    text-align: center;
    color: #888;
    padding: 15px 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 576px) {
    .left {
        font-size: 1.3rem;
    }
    
    .LeftSection {
        font-size: 1.5rem;
    }
    
    .buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .buttons .btn {
        font-size: 14px;
        padding: 10px 15px;
        margin: 0;
    }
    
    .project-card {
        min-width: 260px;
    }
    
    .about-image img {
        max-width: 200px;
    }
    
    .section-header h1 {
        font-size: 1.8rem;
    }
    
    /* Footer */
    .footer {
        padding: 0 30px 20px;
        flex-direction: column;
    }
    
    .footer-first, .footer-second, .footer-third {
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer-profile {
        margin: 0 auto 15px;
    }
    
    .footer-second h4::after, .footer-third h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .firstSection {
        margin: 40px 15px;
    }
    
    .LeftSection {
        font-size: 1.3rem;
    }
    
    .project-card {
        min-width: 240px;
        padding: 15px;
    }
    
    main hr {
        margin: 22px 20px;
    }
}

@media (min-width: 1200px) {
    /* For desktop, you might want to show a hint that there's horizontal scrolling */
    .projects-section::after {
        content: "← scroll →";
        display: block;
        text-align: center;
        margin-top: 15px;
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.9rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 1500px) {
    .projects-container::before,
    .projects-container::after {
        display: none;
    }
}

@keyframes formSuccess {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}
/* ===================================================
   DOWNLOAD ANIMATION STYLES - CLEAN & SMOOTH
   =================================================== */

/* Download spinner - minimal and elegant */
.download-spinner {
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-top: 1.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    animation: smoothSpin 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

@keyframes smoothSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Downloading state - subtle and professional */
.btn.downloading {
    background: linear-gradient(135deg, #1a1f5c 0%, #242968 100%);
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(26, 31, 92, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn.downloading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Success state - clean celebration */
.btn.download-success {
    background: linear-gradient(135deg, #16a085 0%, #27ae60 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 160, 133, 0.3) !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Checkmark - simple and clean */
.download-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #16a085;
    border-radius: 50%;
    font-weight: 600;
    font-size: 10px;
    margin-right: 8px;
    animation: checkPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkPop {
    0% { 
        transform: scale(0) rotate(180deg); 
        opacity: 0; 
    }
    80% { 
        transform: scale(1.1) rotate(10deg); 
        opacity: 1; 
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1; 
    }
}

/* Smooth state transitions */
.btn.downloading,
.btn.download-success {
    pointer-events: none;
    user-select: none;
}

/* Enhanced hover states with smooth transitions */
.btn.downloading:hover,
.btn.download-success:hover {
    transform: translateY(-2px);
    cursor: default;
}

/* Progress text animation */
.btn.downloading {
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Remove any conflicting transitions during animation */
.btn.downloading *,
.btn.download-success * {
    transition: none;
}

/* Subtle pulse effect for downloading state */
.btn.downloading {
    animation: subtlePulse 2.5s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { 
        box-shadow: 0 4px 12px rgba(26, 31, 92, 0.25);
    }
    50% { 
        box-shadow: 0 6px 16px rgba(26, 31, 92, 0.35);
    }
}