/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Colors - Toned Down */
    --accent-blue: #4a9eff;
    --accent-purple: #6366f1;
    --accent-teal: #14b8a6;
    --accent-pink: #ec4899;
    --accent-green: #10b981;

    /* Base Colors */
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #24243e;
    --text-primary: #ffffff;
    --text-secondary: #b4b4c8;
    --text-tertiary: #8888a0;

    /* Fonts */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Noto Sans KR', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

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

/* ==================== BACKGROUND ==================== */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(74, 158, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 158, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

.scan-line {
    display: none; /* Removed for less futuristic look */
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 158, 255, 0.15);
    z-index: 1000;
}

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

.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logo-bracket {
    color: var(--accent-blue);
    font-size: 1.8rem;
}

.logo-text {
    color: var(--text-primary);
    letter-spacing: 0.1em;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-blue);
}

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

.nav-link.cyber-button {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--accent-blue);
    border-radius: 6px;
    color: var(--accent-blue);
    transition: all 0.3s ease;
}

.nav-link.cyber-button::after {
    display: none;
}

.nav-link.cyber-button:hover {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--accent-blue);
    transition: all 0.3s ease;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 4rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 700px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    color: var(--accent-teal);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.rotating-text {
    display: inline-block;
    position: relative;
    height: 4.5rem;
    overflow: hidden;
}

.rotating-text .word {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(100%);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rotateWord 8s infinite;
}

.rotating-text .word:nth-child(1) { animation-delay: 0s; }
.rotating-text .word:nth-child(2) { animation-delay: 2s; }
.rotating-text .word:nth-child(3) { animation-delay: 4s; }
.rotating-text .word:nth-child(4) { animation-delay: 6s; }

@keyframes rotateWord {
    0%, 25% { opacity: 0; transform: translateY(100%); }
    30%, 45% { opacity: 1; transform: translateY(0); }
    50%, 100% { opacity: 0; transform: translateY(-100%); }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.typing-text {
    color: var(--accent-blue);
    border-right: 2px solid var(--accent-blue);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.05em;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
}

.cta-button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    transition: left 0.5s ease;
}

.cta-button.primary:hover::before {
    left: 0;
}

.cta-button .button-text,
.cta-button .button-glitch {
    position: relative;
    z-index: 1;
}

.cta-button .button-glitch {
    display: none; /* Removed glitch effect */
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-blue);
}

.cta-button.secondary:hover {
    background: rgba(74, 158, 255, 0.1);
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.2);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-blue), transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: translateY(0); opacity: 0; }
    50% { transform: translateY(20px); opacity: 1; }
}

.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hologram {
    width: 400px;
    height: 400px;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    position: relative;
    animation: rotate 30s linear infinite;
}

.hologram::before,
.hologram::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--accent-purple);
    border-radius: 50%;
}

.hologram::before {
    width: 70%;
    height: 70%;
    animation: pulse 4s ease-in-out infinite;
}

.hologram::after {
    width: 40%;
    height: 40%;
    border-color: var(--accent-teal);
    animation: pulse 4s ease-in-out infinite reverse;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* ==================== GLITCH EFFECT - REMOVED ==================== */
.glitch {
    position: relative;
}

/* Glitch effect removed for cleaner look */

/* ==================== MARQUEE ==================== */
.marquee-container {
    background: linear-gradient(90deg, var(--bg-secondary), var(--bg-tertiary), var(--bg-secondary));
    border-top: 1px solid rgba(74, 158, 255, 0.2);
    border-bottom: 1px solid rgba(74, 158, 255, 0.2);
    padding: 1.5rem 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee {
    display: flex;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    will-change: transform;
    width: max-content;
}

.marquee span {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    padding-right: 4rem;
    flex-shrink: 0;
    display: inline-block;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

/* ==================== SECTION STYLES ==================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent-teal);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    padding: 8rem 2rem;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(36, 36, 62, 0.8));
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.08), rgba(99, 102, 241, 0.08));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 15px 35px rgba(74, 158, 255, 0.15);
}

.card-number {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(74, 158, 255, 0.1);
    transition: all 0.4s ease;
}

.service-card:hover .card-number {
    color: rgba(74, 158, 255, 0.25);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
    transition: all 0.4s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.05);
    color: var(--accent-purple);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

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

.card-features {
    list-style: none;
}

.card-features li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.card-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

/* ==================== TECH STACK SECTION ==================== */
.tech-stack {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

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

.tech-category-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-blue);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-item {
    padding: 0.5rem 1rem;
    background: rgba(74, 158, 255, 0.05);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
}

.tech-item:hover {
    background: rgba(74, 158, 255, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: 8rem 2rem;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.highlight {
    color: var(--accent-blue);
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.code-window {
    background: var(--bg-tertiary);
    border: 1px solid rgba(74, 158, 255, 0.25);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.code-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(74, 158, 255, 0.2);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.code-dot:nth-child(2) {
    background: #ffbd2e;
}

.code-dot:nth-child(3) {
    background: #27c93f;
}

.code-title {
    margin-left: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.code-content {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

.code-keyword { color: var(--accent-pink); }
.code-variable { color: var(--accent-blue); }
.code-property { color: var(--accent-purple); }
.code-string { color: var(--accent-green); }
.code-value { color: #fbbf24; }
.code-method { color: var(--accent-teal); }

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(74, 158, 255, 0.05);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(74, 158, 255, 0.08);
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.15);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

select.form-input {
    cursor: pointer;
}

textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    width: 100%;
    padding: 1.2rem;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: white;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 158, 255, 0.3);
}

.button-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.submit-button:hover .button-arrow {
    transform: translateX(5px);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(74, 158, 255, 0.15);
    padding: 4rem 2rem 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(74, 158, 255, 0.15);
}

.footer-brand {
    max-width: 100%;
}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-tagline {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-title {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

.footer-info {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(74, 158, 255, 0.15);
}

.footer-info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.footer-info-row:last-child {
    margin-bottom: 0;
}

.info-item {
    display: inline-flex;
    align-items: center;
}

.info-item strong {
    color: var(--text-secondary);
    margin-right: 0.5rem;
    font-weight: 600;
}

.info-separator {
    color: rgba(74, 158, 255, 0.3);
    margin: 0 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.footer-bottom-left {
    flex: 1;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-blue);
}

.footer-separator {
    color: rgba(74, 158, 255, 0.3);
}

.footer-tech {
    margin-top: 0.5rem;
    color: var(--accent-blue);
    opacity: 0.7;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .rotating-text {
        height: 3.5rem;
    }

    .hologram {
        width: 300px;
        height: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-separator {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
    }

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

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .rotating-text {
        height: 3rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .hologram {
        width: 250px;
        height: 250px;
    }

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

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

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-separator {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .rotating-text {
        height: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .marquee span {
        font-size: 1rem;
    }
}
