@font-face {
    font-family: 'Faktum';
    src: url('fonts/Faktum-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Faktum';
    src: url('fonts/Faktum-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Faktum';
    src: url('fonts/Faktum-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --bg-deep: #000205;
    --card-bg: #040818;
    --neon-primary: #00d2ff;
    --neon-secondary: #3a7bd5;
    --text-white: #ffffff;
    --text-dim: #a0a8c0;
    --font-stack: 'Faktum', 'Outfit', sans-serif;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    font-family: var(--font-stack);
    color: var(--text-white);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2vh 2vw;
    overflow: hidden;
}

.main-card {
    width: 100%;
    height: 100%;
    max-width: 1800px;
    background: radial-gradient(circle at top right, #0a1535 0%, #02040a 100%);
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 5rem;
    box-shadow: 0 0 50px rgba(0, 26, 255, 0.1);
}

.noise-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10;
    opacity: 0.07;
    animation: grain 8s steps(10) infinite;
}

.glow-spot {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    animation: glowBreathe 10s ease-in-out infinite;
}

.glow-spot.top-right {
    background: var(--neon-secondary);
    top: -30%;
    right: -20%;
    animation-delay: 0s;
}

.glow-spot.bottom-left {
    background: var(--neon-primary);
    bottom: -30%;
    left: -20%;
    animation-delay: 5s;
}

header {
    position: relative;
    z-index: 2;
    padding-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    height: 48px;
    width: auto;
    opacity: 1;
}

.contact-link {
    text-decoration: none;
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;

    /* Pro Liquid Glass Effect */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 10px 40px rgba(0, 210, 255, 0.15),
        /* Neon primary glow hint */
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.contact-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.contact-link:hover .contact-icon {
    transform: translate(2px, -2px);
    color: var(--neon-primary);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 85%;
    margin-top: 2rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 6.5rem);
    line-height: 1.1;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;

    opacity: 0;
    animation: heroEnter 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

.italic-accent {
    font-style: italic;
    font-weight: 400;
    font-family: 'Times New Roman', serif;

    background: linear-gradient(90deg, #fff 0%, var(--neon-primary) 50%, #fff 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1;
    animation: textShimmer 4s linear infinite;
}

@keyframes textShimmer {
    to {
        background-position: 200% center;
    }
}

.hero-content h1 .italic-accent {
    font-family: var(--font-stack);
}

.hero-desc {
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dim);

    opacity: 0;
    animation: heroEnter 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
}

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowBreathe {
    0% {
        transform: scale(1);
        opacity: 0.25;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.35;
    }

    100% {
        transform: scale(1);
        opacity: 0.25;
    }
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -10%);
    }

    20% {
        transform: translate(-15%, 5%);
    }

    30% {
        transform: translate(7%, -25%);
    }

    40% {
        transform: translate(-5%, 25%);
    }

    50% {
        transform: translate(-15%, 10%);
    }

    60% {
        transform: translate(15%, 0%);
    }

    70% {
        transform: translate(0%, 15%);
    }

    80% {
        transform: translate(3%, 35%);
    }

    90% {
        transform: translate(-10%, 10%);
    }
}

.spotlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.03),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.footer-grid {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 0;
    margin-top: auto;

    opacity: 0;
    animation: heroEnter 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
}

.grid-col {
    flex: 1;
    padding: 3rem 2rem 2rem 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    cursor: pointer;
    position: relative;
    background: transparent;

    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-col:last-child {
    border-right: none;
}

.grid-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    transition: height 0.5s ease;
    z-index: -1;
}

.grid-col:hover::before {
    height: 100%;
}

.col-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.col-num {
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--neon-primary);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.col-header h3 {
    font-size: 1.8rem;
    font-weight: 400;
    color: #fff;
}

.col-text {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 90%;
}

.col-icon {
    align-self: flex-end;
    margin-top: auto;
    width: 32px;
    height: 32px;
    color: #fff;
    opacity: 0.5;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.grid-col:hover .col-icon {
    opacity: 1;
    color: var(--neon-primary);
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    body {
        height: auto;
        overflow-y: auto;
        display: block;
        -webkit-overflow-scrolling: touch;
    }

    .main-card {
        height: auto;
        min-height: 100vh;
        border-radius: 0;
        padding: 2rem;
        transform: none !important;
        overflow: hidden;
    }

    body {
        perspective: none;
    }

    .spotlight-overlay {
        display: none;
    }

    .hero-content {
        margin: 3rem 0 4rem 0;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .footer-grid {
        flex-direction: column;
        border-top: none;
    }

    .grid-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 2.5rem 0;
        min-height: auto;
    }

    .grid-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .col-icon {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-card {
        padding: 1.5rem;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .contact-link {
        width: 100%;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
    }

    .hero-content h1 {
        font-size: 2.5rem;
        word-wrap: break-word;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .brand-logo {
        height: 32px;
    }
}