@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #ff6ac2; /* Pinkish accent */
    --secondary-color: #a959d1; /* Purple accent */
    --background-color: #1a102f; /* Dark purple background */
    --text-color: #f0e6ff;
    --card-bg-color: rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    background: linear-gradient(135deg, #160d2b, #2c1a4d);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* --- Navigation Bar --- */
nav {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* --- Main Header (Index Page) --- */
.main-header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap-reverse;
    max-width: 1200px;
    padding: 2rem;
}

.text-content {
    flex: 1.5;
    max-width: 600px;
}

.text-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 400;
}

.text-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- UPDATED IMAGE STYLES (MATCHES IMAGE 2 SIZE, THINNER STYLISH FRAME) --- */
.image-content {
    flex: 1;
    text-align: center;
    min-width: 150px; /* Adjust as needed for responsiveness */
    max-width: 250px; /* Matches the width of image 2 */
}

.profile-pic {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Slightly rounded corners */
    border: 2px solid var(--secondary-color); /* Thinner border */
    box-shadow: 0 0 15px rgba(169, 89, 209, 0.6), 0 0 5px rgba(255, 106, 194, 0.4); /* Subtle gradient shadow */
}


/* --- Social Links & Buttons --- */
.social-links {
    margin-bottom: 2.5rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 2rem;
    margin-right: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.header-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- Content Sections on Main Page --- */
.content-section {
    padding: 5rem 0;
}
.content-section:nth-child(even) {
    background: rgba(0,0,0,0.2);
}

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-content p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem auto;
    font-size: 1.1rem;
}

/* --- Education Section Styles --- */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.education-item {
    background: var(--card-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}
.education-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.education-header i {
    font-size: 2rem;
    color: var(--primary-color);
}
.education-item h3 {
    font-size: 1.3rem;
    color: var(--text-color);
}
.education-item p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.education-item span {
    font-size: 0.9rem;
    color: #ccc;
    font-style: italic;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.skill-category h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-left: 3px solid var(--secondary-color);
    padding-left: 10px;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tags span {
    background-color: var(--card-bg-color);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--secondary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}
.tags span:hover {
    background-color: var(--secondary-color);
    color: #fff;
    cursor: default;
}

/* --- CTA Section for Certifications --- */
.cta-section {
    text-align: center;
}
.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- Generic Page Header for other pages --- */
.page-header {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 100vh;
}
.page-header h2 {
    margin-bottom: 4rem;
}

/* --- Internships Page (Timeline) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-item {
    background: var(--card-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}
.timeline-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}
.timeline-item .company {
    font-style: italic;
    color: #ccc;
    margin-bottom: 0.5rem;
}
.timeline-item .description {
    font-size: 1rem;
}

/* --- Certifications Page --- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.cert-card {
    background: var(--card-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: var(--primary-color);
}
.cert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.cert-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.cert-card p {
    font-size: 0.9rem;
    color: #ccc;
}

/* --- Contact Page --- */
.contact-info {
    text-align: center;
    margin-bottom: 3rem;
}
.contact-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding: 10px 20px;
}
.contact-item-link {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}
.contact-item-link:hover .contact-item {
    background: var(--card-bg-color);
    border-radius: 50px;
}
.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}
.contact-socials {
    text-align: center;
}
.contact-socials h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.contact-socials .social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.2rem;
}
/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: #a08fb3; /* Muted text color */
    font-size: 0.9rem;
}
/* ============================= */
/* -------- Projects Page ------ */
/* ============================= */

.projects-section {
    padding-top: 120px; /* space for fixed navbar */
    padding-bottom: 80px;
    min-height: 100vh;
}

.page-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Project Card */
.project-card {
    background: var(--card-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Glow hover effect */
.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(169, 89, 209, 0.3);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #d6cfff;
}

/* Tech Tags */
.tech-stack {
    margin-bottom: 1.5rem;
}

.tech-stack span {
    display: inline-block;
    padding: 6px 14px;
    margin: 5px 5px 0 0;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--secondary-color);
    transition: 0.3s ease;
}

.tech-stack span:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Project Links */
.project-links a {
    text-decoration: none;
    margin-right: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.project-links a:hover {
    color: #fff;
}
