* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: rgb(0, 0, 33);
    color: #fefcfc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 75px;
    background-color: rgb(8, 8, 65);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    list-style: none;
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: rgb(186, 117, 250);
    transform: translateY(-3px);
}

.left {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgb(186, 117, 250);
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
}

/* Hero Section */
.firstSection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    min-height: 80vh;
    margin-bottom: 2rem;
}

.leftSection {
    width: 50%;
    font-size: 1.92rem;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid rgb(186, 117, 250);
    margin-bottom: 2rem;
    object-fit: cover;
    background-color: #1e2167;
}

.leftSection .buttons {
    padding: 30px 0;
}

.leftSection .btn {
    padding: 12px 24px;
    background: #1e2167;
    color: white;
    border: 2px solid rgb(186, 117, 250);
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.leftSection .btn:hover {
    background: rgba(186, 117, 250, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(186, 117, 250, 0.3);
}

.rightSection {
    width: 45%;
    display: flex;
    justify-content: center;
}

.rightSection img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 0 10px rgba(186, 117, 250, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.purple {
    color: rgb(186, 117, 250);
}

#element {
    color: rgb(186, 117, 250);
    min-height: 2em;
}

/* About Section */
.aboutSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 10%;
    background-color: rgba(30, 33, 103, 0.3);
    margin-bottom: 2rem;
}

.aboutSection h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.aboutSection h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: rgb(186, 117, 250);
}

.aboutContent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.aboutText {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
}
/* General Styles */
/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0a0f24;
    color: white;
}

/* About Section */
.aboutSection {
    text-align: center;
    padding: 50px 20px;
}

.aboutContent {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.aboutText {
    max-width: 500px;
}

/* Animation */
.animationContainer {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
}

/* Fade-in effect */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Technologies Section (Replacing Work Experience) */
.technologiesSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
}

.technologiesSection h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.technologiesSection h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: rgb(186, 117, 250);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-card:hover {
    transform: translateY(-10px);
    background: rgba(186, 117, 250, 0.1);
    box-shadow: 0 10px 25px rgba(186, 117, 250, 0.3);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgb(186, 117, 250);
}

.tech-name {
    font-weight: 600;
    text-align: center;
}

/* Projects Section */
.projectsSection {
    padding: 5rem 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(30, 33, 103, 0.3);
}

.projectsSection h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.projectsSection h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: rgb(186, 117, 250);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(186, 117, 250, 0.3);
}

.project-img {
    width: 100%;
    height: 200px;
    background-color: #1e2167;
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(186, 117, 250, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgb(186, 117, 250);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}


.project-link:hover {
    background: #1e2167;
}

/* Contact Section */
.contactSection {
    padding: 5rem 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contactSection h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.contactSection h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: rgb(186, 117, 250);
}

.contact-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}


.contact-form {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(186, 117, 250);
    box-shadow: 0 0 0 2px rgba(186, 117, 250, 0.2);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ff4136;
}

.error-message {
    color: #ff4136;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    padding: 0.8rem 2rem;
    background: rgb(186, 117, 250);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #1e2167;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(186, 117, 250, 0.3);
}

.submit-btn:disabled {
    background: rgba(186, 117, 250, 0.5);
    cursor: not-allowed;
}

.form-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-status.success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.form-status.error {
    background: rgba(255, 65, 54, 0.2);
    color: #ff4136;
    border: 1px solid #ff4136;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.5rem;
    color: rgb(186, 117, 250);
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}

.contact-item p {
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgb(186, 117, 250);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: rgb(8, 8, 65);
    padding: 3rem 5% 1rem;
    margin-top: auto;
}

.footer {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-first {
    width: 30%;
    margin-bottom: 2rem;
}

.footer-first h3 {
    color: rgb(186, 117, 250);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-first p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-second,
.footer-third,
.footer-fourth {
    width: 20%;
    margin-bottom: 2rem;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: rgb(186, 117, 250);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer ul li a i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.footer ul li a:hover {
    color: rgb(186, 117, 250);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: rgb(186, 117, 250);
    transform: translateY(-3px);
}

.footer-rights {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgb(186, 117, 250);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1e2167;
    transform: translateY(-5px);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Responsive CSS */
@media screen and (max-width: 1024px) {
    .leftSection, .rightSection {
        width: 100%;
    }
    .firstSection {
        flex-direction: column-reverse;
        padding: 2rem 5%;
    }
    .aboutContent {
        flex-direction: column;
    }
    .contact-container {
        flex-direction: column;
    }
    .footer-first,
    .footer-second,
    .footer-third,
    .footer-fourth {
        width: 45%;
    }
}

@media screen and (max-width: 768px) {
    nav .right {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background-color: rgb(8, 8, 65);
        transition: all 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    nav .right.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    nav ul li {
        margin: 1.5rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .footer-first,
    .footer-second,
    .footer-third,
    .footer-fourth {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .leftSection {
        font-size: 1.5rem;
    }
    .profile-image {
        width: 150px;
        height: 150px;
    }
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer {
        flex-direction: column;
    }
    .leftSection .buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .leftSection .btn {
        margin-right: 0;
        width: 100%;
        text-align: center;
    }
}