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

:root {
    --primary-color: #00f5ff;
    --secondary-color: #ff00ff;
    --accent-color: #00ff88;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #12121a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --gradient-1: linear-gradient(135deg, #00f5ff 0%, #0080ff 100%);
    --gradient-2: linear-gradient(135deg, #ff00ff 0%, #ff0080 100%);
    --gradient-3: linear-gradient(135deg, #00ff88 0%, #00ffcc 100%);
    --glow-color: rgba(0, 245, 255, 0.5);
    --neon-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color), 0 0 30px var(--glow-color);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--neon-shadow);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color);
    }
    to {
        text-shadow: 0 0 20px var(--glow-color), 0 0 40px var(--glow-color), 0 0 60px var(--glow-color);
    }
}

.hero-subtitle {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
    letter-spacing: 4px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--bg-darker);
    box-shadow: var(--neon-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--glow-color), 0 0 40px var(--glow-color);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-darker);
    transform: translateY(-3px);
}

.demo-section {
    padding: 100px 0;
    background: var(--bg-darker);
    position: relative;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-1);
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 10px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 18px;
}

.demo-container {
    max-width: 900px;
    margin: 0 auto;
}

.three-canvas {
    width: 100%;
    height: 500px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(0, 245, 255, 0.2);
    box-shadow: var(--neon-shadow);
    overflow: hidden;
    position: relative;
}

.demo-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.demo-btn {
    padding: 12px 30px;
    background: var(--bg-card);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.demo-btn:hover {
    background: var(--primary-color);
    color: var(--bg-darker);
    transform: translateY(-2px);
}

.portfolio-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 245, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--neon-shadow);
}

.portfolio-image {
    height: 250px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1) 0%, rgba(255, 0, 255, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-placeholder {
    font-size: 18px;
    color: var(--primary-color);
    text-align: center;
    padding: 20px;
    z-index: 1;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 245, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

.services-section {
    padding: 100px 0;
    background: var(--bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 245, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--neon-shadow);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2) 0%, rgba(0, 128, 255, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary-color);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.cases-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.case-item {
    display: flex;
    gap: 30px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 245, 255, 0.1);
    transition: all 0.3s ease;
}

.case-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: var(--neon-shadow);
}

.case-number {
    font-size: 48px;
    font-weight: bold;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 80px;
}

.case-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.case-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.case-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 8px 16px;
    background: rgba(0, 245, 255, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.contact-section {
    padding: 100px 0;
    background: var(--bg-darker);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2) 0%, rgba(0, 128, 255, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(0, 245, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-dark);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.footer {
    background: var(--bg-darker);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 245, 255, 0.1);
}

.footer-content {
    text-align: center;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 32px;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 245, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 32px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .case-item {
        flex-direction: column;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-1);
    z-index: 1001;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--glow-color);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: var(--bg-darker);
    transform: translateY(-5px);
    box-shadow: var(--neon-shadow);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
}

.loader-cube {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--gradient-1);
    border-radius: 5px;
    animation: cubeRotate 2s infinite ease-in-out;
}

.loader-cube:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.loader-cube:nth-child(2) {
    top: 0;
    right: 0;
    animation-delay: 0.5s;
}

.loader-cube:nth-child(3) {
    bottom: 0;
    left: 0;
    animation-delay: 1s;
}

.loader-cube:nth-child(4) {
    bottom: 0;
    right: 0;
    animation-delay: 1.5s;
}

@keyframes cubeRotate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(0.5) rotate(180deg);
        opacity: 0.5;
    }
}

.loader-text {
    font-size: 24px;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textPulse 2s infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.stats-section {
    padding: 80px 0;
    background: var(--bg-darker);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid rgba(0, 245, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--neon-shadow);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.team-member {
    display: flex;
    gap: 30px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 245, 255, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--neon-shadow);
}

.member-image {
    flex-shrink: 0;
}

.member-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2) 0%, rgba(0, 128, 255, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
}

.member-avatar svg {
    width: 60px;
    height: 60px;
    stroke: var(--primary-color);
}

.member-info {
    flex: 1;
}

.member-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.member-role {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-bio {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.member-skills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.skill-tag {
    padding: 5px 12px;
    background: rgba(0, 245, 255, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 12px;
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.portfolio-placeholder svg {
    width: 60px;
    height: 60px;
    stroke: var(--primary-color);
}

.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.portfolio-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(0, 245, 255, 0.2);
    box-shadow: var(--neon-shadow);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--bg-darker);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-image {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1) 0%, rgba(255, 0, 255, 0.1) 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-placeholder svg {
    width: 100px;
    height: 100px;
    stroke: var(--primary-color);
}

.modal-info {
    padding: 40px;
}

.modal-title {
    font-size: 32px;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-features h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.modal-features ul {
    list-style: none;
    margin-bottom: 30px;
}

.modal-features li {
    padding: 10px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
}

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

.modal-cta {
    width: 100%;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 36px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-member {
        flex-direction: column;
        text-align: center;
    }

    .member-image {
        margin: 0 auto;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 20px;
    }

    .modal-info {
        padding: 20px;
    }

    .modal-title {
        font-size: 24px;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}