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

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #3385d6;
    --secondary-color: #1a1a1a;
    --text-primary: #2c3e50;
    --text-secondary: #182857;
    --background: #ffffff;
    --card-background: #ffffff;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 77, 153, 0.05) 100%);
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: "area-normal", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background: var(--background);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    line-height: 1.4;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(245 245 245 / 85%);
    z-index: 0;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 1.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container {
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.logo {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform var(--transition-base);
    opacity: 0;
    transform: scale(0.5) translateZ(-100px);
    filter: blur(20px) brightness(2);
}

.logo.animate-in {
    animation: hologramReveal 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.logo-fallback {
    opacity: 0;
    transform: scale(0.5) translateZ(-100px);
    filter: blur(20px) brightness(2);
}

.logo-fallback.animate-in {
    animation: hologramReveal 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.logo:hover {
    transform: scale(1.05) translateZ(0px);
    filter: drop-shadow(0 0 20px rgba(0, 102, 204, 0.6)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.logo-fallback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 4rem;
    font-weight: 700;
    font-family: "area-normal", sans-serif;
    color: var(--primary-color);
}

.logo-text {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 100px;
    height: 100px;
    color: #182857;
    opacity: 0.7;
}

.main-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 900;
    font-family: "area-normal", sans-serif;
    color: #182857;
    margin-top: 0.5rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    opacity: 0;
    min-height: 1.2em;
    line-height: 1.1;
}

.main-title.animating {
    opacity: 1;
}

.main-title .title-line-1,
.main-title .title-line-2 {
    display: block;
    line-height: 1;
}

.main-title .title-line-1 {
    font-size: 0.65em;
    font-weight: 400;
    color: #182857;
    opacity: 0.85;
}

.main-title .title-line-2 {
    margin-top: 0.05em;
    font-weight: 900;
}

.main-title .about-fill-char {
    display: inline-block;
    opacity: 0;
    color: #182857;
    transition: opacity 0.4s ease;
}

.main-title .title-line-1 .about-fill-char {
    color: #182857;
    opacity: 0.85;
}

.main-title .about-fill-char.visible {
    opacity: 1;
}

/* Main Content */
.main-content {
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Intro Section */
.intro-section {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.intro-text {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
}

.intro-text.animating {
    opacity: 1;
}

.intro-text .about-fill-char {
    display: inline;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.intro-text .intro-word {
    display: inline;
    white-space: nowrap;
}

.intro-text .about-fill-char.visible {
    opacity: 1;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--gradient-overlay);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    filter: blur(8px);
    margin: 2rem auto 0;
    max-width: 100%;
    width: fit-content;
}

.contact-info.animate-in {
    animation: energyPulse 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.contact-info:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: #182857;
    flex-shrink: 0;
}

.email-link {
    color: #182857;
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.email-link:hover {
    color: #0f3a6b;
    border-bottom-color: #0f3a6b;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Service Card */
.service-card {
    background: var(--card-background);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px) perspective(1000px) rotateX(15deg) scale(0.8);
    filter: blur(10px);
}

.service-card.animate-in {
    animation: cardHologram 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.3), transparent);
    transition: left 0.5s ease;
}

.service-card.animate-in::after {
    animation: scanLine 1.2s ease-out 0.3s forwards;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px) perspective(1000px) rotateX(-2deg);
    box-shadow: 0 0 40px rgba(0, 102, 204, 0.3), var(--shadow-xl);
    border-color: var(--primary-light);
    filter: brightness(1.05);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-overlay);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #182857;
    transition: all var(--transition-base);
}

.service-card:hover .card-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.card-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    font-family: "area-extended", sans-serif;
    color: #182857;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

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

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-family: "area-normal", sans-serif;
    font-size: 1rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(0);
}

.button-arrow {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.cta-button:hover .button-arrow {
    transform: translateX(4px);
}

/* Footer */
.footer {
    width: 100%;
    padding: 0;
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    border-top: 2px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-text {
    font-size: 0.9375rem;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-family: "area-normal", sans-serif;
    letter-spacing: 0.01em;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.footer-text .copyright {
    font-weight: 700;
    color: #1a1a1a;
}

.footer-text .separator {
    color: #4a4a4a;
    opacity: 0.8;
    font-weight: 500;
    margin: 0 0.25rem;
}

.footer-text .trademarks {
    font-weight: 600;
    color: #2a2a2a;
    font-size: 0.9375rem;
}

/* Background Decoration */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-overlay);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.bg-circle-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
    animation-delay: 5s;
}

.bg-circle-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

@keyframes hologramReveal {
    0% {
        opacity: 0;
        transform: scale(0.5) translateZ(-100px) rotateY(90deg);
        filter: blur(20px) brightness(2) hue-rotate(180deg);
    }
    30% {
        opacity: 0.7;
        transform: scale(1.1) translateZ(20px) rotateY(-10deg);
        filter: blur(5px) brightness(1.5) hue-rotate(90deg);
    }
    60% {
        opacity: 0.9;
        transform: scale(0.95) translateZ(0px) rotateY(5deg);
        filter: blur(2px) brightness(1.2) hue-rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateZ(0px) rotateY(0deg);
        filter: blur(0px) brightness(1) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    }
}


@keyframes glitchFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }
    20% {
        opacity: 0.5;
        transform: translateY(25px) translateX(-2px);
        filter: blur(4px);
    }
    40% {
        opacity: 0.7;
        transform: translateY(15px) translateX(2px);
        filter: blur(3px);
    }
    60% {
        opacity: 0.85;
        transform: translateY(5px) translateX(-1px);
        filter: blur(2px);
    }
    80% {
        opacity: 0.95;
        transform: translateY(-2px) translateX(1px);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateX(0);
        filter: blur(0px);
    }
}

@keyframes wordGlow {
    0% {
        opacity: 0;
        transform: translateY(15px) translateX(0);
        filter: blur(3px);
        text-shadow: 0 0 0 rgba(0, 102, 204, 0);
    }
    50% {
        opacity: 0.8;
        transform: translateY(5px) translateX(0);
        filter: blur(1px);
        text-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateX(0);
        filter: blur(0px);
        text-shadow: 0 0 5px rgba(0, 102, 204, 0.2);
    }
}

@keyframes energyPulse {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
        filter: blur(8px);
    }
    40% {
        opacity: 0.6;
        transform: translateY(10px) scale(0.95);
        filter: blur(4px);
    }
    70% {
        opacity: 0.9;
        transform: translateY(-3px) scale(1.05);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes cardHologram {
    0% {
        opacity: 0;
        transform: translateY(60px) perspective(1000px) rotateX(15deg) scale(0.8);
        filter: blur(10px) brightness(0.5);
    }
    30% {
        opacity: 0.5;
        transform: translateY(30px) perspective(1000px) rotateX(5deg) scale(0.9);
        filter: blur(6px) brightness(0.8);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-5px) perspective(1000px) rotateX(-2deg) scale(1.02);
        filter: blur(3px) brightness(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) perspective(1000px) rotateX(0deg) scale(1);
        filter: blur(0px) brightness(1);
    }
}

@keyframes scanLine {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes spotlightSweep {
    0% {
        background-position: -100% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 102, 204, 0.3),
                     0 0 40px rgba(0, 102, 204, 0.2);
        filter: brightness(1);
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 102, 204, 0.5),
                     0 0 60px rgba(0, 212, 255, 0.3),
                     0 0 80px rgba(0, 102, 204, 0.2);
        filter: brightness(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem 1rem 0.5rem;
        justify-content: flex-start;
        width: 100%;
        box-sizing: border-box;
    }

    .header {
        margin-bottom: 0.75rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
        margin-top: 0.75rem;
    }
    
    .logo {
        max-width: 200px;
    }

    .main-title {
        font-size: 1.5rem;
        margin-top: 0.25rem;
        line-height: 1.1;
    }
    
    .main-title .title-line-1,
    .main-title .title-line-2 {
        line-height: 1;
    }
    
    .main-title .title-line-2 {
        margin-top: 0.02em;
    }

    .intro-section {
        margin-bottom: 0.75rem;
        width: 100%;
        padding: 0;
    }
    
    .intro-text {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0;
        padding: 0 0.5rem;
    }

    .main-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 0;
        width: 100%;
        padding: 0.5em;
    }

    .service-card {
        padding: 0.875rem;
        width: 100%;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.5rem 0.75rem;
    }
    
    .service-card > .card-icon {
        grid-column: 1;
        grid-row: 1;
        width: 48px;
        height: 48px;
        margin: 0;
        align-self: start;
    }
    
    .service-card > .card-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .service-card > .card-title {
        grid-column: 2;
        grid-row: 1;
        font-size: 1rem;
        margin: 0;
        line-height: 1.2;
        align-self: center;
    }
    
    .service-card > .card-description {
        grid-column: 1 / -1;
        grid-row: 2;
        clear: none;
        margin-bottom: 0.75rem;
    }
    
    .service-card > .cta-button {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-content: center;
        width: 100%;
    }
    
    .card-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        justify-content: center;
    }

    .contact-info {
        order: 999;
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
        margin-top: 1rem;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.85rem;
        width: calc(100% - 2rem);
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-icon {
        width: 18px;
        height: 18px;
    }

    .bg-circle {
        display: none;
    }

    .footer {
        margin-top: 2rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-text {
        flex-direction: column;
        gap: 0;
        font-size: 0.85rem;
        line-height: 1.6;
        color: #1a1a1a;
    }

    .footer-text .separator {
        display: none;
    }
    
    .footer-text .copyright,
    .footer-text .trademarks {
        font-size: 0.85rem;
        font-weight: 600;
        color: #1a1a1a;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem 0.75rem 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .logo-container {
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .logo {
        max-width: 180px;
    }
    
    .main-title {
        font-size: 1.25rem;
        line-height: 1.05;
    }
    
    .main-title .title-line-1,
    .main-title .title-line-2 {
        line-height: 1;
    }
    
    .main-title .title-line-2 {
        margin-top: 0.02em;
    }

    .service-card {
        padding: 0.875rem;
        width: 100%;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.5rem 0.75rem;
    }
    
    .service-card > .card-icon {
        grid-column: 1;
        grid-row: 1;
        width: 48px;
        height: 48px;
        margin: 0;
        align-self: start;
    }
    
    .service-card > .card-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .service-card > .card-title {
        grid-column: 2;
        grid-row: 1;
        font-size: 1rem;
        margin: 0;
        line-height: 1.2;
        align-self: center;
    }
    
    .service-card > .card-description {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-bottom: 0.75rem;
    }
    
    .service-card > .cta-button {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-content: center;
        width: 100%;
    }
    
    .contact-info {
        width: calc(100% - 1.5rem);
        padding: 0.625rem;
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .bg-decoration,
    .cta-button {
        display: none;
    }
    
    .service-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
}
