@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #ff5500;
    --primary-glow: rgba(255, 85, 0, 0.6);
    --bg: #000000;
    --text-btn: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    --text: #ffffff;
    --text-muted: #aaaaaa;
    font-family: 'Rajdhani', sans-serif;
}

.alt-mode-active {
    --primary: #00f0ff;
    --primary-glow: rgba(0, 240, 255, 0.6);
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background 0.5s ease;
}

#canvas-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    pointer-events: none;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.loader-cube {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 3s infinite linear;
}

.loader-cube div {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.loader-cube .front  { transform: translateZ(40px); }
.loader-cube .back   { transform: rotateY(180deg) translateZ(40px); }
.loader-cube .left   { transform: rotateY(-90deg) translateZ(40px); border-color: #ffffff; box-shadow: 0 0 15px rgba(255,255,255,0.3); }
.loader-cube .right  { transform: rotateY(90deg) translateZ(40px); }
.loader-cube .top    { transform: rotateX(90deg) translateZ(40px); }
.loader-cube .bottom { transform: rotateX(-90deg) translateZ(40px); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.loader-text {
    margin-top: 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 5px;
    color: #ffffff;
    animation: pulseText 1.5s infinite alternate;
}

@keyframes pulseText {
    0% { opacity: 0.3; text-shadow: 0 0 5px rgba(255,255,255,0.3); }
    100% { opacity: 1; text-shadow: 0 0 15px var(--primary-glow); }
}

.bg-grid {
    position: fixed;
    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: 50px 50px;
    z-index: -2;
}

.glow-orb {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    z-index: -1;
    filter: blur(40px);
    opacity: 0.5;
    transition: background 0.8s ease;
}

header {
    position: fixed;
    top: 0; width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
}

header.header-hidden {
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo span.s {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.6);
    font-style: italic;
}

.logo span.k {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
    transition: color 0.5s ease;
}

.logo span.dev {
    font-size: 0.9rem;
    margin-left: 8px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-muted);
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.select-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.select-custom option {
    background: #111;
    color: #fff;
}

.theme-switcher {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255,255,255,0.2);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-switcher:hover {
    background: rgba(255, 85, 0, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.05);
}

.alt-mode-active .theme-switcher:hover {
    background: rgba(0, 240, 255, 0.1);
}

.theme-switcher .toggle-track {
    width: 30px;
    height: 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.2);
}

.theme-switcher .dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff;
    position: absolute;
    top: 2px;
    left: 3px;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.alt-mode-active .theme-switcher .dot {
    left: 15px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.hero {
    min-height: 90vh;
    padding: 160px 5% 60px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
    transition: color 0.5s ease;
}

.hero p {
    font-size: 1.3rem;
    max-width: 850px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn {
    background: var(--primary);
    color: var(--text-btn);
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 0 20px var(--primary-glow);
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px var(--primary);
}

.glass-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.glass-box:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 35px var(--primary-glow), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.services-container {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    width: 100%;
}

.glass-card {
    padding: 40px 30px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.card-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--primary-glow);
    transition: color 0.5s ease;
}

.glass-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    display: inline-block;
    transition: border-color 0.5s ease;
}

.portfolio-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.portfolio-item {
    overflow: hidden;
    position: relative;
    text-align: left;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--glass-border);
}

.portfolio-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    filter: brightness(0.95);
    transition: 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.portfolio-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pricing-section {
    padding: 100px 5%;
    text-align: center;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title span {
    color: var(--primary);
    transition: color 0.5s ease;
}

.pricing-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
}

.price-card {
    flex: 1;
    padding: 45px 30px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.price-card > div {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.price-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 35px var(--primary-glow);
    transform: scale(1.02);
}

.price-card.popular {
    background: rgba(255, 255, 255, 0.05);
}

.price-card h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.7rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.price {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
    text-shadow: 0 0 10px var(--primary-glow);
    transition: color 0.5s ease;
}

.price span {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-top: 5px;
    font-family: 'Rajdhani', sans-serif;
}

.price-features {
    list-style: none;
    margin: 25px 0;
    text-align: left;
}

.price-features li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #dddddd;
    position: relative;
    padding-left: 25px;
    line-height: 1.4;
}

.price-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.delay-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed var(--glass-border);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--text-muted);
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.contact-section {
    padding: 100px 5%;
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--glass-border);
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-email {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    letter-spacing: 1px;
    line-height: 1.2;
}

.contact-email:hover {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.contact-email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff6a00, #ff8c1a);
    color: #fff;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 110, 0, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 110, 0, 0.8);
}

footer {
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    width: 100%;
}

.stat-card {
    padding: 25px;
    text-align: center;
}

.stat-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
    font-weight: 900;
    transition: color 0.5s ease;
}

.faq-section {
    padding: 80px 5%;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    cursor: pointer;
    padding: 20px;
}

.faq-question {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 250px;
    margin-top: 15px;
}

.calc-box {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    text-align: left;
    color: #ffffff;
}

.calc-box label {
    color: #ffffff;
    font-weight: 600;
    display: block;
    margin-top: 10px;
    font-size: 1.05rem;
}

.calc-box select {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
}

.calc-box select option {
    background: #111111;
    color: #ffffff;
}

.calc-box button {
    width: 100%;
    margin-top: 10px;
}

.feedback-box {
    position: fixed;
    bottom: 25px;
    left: 25px;
    padding: 15px;
    width: 280px;
    z-index: 997;
}

#scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 0 15px var(--primary-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, border-color 0.3s ease;
}

#scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

#scroll-top:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 85, 0, 0.1);
    transform: translateY(0) scale(1.08);
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 30px;
    text-align: left;
}

.check-item {
    padding: 12px 18px;
    background: rgba(255,255,255,0.02);
    border-left: 3px solid var(--primary);
    font-size: 1.08rem;
    line-height: 1.5;
    border-radius: 4px;
    transition: border-color 0.5s ease;
}

@media (max-width: 900px) {
    header {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 4%;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.5rem;
    }

    .header-controls {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .select-custom {
        width: 100%;
        min-width: 0;
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .theme-switcher {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
        font-size: 0.72rem;
        padding: 10px 12px;
    }

    .hero {
        padding-top: 180px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .btn {
        padding: 12px 22px;
        font-size: 0.9rem;
    }

    .pricing-wrapper,
    .stats-grid,
    .cards-wrapper,
    .portfolio-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .glass-card, .price-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .contact-email {
        font-size: 1.5rem;
    }

    .feedback-box {
        display: none !important;
    }

    #scroll-top {
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 560px) {
    header {
        padding: 12px 4%;
    }

    .hero {
        min-height: auto;
        padding-top: 170px;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .btn {
        padding: 11px 18px;
        font-size: 0.8rem;
        letter-spacing: 0.8px;
    }

    .theme-switcher {
        font-size: 0.65rem;
        letter-spacing: 0.7px;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .contact-row {
        flex-direction: column;
    }

    .contact-email {
        font-size: 1.2rem;
        text-align: center;
    }

    .contact-email-btn {
        width: 100%;
    }

    .faq-question {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.98rem;
    }
}
