@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,400;0,600;0,700;1,700&family=Pretendard:wght@400;600;800&display=swap');

:root {
    --bg-main: #060913;
    --bg-panel: #111524;
    --mint: #00ffaa;
    --mint-glow: rgba(0, 255, 170, 0.4);
    --mint-dark: #00cc88;
    --accent: #ff2a6d;
    --text-main: #f0f4f8;
    --text-muted: #8b94a5;
    --border-color: #1e253c;
    --grid-color: rgba(255, 255, 255, 0.03);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .glitch-badge, .logo, .nav-links a, .btn {
    font-family: 'Chakra Petch', sans-serif;
    text-transform: uppercase;
}

/* Background Effects */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    pointer-events: none;
}

.grid-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 20%, var(--bg-main) 100%);
}

.mint-text {
    color: var(--mint);
    text-shadow: 0 0 10px var(--mint-glow);
}

.mint-gradient {
    background: linear-gradient(135deg, var(--mint), #00b3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 170, 0.3);
}

/* Navigation */
.mint-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mint);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a:hover::before {
    width: 100%;
    box-shadow: 0 0 10px var(--mint);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    background: none;
    z-index: 1;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-mint {
    background: var(--mint);
    color: #000;
}

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

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

.btn-mint:hover {
    box-shadow: 0 0 20px var(--mint-glow);
}

.btn-outline {
    background: var(--bg-panel);
    color: var(--mint);
    border: 2px solid var(--mint);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-outline:hover {
    background: rgba(0, 255, 170, 0.1);
}

/* Sections Base */
main section {
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--mint);
    margin-top: 1rem;
    box-shadow: 0 0 10px var(--mint-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.glitch-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 170, 0.1);
    border-left: 4px solid var(--mint);
    color: var(--mint);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: 0;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Background Decor circles */
.hero-decor {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

.tech-circle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border: 1px dashed var(--mint);
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}

.tech-circle.small {
    width: 60%; height: 60%;
    border: 2px solid var(--border-color);
    border-top-color: var(--mint);
    animation: rotate 15s linear infinite reverse;
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--bg-panel);
    padding: 3rem 2rem;
    text-decoration: none;
    color: var(--text-main);
    position: relative;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--mint);
    box-shadow: 0 10px 30px rgba(0, 255, 170, 0.1);
}

.card-icon {
    font-size: 3rem;
    color: var(--mint);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 8px var(--mint-glow));
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.game-card p {
    color: var(--text-muted);
    font-family: 'Pretendard', sans-serif;
    font-size: 1rem;
}

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

.domain-box {
    background: linear-gradient(135deg, rgba(17, 21, 36, 0.8) 0%, rgba(10, 12, 20, 0.9) 100%);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s;
}

.domain-box:hover {
    border-color: var(--mint);
    box-shadow: inset 0 0 20px rgba(0, 255, 170, 0.05);
}

.box-corner {
    position: absolute;
    top: 0; right: 0;
    width: 30px; height: 30px;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    transition: all 0.3s;
}

.domain-box:hover .box-corner {
    border-color: var(--mint);
    background: rgba(0, 255, 170, 0.1);
}

.domain-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-wrap {
    width: 50px; height: 50px;
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid var(--mint);
    display: flex; align-items: center; justify-content: center;
    color: var(--mint);
    font-size: 1.5rem;
    transform: rotate(45deg);
}

.icon-wrap i {
    transform: rotate(-45deg);
}

.domain-header h3 {
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.domain-list {
    list-style: none;
}

.domain-list li {
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.domain-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--mint);
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
}

/* Expertise */
.tech-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.tech-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.tech-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--mint);
}

.tech-panel.alt::before {
    background: var(--accent);
}

.tech-panel.alt .mint-text {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(255, 42, 109, 0.4);
}

.tech-panel h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cyber-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: default;
}

.cyber-tag:hover {
    background: rgba(0, 255, 170, 0.1);
    border-color: var(--mint);
    color: var(--mint);
    transform: scale(1.05);
}

.tech-panel.alt .cyber-tag:hover {
    background: rgba(255, 42, 109, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 6rem 2rem 2rem;
    text-align: center;
    background: #04060c;
    position: relative;
}

.footer-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

footer p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: #4a5568;
    font-size: 0.9rem;
    font-family: 'Chakra Petch', sans-serif;
    letter-spacing: 2px;
}

/* Resume Section */
.resume-section {
    position: relative;
    z-index: 2;
}

.resume-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.resume-preview-box {
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: #ffffff; /* White background for document feel */
    color: #111;
    border: 4px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 170, 0.2);
}

/* Auto Scrolling Animation */
.resume-scroll-content {
    padding: 3rem;
    animation: auto-scroll 15s linear infinite alternate;
}

.resume-preview-box:hover .resume-scroll-content {
    animation-play-state: paused;
}

@keyframes auto-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-30%); }
}

/* Mock Resume Styling */
.mock-resume {
    font-family: 'Pretendard', sans-serif;
}

.mock-resume h2 {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 0.5rem;
    text-transform: none;
    font-family: 'Pretendard', sans-serif;
}

.mock-resume .mock-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.mock-resume hr {
    border: none;
    border-top: 2px solid #ccc;
    margin-bottom: 2rem;
}

.mock-resume h3 {
    font-size: 1.3rem;
    color: #0050aa;
    margin-bottom: 1rem;
    text-transform: none;
    font-family: 'Pretendard', sans-serif;
}

.mock-resume p, .mock-resume ul {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.6;
}

.mock-resume ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.mock-resume ul li::before {
    content: none;
}
.mock-resume ul li {
    color: #333;
}

.preview-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(transparent, rgba(6, 9, 19, 1));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1rem;
}

.preview-overlay span {
    color: var(--mint);
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    letter-spacing: 5px;
    opacity: 0.8;
}

.resume-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Inflearn Layout */
.inflearn-course-container {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.inflearn-info-header {
    margin-bottom: 3rem;
}

.marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 2rem;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-content {
    display: inline-flex;
    gap: 1.5rem;
    animation: marqueeSlide 25s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.review-card {
    width: 400px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--mint);
    flex-shrink: 0;
    white-space: normal;
}

@keyframes marqueeSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.75rem)); }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--mint);
    cursor: pointer;
    z-index: 101;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; }
    .hero-decor { opacity: 0.15; }
    .domain-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* Responsive - Mobile (Phones) */
@media (max-width: 768px) {
    /* Navbar & Mobile Menu */
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 70%; height: 100vh;
        background: rgba(6, 9, 19, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li { margin: 1.5rem 0; }
    .nav-links a { font-size: 1.5rem; }

    /* Layout & Sections */
    main section {
        padding: 6rem 1.5rem 3rem;
    }

    /* Hero Section */
    .hero { padding-top: 8rem; }
    .hero-title { 
        font-size: 2.8rem; 
        line-height: 1.2;
    }
    .hero-description { font-size: 1.1rem; }
    .hero-buttons { 
        flex-direction: column; 
        gap: 1rem; 
        width: 100%;
    }
    .btn { width: 100%; justify-content: center; }
    .hero-decor { display: none; }

    /* Section Headers */
    .section-title { font-size: 2.2rem; }
    .title-line { margin: 1rem auto 0; }
    .section-header { text-align: center; }

    /* Grids */
    .activities-grid { grid-template-columns: 1fr; }
    .domain-grid { grid-template-columns: 1fr; }
    
    /* Domain Boxes */
    .domain-box { padding: 1.5rem; }
    .domain-header h3 { font-size: 1.2rem; }
    
    /* Tech Arsenal */
    .tech-panel { padding: 1.5rem; }
    .tech-panel h3 { font-size: 1.5rem; }
    .tech-tags { justify-content: center; }
    .cyber-tag { font-size: 0.9rem; padding: 0.6rem 1rem; }

    /* Inflearn & Resume Section */
    .inflearn-course-container { padding: 1.5rem; }
    .review-card { width: 300px; }
    .resume-preview-box { height: 300px; }
    .resume-scroll-content { padding: 1.5rem; }
    .mock-resume h2 { font-size: 1.8rem; }
    .mock-resume .mock-subtitle { font-size: 1rem; }
    .mock-resume h3 { font-size: 1.1rem; }
    .resume-actions { flex-direction: column; width: 100%; }

    /* Footer */
    .footer-title { font-size: 2rem; }
    footer { padding: 4rem 1.5rem 2rem; }
}

/* Extra Small Phones */
@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .glitch-badge { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
    .logo { font-size: 1.2rem; }
}
