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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #fff;
    /* overflow: hidden; */
    /* height: 100vh; */
}

.container {
    position: relative;
    width: 100%;
    /* height: 100vh; */
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

/* =========================
   BACKGROUND ELEMENTS
   ========================= */
.bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridPulse 8s ease-in-out infinite;
}

.floating-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #fff, #888);
    border-radius: 50%;
    animation: nodeFloat 6s ease-in-out infinite;
}

.node-1 { top: 20%; left: 15%; animation-delay: 0s; }
.node-2 { top: 60%; left: 85%; animation-delay: 1.5s; }
.node-3 { top: 30%; left: 75%; animation-delay: 3s; }
.node-4 { top: 80%; left: 25%; animation-delay: 4.5s; }
.node-5 { top: 45%; left: 45%; animation-delay: 2s; }

.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 1px, transparent 1px);
    animation: connectionPulse 4s ease-in-out infinite;
}

/* =========================
   HEADER & LOGO
   ========================= */
.header {
    position: relative;
    z-index: 10;
/*     margin-bottom: 3rem; */
}

.logo {
    position: relative;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}

.logo-accent {
    position: absolute;
    top: -2px;
    right: -10px;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #fff, #666);
    animation: accentPulse 2s ease-in-out infinite;
}

/* =========================
   MAIN CONTENT
   ========================= */
.main-content {
    flex: 1;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
}

.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text {
    max-width: 600px;
    margin: 0 auto;
}

.tagline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

.subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #ccc;
    font-weight: 300;
}

/* =========================
   SERVICES PREVIEW
   ========================= */
.services-preview {
/*     margin-top: 4rem; */
    perspective: 1000px;
    transform-style: preserve-3d;
    position: relative;
}

.services-preview::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: 
        radial-gradient(circle at center, 
            rgba(255,255,255,0.03) 0%,
            transparent 70%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.01) 2px,
            rgba(255,255,255,0.01) 4px
        );
    transform: translate(-50%, -50%);
    animation: ambientPulse 8s ease-in-out infinite;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 90%;
    margin: 0 auto;
    position: relative;
    transform: rotateX(5deg);
}

.service-card {
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.03) 0%,
        rgba(255,255,255,0.02) 100%
    );
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: translateZ(20px);
    box-shadow: 
        0 4px 24px rgba(0,0,0,0.2),
        inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* Remove individual card transforms */
.service-card:nth-child(1),
.service-card:nth-child(2),
.service-card:nth-child(3) {
    transform: translateZ(20px);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
            rgba(255,255,255,0.1) 0%,
            transparent 80%),
        linear-gradient(
            135deg,
            rgba(255,255,255,0.05) 0%,
            transparent 50%,
            rgba(255,255,255,0.05) 100%
        );
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.03),
            transparent
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(255,255,255,0.02) 1px,
            rgba(255,255,255,0.02) 2px
        );
    transform: translateX(-100%);
    animation: shimmer 8s infinite;
    opacity: 0.5;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.02em;
}

.service-card h3::before {
    content: '01';
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.1em;
}

.service-card:nth-child(2) h3::before {
    content: '02';
}

.service-card:nth-child(3) h3::before {
    content: '03';
}

.service-card p {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-feature-settings: "ss01" on;
}

/* =========================
   CREDENTIALS SECTION
   ========================= */
.creds-section {
    margin: 0 auto 0;
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 0 1rem 0.5rem 1rem;
}

.creds-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 120%;
    height: 100%;
/*     background: linear-gradient(to bottom, rgba(255,255,255,0.03) 0%, transparent 80%); */
    transform: translateX(-50%);
    pointer-events: none;
    z-index: -1;
}

.creds-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.creds-divider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 180px;
    margin: 0 auto 0.2rem auto;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
}

.divider-dot {
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

.creds-header {
    font-size: 1.05rem;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.creds-logos {
    display: flex;
    gap: 1.7rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0.2rem 0 0 0;
}

.logo-wrapper {
    position: relative;
    padding: 0.2rem;
    transition: transform 0.3s ease;
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
        rgba(255,255,255,0.1) 0%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

.logo-wrapper:hover {
    transform: translateY(-2px);
}

.logo-wrapper:hover::before {
    opacity: 1;
}

.creds-logo {
    height: 26px;
    filter: brightness(0) invert(1) grayscale(1) opacity(0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: filter, transform;
}

.logo-wrapper:hover .creds-logo {
    filter: brightness(0) invert(1) grayscale(0) opacity(1);
    transform: scale(1.05);
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* =========================
   FOOTER & CONTACT
   ========================= */
.footer {
    position: relative;
    z-index: 10;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
}

.contact-section {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1.2rem;
}

.contact-text {
    font-size: 0.98rem;
    color: #ccc;
    margin-bottom: 0.7rem;
}

.contact-email {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
    word-break: break-all;
}

.contact-email:hover {
    color: #ccc;
}

.email-underline {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #fff, #888);
    transition: width 0.4s ease;
}

.contact-email:hover .email-underline {
    width: 100%;
}

.footer-note {
    text-align: center;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-note p {
    font-size: 0.8rem;
    color: #666;
    font-family: 'JetBrains Mono', monospace;
}

/* =========================
   ANIMATIONS
   ========================= */
@keyframes gridPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes nodeFloat {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.6; }
    50% { transform: translateY(-10px) scale(1.2); opacity: 1; }
}

@keyframes connectionPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

@keyframes accentPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    20%, 100% { transform: translateX(100%); }
}

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

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 1024px) {
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 95%;
        gap: 2rem;
    }
    
    .service-card:nth-child(3) {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0.7rem;
    }
    .service-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        transform: none;
    }
    
    .service-card {
        transform: none !important;
    }
    
    .service-card:nth-child(3) {
        grid-column: span 1;
    }
    .main-content {
        gap: 1.2rem;
    }
    .creds-section {
        margin-top: 1.2rem;
        padding: 0 0.2rem 0.2rem 0.2rem;
    }
    .creds-logos {
        gap: 1.1rem;
    }
    .creds-logo {
        height: 18px;
    }
    .footer {
        margin-top: 0.7rem;
        padding-top: 0.7rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        gap: 0.7rem;
    }
    .creds-section {
        margin-top: 0.7rem;
    }
    .creds-logos {
        gap: 0.7rem;
    }
    .creds-logo {
        height: 14px;
    }
    .footer-note p {
        font-size: 0.7rem;
    }
    .tagline {
        font-size: 1.8rem;
        margin-top: 50px;
    }
    .logo h1 {
        font-size: 1.5rem;
    }
}
