/* ---------------------------
   Global Setup
---------------------------- */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary: #0056b3;
    --primary-light: #258cfb;
    --secondary: #e0e0e0;
    --background: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
}

/* ---------------------------
   Base Layout
---------------------------- */

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------------------------
   Buttons
---------------------------- */

.btn {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

    .btn-outline-primary:hover,
    .btn-outline-primary.active {
        background-color: var(--primary);
        color: var(--text-light);
    }

/* ---------------------------
   Page Layout (Experience / Projects)
---------------------------- */

.experience-page {
    display: flex;
    justify-content: center;
    padding: 40px clamp(1rem, 5vw, 3rem);
}

.experience-section {
    width: 100%;
    max-width: 1100px;
    text-align: center;
}

    /* Page Titles */
    .experience-section h4 {
        font-size: 2rem;
        font-weight: 600;
        color: var(--primary);
        margin-bottom: 2rem;
    }

/* Center Tab Buttons */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ---------------------------
   Content Boxes
---------------------------- */

.education-section,
.internship-section,
.work-section,
.project-section {
    background: linear-gradient(to right, #ffffff, #f0f4f8);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .project-section:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

/* ---------------------------
   Section Titles & Text
---------------------------- */

.subsection-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 0.4rem;
    margin-bottom: 1.5rem;
}

.skills-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    margin-top: 1rem;
}

/* ---------------------------
   Lists
---------------------------- */

.skills-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

    .skills-list li {
        background-color: var(--secondary);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.9rem;
    }

/* ---------------------------
   Links
---------------------------- */

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

    a:hover {
        color: var(--primary-light);
    }

/* ---------------------------
   Carousel
---------------------------- */

.carousel-inner img {
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ---------------------------
   Project Layout
---------------------------- */

.project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.project-info {
    flex: 1 1 55%;
}

.project-media {
    flex: 1 1 40%;
}

@media (max-width: 768px) {
    .project-grid {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------------------------
   Tabs Animation
---------------------------- */

.tab-content-div.fade {
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

.tab-content-div.show {
    opacity: 1;
}

/* ---------------------------
   Footer
---------------------------- */

footer {
    background-color: var(--background);
    border-top: 1px solid #ddd;
    text-align: center;
    padding: 1.5rem 0;
}

    footer small {
        color: #6c757d;
    }

    footer a:hover {
        text-decoration: underline;
        opacity: 0.9;
    }

/* ---------------------------
   CV viewer
---------------------------- */

.cv-preview {
    background: #f8f9fa; /* Light background */
    border: 1px solid #dee2e6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .cv-preview:hover {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }