/* Nubien - Next-Gen AI Studio Styles */

:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #666666;
    --accent-primary: #7c3aed;
    --accent-secondary: #a855f7;
    --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #6366f1 100%);
    --glow-purple: rgba(124, 58, 237, 0.5);
    --border-color: #222222;
    --border-light: #333333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: var(--accent-gradient);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.btn-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 72px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 6px 6px 6px;
    margin-bottom: 40px;
}

.badge-year {
    background: var(--accent-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
}

.badge-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-right: 16px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

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

.hero-bottom-glow {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.4) 0%, rgba(99, 102, 241, 0.2) 30%, transparent 70%);
    pointer-events: none;
}

/* Clients */
.clients {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.client-logo {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

/* Section Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 16px;
    margin-bottom: 32px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.badge-icon {
    font-size: 1rem;
}

/* Section Title */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
    text-align: center;
}

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

/* About Section */
.about {
    padding: 120px 0 60px;
    text-align: center;
}

.about-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 40px;
}

.text-muted {
    color: var(--text-muted);
}

/* Circular Showcase */
.circular-showcase {
    padding: 60px 0 120px;
    overflow: hidden;
}

.circle-container {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto;
}

.circle-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin: -50px;
    transform: rotate(var(--angle)) translateX(250px) rotate(calc(-1 * var(--angle)));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes float {
    0%, 100% { transform: rotate(var(--angle)) translateX(250px) rotate(calc(-1 * var(--angle))) translateY(0); }
    50% { transform: rotate(var(--angle)) translateX(250px) rotate(calc(-1 * var(--angle))) translateY(-10px); }
}

/* Features Section */
.features {
    padding: 120px 0;
    text-align: center;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 80px;
    text-align: left;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.feature-visual {
    background: rgba(124, 58, 237, 0.1);
    border-radius: 16px;
    padding: 24px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* API Visual */
.api-visual {
    position: relative;
}

.api-icons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.api-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.api-center {
    position: absolute;
    bottom: 20px;
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Auth Visual */
.auth-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 60px;
}

.auth-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.auth-center {
    position: absolute;
    bottom: 20px;
    width: 56px;
    height: 56px;
    background: rgba(124, 58, 237, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.5);
}

/* Speech Visual */
.speech-badge {
    background: var(--accent-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.speech-wave {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    border-radius: 50px;
    width: 100%;
}

.speech-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waveform {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 1;
}

.waveform span {
    width: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.waveform span:nth-child(1) { height: 8px; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.waveform span:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.waveform span:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.waveform span:nth-child(5) { height: 14px; animation-delay: 0.4s; }
.waveform span:nth-child(6) { height: 18px; animation-delay: 0.5s; }
.waveform span:nth-child(7) { height: 10px; animation-delay: 0.6s; }
.waveform span:nth-child(8) { height: 16px; animation-delay: 0.7s; }
.waveform span:nth-child(9) { height: 12px; animation-delay: 0.8s; }
.waveform span:nth-child(10) { height: 8px; animation-delay: 0.9s; }

@keyframes wave {
    0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Feature Highlights */
.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.highlight-icon {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.highlight h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.highlight p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Services Section */
.services {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.services-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 600px;
    background: radial-gradient(ellipse at center top, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 60px;
    text-align: left;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.service-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-link:hover {
    background: var(--accent-primary);
    color: white;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-tag {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.service-image {
    border-radius: 12px;
    overflow: hidden;
    height: 160px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* Service Pills */
.service-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.pill:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.pill-icon {
    font-size: 1rem;
}

/* Portfolio Section */
.portfolio {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.portfolio-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.portfolio .container {
    position: relative;
    z-index: 1;
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 60px;
}

.portfolio-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    text-align: left;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    background: var(--bg-card-hover);
}

.portfolio-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.portfolio-year {
    background: rgba(124, 58, 237, 0.2);
    color: var(--accent-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.portfolio-features {
    list-style: none;
    margin-bottom: 24px;
}

.portfolio-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.check-icon {
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

.portfolio-tags {
    display: flex;
    gap: 12px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.portfolio-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.portfolio-img {
    border-radius: 16px;
    overflow: hidden;
    height: 180px;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: 120px 0;
    text-align: center;
}

.contact-form {
    max-width: 500px;
    margin: 40px auto 0;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .portfolio-card {
        grid-template-columns: 1fr;
    }
    
    .portfolio-images {
        order: -1;
    }
    
    .circle-container {
        width: 400px;
        height: 400px;
    }
    
    .circle-image {
        width: 70px;
        height: 70px;
        margin: -35px;
        transform: rotate(var(--angle)) translateX(160px) rotate(calc(-1 * var(--angle)));
    }
    
    @keyframes float {
        0%, 100% { transform: rotate(var(--angle)) translateX(160px) rotate(calc(-1 * var(--angle))) translateY(0); }
        50% { transform: rotate(var(--angle)) translateX(160px) rotate(calc(-1 * var(--angle))) translateY(-10px); }
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .navbar .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .client-logos {
        gap: 30px;
    }
    
    .feature-highlights {
        grid-template-columns: 1fr;
    }
    
    .service-pills {
        gap: 8px;
    }
    
    .pill {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .portfolio-images {
        grid-template-columns: 1fr;
    }
    
    .circle-container {
        width: 300px;
        height: 300px;
    }
    
    .circle-image {
        width: 50px;
        height: 50px;
        margin: -25px;
        transform: rotate(var(--angle)) translateX(120px) rotate(calc(-1 * var(--angle)));
    }
    
    @keyframes float {
        0%, 100% { transform: rotate(var(--angle)) translateX(120px) rotate(calc(-1 * var(--angle))) translateY(0); }
        50% { transform: rotate(var(--angle)) translateX(120px) rotate(calc(-1 * var(--angle))) translateY(-10px); }
    }
}
