/* ============================================
   KUSHARTAWAN PERSONAL WEBSITE
   Modern Professional Portfolio Design
   ============================================ */

/* === CSS Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === CSS Custom Properties === */
:root {
    /* Colors */
    --color-primary: #0a0a0a;
    --color-secondary: #1a1a1a;
    --color-accent: #fbbf24;
    --color-text: #0a0a0a;
    --color-text-light: #525252;
    --color-white: #ffffff;
    --color-background: #fafafa;

    /* Spacing (8px base) */
    --space-1: 0.5rem;   /* 8px */
    --space-2: 1rem;     /* 16px */
    --space-3: 1.5rem;   /* 24px */
    --space-4: 2rem;     /* 32px */
    --space-5: 2.5rem;   /* 40px */
    --space-6: 3rem;     /* 48px */
    --space-8: 4rem;     /* 64px */
    --space-10: 5rem;    /* 80px */

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base Styles === */
html {
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    height: 100%;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-white);
    overflow: hidden;
}

/* === Main Container === */
.container {
    display: grid;
    grid-template-columns: 45fr 55fr;
    height: 100vh;
    overflow: hidden;
}

/* ============================================
   IMAGE SECTION
   ============================================ */
.image-section {
    position: relative;
    background: var(--color-background);
    overflow: hidden;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ============================================
   CONTENT SECTION
   ============================================ */
.content-section {
    background: var(--color-white);
    overflow-y: auto;
    overflow-x: hidden;
}

.content-wrapper {
    max-width: 40rem;
    padding: var(--space-8) var(--space-6);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

/* === Profile Header === */
.profile-header {
    margin-bottom: var(--space-6);
}

.name {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.credentials {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    font-size: 1rem;
    color: var(--color-text-light);
}

.degree {
    font-weight: 600;
    color: var(--color-text);
}

.separator {
    color: var(--color-accent);
    font-weight: 700;
}

.university {
    font-weight: 500;
}

/* === Main Content === */
.main-content {
    margin-bottom: var(--space-6);
}

.lead {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.lead strong {
    color: var(--color-text);
    font-weight: 700;
    position: relative;
    display: inline;
}

.lead strong::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: -0.1em;
    right: -0.1em;
    height: 0.4em;
    background: var(--color-accent);
    opacity: 0.3;
    z-index: -1;
    border-radius: 0.2em;
}

.description {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.5;
    color: var(--color-text);
    font-weight: 600;
}

/* === Call to Action === */
.cta-wrapper {
    padding-top: var(--space-5);
    border-top: 2px solid var(--color-background);
}

.cta-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 999px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(188, 24, 136, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(188, 24, 136, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button .icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* === Footer === */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-3);
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
    backdrop-filter: blur(8px);
    z-index: 100;
}

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

/* Tablet & Below */
@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: 45vh auto;
        overflow-y: auto;
    }

    body {
        overflow-y: auto;
    }

    .image-section {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .content-section {
        overflow-y: visible;
    }

    .content-wrapper {
        padding: var(--space-6) var(--space-4);
        min-height: auto;
    }

    .name {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .credentials {
        font-size: 0.9rem;
    }

    .lead {
        font-size: clamp(1.125rem, 4vw, 1.5rem);
    }

    .description {
        font-size: clamp(1.125rem, 4vw, 1.5rem);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .container {
        grid-template-rows: 40vh auto;
    }

    .content-wrapper {
        padding: var(--space-5) var(--space-3) var(--space-8);  /* Tambah padding bottom */
    }

    .name {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
        margin-bottom: var(--space-2);
    }

    .credentials {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
        font-size: 0.875rem;
    }

    .separator {
        display: none;
    }

    .profile-header {
        margin-bottom: var(--space-5);
    }

    .main-content {
        margin-bottom: var(--space-5);
    }

    .lead {
        font-size: 1.125rem;
        margin-bottom: var(--space-2);
    }

    .description {
        font-size: 1rem;
    }

    .cta-wrapper {
        padding-top: var(--space-4);
        padding-bottom: var(--space-6);  /* Tambah space di bawah */
    }

    .cta-label {
        font-size: 1rem;
        margin-bottom: var(--space-2);
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .footer {
        font-size: 0.75rem;
        padding: var(--space-2);
    }
}

/* Large Desktop */
@media (min-width: 1600px) {
    .content-wrapper {
        max-width: 48rem;
        padding: var(--space-10) var(--space-8);
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .footer {
        position: static;
        background: none;
    }

    .cta-button {
        box-shadow: none;
    }
}
