/* 
   t.gomgom.net - Portfolio Stylesheet 
   Author: 곰곰쌤
*/

:root {
    /* Colors */
    --primary: #b45309;
    --primary-light: #fef3c7;
    --primary-hover: #92400e;
    --bg-main: #fffdf5;
    --bg-surface: #ffffff;
    --text-main: #332115;
    --text-muted: #785a46;
    --border: #f3e8d5;
    --accent: #f59e0b;
    
    /* Typography */
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    
    /* Spacing & Sizes */
    --max-width: 1100px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(217, 119, 6, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(217, 119, 6, 0.39);
    color: white;
}

.btn-block {
    width: 100%;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-normal);
}

.header.scrolled {
    border-bottom-color: var(--border);
    background-color: rgba(255, 255, 255, 0.95);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.logo-icon {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
}

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

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background: linear-gradient(135deg, #feca90 0%, #fee595 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 450px;
}

.character-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-content {
    flex: 1.2;
    position: relative;
    z-index: 2;
}

.greeting {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: var(--text-main);
    word-break: keep-all;
}

.hero-title strong {
    color: var(--primary);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.current-status {
    margin-bottom: 48px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-surface);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    font-size: 0.95rem;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--text-muted);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

.external-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition-fast);
}

.external-link i {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.external-link:hover {
    color: var(--primary);
}

.external-link:hover i {
    color: var(--primary);
}

.card-annotation {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 12px;
    font-weight: 500;
}

/* Sections Common */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Portfolio Section (진로교육.com) */
.portfolio-section {
    background-color: #0f172a; /* Slate 900 */
    color: #f8fafc;
    padding: 100px 0;
    overflow: hidden;
}

.portfolio-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.portfolio-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 500px;
}

.animated-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.5));
}

.portfolio-content {
    flex: 1;
}

.portfolio-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Pretendard', sans-serif;
}

.portfolio-desc {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #cbd5e1; /* Slate 300 */
    margin-bottom: 30px;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: #f8fafc;
    border: 2px solid #f8fafc;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-outline-light:hover {
    background: #f8fafc;
    color: #0f172a;
    transform: translateY(-2px);
}

/* Core Identity (Expertise) Section */
.expertise-section {
    background-color: var(--bg-surface);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.identity-card {
    background-color: var(--bg-main);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid var(--border);
}

.identity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background-color: white;
    border-color: var(--primary-light);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    transition: all var(--transition-normal);
}

.identity-card:hover .card-icon {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Career Section */
.career-section {
    background-color: var(--bg-main);
}

.career-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid var(--border);
    background-color: #fafafa;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.tab-btn:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.tab-btn.active {
    color: var(--primary);
    background-color: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.tab-body {
    padding: 40px;
}

.tab-pane {
    display: none;
    animation: fadeIn var(--transition-normal);
}

.tab-pane.active {
    display: block;
}

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

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 120px;
    width: 2px;
    height: 100%;
    background-color: var(--border);
}

.timeline-item {
    display: flex;
    margin-bottom: 32px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    width: 120px;
    padding-right: 32px;
    text-align: left;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    position: relative;
    padding-top: 2px;
}

.timeline-year::after {
    content: '';
    position: absolute;
    top: 8px;
    right: -6px;
    width: 14px;
    height: 14px;
    background-color: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    padding-left: 32px;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.timeline-org {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: block;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-surface);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.2rem;
    margin-bottom: 24px;
    line-height: 1.3;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
}

.contact-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.contact-link:hover {
    color: var(--primary);
}

.sns-links {
    display: flex;
    gap: 16px;
}

.sns-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    font-size: 1.2rem;
    border: 1px solid var(--border);
}

.sns-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.contact-form-container {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: var(--bg-main);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.copyright {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Visibility Utility */
.mobile-only {
    display: none;
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        margin-top: 40px;
    }
    
    .portfolio-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .portfolio-logo {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .portfolio-title {
        font-size: 2.5rem;
    }
    
    .hero-image {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 24px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform var(--transition-normal);
        border-top: 1px solid var(--border);
    }
    
    .main-nav.open {
        transform: translateY(0);
    }
    
    .nav-links {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-link {
        display: inline-block;
        font-size: 1.1rem;
        padding: 8px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .tab-header {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: 1px solid var(--border);
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-year {
        width: auto;
        text-align: left;
        padding-left: 40px;
        margin-bottom: 8px;
    }
    
    .timeline-year::after {
        left: 12px;
        right: auto;
    }
    
    .timeline-content {
        padding-left: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .status-badge {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tab-body {
        padding: 24px 16px;
    }
    
    .contact-form-container {
        padding: 24px;
    }
}
