* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #ec4899;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 120px 20px;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(236, 72, 153, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

/* About Section */
.about {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.about h2,
.projects h2,
.skills h2,
.contact h2 {
    font-size: 36px;
    margin-bottom: 50px;
    text-align: center;
    color: var(--text-dark);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 16px;
}

/* Projects Section */
.projects {
    padding: 80px 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    padding: 20px 20px 10px;
    color: var(--text-dark);
}

.project-card p {
    padding: 0 20px;
    color: var(--text-light);
    font-size: 14px;
}

.project-links {
    padding: 20px;
    display: flex;
    gap: 10px;
}

/* Skills Section */
.skills {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-item h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.skill-bar {
    background-color: #e5e7eb;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    height: 100%;
    transition: width 0.3s ease;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.contact-form button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

#formMessage {
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
}

#formMessage.success {
    color: #10b981;
}

#formMessage.error {
    color: #ef4444;
}

/* Education Section */
.education {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.education h2 {
    font-size: 36px;
    margin-bottom: 50px;
    text-align: center;
    color: var(--text-dark);
}

.education-list {
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    background-color: var(--bg-white);
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateX(10px);
}

.education-item h3 {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.education-item p {
    margin-bottom: 5px;
    color: var(--text-light);
}

.text-muted {
    font-size: 14px;
    color: #9ca3af;
}

.contact-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-sm);
    }

    .nav-links.active a {
        padding: 10px 0;
        display: block;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer .container {
        flex-direction: column;
        gap: 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .education-item {
        border-left: 4px solid var(--primary-color);
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .about h2,
    .projects h2,
    .skills h2,
    .contact h2 {
        font-size: 28px;
    }

    .nav-links.active {
        top: 55px;
    }

    .logo {
        font-size: 18px;
    }
}