:root {
    --primary-cyan: #00bcd4;
    --primary-blue: #2196f3;
    --accent-orange: #ff9800;
    --accent-pink: #e91e63;
    --success-green: #4caf50;
    --warning-yellow: #ffc107;
    --light: #ffffff;
    --light-gray: #f5f7fa;
    --medium-gray: #e4e8ed;
    --dark-gray: #6c757d;
    --text: #333333;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

a {
    color: #6c757d;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--text);
    overflow-x: hidden;
    position: relative;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(248, 254, 255, 0.9);
    backdrop-filter: blur(5px);
    /* box-shadow: 0 2px 10px var(--shadow); */
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-pink);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-cyan);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}


#checkbox {
    display: none;
}

.toggle {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition-duration: .5s;
}

.bars {
    width: 50%;
    height: 3px;
    background-color: var(--primary-cyan);
    border-radius: 4px;
}

#bar2 {
    transition-duration: .8s;
}

#bar1,
#bar3 {
    width: 60%;
}

#checkbox:checked+.toggle .bars {
    position: absolute;
    transition-duration: .5s;
}

#checkbox:checked+.toggle #bar2 {
    transform: scaleX(0);
    transition-duration: .5s;
}

#checkbox:checked+.toggle #bar1 {
    width: 60%;
    transform: rotate(45deg);
    transition-duration: .5s;
}

#checkbox:checked+.toggle #bar3 {
    width: 60%;
    transform: rotate(-45deg);
    transition-duration: .5s;
}

#checkbox:checked+.toggle {
    transition-duration: .5s;
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    background-color: #00bbd405;
    backdrop-filter: blur(1px);
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary-cyan);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--primary-cyan);
    color: var(--light);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--primary-cyan);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-cyan);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-cyan);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--primary-cyan);
    color: var(--light);
}

/* Sections */
section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-orange);
    border-radius: 2px;
}

/* About Section */
.about {
    background: #f6cde805;
    backdrop-filter: blur(2px);
}

.about .section-title h2 {
    color: var(--accent-pink);
}

.about-content {
    display: grid;
    grid-template-columns: 40% 60%;
    margin: 10px 6rem;
    gap: 3rem;
    align-items: center;
}

.about-img {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px var(--shadow);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.about-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    /* background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(0, 188, 212, 0.2) 100%); */
    z-index: 1;
    border-radius: 15px;
}

.about-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--dark-gray);
}

/* Skills Progress Bars */
.skills-container {
    margin: 2rem 0px;
    overflow: hidden;
}

.skill {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 500;
}

.skill-percentage {
    color: var(--primary-blue);
    font-weight: 600;
}

.progress-bar {
    height: 10px;
    width: 95%;
    background-color: var(--medium-gray);
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* Projects Section */
.projects {
    background-color: #40ff000b;
    backdrop-filter: blur(1px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.project-card {
    position: relative;
    height: 370px;
    perspective: 1000px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px var(--shadow);
    text-align: center;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.project-card:hover .card-inner,
.project-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.card-front {
    background-color: var(--light);
    display: block;
    padding: 10px;
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.card-back p {
    font-size: 15px;
}

.project-front-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.language-tag {
    background-color: var(--primary-cyan);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-back {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    color: var(--light);
    transform: rotateY(180deg);
    text-align: left;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.project-links a {
    color: var(--light);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.project-links a:hover {
    color: var(--dark-gray);
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background-color: #046ec60a;
    backdrop-filter: blur(5px);
    border-radius: 10px;
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.1rem;
    color: var(--light);
}

.contact-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-text p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.contact-form {
    flex: 1;
    /* background-color: #055aa003; */
    background-color: #046ec60a;
    backdrop-filter: blur(7px);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 10px var(--shadow);
}

.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background-color: var(--light);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 0.7rem;
    background-color: var(--primary-cyan);
    color: var(--light);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

/* Footer */
footer {
    background-color: var(--text);
    color: var(--light);
    padding: 1rem 5%;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-cyan);
    transform: translateY(-5px);
}

.copyright {
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {

    .about-content {
        grid-template-columns: 1fr;
        margin: 10px 2rem;
        gap: 2rem;
    }

    .contact-content {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        height: 100vh;
        top: 59px;
        right: -100%;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        transition: all 0.5s ease;
    }


    .nav-links.active {
        right: 0;
        background-color: rgba(248, 254, 255, 0.957);
    }

    .hero h1 {
        font-size: 2.3rem;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.4rem;
    }

    .hero {
        height: 100vh;
    }

    .hero-content {
        margin-top: 20%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p,
    p {
        font-size: 14px;
    }

    .action {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 20px;
    }

    .btn {
        display: block;
        width: 100%;
        padding: 10px;
    }

    .action a {
        font-size: 12px;
    }

    .btn-outline {
        margin-left: 0;
    }

    .about-content {
        margin: 10px;
        display: block;
    }

    .about-img {
        max-width: 280px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card h3 {
        font-size: 1.1rem;
    }

    .card-back p {
        font-size: 12px;
    }

    .contact-text p {
        font-size: 14px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}