* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 46, 0.8);
}

.nav-left {
    font-size: 12px;
    color: #8B8B8B;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-right {
    display: flex;
    gap: 40px;
}

.nav-right a {
    color: #8B8B8B;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-right a:hover {
    color: #9D4EDD;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: absolute;
    top: 20%;
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-size: 300px;
    font-weight: 900;
    background: linear-gradient(45deg, #9d3dec, #C77DFF, #e2afff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 0.9;
}
.demo-features {
    margin-top: 20px;
    font-size: 25px;
}
.hero-sphere {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: url('1.png') center/contain no-repeat;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
}

.hero-tagline {
    position: absolute;
    bottom: 50px;
    left: 50px;
    font-size: 12px;
    color: #8B8B8B;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-tagline-right {
    position: absolute;
    bottom: 50px;
    right: 50px;
    font-size: 12px;
    color: #8B8B8B;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-left-text {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #8B8B8B;
    text-transform: uppercase;
    letter-spacing: 1px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

.contact-btn {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid #9D4EDD;
    padding: 15px 30px;
    background: transparent;
    color: white;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #9D4EDD;
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.5);
}

/* About Section */
.about {
    padding: 100px 50px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-text h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 30px;
    color: #9D4EDD;
}

.about-description {
    font-size: 18px;
    line-height: 1.6;
    color: #CCCCCC;
    margin-bottom: 0;
}

.about-description strong {
    color: white;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: #9D4EDD;
    margin-bottom: 10px;
}

.stat-description {
    font-size: 12px;
    color: #8B8B8B;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
.services {
    padding: 100px 50px;
}

.services h2 {
    font-size: 7rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 80px;
    color: #9D4EDD;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.service-card {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1) 0%, rgba(199, 125, 255, 0.1) 100%);
    border: 1px solid rgba(157, 78, 221, 0.3);
    padding: 40px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(157, 78, 221, 0.2);
    border-color: #9D4EDD;
}

.service-card h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #9D4EDD;
}

.service-card p {
    font-size: 12px;
    color: #CCCCCC;
    line-height: 1.6;
}

.service-arrow {
    float: right;
    font-size: 20px;
    color: #9D4EDD;
}

/* Additional Services */
.additional-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Portfolio Section with Terminal */
.portfolio {
    padding: 100px 50px;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.05) 0%, rgba(199, 125, 255, 0.05) 100%);
}

.portfolio-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: flex-start;
}

.portfolio-text h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 30px;
    color: #9D4EDD;
}

.portfolio-description {
    font-size: 18px;
    line-height: 1.6;
    color: #CCCCCC;
}

/* Terminal Styles */
.terminal-container {
    display: flex;
    justify-content: center;
}

.terminal-panel {
    width: 100%;
    max-width: 900px;
    height: 600px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #9D4EDD;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.3);
    font-family: 'Courier New', monospace;
}

.terminal-header {
    height: 50px;
    background: rgba(157, 78, 221, 0.1);
    border-bottom: 1px solid #9D4EDD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #9D4EDD;
    color: #9D4EDD;
}

.terminal {
    height: 485px;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.4;
    color: #ffffff;
}

.terminal::-webkit-scrollbar {
    width: 8px;
}

.terminal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.terminal::-webkit-scrollbar-thumb {
    background: #9D4EDD;
    border-radius: 8px;
}

.terminal-line {
    margin-bottom: 8px;
    word-wrap: break-word;
}

.terminal-line.command {
    color: #ffffff;
    font-weight: bold;
}

.terminal-line.success {
    color: #9D4EDD;
}

.terminal-line.error {
    color: #ff4757;
}

.terminal-line.info {
    color: #C77DFF;
}

.terminal-line.warning {
    color: #ffd900;
}

.typing-animation {
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid #9D4EDD;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #9D4EDD; }
    51%, 100% { border-color: transparent; }
}

.terminal-input-zone {
    height: 65px;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid #9D4EDD;
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 10px;
}

.terminal-input {
    flex: 1;
    height: 35px;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid #9D4EDD;
    border-radius: 8px;
    padding: 0 12px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
}

.terminal-input:focus {
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.5);
    background: rgba(157, 78, 221, 0.15);
}

.terminal-input::placeholder {
    color: #8B8B8B;
}

.terminal-btn {
    width: 35px;
    height: 35px;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid #9D4EDD;
    border-radius: 8px;
    color: #9D4EDD;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-btn:hover {
    background: #9D4EDD;
    color: #000000;
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.5);
}

.terminal-btn:active {
    transform: scale(0.95);
}

/* Typing indicator */
.typing-indicator {
    color: #9D4EDD;
    font-style: italic;
}

.typing-indicator::after {
    content: '';
    animation: dots-animation 1.5s infinite;
}

@keyframes dots-animation {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* Contact Section */
.contact {
    padding: 100px 50px;
}

.contact-content {
    text-align: center;
}

.contact h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 30px;
    color: #9D4EDD;
}

.contact-description {
    font-size: 18px;
    line-height: 1.6;
    color: #CCCCCC;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-label {
    font-size: 12px;
    color: #8B8B8B;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 18px;
    color: #9D4EDD;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .portfolio-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .terminal-panel {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 20px 20px;
        flex-direction: column;
        gap: 20px;
    }

    .nav-right {
        gap: 20px;
    }

    .hero h1 {
        font-size: 6rem;
    }

    .hero-sphere {
        width: 250px;
        height: 250px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-left-text,
    .contact-btn,
    .hero-tagline,
    .hero-tagline-right {
        position: static;
        transform: none;
        writing-mode: initial;
        text-orientation: initial;
        margin: 20px 0;
        text-align: center;
    }
    
    .terminal-panel {
        height: 400px;
        max-width: 100%;
    }
    
    .terminal {
        height: 285px;
    }
    
    .contact-info {
        gap: 50px;
    }
    
    .about-text h2,
    .services h2,
    .portfolio-text h2,
    .contact h2 {
        font-size: 2.5rem;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background decorations */
.bg-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(157, 78, 221, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(199, 125, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}