/* Modern CSS styling based on dark/black to green (#017A17) gradient */

:root {
    /* Gradient Color Palette */
    --clr-dark: #121212;
    --clr-green-brand: #017A17;
    --clr-green-light: #0d9625;
    --clr-gray: #1a1a1a;
    --clr-text: #e0e0e0;
    --clr-text-muted: #a0a0a0;

    /* Variables */
    --border-radius-pill: 50px;
    --border-radius-card: 16px;
    --transition-fast: 0.2s ease-in-out;
    --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--clr-dark);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background gradient effect covering whole body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top right, rgba(169, 169, 169, 0.1), transparent 60%),
        radial-gradient(circle at bottom left, rgba(1, 122, 23, 0.2), transparent 50%);
    background-color: #050505;
    z-index: -1;
    pointer-events: none;
}

/* Layout Wrapper */
.cv-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    .cv-wrapper {
        flex-direction: row;
        max-width: 1300px;
        margin: 0 auto;
        padding: 100px 20px 60px;
        gap: 60px;
    }
}

/* Sidebar */
.sidebar {
    background: rgba(26, 26, 26, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    text-align: center;
}

@media (min-width: 1024px) {
    .sidebar {
        flex: 0 0 280px;
        border-bottom: none;
        background: transparent;
        padding: 0;
        text-align: left;
    }

    .sidebar-inner {
        position: sticky;
        top: 80px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        padding-right: 20px;
        /* Subtle scrollbar */
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    }

    .sidebar-inner::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar-inner::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transition: transform var(--transition-slow), border-color var(--transition-fast);
}

.profile-photo:hover {
    transform: scale(1.02);
    border-color: var(--clr-green-brand);
}

.title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--clr-text);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--clr-green-brand);
    font-weight: 500;
    margin-bottom: 20px;
}

.contact-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.badge {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    /* Sharper corners for brutalist feel */
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.badge:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--clr-text);
    transform: translateX(4px);
}

/* Special hover state for LinkedIn to match CTA style */
.badge[href*="linkedin"]:hover {
    background: rgba(1, 122, 23, 0.1);
    border-color: var(--clr-green-brand);
}

.badge svg {
    color: var(--clr-green-brand);
    flex-shrink: 0;
}

/* Floating Navbar */
.navbar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 18, 0.85);
    /* Dark background with blur */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 24px;
    border-radius: var(--border-radius-pill);
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    display: none;
    /* Hide on mobile by default to keep clean */
}

@media (min-width: 768px) {
    .navbar {
        display: block;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--clr-green-brand);
}

.lang-switch a {
    color: var(--clr-text);
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    transition: all var(--transition-fast);
}

.lang-switch a:hover {
    border-color: var(--clr-green-brand);
    background: rgba(1, 122, 23, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px 20px;
}


.section {
    margin-bottom: 80px;
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--clr-green-brand);
    border-radius: 2px;
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--clr-green-light);
    margin-bottom: 15px;
}

.mt-2 {
    margin-top: 40px;
}

.text-content {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    line-height: 1.8;
}

/* Timeline (Experience) */
.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--clr-dark);
    border: 2px solid var(--clr-green-brand);
    border-radius: 2px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.date {
    display: block;
    font-size: 0.85rem;
    color: var(--clr-green-brand);
    font-weight: 600;
    margin-bottom: 5px;
}

.company {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.list-items {
    padding-left: 20px;
    color: var(--clr-text-muted);
}

.list-items li {
    margin-bottom: 8px;
}

.list-items li::marker {
    color: var(--clr-green-brand);
}

/* Short Experience List */
.short-exp-list {
    list-style: none;
    color: var(--clr-text-muted);
}

.short-exp-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.short-exp-list strong {
    color: var(--clr-text);
}

/* Grids for Skills & Education */
.skills-grid,
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

@media (min-width: 1024px) {

    .skills-grid,
    .education-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cards */
.skill-card,
.edu-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 6px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.skill-card:hover,
.edu-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.skill-card h4,
.edu-card h4 {
    font-size: 1.1rem;
    color: var(--clr-green-light);
    margin-bottom: 15px;
}

.skill-card ul {
    list-style: none;
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.skill-card ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.skill-card ul li::before {
    content: '▹';
    color: var(--clr-green-brand);
    margin-right: 8px;
}

.edu-card .degree {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.edu-card p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* Interests Grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.interest-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.interest-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.interest-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--clr-green-brand);
}

.interest-card span {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--clr-text);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--clr-text-muted);
    font-size: 0.85rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive constraints */
@media (max-width: 768px) {
    .title {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .navbar {
        padding: 8px 15px;
        width: 90%;
        justify-content: center;
    }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    background: var(--clr-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    transform: translateY(0);
    transition: transform var(--transition-fast);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.modal-overlay.hidden .modal-content {
    transform: translateY(20px);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--clr-green-brand);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--clr-text);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--clr-text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-green-brand);
    box-shadow: 0 0 0 2px rgba(1, 122, 23, 0.2);
}

.submit-btn {
    width: 100%;
    background: var(--clr-green-brand);
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--clr-green-light);
    transform: translateY(-2px);
}

.form-result {
    margin-top: 15px;
    font-size: 0.95rem;
    text-align: center;
}

.form-result.success {
    color: var(--clr-green-brand);
}

.form-result.error {
    color: #f87171;
}

.badge-block {
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    justify-content: flex-start;
}

.badge-block:hover {
    background: rgba(1, 122, 23, 0.1);
    border-color: var(--clr-green-brand);
}