/* ------------------- */
/*  1. VARIABLES       */
/* ------------------- */
:root {
    /* Lovable / Sci-Fi Theme Colors */
    --bg-body: #080C16;
    /* Deepest Navy/Black */
    --bg-surface: rgba(30, 41, 59, 0.4);
    /* Glassy surface */
    --bg-surface-hover: rgba(30, 41, 59, 0.6);

    --text-primary: #FFFFFF;
    --text-secondary: #8892B0;
    --text-accent: #3B82F6;

    --primary-color: #3B82F6;
    /* Electric Blue */
    --primary-gradient: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.5);

    /* Fonts */
    --font-heading: 'Orbitron', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;

    --container-width: 1280px;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

/* ------------------- */
/*  2. RESET & BASE    */
/* ------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    background-image: linear-gradient(rgba(8, 12, 22, 0.85), rgba(8, 12, 22, 0.9)), url('../assets/images/data-science-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ------------------- */
/*  3. UTILITIES       */
/* ------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.btn--primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn--outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn--outline:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

/* Section Styling */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, #fff, #8892B0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ------------------- */
/*  4. HEADER & NAV    */
/* ------------------- */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 12, 22, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logo-dot {
    color: var(--primary-color);
}

.nav__list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__lang-btn {
    background: transparent;
    color: var(--text-primary);
    font-weight: 700;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.nav__lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.theme-toggle {
    display: none;
    /* Hidden as per Dark-only requirement */
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 6px 0;
    transition: 0.3s;
}

/* ------------------- */
/*  5. HERO SECTION    */
/* ------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero__name {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.hero__description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 1rem;
}

.hero__image-wrapper {
    position: relative;
    width: 380px;
    height: 480px;
    border-radius: 20px;
    /* Glassmorphism Frame */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    backdrop-filter: blur(5px);
}

.hero__profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.hero__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* ------------------- */
/*  6. ABOUT SECTION   */
/* ------------------- */
.about__content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.about__text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    font-family: var(--font-heading);
}

/* ------------------- */
/*  7. EXPERIENCE      */
/* ------------------- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.timeline__item {
    margin-bottom: 3rem;
    padding-left: 60px;
    position: relative;
}

.timeline__marker {
    position: absolute;
    left: 15px;
    top: 5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg-body);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.timeline__content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition);
}

.timeline__content:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.timeline__date {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
}

.timeline__role {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.timeline__company {
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* ------------------- */
/*  8. DATA PASSION    */
/* ------------------- */
.section__subtitle__text {
    text-align: center;
    color: var(--text-secondary);
    margin: -2rem auto 3rem auto;
    max-width: 600px;
}

.tools-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.tool-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    color: var(--text-primary);
    transition: var(--transition);
}

.tool-card:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.dashboard-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
}

.dashboard-item {
    position: relative;
    border-radius: 12px;
    height: 300px;
    background: #000;
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
}

.blur-sensitive {
    filter: blur(2px);
    /* Light blur (2px) to keep structure visible */
    transition: var(--transition);
    transform: scale(1.05);
}

/* Class to remove blur on click */
.blur-sensitive.revealed {
    filter: blur(0);
    transform: scale(1);
}

.confidential-warning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(8, 12, 22, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    z-index: 20;
    pointer-events: none;
    /* Let clicks pass through to container */
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s;
}

.dashboard-item.revealed .confidential-warning {
    opacity: 0;
}

.dashboard-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, #080C16, transparent);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

/* ------------------- */
/*  9. CONTACT / FOOTER */
/* ------------------- */
.contact {
    background: linear-gradient(to top, rgba(59, 130, 246, 0.05), transparent);
}

.contact__details {
    margin-top: 2rem;
}

.contact__qr-wrapper {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.contact__qr-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact__qr-image {
    width: 160px;
    height: auto;
    border-radius: 8px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact__form {
    margin-top: 3rem;
    /* Spacing requested by user */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: white;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ------------------- */
/*  10. RESPONSIVE     */
/* ------------------- */
@media (max-width: 900px) {
    .container {
        padding: 0 1rem;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__image-wrapper {
        margin: 0 auto;
        width: 100%;
        max-width: 350px;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__name {
        font-size: 2.5rem;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline__item {
        padding-left: 35px;
    }

    .timeline__marker {
        left: 5px;
    }

    .nav {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

/* ------------------- */
/*  12. MODERN EFFECTS */
/* ------------------- */

/* -- Loader -- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #080C16;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* -- Scroll Reaveal -- */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* -- Hover Effects -- */
.btn {
    position: relative;
    overflow: hidden;
    /* For ripple */
}

.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.dashboard-item:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.nav__social-link:hover i {
    text-shadow: 0 0 8px var(--primary-color);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* -- Parallax Elements -- */
.parallax-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-color), transparent);
}

.shape-2 {
    bottom: 20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6, transparent);
}

/* -- Smooth Transitions -- */
html {
    scroll-behavior: smooth;
}


/* ------------------- */
/*  11. PROJECT MODAL  */
/* ------------------- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 12, 22, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #0f1623;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-backdrop.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: white;
}

.modal-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    filter: blur(1.5px);
    /* Minimal blur only */
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.modal-description h4 {
    color: white;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.modal-description ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-description li {
    margin-bottom: 0.5rem;
}

.modal-tools-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}