:root {
    --primary-color: #e83f8e;
    --secondary-color: #ff85a2;
    --accent-color: #ffcce6;
    --text-color: #4a4a4a;
    --bg-color: #fff5f9;
    --card-color: #ffffff;
    --shadow: 0 5px 15px rgba(232, 63, 142, 0.15);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gradient: linear-gradient(135deg, #e83f8e 0%, #ff85a2 100%);
    --section-padding: 80px 0;
}

[data-theme="dark"] {
    --primary-color: #a55eea;
    --secondary-color: #7f5af0;
    --accent-color: #5f27cd;
    --text-color: #ffffff;
    --bg-color: #0b0c2a;
    --card-color: #1a1c3a;
    --shadow: 0 0 20px rgba(138, 43, 226, 0.5);
    --gradient: linear-gradient(135deg, #8a2be2 0%, #ff5eae 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
    transition: var(--transition);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Particles background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: var(--bg-color);
    opacity: 0.8;
}

/* Navigation */
#nav {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    z-index: 1000;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
    right: 0;
}

/* Sections */
.section {
    min-height: 100vh;
    padding: var(--section-padding);
    display: flex;
    align-items: center;
    position: relative;
}

.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 42px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Home Section */
#home {
    text-align: center;
}

.title-group {
    max-width: 800px;
    margin: 0 auto;
}

.main-title {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.subtitle {
    font-size: 28px;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.intro-text {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.name {
    color: var(--primary-color);
    position: relative;
}

.name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-icons a {
    color: var(--text-color);
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(232, 63, 142, 0.3);
}

.cta-btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--gradient);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(232, 63, 142, 0.3);
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(232, 63, 142, 0.4);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.personal-info {
    margin-top: 30px;
}

.personal-info p {
    margin-bottom: 10px;
    font-size: 16px;
}

.personal-info span {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 10px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.profile-img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-category {
    background: var(--card-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 22px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    display: block;
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
    position: relative;
}

.skill-level::after {
    content: attr(data-level);
    position: absolute;
    right: 10px;
    top: -25px;
    font-size: 12px;
    color: var(--text-color);
}

/* Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background-color: var(--card-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(232, 63, 142, 0.2);
}

.project-img-container {
    position: relative;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    color: white;
    margin-bottom: 10px;
    text-align: center;
}

.project-overlay p {
    color: #ddd;
    text-align: center;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.project-tags span {
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.project-links {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 16px;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-color);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.contact-form {
    background: var(--card-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
    font-size: 16px;
    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-color);
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -20px;
    left: 0;
    font-size: 14px;
    color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-top: 20px;
}

.contact-info {
    background: var(--card-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 24px;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-social {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.contact-social a {
    color: var(--text-color);
    font-size: 24px;
    transition: var(--transition);
}

.contact-social a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    background: var(--card-color);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.footer p {
    font-size: 16px;
    color: var(--text-color);
}

/* Theme Switch */
.theme-switch-wrapper {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked + .slider {
    background: var(--gradient);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

#toggle-icon {
    margin-right: 10px;
    font-size: 20px;
    color: var(--text-color);
}

/* Scroll Effects */
[data-aos] {
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Responsiveness */
@media (max-width: 992px) {
    .main-title {
        font-size: 48px;
    }
    
    .subtitle {
        font-size: 24px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    #nav {
        flex-wrap: wrap;
        gap: 15px;
        padding: 10px;
        width: 95%;
    }
    
    .nav-link {
        font-size: 16px;
    }
    
    .main-title {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .project-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .theme-switch-wrapper {
        top: 15px;
        right: 15px;
    }
    
    .main-title {
        font-size: 30px;
    }
    
    .intro-text {
        font-size: 16px;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .cta-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}