/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0A0A0F;
    font-family: 'Inter', sans-serif;
    color: white;
    overflow-x: hidden;
}

/* ========== SPLASH SCREEN ========== */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050508;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

.splash-content {
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

.splash-logo {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00E0FF, #0055FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1px;
}

.splash-sub {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 10px;
    letter-spacing: 2px;
}

.splash-loader {
    width: 250px;
    height: 3px;
    background: #1A1A2A;
    margin: 30px auto 15px;
    border-radius: 10px;
    overflow: hidden;
}

.loader-line {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00E0FF, #0055FF);
    border-radius: 10px;
    transition: width 0.1s linear;
}

.splash-percent {
    font-family: monospace;
    font-size: 1.2rem;
    color: #00E0FF;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== HEADER ========== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 224, 255, 0.2);
}

.logo img {
    width: 120px;
    height: 60px;
}

nav a {
    color: #ddd;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover, nav a.active {
    color: #00E0FF;
    border-bottom: 2px solid #00E0FF;
    padding-bottom: 5px;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ========== HERO SECTION (HOME) ========== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 50px 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(0, 80, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 224, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 224, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-left {
    flex: 1.2;
    min-width: 280px;
}

.hero-badge {
    color: #00E0FF;
    letter-spacing: 3px;
    font-size: 0.8rem;
    border-left: 3px solid #00E0FF;
    padding-left: 12px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin: 20px 0 10px;
    line-height: 1.2;
}

.blueprint-text {
    background: linear-gradient(120deg, #00E0FF, #0044CC);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: #00E0FF;
    margin: 20px 0;
    box-shadow: 0 0 12px #00E0FF;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
    max-width: 500px;
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid #00E0FF;
    border-radius: 60px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(0, 224, 255, 0.05);
    backdrop-filter: blur(4px);
    transition: 0.4s;
    box-shadow: 0 0 8px rgba(0, 224, 255, 0.3);
}

.cta-btn:hover {
    background: #00E0FF;
    color: #0A0A0F;
    box-shadow: 0 0 28px #00E0FF;
    transform: scale(1.02);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #00E0FF;
}

.hero-right {
    flex: 1;
    min-width: 300px;
}

.hero-visual {
    background: rgba(10, 20, 30, 0.3);
    border-radius: 32px;
    backdrop-filter: blur(2px);
    overflow: hidden;
    border: 1px solid rgba(0, 224, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.visual-top {
    height: 220px;
    background: linear-gradient(145deg, #0E1A2A, #050A12);
    position: relative;
}

.team-phantom {
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 300"><rect width="600" height="300" fill="%230E1A2A"/><circle cx="150" cy="120" r="40" fill="%2300E0FF" opacity="0.3"/><circle cx="300" cy="100" r="35" fill="%2300E0FF" opacity="0.4"/><circle cx="450" cy="130" r="38" fill="%2300E0FF" opacity="0.3"/><rect x="100" y="180" width="80" height="12" fill="%2300E0FF" opacity="0.5"/><rect x="200" y="190" width="100" height="10" fill="%2300E0FF" opacity="0.4"/><rect x="320" y="175" width="70" height="14" fill="%2300E0FF" opacity="0.5"/><rect x="420" y="185" width="90" height="11" fill="%2300E0FF" opacity="0.4"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
}

.code-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0,224,255,0.1) 0px, rgba(0,224,255,0.1) 2px, transparent 2px, transparent 8px);
    pointer-events: none;
}

.visual-bottom {
    height: 200px;
    background: #010101;
    position: relative;
    border-top: 1px solid cyan;
}

.code-waterfall {
    width: 100%;
    height: 100%;
    font-family: monospace;
    font-size: 12px;
    padding: 12px;
    color: #0ff;
    white-space: pre-wrap;
    word-break: break-all;
    background: #000000aa;
}

.network-particles {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, cyan 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.3;
}

/* ========== PAGE SECTION (GENERAL) ========== */
.page-section {
    min-height: 100vh;
    padding: 140px 50px 100px;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    color: #00E0FF;
    letter-spacing: 3px;
    font-size: 0.8rem;
}

.section-header h2 {
    font-size: 3rem;
    margin: 15px 0;
}

.gradient-text {
    background: linear-gradient(135deg, #00E0FF, #0055FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: #00E0FF;
    margin: 20px auto;
    box-shadow: 0 0 12px #00E0FF;
}

/* ========== SERVICES PAGE ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(10, 20, 35, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 224, 255, 0.2);
    border-radius: 24px;
    padding: 35px;
    transition: all 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #00E0FF;
    box-shadow: 0 20px 40px rgba(0, 224, 255, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-price {
    color: #00E0FF;
    font-weight: 600;
    margin-bottom: 20px;
}

.service-link {
    color: #00E0FF;
    text-decoration: none;
    font-weight: 600;
}

/* ========== WORK PAGE ========== */
.work-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(0, 224, 255, 0.3);
    color: white;
    padding: 10px 25px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: #00E0FF;
    color: #0A0A0F;
    border-color: #00E0FF;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.work-item {
    background: linear-gradient(135deg, #0E1A2A, #050A12);
    border-radius: 20px;
    height: 280px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 224, 255, 0.2);
    transition: 0.3s;
    cursor: pointer;
}

.work-item:hover {
    transform: scale(1.02);
    border-color: #00E0FF;
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: 0.3s;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-link {
    color: #00E0FF;
    margin-top: 15px;
    text-decoration: none;
    font-weight: 600;
}

/* ========== INSIGHTS PAGE ========== */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.insight-card {
    background: rgba(10, 20, 35, 0.5);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 224, 255, 0.15);
    transition: 0.3s;
}

.insight-card:hover {
    border-color: #00E0FF;
    transform: translateY(-5px);
}

.insight-date {
    color: #00E0FF;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.insight-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.insight-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.read-more {
    color: #00E0FF;
    text-decoration: none;
}

/* ========== CONTACT PAGE ========== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: rgba(10, 20, 35, 0.5);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(0, 224, 255, 0.2);
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-form-wrapper {
    background: rgba(10, 20, 35, 0.5);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(0, 224, 255, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 224, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00E0FF;
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00E0FF, #0055FF);
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px #00E0FF;
}

.success-msg {
    background: rgba(0, 255, 100, 0.2);
    border: 1px solid #00ff66;
    padding: 12px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
}

.error-msg {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff4444;
    padding: 12px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
}

/* ========== FOOTER ========== */
footer {
    background: #050508;
    border-top: 1px solid rgba(0, 224, 255, 0.2);
    padding: 50px 50px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 15px;
}

.footer-section a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin: 8px 0;
    transition: 0.3s;
}

.footer-section a:hover {
    color: #00E0FF;
}

#newsletterForm {
    display: flex;
    gap: 10px;
}

#newsletterForm input {
    flex: 1;
    padding: 10px;
    background: #1A1A2A;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
}

#newsletterForm button {
    padding: 10px 20px;
    background: #00E0FF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #1A1A2A;
    color: #555;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    header {
        padding: 15px 25px;
    }

    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 20px;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 100px 25px 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .page-section {
        padding: 100px 20px 60px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .services-grid, .work-grid, .insights-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #newsletterForm {
        flex-direction: column;
    }
}