/* ========== CSS Variables & Base Reset ========== */
:root {
    --color-primary: #f8d7e6;       
    --color-primary-dark: #e8bcd6; 
    --color-secondary: #6C63FF;     
    --color-dark: #333344;
    --color-light: #f8f9fa;
    --color-text: #444;
    --color-text-light: #777;
    --sidebar-width: 280px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: #fff;
    overflow-x: hidden;
    font-weight: 400;
    line-height: 1.6;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.hero-name {
    font-size: 3.5rem;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(90deg, var(--color-secondary), #FF6584);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========== Layout & Sidebar ========== */
.sidebar {
    background-color: var(--color-primary);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    z-index: 1000;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: -0.5px;
}

.title-subtext {
    color: var(--color-secondary);
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: -0.5rem;
}

.sidebar-nav .nav-link {
    color: var(--color-dark);
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--color-secondary);
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
}

.copyright {
    color: var(--color-text-light);
    font-size: 0.85rem;
}

/* ========== Sections ========== */
.section-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.hero-greeting {
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.hero-desc {
    font-size: 1.25rem;
    max-width: 800px;
    color: var(--color-text);
}

.btn-primary {
    border-color: var(--color-secondary);
    padding: 0.8rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(108, 99, 255, 0.2);
}

.section-about .about-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.list-group-item {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.05);
    padding-left: 0;
}

/* ========== Skills ========== */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-tag {
    background-color: white;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-dark);
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* ========== Projects ========== */
.project-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
}

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

.project-img-container {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img-container img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 99, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-badge {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-secondary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tech-tags {
    margin-top: 1rem;
}

.tech-tags .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5em 0.8em;
    font-weight: 500;
}

/* ========== Footer / Contact ========== */
.section-footer {
    background-color: var(--color-light);
}

.contact-info p {
    font-size: 1.05rem;
}

.contact-info i {
    color: var(--color-secondary);
}

.social-btn {
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.social-btn i {
    margin-right: 8px;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
}

/* ========== Social Icons ========== */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    color: var(--color-dark);
    margin-right: 15px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-icons a:hover {
    background-color: var(--color-secondary);
    color: white;
    transform: translateY(-3px);
}

/* ========== Responsive Design ========== */
@media (max-width: 992px) {
    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
        padding: 1rem;
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar-content {
        flex-direction: row !important;
        flex-wrap: wrap;
        align-items: center;
    }
    .site-title {
        margin-right: 2rem;
    }
    .sidebar-nav {
        flex-direction: row !important;
        margin: 1rem 0;
    }
    .sidebar-nav .nav-link {
        margin: 0 0.5rem;
        padding: 0.5rem;
    }
    .social-icons {
        margin-left: auto;
    }
    .hero-name {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero-name {
        font-size: 2.3rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .sidebar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}