:root {
    --primary-color: #00ff9d;
    --secondary-color: #0a192f;
    --accent-color: #64ffda;
    --text-color: #ffffff;
    --dark-bg: #020c1b;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(2, 12, 27, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5em;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    padding: 5px;
    transition: all 0.3s ease;
}

.nav-toggle .menu-icon,
.nav-toggle .close-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.nav-toggle .close-icon {
    opacity: 0;
    visibility: hidden;
}

.nav-toggle.active .menu-icon {
    opacity: 0;
    visibility: hidden;
}

.nav-toggle.active .close-icon {
    opacity: 1;
    visibility: visible;
}

.nav-toggle:hover {
    color: var(--primary-color);
}

nav {
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    transition: all 0.3s ease;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 4px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 80%;
}

nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active::after {
    width: 80%;
    background-color: var(--primary-color);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        transition: transform 0.3s ease;
    }

    .nav-toggle:active {
        transform: scale(0.95);
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        background: rgba(2, 12, 27, 0.95);
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease-in-out;
    }

    nav ul.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    nav ul li {
        margin: 10px 0;
        opacity: 0;
        width: 100%;
    }

    nav ul.active li {
        opacity: 1;
    }

    nav ul li a {
        padding: 12px 20px;
        display: block;
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
    }

    nav ul li a:hover {
        background: rgba(0, 255, 157, 0.1);
        transform: translateX(5px);
    }

    nav ul li a.active {
        background: rgba(0, 255, 157, 0.15);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content .tagline {
    font-size: 1.5em;
    color: var(--accent-color);
}

/* Sections */
section {
    padding: 100px 0;
}

h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 50px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    padding: 20px;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 1.2em;
    color: var(--primary-color);
}

.contact-item p {
    margin: 0;
    color: var(--text-color);
}

/* Skills Section */
.skills-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-name {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: bold;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    transition: width 1s ease;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Experience Section */
.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.experience-item h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.duration {
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: 15px;
}

.experience-item ul {
    list-style-position: inside;
    color: var(--text-color);
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1em;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
    outline: none;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.whatsapp-btn {
    padding: 15px 30px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1em;
}

.whatsapp-btn i {
    font-size: 1.2em;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:active {
    transform: translateY(0);
}

/* Media queries for contact form */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 20px;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Better for mobile */
    }
    
    .whatsapp-btn {
        padding: 12px 20px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2em;
    }
    
    .hero-content .tagline {
        font-size: 1.2em;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .about-content {
        padding: 0 20px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        width: 100%;
        margin: 10px 0;
    }

    .skills-container {
        padding: 10px;
    }

    .experience-item, .education-item, .award-item {
        margin: 15px 10px;
    }

    section {
        padding: 60px 0;
    }

    h2 {
        font-size: 2em;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8em;
    }

    .container {
        padding: 0 15px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .skill-name {
        font-size: 0.9em;
    }
}