/* ========================
    Base Reset and Defaults
======================== */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    background-color: #fff0f6;
    color: #333;
    scroll-behavior: smooth;
}

a {
    color: #d65db1;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: #b04a8b;
}


/* ========================
    Header + Navigation
======================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #f3e8ff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 2rem 2rem;
    background: linear-gradient(to right, #f3e8ff, #fde2ff);
}

.header.shrink {
    padding: 0.7rem 2rem;
    background: linear-gradient(to right, rgba(243, 232, 255, 0.85), rgba(253, 226, 255, 0.85));
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    height: 90px;
    width: auto;
    transition: all 0.3s ease;
    animation: popIn 0.5s ease-out 0.4s forwards;
    padding-right: 15px;
}

.header.shrink .logo {
    height: 50px;
}

.logo:hover {
    transform: scale(1.05) rotate(-1deg);
    filter: brightness(1.1);
}

.site-title {
    font-size: 2rem;
    color: #5b2a86;
    font-weight: bold;
    animation: popIn 0.5s ease-out 0.4s forwards;
    font-family: 'Dancing Script', cursive;

}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.navbar a {
    text-decoration: none;
    color: #7a4b94;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #d65db1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #7a4b94;
    cursor: pointer;
}

.menu-close {
    display: none;
}

@keyframes popIn {
    0%   { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}

@keyframes slideDown {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}

/* ========================
    Hero Section
======================== */
.hero {
    padding: 17rem 1rem 4rem;
    text-align: center;
    background: linear-gradient(to right, #fde2ff, #f3e8ff);
    max-width: 100%;
    width: 100%;
    margin: 0;
}

.hero h1 {
    font-size: 2.5rem;
    color: #5b2a86;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.2rem;
    color: #7a4b94;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.typing-text {
    font-size: 2.5rem;
    color: #5b2a86;
    font-weight: 700;
}

.cursor {
    display: inline-block;
    background-color: #5b2a86;
    width: 2px;
    height: 1.5em;
    margin-left: 4px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}



/* ========================
    About Section
======================== */

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

.about {
    margin-top: 2rem;
    text-align: center;
    padding: 0 3.5rem;
}

.about h2 {
    color: #5b2a86;
    margin-bottom: 1rem;
}

.about p {
    font-size: 1.1rem;
    color: #7a4b94;
    line-height: 1.6;
    margin-bottom: 1rem;
}

section {
    scroll-margin-top: 120px;
}


/* ========================
    Skills Section
======================== */
.skills {
    background-color: #f9e6f7;
    padding: 3rem 2rem;
    max-width: 1100px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.skills-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.skills-category {
    flex: 1;
    min-width: 250px;
}

.skills h3 {
    color: #5b2a86;
    font-size: 1.2rem;
    border-bottom: 1px solid #e3c0f3;
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
}

.skills-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-category li {
    padding: 0.4rem 0;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.skills-category li i {
    color: #a844a1;
    margin-right: 0.5rem;
}


/* ========================
    Resume Button
======================== */
.resume-button {
    margin-top: 2.5rem;
    text-align: center;
}

.resume-button a {
    display: inline-block;
    background-color: #d65db1;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.resume-button a i {
    margin-right: 0.5rem;
}

.resume-button a:hover {
    background-color: #b04a8b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


/* ========================
    Projects Section
======================== */
.projects-section {

    padding: 4rem 1rem;
    font-family: 'Quicksand', sans-serif;
    color: #333;
    text-align: center;
}

.section-title {
    font-size: 2.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    color: #5e2b84;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #faf5ff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.project-info {
    padding: 1.2rem 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #a844a1;
}

.project-info p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.tech-stack {
    font-style: italic;
    color: #666;
}

.tech-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.8rem;
    font-size: 1.4rem;
    color: #a54cb3;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 0.7rem;
    flex-wrap: wrap;
}

.project-btn {
    background-color: #d65db1;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.project-btn:hover {
    background-color: #cd96b9;
    color: #b04a8b;
    transform: translateY(-2px);
}

.project-btn.secondary {
    background-color: #a844a1;
    color: white;
}

.project-btn.secondary:hover {
    background-color: #dca8dd;
    color: #803281;
}

.see-more-projects {
    margin-top: 2rem;
    text-align: center;
}

.see-more-projects a {
    display: inline-block;
    background-color: #a844a1;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.see-more-projects a:hover {
    background-color: #dca8dd;
    color: #5b2a86;
}

/* ===========================
    Contact and Footer Section
=========================== */

.footer-contact {
    background-color: #f3e8ff;
    padding: 1rem 1rem 0.8rem;
    color: #5b2a86;
    font-family: 'Quicksand', sans-serif;
    scroll-margin-top: 100px;
}

.footer-wrapper {
    max-width: 1150px;
    margin: 0 auto;
}

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

.footer-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.footer-logo {
    height: 180px;
    width: auto;
}

.social-icons {
    margin-top: 0;
    text-align: center;
}

.social-icons a {
    font-size: 1.4rem;
    color: #a844a1;
    margin: 0 1rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: #d65db1;
    transform: scale(1.2);
}

.footer-text {
    flex: 1;
    text-align: center;
}

.footer-text h2 {
    font-size: 1.6rem;
    color: #a844a1;
    margin-bottom: 0.6rem;
}

.footer-text p {
    font-size: 1rem;
    color: #5b2a86;
    line-height: 1.4;
}

/* Contact Form */
#contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 300px;
}

#contact-form input,
#contact-form textarea {
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #fff;
    font-family: 'Quicksand', sans-serif;
}

#contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

#contact-form button {
    background-color: #d65db1;
    color: white;
    padding: 0.7rem 1rem;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

#contact-form button:hover {
    background-color: #b04a8b;
    transform: translateY(-2px);
}

/* Form message feedback */
#form-message {
    margin-top: 0.6rem;
    font-weight: 500;
    color: #5b2a86;
}

#form-message.success {
    color: #2d8f55;
}

#form-message.error {
    color: #d64040;
}

.hidden {
    display: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
}

.footer-bottom hr {
    border: none;
    border-top: 1px solid #e0c4f6;
    margin-bottom: 0.6rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #7a4b94;
}

/* ========================
    Responsive Styles
======================== */
@media (max-width: 768px) {

    .logo-container {
        margin-right: 0;
    }
    .menu-toggle {
        display: block;
        margin-left: 1rem;
    }

    .navbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .navbar ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: #fde2ff;
        width: 200px;
        box-shadow: -2px 2px 8px rgba(0,0,0,0.1);
        border-radius: 0 0 0 8px;
    }
    
    .navbar ul li {
        border-bottom: 1px solid #f3e8ff;
    }
    
    .navbar ul li:last-child {
        border-bottom: none;
    }
    
    .navbar ul li a {
        display: block;
        padding: 0.5rem 1rem;
    }

    .navbar.open ul {
        display: flex;
    }

    .navbar ul .menu-close button {
        position: relative;
        top: 3.5rem;
    }

    .menu-close {
        display: flex;
        justify-content: flex-end;
        padding: 0 1rem;
        
    }
    .menu-close button {
        background: none;
        border: none;
        font-size: 1.6rem;
        color: #7a4b94;
        cursor: pointer;
    }
    
    .hero {
        padding-top: 15rem;
    }

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

    .hero p {
        font-size: 1rem;
    }
    
    .skills-title {
        text-align: center;
    }

    .skills-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .skills {
        margin-inline: 1rem;
    }

    .project-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.7rem;
        flex-direction: row !important;
    }
    
    .project-links .project-btn {
        flex: 0 1 auto;
        width: auto;
    }

    .project-links > .project-btn:only-child {
        flex: 1 1 100%;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        height: 100px;
    }

    #contact-form {
        width: 100%;
        max-width: 100%;
        align-items: center;
    }

    #contact-form button {
        align-self: center;
    }

    #contact-form input,
    #contact-form textarea {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .projects-section {
        padding: 3rem 1rem;
    }

    .project-btn {
        flex: 1 1 100%;
        text-align: center;
    }

    .project-links {
        flex-direction: column;
        align-items: stretch;
    }
}
