/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --primary-green: #00a86b;
    --primary-green-dark: #007a4f;
    --primary-green-light: #00c97a;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --bg-dark: #f1f3f5;
    --bg-black: #ffffff;
    --text-dark: #212529;
    --text-white: #ffffff;
    --text-gray: #495057;
    --text-gray-light: #6c757d;
    --border-gray: #dee2e6;
    --shadow-green: rgba(0, 168, 107, 0.15);
    --shadow-light: rgba(0, 0, 0, 0.08);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
    transition: var(--transition-normal);
    box-shadow: 0 2px 10px var(--shadow-light);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px var(--shadow-light);
}

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

.nav-logo a {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: var(--transition-fast);
}

.nav-logo a:hover {
    color: var(--primary-green-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-coffee-btn {
    background: var(--primary-green);
    color: var(--bg-white) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px;
    margin-left: 0.5rem;
    font-weight: 600;
}

.nav-coffee-btn::after {
    display: none;
}

.nav-coffee-btn:hover {
    background: var(--primary-green-dark);
    color: var(--bg-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-green);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition-normal);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 8rem 2rem 6rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 168, 107, 0.05) 0%, transparent 70%);
    animation: pulse 20s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

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

.hero-image-wrapper {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.hero-image,
.hero-image-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
    border: 4px solid var(--primary-green);
    box-shadow: 0 10px 30px var(--shadow-green);
    transition: var(--transition-normal);
    display: block;
}

.hero-image:hover,
.hero-image-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px var(--shadow-green);
}

.hero-image-placeholder {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 4rem;
    font-weight: 700;
}

.placeholder-initials {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-name {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.name-first,
.name-last {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: var(--text-gray);
}

.hero-link {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.hero-link:hover {
    color: var(--primary-green-dark);
    border-bottom-color: var(--primary-green);
}

.hero-location-note {
    font-size: 0.9em;
    color: var(--text-gray-light);
    font-style: italic;
}

.hero-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--bg-white);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-green);
}

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

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-green);
}

.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray-light);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary-green);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary-green);
    border-bottom: 2px solid var(--primary-green);
    transform: rotate(45deg);
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-green);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
    border-radius: 2px;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--bg-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
    text-align: justify;
}

/* ============================================
   Skills Section
   ============================================ */
.skills {
    background: var(--bg-white);
}

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

.skill-category {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    transition: var(--transition-normal);
}

.skill-category:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-green);
}

.skill-category-title {
    font-size: 1.25rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: rgba(0, 168, 107, 0.1);
    color: var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 168, 107, 0.2);
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: var(--primary-green);
    color: var(--text-white);
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--shadow-green);
}

/* ============================================
   Experience Section
   ============================================ */
.experience {
    background: var(--bg-light);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-green), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--primary-green);
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.2);
    transform: translateX(calc(-50% + 1px));
}

.timeline-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    transition: var(--transition-normal);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.timeline-content:hover {
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px var(--shadow-green);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: 600;
}

.timeline-company {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 500;
}

.timeline-company-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.timeline-company-link:hover {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

.timeline-contractor {
    color: var(--text-dark);
    font-weight: 500;
}

.timeline-contractor::before {
    content: '→';
    margin: 0 0.5rem;
    display: inline-block;
}

.timeline-contractor .timeline-company-link {
    color: var(--text-dark);
}

.timeline-contractor .timeline-company-link:hover {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

.timeline-location {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.timeline-date {
    display: inline-block;
    background: rgba(0, 168, 107, 0.1);
    color: var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 168, 107, 0.2);
}

.timeline-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.timeline-skills {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.timeline-skill-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-skill-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.timeline-skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-skill-chip {
    background: rgba(0, 168, 107, 0.1);
    color: var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 168, 107, 0.2);
    transition: var(--transition-fast);
    display: inline-block;
}

.timeline-skill-chip:hover {
    background: var(--primary-green);
    color: var(--text-white);
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--shadow-green);
}

/* ============================================
   Education Section
   ============================================ */
.education {
    background: var(--bg-white);
}

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

.education-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    transition: var(--transition-normal);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.education-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-green);
}

.education-header {
    margin-bottom: 1rem;
}

.education-degree {
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
}

.education-institution {
    display: block;
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.education-institution-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.education-institution-link:hover {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

.education-location {
    display: block;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.education-date {
    display: inline-block;
    background: rgba(0, 168, 107, 0.1);
    color: var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 168, 107, 0.2);
}

.education-description {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ============================================
   Courses Section
   ============================================ */
.courses {
    background: var(--bg-light);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.course-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    transition: var(--transition-normal);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.course-item:hover {
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--shadow-green);
}

.course-name {
    font-size: 1.125rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.course-provider {
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.course-date {
    display: block;
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: var(--bg-white);
}

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

.contact-text {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    transition: var(--transition-normal);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.contact-item:hover {
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--shadow-green);
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-gray);
    margin: 0;
}

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

.contact-item a:hover {
    color: var(--primary-green-light);
    text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-light);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-gray);
}

.footer p {
    color: var(--text-gray);
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-note {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        box-shadow: 0 10px 27px var(--shadow-light);
        padding: 2rem 0;
        border-top: 1px solid var(--border-gray);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-coffee-btn {
        margin-left: 0;
        margin-top: 1rem;
        display: inline-block;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero-image,
    .hero-image-placeholder {
        width: 150px;
        height: 150px;
    }

    .section {
        padding: 4rem 1rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .timeline-marker {
        left: -2rem;
        transform: translateX(calc(-50% + 1px));
    }

    .skills-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }


    .contact-info {
        grid-template-columns: 1fr;
    }

    .hero-links {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

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

    .hero-name {
        font-size: 2rem;
    }

    .hero-image,
    .hero-image-placeholder {
        width: 120px;
        height: 120px;
    }

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

    .timeline-content {
        padding: 1.5rem;
    }

    .education-card {
        padding: 1.5rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .scroll-indicator,
    .footer {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}

