/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    /* Pastel Colors on Dark Background */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --pastel-pink: #ffb3d9;
    --pastel-blue: #a8d8ea;
    --pastel-purple: #c7b3ff;
    --pastel-green: #b3ffc7;
    --pastel-yellow: #fff4b3;
    --pastel-orange: #ffd4b3;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b8b8c8;
    --accent-gradient: linear-gradient(135deg, var(--pastel-purple), var(--pastel-pink));
    --shadow-glow: 0 0 30px rgba(199, 179, 255, 0.3);
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
}

/* ===================================
   Navigation
   =================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-ai {
    font-size: 12px;
    font-weight: 300;
    color: var(--pastel-blue);
    letter-spacing: 2px;
}

.nav-dots {
    display: flex;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: var(--glass-border);
    transform: scale(1.2);
}

.dot.active {
    background: var(--pastel-purple);
    border-color: var(--pastel-purple);
    box-shadow: 0 0 15px var(--pastel-purple);
}

.nav-arrows {
    display: flex;
    gap: 10px;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-arrow:hover:not(:disabled) {
    background: var(--glass-border);
    transform: scale(1.1);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===================================
   Main Container & Sections
   =================================== */
.container {
    width: 100%;
    height: 100vh;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 80px;
}

.section {
    min-width: 100vw;
    height: calc(100vh - 80px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ===================================
   Glass Cubes Background Animation
   =================================== */
.glass-cubes-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.glass-cube {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        rgba(199, 179, 255, 0.1) 0%, 
        rgba(168, 216, 234, 0.1) 50%, 
        rgba(255, 179, 217, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    animation: rotateCube 8s infinite ease-in-out;
    transform-style: preserve-3d;
}

@keyframes rotateCube {
    0%, 100% {
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: perspective(1000px) rotateX(90deg) rotateY(45deg) rotateZ(0deg);
    }
    50% {
        transform: perspective(1000px) rotateX(180deg) rotateY(90deg) rotateZ(45deg);
    }
    75% {
        transform: perspective(1000px) rotateX(270deg) rotateY(135deg) rotateZ(90deg);
    }
}

/* ===================================
   Content Wrapper
   =================================== */
.content-wrapper {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1400px;
    padding: 40px;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.glass:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* ===================================
   Section 0: Intro with Quote
   =================================== */
.intro-section {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 100%);
}

.quote-container {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 40px;
}

.quote-text {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.6;
    background: linear-gradient(135deg, var(--pastel-purple), var(--pastel-pink), var(--pastel-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* ===================================
   Section 1: Home
   =================================== */
.home-section {
    background: linear-gradient(135deg, #0a0a0f 0%, #0f1a2e 100%);
}

.main-title {
    text-align: center;
    margin-bottom: 20px;
}

.title-line {
    display: block;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.title-highlight {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 72px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--shadow-glow);
}

.subtitle {
    text-align: center;
    font-size: 24px;
    color: var(--pastel-blue);
    margin-bottom: 60px;
}

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

.feature-card {
    text-align: center;
    padding: 40px 20px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(199, 179, 255, 0.5));
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--pastel-purple);
}

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

/* ===================================
   Section 2: Services
   =================================== */
.services-section {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0f2e 100%);
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.service-item {
    padding: 40px;
}

.service-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 64px;
    font-weight: 900;
    color: var(--pastel-purple);
    opacity: 0.3;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--pastel-pink);
}

.service-item p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-list {
    list-style: none;
    margin-top: 20px;
}

.service-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--pastel-blue);
}

.service-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--pastel-purple);
}

/* ===================================
   Section 3: Portfolio
   =================================== */
.portfolio-section {
    background: linear-gradient(135deg, #0a0a0f 0%, #0f2e1a 100%);
}

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

.portfolio-item {
    padding: 0;
    overflow: hidden;
}

.portfolio-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .image-placeholder {
    transform: scale(1.1);
}

.placeholder-icon {
    font-size: 64px;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.portfolio-content {
    padding: 30px;
}

.portfolio-content h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--pastel-green);
}

.portfolio-client {
    font-size: 14px;
    color: var(--pastel-yellow);
    margin-bottom: 15px;
}

.portfolio-content > p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

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

.tag {
    padding: 5px 15px;
    background: rgba(199, 179, 255, 0.2);
    border: 1px solid var(--pastel-purple);
    border-radius: 20px;
    font-size: 12px;
    color: var(--pastel-purple);
}

/* ===================================
   Section 4: About
   =================================== */
.about-section {
    background: linear-gradient(135deg, #0a0a0f 0%, #2e1a0f 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.about-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--pastel-orange);
}

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

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--pastel-yellow);
    margin-bottom: 5px;
}

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

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-item {
    padding: 25px;
}

.value-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.value-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--pastel-orange);
}

.value-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   Section 5: Contact
   =================================== */
.contact-section {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a2e2e 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--pastel-blue);
}

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

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
}

.method-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 216, 234, 0.1);
    border-radius: 15px;
}

.method-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.method-value {
    font-size: 18px;
    color: var(--pastel-blue);
    font-weight: 500;
}

/* Contact Form */
.contact-form-container {
    position: relative;
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: var(--pastel-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pastel-blue);
    background: rgba(255, 255, 255, 0.08);
}

.submit-btn {
    margin-top: 10px;
    padding: 15px 30px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(199, 179, 255, 0.4);
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.form-success.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--pastel-green), var(--pastel-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.form-success h4 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--pastel-green);
}

.form-success p {
    color: var(--text-secondary);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1400px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 0 20px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .nav-dots {
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .title-highlight {
        font-size: 48px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .quote-text {
        font-size: 28px;
    }
}

/* ===================================
   Animations & Effects
   =================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.glass-cube.float {
    animation: rotateCube 8s infinite ease-in-out, float 4s infinite ease-in-out;
}

/* Smooth scrollbar (for overflow scenarios) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pastel-purple);
}