/* ai.html — AI activity page styles */

.ai-page {
    background-color: transparent !important;
}

#ai-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.ai-hero-section {
    background: linear-gradient(135deg, var(--main) 0%, #1a2e40 100%);
    color: var(--white);
    padding: 100px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ai-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(124, 149, 128, 0.2) 0%, transparent 70%);
}

.ai-hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 0 20px;
}

.ai-hero-title {
    font-family: "Michroma", sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--white);
    margin: 0 0 20px;
    letter-spacing: 0.05em;
    position: relative;
    animation: strokeAnim 2s ease forwards;
}

.ai-hero-title::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: #333;
    opacity: 0;
    animation: fadeInLiteral 2s ease 0.5s forwards;
}

@keyframes fadeInLiteral {
    to { opacity: 1; }
}

.ai-hero-sub {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
}

.ai-section-heading {
    font-family: "Michroma", sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.ai-section-subtext {
    text-align: center;
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ai-service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 20px;
}

.ai-service-item {
    background: #ffffff;
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 25px var(--shadow-color);
    border-top: 4px solid var(--accent);
    transition: transform 0.3s ease;
}

.ai-service-item:hover { transform: translateY(-6px); }

.ai-num {
    font-family: "Michroma";
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    opacity: 0.7;
}

.ai-num::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(124, 149, 128, 0.3), transparent);
    animation: scanline 2s linear infinite;
}

@keyframes scanline {
    0% { top: -100%; }
    100% { top: 100%; }
}

.ai-service-title {
    font-family: "Michroma";
    font-size: 1.15rem;
    margin: 0 0 14px;
    color: var(--main);
    line-height: 1.4;
}

.ai-service-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.ai-message-box {
    background: var(--main);
    color: var(--white);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.ai-message-box p {
    font-size: 1.05rem;
    line-height: 1.9;
    opacity: 0.9;
    margin: 0;
}

.ai-message-section {
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
}

.ai-message-text {
    font-size: clamp(1rem, 4vw, 1.5rem);
    line-height: 2;
    font-weight: 500;
    background: linear-gradient(90deg, #333 0%, #666 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ai-keyword {
    font-family: "Michroma";
    font-size: clamp(3rem, 8vw, 5rem);
    display: block;
    margin: 40px 0;
    color: var(--accent);
    opacity: 0.1;
    filter: blur(1px);
    animation: digitalPulse 3s infinite ease-in-out;
}

@keyframes digitalPulse {
    0% { opacity: 0.1; filter: blur(1px); }
    50% { opacity: 0.3; filter: blur(0px); text-shadow: 0 0 10px var(--accent); }
    100% { opacity: 0.1; filter: blur(1px); }
}

.ai-contact {
    text-align: center;
    padding: 100px 0;
}

.ai-contact-btn {
    font-family: "Michroma", sans-serif;
    font-size: 1.2rem;
    border: 1px solid #333;
    padding: 20px 60px;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #333;
}

.ai-contact-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #333;
    transition: width 0.3s ease;
    z-index: -1;
}

.ai-contact-btn:hover { color: #fff; }
.ai-contact-btn:hover::before { width: 100%; }

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


@media (max-width: 768px) {
    .ai-service-title { font-size: 1rem; }
}
