/* ===========================
   Google Fonts Import
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;1,300&family=Karla:wght@300;400;500&display=swap');

/* ===========================
   Reset & Base Styles
   =========================== */

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

html {
    /* scroll-behavior handled by JavaScript for better control over external links */
}

body {
    font-family: 'Karla', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2a2a2a;
    background-color: #F9F7F2;
    overflow-x: hidden;
}

/* ===========================
   Loading Animation
   =========================== */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #dd9292;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

#jh-animation {
    max-width: 90%;
    height: auto;
}

#jh-path {
    stroke: #2a2a2a;
}

/* ===========================
   Navigation
   =========================== */

#main-nav {
    position: fixed;
    top: 40px;
    right: 80px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 18px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 8px;
}

#main-nav a {
    color: #F9F7F2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
}

#main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #F9F7F2;
    transition: width 0.3s ease;
}

#main-nav a:hover {
    opacity: 0.7;
}

#main-nav a:hover::after {
    width: 100%;
}

/* Navigation changes on scroll */
body.scrolled #main-nav {
    background: rgba(255, 255, 255, 0.85);
}

body.scrolled #main-nav a {
    color: #2a2a2a;
}

body.scrolled #main-nav a::after {
    background-color: #dd9292;
}

/* ===========================
   Welcome Section
   =========================== */

#welcome {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 80px 100px 180px;
    background: #dd9292;
    position: relative;
}

.color-picker-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.color-picker-wrapper::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #F9F7F2;
    transition: width 0.3s ease;
}

.color-picker-wrapper:hover::after {
    width: 100%;
}

.color-picker-icon {
    width: 18px;
    height: 18px;
    color: #F9F7F2;
    pointer-events: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

#bg-color-picker {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.color-picker-wrapper:hover .color-picker-icon {
    opacity: 0.7;
}

.nav-icons {
    position: relative;
}

.nav-linkedin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #F9F7F2;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.nav-linkedin-icon::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #F9F7F2;
    transition: width 0.3s ease;
}

.nav-linkedin-icon:hover {
    opacity: 0.7;
}

.nav-linkedin-icon:hover::after {
    width: 100%;
}

.welcome-text {
    max-width: 700px;
}

.welcome-text h1 {
    font-size: 56px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    color: #F9F7F2;
    font-family: 'Cormorant', serif;
}

.welcome-text p {
    font-size: 20px;
    font-weight: 300;
    color: rgba(249, 247, 242, 0.85);
    letter-spacing: 0.8px;
    margin-bottom: 20px;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #F9F7F2;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.linkedin-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ===========================
   Sections
   =========================== */

section {
    min-height: auto;
    padding: 80px 0 80px;
    position: relative;
}


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

h2 {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
    color: #2a2a2a;
    font-family: 'Cormorant', serif;
}

h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    margin-top: 35px;
    letter-spacing: 0.3px;
    color: #dd9292;
}

/* ===========================
   About Section
   =========================== */

#about {
    background-color: #F9F7F2;
}

.about-content {
    max-width: 1200px;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.9;
    color: #3a3a3a;
    font-size: 17px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content a {
    color: #dd9292;
    text-decoration: none;
    border-bottom: 1px solid #dd9292;
    transition: opacity 0.3s ease;
}

.about-content a:hover {
    opacity: 0.7;
}

/* ===========================
   Experience Section
   =========================== */

.section-label {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #a8a8a8;
    margin-bottom: 8px;
}

#experience {
    background-color: #ffffff;
    padding-top: 60px;
}

#experience h2 {
    font-family: 'Cormorant', serif;
    font-size: 42px;
    font-weight: 300;
    color: #2a2a2a;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

/* Category Block */
.exp-category {
    margin-bottom: 24px;
    padding: 0;
    min-height: auto;
}

.exp-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.category-icon {
    color: #dd9292;
    display: flex;
    align-items: center;
}

.category-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
}

.category-title {
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #dd9292;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

/* Item Grid */
.item-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
}

/* Item */
.exp-item {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 16px 0;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeSlideIn 0.5s ease forwards;
}


.exp-item:nth-child(1) { animation-delay: 0.1s; }
.exp-item:nth-child(2) { animation-delay: 0.15s; }
.exp-item:nth-child(3) { animation-delay: 0.2s; }
.exp-item:nth-child(4) { animation-delay: 0.25s; }

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


.exp-item:hover .item-company {
    color: #2a2a2a;
}

.exp-item:hover .item-logo img {
    opacity: 1;
    transform: scale(1.05);
}

.exp-item:hover .item-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Current Badge (inline) */
.current-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b9080;
    background: rgba(107, 144, 128, 0.1);
    border-radius: 10px;
    vertical-align: middle;
}


.item-logo {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
}

.item-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 1;
    filter: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.item-body {
    min-width: 0;
    flex: 1;
}

.item-company {
    font-size: 17px;
    font-weight: 500;
    color: #2a2a2a;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.item-meta {
    font-size: 16px;
    color: #7a7a7a;
    margin-top: 3px;
}

.item-highlight {
    font-size: 15px;
    color: #9a9a9a;
    margin-top: 6px;
    line-height: 1.5;
}

.item-arrow {
    font-size: 14px;
    color: #7a7a7a;
    align-self: flex-start;
    margin-top: 2px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Awards */
.awards-section {
    margin-top: 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    animation: fadeSlideIn 0.5s ease forwards;
    animation-delay: 0.4s;
}

.awards-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.awards-title {
    font-family: 'Cormorant', serif;
    font-size: 18px;
    font-weight: 400;
    color: #2a2a2a;
    margin: 0;
}

.awards-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.award-item {
    font-size: 12px;
    color: #7a7a7a;
    position: relative;
    transition: color 0.2s ease;
}

.award-item:hover {
    color: #2a2a2a;
}

.award-item:not(:last-child)::after {
    content: "·";
    position: absolute;
    right: -11px;
    color: #9a9a9a;
}

/* ===========================
   Origami Section
   =========================== */

#origami {
    background-color: #F9F7F2;
}

.origami-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.origami-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(221, 146, 146, 0.15);
    border: 1px solid rgba(221, 146, 146, 0.12);
}

.origami-gallery img:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 28px rgba(221, 146, 146, 0.25);
    border-color: rgba(221, 146, 146, 0.3);
}

/* ===========================
   Contact Section
   =========================== */

#contact {
    min-height: auto;
    padding: 80px 0 80px;
    background: linear-gradient(135deg, #F9F7F2 0%, #f0ede5 100%);
}

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

.contact-subtitle {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #a8a8a8;
    margin-bottom: 8px;
}

.contact-container h2 {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
    font-family: 'Cormorant', serif;
}

.contact-form {
    max-width: 100%;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #d4d4d4;
    border-radius: 0;
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    background-color: transparent;
    transition: border-color 0.5s ease;
    margin-bottom: 0;
    color: #2a2a2a;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #a8a8a8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: #2a2a2a;
    box-shadow: none;
}

.contact-form textarea {
    resize: none;
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    margin-top: 16px;
}

.send-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin-top: 20px;
    background: transparent !important;
    background-color: transparent !important;
    border: none;
    cursor: pointer;
    color: #2a2a2a;
    transition: color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.send-button span {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 400;
    background: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.send-button::selection,
.send-button span::selection,
.send-button *::selection {
    background: transparent;
}

.send-button::-moz-selection,
.send-button span::-moz-selection,
.send-button *::-moz-selection {
    background: transparent;
}

.send-button svg {
    transition: transform 0.3s ease;
    background: transparent;
}

.send-button:hover {
    color: #dd9292;
    background: transparent !important;
    background-color: transparent !important;
}

.send-button:hover span {
    background: transparent;
}

.send-button:hover svg {
    transform: translateX(8px);
    background: transparent;
}

.send-button:focus {
    outline: none;
    background: transparent !important;
}

.send-button:active {
    background: transparent !important;
}

/* ===========================
   Responsive Design
   =========================== */

@media screen and (max-width: 1024px) {

    .container,
    .contact-container {
        padding: 0 60px;
    }

    #welcome {
        height: 100svh;
        min-height: -webkit-fill-available;
        padding: 80px 60px 120px;
    }

    #main-nav {
        right: 60px;
    }

    .color-picker-container {
        right: 60px;
    }
}

@media screen and (max-width: 768px) {
    #main-nav {
        top: 20px;
        right: 20px;
        gap: 6px;
        background: rgba(255, 255, 255, 0.15);
        padding: 12px 18px;
        border-radius: 10px;
        backdrop-filter: blur(10px);
    }

    #main-nav a {
        font-size: 11px;
        letter-spacing: 1px;
    }

    body.scrolled #main-nav {
        background: rgba(255, 255, 255, 0.9);
    }

    .color-picker-icon {
        width: 16px;
        height: 16px;
    }

    #bg-color-picker {
        width: 22px;
        height: 22px;
    }

    .nav-linkedin-icon svg {
        width: 14px;
        height: 14px;
    }

    .nav-icons {
        gap: 6px;
        margin-top: 6px;
        padding-top: 6px;
    }

    #welcome {
        height: 100svh;
        min-height: -webkit-fill-available;
        padding: 60px 30px 120px;
    }

    .welcome-text h1 {
        font-size: 42px;
    }

    .welcome-text p {
        font-size: 18px;
    }

    .container,
    .contact-container {
        padding: 0 30px;
    }

    section {
        padding: 80px 0 80px;
    }

    h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    h3 {
        font-size: 22px;
        margin-top: 30px;
    }

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

    .form-group {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-container {
        padding: 0 30px;
    }

    .contact-container h2 {
        font-size: 40px;
    }

    .origami-gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .origami-gallery img {
        height: 160px;
    }

}

@media screen and (max-width: 480px) {
    .welcome-text h1 {
        font-size: 34px;
    }

    .welcome-text p {
        font-size: 16px;
    }

    h2 {
        font-size: 30px;
    }

    .origami-gallery {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    .origami-gallery img {
        height: 130px;
    }
}