/* ===================================
   MODERN PORTFOLIO - EDITORIAL PRECISION
   Design: Professional, Contemporary, Distinctive
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter+Tight:wght@300;400;500;600;700&display=swap');

/* ===================================
   CSS VARIABLES & THEME
   =================================== */

:root {
    /* Colors */
    --green-primary: #22aa6e;
    --green-glow: rgba(34, 170, 110, 0.2);
    --green-dark: #1d9560;

    --dark-bg: #0a0b0a;
    --dark-surface: #141514;
    --dark-elevated: #1a1b1a;
    --sidebar-bg: #0f100f;

    --text-primary: #ffffff;
    --text-secondary: #a8a8a8;
    --text-muted: #6b6b6b;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.12);

    /* Typography */
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter Tight', system-ui, sans-serif;

    /* Spacing */
    --sidebar-width: 420px;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-green: 0 0 20px var(--green-glow);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   RESET & BASE
   =================================== */

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

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--dark-bg);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle dot grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* ===================================
   FIXED HEADER
   =================================== */

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--green-primary) 0%,
        rgba(34, 170, 110, 0.5) 50%,
        var(--green-primary) 100%);
    z-index: 1000;
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% auto;
}

/* ===================================
   PAGE LAYOUT
   =================================== */

.page-container {
    display: flex;
    padding-top: 3px;
    min-height: calc(100vh - 3px);
    position: relative;
    z-index: 1;
}

/* ===================================
   SIDEBAR
   =================================== */

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-subtle);
    position: fixed;
    left: 0;
    top: 3px;
    bottom: 0;
    overflow-y: auto;
    padding: 60px 40px 40px;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--green-primary);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeIn 0.6s ease-out;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 40px;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
    border: 3px solid var(--green-primary);
    box-shadow: 0 0 0 6px rgba(34, 170, 110, 0.1),
                var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 6px rgba(34, 170, 110, 0.2),
                var(--shadow-lg),
                var(--shadow-green);
}

.profile-name {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.profile-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--green-primary);
    min-height: 32px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.profile-title.mobile {
    display: none;
}

.profile-tagline {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.btn {
    display: block;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: -0.01em;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    animation: fadeInUp 0.6s ease-out calc(0.6s + var(--delay, 0s)) both;
}

.cta-buttons .btn:nth-child(1) { --delay: 0s; }
.cta-buttons .btn:nth-child(2) { --delay: 0.1s; }
.cta-buttons .btn:nth-child(3) { --delay: 0.2s; }

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 170, 110, 0.3);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(0);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease-out 0.9s both;
}

.social-icons.mobile {
    display: none;
}

.social-icons a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--dark-elevated);
    border: 1px solid var(--border-subtle);
    opacity: 0.8;
    transition: all var(--transition-base);
}

.social-icons a:hover {
    opacity: 1;
    background: var(--green-primary);
    border-color: var(--green-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 170, 110, 0.3);
}

.social-icons img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    animation: fadeIn 0.6s ease-out 1s both;
}

.sidebar-footer a {
    color: var(--green-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.sidebar-footer a:hover {
    color: var(--text-secondary);
}

.sidebar-footer.mobile {
    display: none;
}

/* ===================================
   MAIN CONTENT
   =================================== */

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 80px 100px;
    max-width: calc(100% - var(--sidebar-width));
    background-color: var(--dark-bg);
}

/* Hero Section */
.hero-section {
    margin-bottom: 100px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    max-width: 900px;
}

.hero-title .highlight {
    color: var(--green-primary);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--green-primary), transparent);
    opacity: 0.3;
}

/* Content Sections */
.content-section {
    margin-bottom: 100px;
    animation: fadeInUp 0.8s ease-out both;
}

.content-section:nth-child(2) { animation-delay: 0.4s; }
.content-section:nth-child(3) { animation-delay: 0.5s; }
.content-section:nth-child(4) { animation-delay: 0.6s; }
.content-section:nth-child(5) { animation-delay: 0.7s; }

.section-title {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--green-primary);
    border-radius: 2px;
}

.section-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
}

.section-text p {
    margin-bottom: 24px;
}

/* ===================================
   SKILLS SECTION - MODERN CARDS
   =================================== */

.skills-section .section-title {
    margin-bottom: 56px;
}

.skill-block {
    margin-bottom: 32px;
    padding: 36px;
    background: var(--dark-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.skill-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.skill-block:hover {
    background: var(--dark-elevated);
    border-color: var(--border-medium);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.skill-block:hover::before {
    opacity: 1;
}

.skill-header h4 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.skill-header p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.skill-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 14px;
}

.skill-list li {
    position: relative;
    padding-left: 32px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color var(--transition-fast);
}

.skill-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 2px;
    background: var(--green-primary);
    transition: width var(--transition-fast);
}

.skill-block:hover .skill-list li::before {
    width: 20px;
}

/* ===================================
   TIMELINE - MODERN TREATMENT
   =================================== */

.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--border-medium) 10%,
        var(--border-medium) 90%,
        transparent 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    width: 48%;
    animation: fadeInUp 0.8s ease-out both;
}

.timeline-item:nth-child(2) { animation-delay: 0.1s; }
.timeline-item:nth-child(3) { animation-delay: 0.2s; }
.timeline-item:nth-child(4) { animation-delay: 0.3s; }
.timeline-item:nth-child(5) { animation-delay: 0.4s; }
.timeline-item:nth-child(6) { animation-delay: 0.5s; }
.timeline-item:nth-child(7) { animation-delay: 0.6s; }
.timeline-item:nth-child(8) { animation-delay: 0.7s; }

.timeline-item.left {
    left: 0;
    text-align: right;
    padding-right: 50px;
}

.timeline-item.right {
    left: 52%;
    text-align: left;
    padding-left: 50px;
}

/* Timeline dots */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green-primary);
    border: 3px solid var(--dark-bg);
    box-shadow: 0 0 0 4px var(--green-glow);
    z-index: 1;
    transition: all var(--transition-base);
}

.timeline-item.left::after {
    right: -7px;
}

.timeline-item.right::after {
    left: -7px;
}

.timeline-item:hover::after {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px var(--green-glow), var(--shadow-green);
}

.timeline-date {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--green-primary);
    background: rgba(34, 170, 110, 0.1);
    padding: 6px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Timeline cards */
.timeline-content {
    background: var(--dark-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.timeline-content:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-lg);
}

.timeline-logo-header {
    background: var(--dark-elevated);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.timeline-item.left .timeline-logo-header {
    flex-direction: row-reverse;
}

.timeline-item.right .timeline-logo-header {
    flex-direction: row;
}

.timeline-logo {
    max-width: 140px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: all var(--transition-base);
}

.timeline-content:hover .timeline-logo {
    opacity: 1;
}

.timeline-body {
    padding: 24px 28px;
}

.timeline-stage {
    font-size: 11px;
    font-weight: 600;
    color: var(--green-primary);
    background: rgba(34, 170, 110, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.timeline-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    text-align: left;
}

/* ===================================
   CONTACT FORM - MODERN STYLING
   =================================== */

.contact-section {
    max-width: 700px;
}

.contact-form {
    margin-top: 40px;
}

.contact-form label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 16px;
    margin-bottom: 24px;
    transition: all var(--transition-base);
    background-color: var(--dark-surface);
    color: var(--text-primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green-primary);
    background-color: var(--dark-elevated);
    box-shadow: 0 0 0 4px rgba(34, 170, 110, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn {
    width: auto;
    padding: 16px 48px;
    font-size: 16px;
    cursor: pointer;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 991px) {
    :root {
        --sidebar-width: 340px;
    }

    .main-content {
        padding: 60px 50px;
    }

    .hero-title {
        font-size: 44px;
    }

    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .fixed-header {
        height: 3px;
    }

    .page-container {
        flex-direction: column;
        padding-top: 3px;
    }

    .sidebar {
        position: static;
        width: 100%;
        padding: 40px 24px;
    }

    .profile-title.desktop {
        display: none;
    }

    .profile-title.mobile {
        display: block;
    }

    .social-icons.desktop {
        display: none;
    }

    .social-icons.mobile {
        display: flex;
    }

    .sidebar-footer {
        display: none;
    }

    .sidebar-footer.mobile {
        display: block;
        margin-top: 40px;
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 50px 24px;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    /* Stack timeline on mobile */
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
    }

    .timeline-item::after {
        left: 13px !important;
        right: auto !important;
    }

    .timeline-logo-header {
        flex-direction: row !important;
        padding: 20px 20px;
    }

    .timeline-body {
        padding: 20px;
    }

    .timeline-logo {
        max-width: 120px;
        height: 32px;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
