/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --bg-color: #1a1a1a;
    --surface-color: #2a2a2a;
    --primary-accent: #00f5d4;
    --secondary-accent: #f72585;
    --tertiary-accent: #7209b7;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --border-color: #444;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-accent);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--heading-color);
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-section {
    padding: 5rem 0;
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

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

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1rem;
    padding: 0.5rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-accent);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--heading-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.9)), url(https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=2070&auto=format&fit=crop) no-repeat center center/cover;
    padding: 5rem 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid var(--primary-accent);
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 245, 212, 0.2);
    flex-shrink: 0;
}

.hero-text {
    text-align: left;
    width: 100%;
    max-width: 720px;
    background: rgba(10, 14, 23, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 1.5rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-text .subtitle {
    font-size: 1.5rem;
    color: var(--primary-accent);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text .summary {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: #f5f5f5;
    text-align: justify;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background: var(--primary-accent);
    color: var(--bg-color);
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin: 0.5rem;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: var(--heading-color);
    color: var(--bg-color);
}


/* --- TIMELINE --- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 30px;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 1rem 1rem 1rem 70px;
    position: relative;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--bg-color);
    border: 3px solid var(--primary-accent);
    border-radius: 50%;
    top: 25px;
    left: 20px;
    z-index: 1;
}
.timeline-item:nth-child(odd)::after {
    left: 20px;
    right: auto;
}

.timeline-item:nth-child(even)::after {
    left: 20px;
}

.timeline-content {
    padding: 1.5rem;
    background-color: var(--surface-color);
    border-radius: 6px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 245, 212, 0.2);
}

.experience-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
    background: #f0f0f0;
    padding: 5px;
    flex-shrink: 0;
}

.company-logo2 {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
    background: #262626;
    padding: 5px;
    flex-shrink: 0;
}

.experience-title-group h3 {
    margin-bottom: 0.25rem;
}

.timeline-content h3 { color: var(--primary-accent); }
.timeline-content .timeline-meta { font-style: italic; margin-bottom: 0; color: #aaa; }
.timeline-content .timeline-meta a {
    color: #ccc;
    font-weight: bold;
    font-style: normal;
}
.timeline-content .timeline-meta a:hover {
    color: var(--primary-accent);
}
.timeline-content ul { list-style-position: inside; padding-left: 0.5rem; }


/* --- GENERIC WRAPPER & CARD GRID --- */
.content-wrapper {
    max-width: 1050px;
    margin: 0 auto;
}

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

.card {
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 245, 212, 0.2);
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
}

.card-link {
    font-weight: bold;
}
.card-link.disabled {
    color: #888;
    pointer-events: none;
    font-style: italic;
}
.card-link i {
    margin-right: 0.5rem;
}

/* --- Projects Section --- */
.projects-scroll-container {
    display: flex;
    overflow-x: auto;
    padding-bottom: 1.5rem; /* Space for scrollbar */
    gap: 2rem;
    max-width: 1050px; /* Approx width for 3 cards + gaps */
    margin: 0 auto; /* Center the scroll container */
}

/* Custom scrollbar for webkit browsers */
.projects-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.projects-scroll-container::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}
.projects-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-accent);
    border-radius: 4px;
}
.projects-scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--heading-color);
}

.project-card {
    flex: 0 0 320px; /* Flex-basis of 320px, doesn't grow or shrink */
}

.view-report-btn {
    background: none;
    border: none;
    color: var(--primary-accent);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
}
.view-report-btn:hover {
    color: var(--heading-color);
}

.projects-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
    margin-top: 2.5rem;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
    border-left: 3px solid var(--primary-accent);
    padding-left: 0.75rem;
}

.de-project-card {
    flex: 0 0 380px;
}

.project-description {
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-tag {
    background: rgba(0, 245, 212, 0.1);
    color: var(--primary-accent);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.github-link {
    color: var(--text-color);
    font-size: 1rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.github-link:hover {
    color: var(--primary-accent);
}


/* --- MODALS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Power BI Modal Specifics */
#pbi-modal .modal-content {
    background-color: #000;
    width: 90%;
    height: 90%;
    max-width: 1400px;
}

#pbi-iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}


/* QR Code Modal Specifics */
.qr-modal-content {
    width: 90%;
    max-width: 300px;
    padding: 1.5rem;
    background-color: #fff; /* White background for QR code visibility */
}

#qr-image, #whatsapp-qr-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.modal-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}

.modal-close-btn:hover {
    color: var(--primary-accent);
}


/* --- Certifications & Skills Section --- */
.skill-card {
    padding: 2rem;
}

.skill-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.skill-card li {
    margin-bottom: 1rem;
}

.skill-card li:last-child {
    margin-bottom: 0;
}

.skill-card li a {
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.skill-card li a:hover {
    background-color: var(--bg-color);
    border-color: var(--primary-accent);
}

.skills-flex-container {
    display: flex;
    gap: 2rem;
}

.skill-soft {
    flex: 1;
}

.skill-tech {
    flex: 2;
}

.skill-category {
    padding: 1.5rem;
}

.skill-category h3 {
    border-bottom: 2px solid var(--primary-accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category ul li {
    margin-bottom: 1rem;
}

.skill-category ul li i {
    margin-right: 0.75rem;
    color: var(--primary-accent);
    width: 20px;
    text-align: center;
}

/* --- FOOTER --- */
.main-footer {
    background-color: #111;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    margin: 0 0.75rem;
    color: var(--text-color);
}
.social-links a:hover {
    color: var(--primary-accent);
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; margin-bottom: 2rem; }

    .container { padding: 0 1.25rem; }

    .content-section { padding: 3.5rem 0; }

    /* Nav */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--surface-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.5s ease-in-out;
        z-index: 1000;
    }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 1.5rem 0; }
    .nav-links a { font-size: 1.5rem; }
    .hamburger { display: block; z-index: 1001; }

    /* Hero */
    .hero-section {
        min-height: auto;
        padding-top: 7rem;
        padding-bottom: 3rem;
    }
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    .profile-picture {
        width: 150px;
        height: 150px;
    }
    .hero-text {
        text-align: center;
        padding: 1.25rem 1.25rem;
        width: 100%;
        max-width: 100%;
    }
    .hero-text h1 { font-size: 2rem; margin-bottom: 0.2rem; }
    .hero-text .subtitle { font-size: 1rem; margin-bottom: 0.75rem; }
    .hero-text .summary {
        font-size: 0.875rem;
        text-align: left;
        margin-bottom: 1.25rem;
    }
    .cta-button {
        display: block;
        width: 100%;
        margin: 0.4rem 0;
        text-align: center;
    }

    /* Timeline */
    .timeline::after { left: 20px; }
    .timeline-item {
        padding: 0.75rem 0.75rem 0.75rem 50px;
    }
    .timeline-item::after,
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 11px;
        width: 16px;
        height: 16px;
    }
    .experience-header { gap: 0.75rem; }
    .company-logo, .company-logo2 { width: 45px; height: 45px; }
    .timeline-content { padding: 1rem; }
    .timeline-content ul { padding-left: 0; }

    /* Projects */
    .project-card { flex: 0 0 260px; }

    /* Skills */
    .skills-flex-container { flex-direction: column; }

    /* Modals */
    .modal-content { width: 95%; }
    #pbi-modal .modal-content { height: 80%; }
    .modal-close-btn {
        top: 5px;
        right: 5px;
        font-size: 1.75rem;
        color: var(--bg-color);
        background-color: rgba(255, 255, 255, 0.8);
        width: 32px;
        height: 32px;
        line-height: 32px;
        text-align: center;
        border-radius: 50%;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .hero-text h1 { font-size: 1.75rem; }
    .hero-text .subtitle { font-size: 0.9rem; }
    .cta-button { font-size: 0.85rem; padding: 0.7rem 1rem; }
    .timeline-item { padding-left: 42px; }
    .timeline::after { left: 16px; }
    .timeline-item::after,
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after { left: 8px; }
}