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

:root {
    --primary-color: #007BFF;
    --secondary-color: #f0f7ff;
    --dark-color: #343a40;
    --light-color: #ffffff;
    --gray-color: #adb5bd;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--dark-color);
}

.content-page {
    background-color: var(--light-color);
}
.content-page-alt {
    background-color: var(--secondary-color);
}


h1, h2, h3 {
    line-height: 1.2;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.section-container {
    padding: 5rem 10%;
    min-height: calc(100vh - 190px); /* 100vh minus header and footer height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

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

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: #0056b3;
    transform: translateY(-3px);
}

/* --- HEADER & NAVIGATION --- */
header {
    padding: 1rem 10%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a.current-page {
    color: var(--primary-color);
}

.nav-links a:hover::after, .nav-links a.current-page::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}


/* --- HOME & EXPLORE SECTION (index.html) --- */
#home {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--secondary-color);
}

.home-content {
    animation: fadeIn 1.5s ease-in-out;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

#home h1 {
    font-size: 3.5rem;
}

#home p {
    font-size: 1.2rem;
    color: #444;
}

#explore {
    background: var(--light-color);
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.explore-card {
    background: var(--secondary-color);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    color: var(--dark-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.explore-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    color: var(--primary-color);
}

.explore-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.explore-card:hover i {
    color: var(--primary-color);
}
.explore-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* --- ABOUT PAGE --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}
.about-profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
}
.about-content .section-subtitle {
    text-align: left;
    flex: 1;
    min-width: 300px;
}

/* --- SKILLS PAGE --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.skill-card {
    background: var(--light-color);
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.skill-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.leetcode-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    font-weight: 600;
}
.leetcode-logo {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* --- PROJECTS PAGE --- */
.projects-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.project-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow);
}

/* --- EDUCATION PAGE --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0; text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%; text-align: left;
}
.timeline-dot {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: -7.5px;
    background-color: var(--light-color);
    border: 3px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -7.5px;
}
.timeline-content {
    padding: 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.timeline-content h3 {
    color: var(--primary-color);
}

/* --- FOOTER & CONTACT --- */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 3rem 10% 2rem;
}
footer h2 {
    margin-bottom: 1.5rem;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.contact-links a {
    color: var(--light-color);
    font-size: 1.8rem;
    margin: 0 0.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.contact-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}
.copyright {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    header, footer, .section-container {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
    }
    .nav-links {
        position: fixed;
        top: 65px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background: var(--light-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: right 0.5s ease-in-out;
    }
    .nav-links.active {
        right: 0;
    }
    .hamburger {
        display: block;
    }
    .timeline::after {
        left: 10px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
        text-align: left !important;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-dot {
        left: 2.5px !important;
    }
    .about-content {
        gap: 2rem;
    }
    .about-content .section-subtitle {
        text-align: center;
    }
}