/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 245, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 128, 255, 0.08) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Plus dots pattern background like 1.png */
.plus-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    background: 
        radial-gradient(circle 0.5px at 8% 15%, rgba(0, 245, 255, 0.4) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 23% 8%, rgba(0, 245, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 35% 25%, rgba(0, 245, 255, 0.35) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 47% 12%, rgba(0, 245, 255, 0.25) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 62% 28%, rgba(0, 245, 255, 0.4) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 78% 18%, rgba(0, 245, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 92% 35%, rgba(0, 245, 255, 0.35) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 12% 45%, rgba(0, 245, 255, 0.25) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 28% 52%, rgba(0, 245, 255, 0.4) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 43% 38%, rgba(0, 245, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 58% 55%, rgba(0, 245, 255, 0.35) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 73% 42%, rgba(0, 245, 255, 0.25) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 87% 58%, rgba(0, 245, 255, 0.4) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 5% 68%, rgba(0, 245, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 18% 75%, rgba(0, 245, 255, 0.35) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 32% 62%, rgba(0, 245, 255, 0.25) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 46% 78%, rgba(0, 245, 255, 0.4) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 61% 65%, rgba(0, 245, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 76% 82%, rgba(0, 245, 255, 0.35) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 91% 75%, rgba(0, 245, 255, 0.25) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 15% 88%, rgba(0, 245, 255, 0.4) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 38% 95%, rgba(0, 245, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 54% 92%, rgba(0, 245, 255, 0.35) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 68% 88%, rgba(0, 245, 255, 0.25) 0%, transparent 2px),
        radial-gradient(circle 0.5px at 82% 95%, rgba(0, 245, 255, 0.4) 0%, transparent 2px);
}

/* Header */
.header {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 2rem;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    gap: 2rem;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00f5ff;
    text-decoration: none;
}

.navigation {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #888;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: #ffffff;
    background: #00f5ff;
}

.nav-link.disabled {
    color: #444;
    cursor: not-allowed;
    position: relative;
}

.nav-link.disabled:hover {
    color: #444;
    background: none;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1001;
}

/* Section Indicators */
.section-indicators {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background: #555;
}

.indicator.active {
    background: #00f5ff;
    border-color: #00f5ff;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.indicator.disabled {
    background: #222;
    border-color: #222;
    cursor: not-allowed;
}

.indicator.disabled:hover {
    background: #222;
}

/* Horizontal Container */
.horizontal-container {
    display: flex;
    height: 100vh;
    width: 400vw;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: translateX(0);
}

/* Individual Sections */
.section {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    position: relative;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
}

/* Hero Section */
.section[data-section="0"] {
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    gap: 4rem;
}

.section[data-section="0"] .section-content {
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #00f5ff;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1rem;
    color: #888;
    max-width: 600px;
    margin: 0 0 2rem;
    line-height: 1.6;
}

.hero-cta {
}

.scroll-hint {
    color: #00f5ff;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    text-align: center;
}

.section-subtitle {
    font-size: 1rem;
    color: #888;
    text-align: center;
    margin-bottom: 3rem;
}

/* Live Applications Section */
.section[data-section="1"] .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin-top: 2rem;
}

.app-card {
    background: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    justify-content: space-between;
}

.app-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}


.app-card.placeholder {
    border: 2px dashed #333;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
}

.app-card.placeholder:hover {
    border-color: #555;
    background: rgba(255, 255, 255, 0.05);
    transform: none;
    box-shadow: none;
}

.placeholder-content {
    text-align: center;
    color: #666;
}

.placeholder-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #444;
}

.placeholder-text {
    font-size: 0.9rem;
    color: #666;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f5ff, #0080ff);
}

.app-card-off::before {
    background: linear-gradient(90deg, #ff4444, #cc0000);
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: #00f5ff;
    box-shadow: 0 8px 32px rgba(0, 245, 255, 0.1);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.app-status {
    background: #00f5ff;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.app-status.live {
    background: #00ff88;
    animation: pulse 2s infinite;
}

.app-status.off {
    background: #666;
    color: #fff;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.tech-label {
    color: #888;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
}

.app-description {
    color: #888;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.app-tech {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: #1a1a1a;
    color: #00f5ff;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #333;
}

.app-link {
    color: #00f5ff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.app-link:hover {
    color: #ffffff;
}

.app-link.disabled {
    color: #666;
    cursor: not-allowed;
    pointer-events: none;
}

.app-link.server-link {
    cursor: copy;
}

.app-link.server-link:hover {
    color: #00ff88;
}


/* Connect Section */
.section[data-section="2"] .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 400px;
    width: 100%;
    margin-bottom: 3rem;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    min-height: 120px;
    justify-content: center;
    gap: 0.75rem;
}

.social-card:hover {
    transform: translateY(-2px);
    border-color: #00f5ff;
    background: rgba(30, 30, 30, 0.9);
    box-shadow: 0 4px 20px rgba(0, 245, 255, 0.1);
}

.social-icon {
    color: #888;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.social-card:hover .social-icon {
    color: #00f5ff;
}

.social-card h3 {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.social-card p {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
}

.contact-email {
    text-align: center;
}

.email-label {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.email-link {
    color: #00f5ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #ffffff;
}

/* Portfolio Section */
.section[data-section="3"] .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

.portfolio-item {
    background: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    border-color: #00f5ff;
    box-shadow: 0 8px 32px rgba(0, 245, 255, 0.1);
}

.portfolio-item h3 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.portfolio-item p {
    color: #888;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Chat Widget */
.section[data-section="0"] .chat-widget {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
    flex-shrink: 0;
}

.chat-icon {
    width: 40px;
    height: 40px;
    background: #00f5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-logo {
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
}

.chat-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.chat-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

.chat-status {
    color: #888;
    font-size: 0.8rem;
}

.chat-button {
    background: #00f5ff;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.chat-button:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

/* Navigation Arrow */
.nav-arrow {
    position: fixed;
    bottom: 2rem;
    right: 50%;
    transform: translateX(50%);
    z-index: 1000;
    color: #00f5ff;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(50%) translateY(0);
    }
    40% {
        transform: translateX(50%) translateY(-10px);
    }
    60% {
        transform: translateX(50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 1rem;
        gap: 1rem;
        top: 1rem;
        left: 1rem;
        right: 1rem;
        transform: none;
        width: auto;
    }
    
    .navigation {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .section[data-section="0"] {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .section[data-section="0"] .section-content {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-bottom: 2rem;
    }
    
    .section[data-section="0"] .chat-widget {
        justify-self: center;
        align-self: center;
        min-width: 180px;
        padding: 0.75rem;
    }
    
    .chat-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .section-indicators {
        right: 1rem;
    }
    
    .section {
        padding: 0 1rem;
    }
    
    .section-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
    }
    
    
    .social-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 350px;
    }
    
    .app-card,
    .support-card,
    .portfolio-item {
        padding: 1.5rem;
    }
    
    .app-card {
        min-height: auto;
    }
    
    .app-name {
        font-size: 1.2rem;
    }
    
    .support-card {
        min-width: 200px;
    }
}