/* === HOME PAGE STYLES === */

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 3rem;
}

/* Glitch text effect */
.glitch-wrapper {
    position: relative;
}

.glitch {
    font-size: 4.5rem;
    font-weight: bold;
    color: var(--text);
    position: relative;
    display: inline-block;
    font-family: var(--font-mono);
    letter-spacing: -1px;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2.5s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    color: var(--accent);
    opacity: 0.8;
}

.glitch::after {
    animation: glitch-2 3.5s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    color: #ff6b6b;
    opacity: 0.8;
}

@keyframes glitch-1 {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-2 {
    0% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
    100% { transform: translate(0); }
}

.tagline {
    margin-top: 1.5rem;
    font-size: 1.3rem;
    opacity: 0.9;
    color: var(--text);
    font-style: italic;
}

.location {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.4;
}

/* Terminal Window */
.intro-section {
    margin-bottom: 4rem;
}

.terminal-window {
    background: #0d0d0d;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(191, 90, 242, 0.05);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    border-bottom: 1px solid var(--card-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.terminal-title {
    margin-left: 0.75rem;
    font-size: 0.75rem;
    opacity: 0.5;
}

.terminal-body {
    padding: 1.5rem;
    font-size: 0.85rem;
    line-height: 2;
}

.terminal-body .prompt {
    color: var(--accent);
    margin-right: 0.5rem;
}

.terminal-body .output {
    opacity: 0.7;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
    color: var(--accent);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Projects */
.projects {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 0.9rem;
    opacity: 0.5;
    margin-bottom: 1.5rem;
    text-transform: lowercase;
}

.project-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
    color: var(--text);
    gap: 1rem;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: -4px 0 0 var(--accent);
    opacity: 1;
}

.project-emoji {
    font-size: 1.8rem;
    min-width: 40px;
    text-align: center;
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-name {
    font-size: 1.1rem;
    font-weight: bold;
}

.project-desc {
    opacity: 0.6;
    font-size: 0.85rem;
}

.project-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--accent-dim);
    border-radius: 20px;
    opacity: 0.6;
    color: var(--accent);
}

.arrow {
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.project-card:hover .arrow {
    opacity: 1;
    transform: translateX(4px);
}

.more-coming {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.3;
    font-style: italic;
    text-align: center;
}

/* Services Grid */
.services-section {
    margin-bottom: 4rem;
}

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

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.3s, transform 0.2s;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.service-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.75rem;
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--accent);
}

.service-card p {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.6;
}

/* Stats */
.stats-section {
    margin-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.stat-item:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Connect / Social */
.connect-section {
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-pill {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--card-border);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text);
    transition: border-color 0.3s, background 0.3s, color 0.3s, box-shadow 0.3s;
}

.social-pill:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg);
    opacity: 1;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

.footer .copyright {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 600px) {
    .glitch {
        font-size: 2.5rem;
        letter-spacing: 0;
    }

    .tagline {
        font-size: 1rem;
    }

    .project-card {
        flex-wrap: wrap;
    }

    .project-emoji {
        min-width: unset;
    }

    .project-tag {
        display: none;
    }

    .arrow {
        display: none;
    }

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

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

    .social-links {
        justify-content: center;
    }
}

/* Live visitor badge */
.live-badge {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    font-size: 0.8rem;
    opacity: 0.8;
    z-index: 100;
}

.live-dot {
    width: 7px;
    height: 7px;
    background: #28c840;
    border-radius: 50%;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.5); }
}
