/* Global Styles */
:root {
    --primary-color: #2c6e63;
    --secondary-color: #fffaf4;
    --accent-color: #f4b76e;
    --text-color: #1f2a2e;
    --text-light: #5b6a6f;
    --border-color: #e6ddd1;
    --bg-light: #f6f1ea;
    --shadow-color: rgba(44, 110, 99, 0.16);
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', 'Georgia', serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background: radial-gradient(circle at top, #ffffff 0%, #fff7ec 45%, #eef7f2 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
}

/* Disable right-click and text selection */
body {
    -webkit-touch-callout: none;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Security Overlay */
.security-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.security-overlay.active {
    display: flex;
}


body.incognito-lock {
    overflow: hidden;
}

body.incognito-lock> :not(#security-overlay) {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}


.security-message {
    text-align: center;
    color: var(--secondary-color);
    padding: 3rem;
    max-width: 500px;
}


.security-message h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.security-message p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 250, 244, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.1em;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    background: linear-gradient(135deg, #fff3e6 0%, #e8f7f1 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(44, 110, 99, 0.12);
    transform: translateY(0);
    will-change: transform, box-shadow;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(44, 110, 99, 0.18);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: -1.5rem auto 3rem;
    font-size: 1.1rem;
}

/* About Section */
.about {
    background: #f0faf5;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.skill-tag {
    padding: 0.7rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e9ddd0;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Certifications Section */
.certifications {
    background: var(--secondary-color);
}

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

.cert-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    will-change: transform, box-shadow;
}

.cert-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 16px 32px var(--shadow-color);
}

.cert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.cert-card:hover .cert-icon {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.cert-card:hover .cert-icon svg {
    stroke: var(--secondary-color);
}

.cert-icon svg {
    stroke: var(--primary-color);
    transition: var(--transition);
}

.cert-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.cert-issuer {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cert-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.cert-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.cert-link:hover {
    opacity: 0.7;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.project-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 16px 32px var(--shadow-color);
}

.project-screenshot {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f2ea;
    border-bottom: 1px solid var(--border-color);
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

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

.project-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 1.5rem 2rem 0;
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    padding: 0 2rem;
}

.project-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding: 0 2rem;
}

.project-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

.project-links {
    display: flex;
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    opacity: 0.7;
}

.loading {
    text-align: center;
    color: var(--text-light);
    padding: 3rem;
    font-size: 1.1rem;
}

/* Visualizations */
.visualizations {
    background: #fff1e8;
}

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

.viz-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    will-change: transform, box-shadow;
}

.viz-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 16px 32px var(--shadow-color);
}

.viz-placeholder {
    width: 100%;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.viz-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.viz-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.tableau-embeds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.viz-thumb {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 14px 28px var(--shadow-color);
    transform: translateY(0);
    will-change: transform, box-shadow;
}

.viz-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px var(--shadow-color);
    border-color: var(--primary-color);
}

.viz-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.viz-caption {
    padding: 1rem 1.25rem 1.2rem;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.tableau-embed {
    margin-top: 3rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.tableau-embed-frame {
    margin-top: 1.5rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #ffffff;
    box-shadow: 0 18px 40px var(--shadow-color);
}

.tableau-embed-frame iframe {
    width: 100%;
    height: 620px;
    border: 0;
    display: block;
}

/* Contact Section */
.contact {
    background: #eef7ff;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    border: 2px solid transparent;
    border-radius: 18px;
    transition: var(--transition);
    will-change: transform, box-shadow;
}

.contact-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 16px 32px var(--shadow-color);
}

.contact-card svg {
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 3rem 0;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-note {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .viz-grid {
        grid-template-columns: 1fr;
    }

    .tableau-embeds {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 1024px) {
    .tableau-embeds {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}