/* Smooth scrolling for navigation links */
html {
    scroll-behavior: smooth;
}
/* ==================== RESET & BASE ==================== */

/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables (we'll use these throughout) */
:root {
    --primary-color: rgb(141, 5, 141);
    --secondary-color: rgb(83, 8, 195);
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #34495e;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Base body styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Container for centered content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section spacing */
section {
    padding: 80px 0;
}

/* Headings */
h1, h2, h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
}
/* ==================== NAVIGATION ==================== */
#navbar {
    background: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#navbar .container {
    display: flex;         
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}
/* ==================== ABOUT SECTION ==================== */
.about {
    background: var(--light-color);
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 2;  /* Takes 2 parts of space */
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-stats {
    flex: 1;  /* Takes 1 part of space */
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat p {
    color: var(--text-color);
    font-size: 0.9rem;
}
/* ==================== HERO/PROFILE ==================== */
.hero {
    background: linear-gradient(150deg,rgb(135, 10, 135) ,rgb(83, 8, 195));
    color: white;
    text-align: center;
}

.profile-header {
    padding: 60px 0;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    object-fit: cover;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.bio {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-icon {
    background: rgba(251, 250, 250, 0.2);
    color: white;
    padding: 10px 20px;
    border: solid rgb(166, 7, 252);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}
/* ==================== SKILLS SECTION ==================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.skill-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-color);
}

.skill-card li:last-child {
    border-bottom: none;
}
/* ==================== PROJECTS ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-tags {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    flex-wrap: wrap;
}

.tag {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
}
.project-links{
    display: flex;
    list-style: none;
    gap: 30px;
    justify-content: center;

}
.project-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 10px 20px;
}
.project-links:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}   

/* ==================== CONTACT FORM ==================== */
.contact {
    background: var(--light-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
/* ==================== CONTACT FORM ==================== */
.contact {
    background: var(--light-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.section-subtitle{
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}
/* ==================== BUTTONS ==================== */
.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: var(--light-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #d5d8dc;
}
/* ==================== FOOTER ==================== */
footer {
    background: var(--dark-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}
.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}
/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
    /* Typography adjustments */
    h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    /* Navigation - stack vertically */
    #navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* About section - stack vertically */
    .about-content {
        flex-direction: column;
    }

    /* Sections - less padding */
    section {
        padding: 40px 0;
    }

    /* Social links - wrap */
    .social-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    /* Even smaller adjustments */
    .hero h1 {
        font-size: 1.5rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }
}
/* ==================== ANIMATIONS ==================== */

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply to sections */
section {
    animation: fadeIn 0.6s ease-in;
}

/* Pulse animation for buttons */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.btn-primary:hover {
    animation: pulse 0.6s;
}
/* Custom text selection color */
::selection {
    background: var(--primary-color);
    color: white;
}