/* Basic Resets & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Purple Tones */
    --primary-color: #8A2BE2; /* Blue Violet - A vibrant, engaging purple */
    --secondary-color: #6A5ACD; /* Slate Blue - A slightly muted, sophisticated purple */
    --accent-color: #DA70D6; /* Orchid - A brighter, more playful purple/pink for highlights */
    --text-color: #2F0A47; /* Deep Purple - Almost black, for strong contrast */
    --light-bg: #F0E6FA; /* Lavender Blush - A very light, soft purple background */
    --dark-bg: #360E59; /* Dark Indigo - A rich, deep dark purple */
    --white: #ffffff;

    /* General */
    --border-radius: 5px;
    --transition-speed: 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white); /* Base background can remain white or light purple */
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-bg); /* Headings use the deep dark purple */
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }

a {
    color: var(--primary-color); /* Links in the main purple */
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--dark-bg); /* Links darken on hover */
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg); /* Sections with light background */
}

/* --- */
/* Navigation Bar */
nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(54, 14, 89, 0.9); /* Semi-transparent dark indigo for the nav */
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: var(--white);
    font-weight: bold;
    font-size: 1.1rem;
    padding: 5px 10px;
    transition: color var(--transition-speed), border-bottom var(--transition-speed);
}

nav ul li a:hover {
    color: var(--accent-color); /* Nav links highlight with the brighter purple */
    border-bottom: 2px solid var(--accent-color);
}


/* --- */
/* Hero Section */
#hero {
    /* You'll still need to replace 'your-hero-background-image.jpg' with a purple-toned or complementary image */
    background: url('your-hero-background-image.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(54, 14, 89, 0.75); /* Darker indigo overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4.8rem;
    margin-bottom: 25px;
    color: var(--white);
    line-height: 1.1;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5); /* Stronger shadow for contrast on purple */
}

.hero-content .tagline {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95); /* Slightly brighter text */
    font-weight: 300;
    line-height: 1.4;
}

.social-links {
    margin-bottom: 50px;
}

.social-links a {
    color: var(--white);
    font-size: 3rem;
    margin: 0 20px;
    transition: color var(--transition-speed), transform var(--transition-speed);
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-color); /* Social icons highlight with brighter purple */
    transform: translateY(-5px) scale(1.1);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color); /* Button uses the main vibrant purple */
    color: var(--white);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Slightly stronger shadow */
}

.btn-primary:hover {
    background-color: var(--accent-color); /* Button accent color on hover */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* --- */
/* About Section */
#about .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

#about .profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color); /* Border uses main purple */
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

#about p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color); /* Ensure readability */
}

/* --- */
/* Skills Section */
#skills h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.section-subheading {
    text-align: center;
    font-size: 1.25rem;
    color: var(--secondary-color); /* Subheading in a slightly softer purple */
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-category {
    background-color: var(--white);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color); /* Accent line in vibrant purple */
    transition: all var(--transition-speed);
    transform: translateY(-100%);
}

.skill-category:hover::before {
    transform: translateY(0);
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.skill-icon {
    font-size: 3.5rem;
    color: var(--primary-color); /* Icons in vibrant purple */
    margin-bottom: 25px;
    background-color: var(--light-bg); /* Light purple background for icon circle */
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed), color var(--transition-speed);
}

.skill-category:hover .skill-icon {
    transform: rotate(5deg) scale(1.05);
    color: var(--accent-color); /* Icon changes to brighter purple on hover */
}


.skill-category h3 {
    color: var(--dark-bg);
    margin-bottom: 25px;
    font-size: 1.9rem;
    position: relative;
    padding-bottom: 10px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color); /* Underline in brighter purple */
    border-radius: 2px;
    transition: width var(--transition-speed);
}

.skill-category:hover h3::after {
    width: 80px;
}

.skill-category ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
    width: 100%;
}

.skill-category ul li {
    padding: 10px 0;
    font-size: 1.05rem;
    color: var(--text-color); /* Skill list text color */
    border-bottom: 1px dashed var(--light-bg); /* Soft light purple dashed border */
    transition: color var(--transition-speed);
}

.skill-category ul li:last-child {
    border-bottom: none;
}

.skill-category ul li:hover {
    color: var(--primary-color); /* Highlight specific skill in main purple */
}

/* --- */
/* Projects Section */
#projects h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.project-card h3 {
    color: var(--dark-bg);
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.project-description {
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--text-color);
}

.project-links a {
    display: inline-block;
    margin-right: 15px;
    color: var(--primary-color); /* Project links in main purple */
    font-weight: bold;
}

.project-links a i {
    margin-right: 8px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.project-tech li {
    background-color: var(--accent-color); /* Tech tags in brighter purple */
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* --- */
/* Footer */
footer {
    background-color: var(--dark-bg); /* Footer in deep dark purple */
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

.footer-social-links a {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0 10px;
    transition: color var(--transition-speed);
}

.footer-social-links a:hover {
    color: var(--accent-color); /* Footer social links in brighter purple */
}


/* --- */
/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.8rem; }

    .hero-content h1 {
        font-size: 4rem;
    }
    .hero-content .tagline {
        font-size: 1.6rem;
    }
    .social-links a {
        font-size: 2.5rem;
        margin: 0 15px;
    }
    .btn-primary {
        font-size: 1.2rem;
        padding: 15px 30px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 5px 10px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.7rem; }

    .section-padding {
        padding: 60px 0;
    }

    #hero {
        padding: 100px 0;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content .tagline {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }
    .social-links a {
        font-size: 2.2rem;
        margin: 0 10px;
    }
    .btn-primary {
        font-size: 1.1rem;
        padding: 12px 25px;
    }

    #about .about-content {
        flex-direction: column;
    }

    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
    }

    .skill-category {
        padding: 30px;
    }
    .skill-icon {
        font-size: 3rem;
        width: 80px;
        height: 80px;
    }
    .skill-category h3 {
        font-size: 1.7rem;
    }
    .section-subheading {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    nav {
        padding: 10px 0;
    }
    nav ul {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    #hero {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content .tagline {
        font-size: 1.1rem;
    }
    .social-links a {
        font-size: 2rem;
        margin: 0 8px;
    }
    .btn-primary {
        font-size: 1rem;
        padding: 10px 20px;
    }

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