/* ============================================
   DemaGenAI Inc. - Advanced Tech Design
   Dark Theme + Glassmorphism + Neon Accents
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #E6EDF3;
    background-color: #0D1117;
    font-weight: 400;
    overflow-x: hidden;
}

a {
    color: #3AB4FF;
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: #00E5FF;
    text-shadow: 0 0 8px rgba(58, 180, 255, 0.5);
}

/* --- Container --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(58, 180, 255, 0.2);
    box-shadow: 0 2px 20px rgba(0, 229, 255, 0.05);
    z-index: 1000;
    transition: background 0.3s ease;
}

.header.scrolled {
    background: rgba(13, 17, 23, 0.95);
    border-bottom-color: rgba(58, 180, 255, 0.3);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 75px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 500;
    color: #E6EDF3;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(58, 180, 255, 0.3);
}

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

.nav-list a {
    font-size: 0.9rem;
    font-weight: 400;
    color: #A9B7C6;
    padding: 8px 0;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #3AB4FF, #00E5FF);
    box-shadow: 0 0 8px rgba(58, 180, 255, 0.6);
    transition: width 0.25s ease;
}

.nav-list a:hover {
    color: #3AB4FF;
}

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

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 150px 20px;
    text-align: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0D1117 0%, #161B22 50%, #0D1117 100%);
    overflow: hidden;
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 400;
    color: #E6EDF3;
    line-height: 1.4;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(58, 180, 255, 0.2);
}

.hero-subtitle {
    font-size: 1rem;
    color: #A9B7C6;
    font-weight: 300;
    letter-spacing: 2px;
}

/* --- Section Common --- */
section {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInSection 0.8s ease-out forwards;
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }

@keyframes fadeInSection {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 1.6rem;
    font-weight: 400;
    color: #E6EDF3;
    text-align: left;
    margin-bottom: 50px;
    position: relative;
    padding-left: 20px;
    letter-spacing: 1px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 30px;
    background: linear-gradient(180deg, #3AB4FF, #00E5FF);
    box-shadow: 0 0 10px rgba(58, 180, 255, 0.5);
}

/* --- Services Section --- */
.services {
    padding: 120px 20px;
    background: #161B22;
}

.services-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(58, 180, 255, 0.15);
    border-radius: 16px;
    padding: 60px 50px;
    box-shadow: 0 4px 30px rgba(0, 229, 255, 0.1);
    transition: all 0.25s ease;
}

.services-content:hover {
    border-color: rgba(58, 180, 255, 0.3);
    box-shadow: 0 8px 40px rgba(0, 229, 255, 0.15);
}

.services-intro {
    font-size: 1rem;
    color: #E6EDF3;
    margin-bottom: 35px;
    font-weight: 400;
    text-align: center;
}

.service-item {
    margin-bottom: 35px;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #E6EDF3;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.service-description {
    font-size: 0.95rem;
    color: #A9B7C6;
    line-height: 1.8;
    font-weight: 300;
    padding-left: 20px;
}

/* --- About Section --- */
.about {
    padding: 120px 20px;
    background: #0D1117;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(58, 180, 255, 0.15);
    border-radius: 16px;
    padding: 60px 50px;
    box-shadow: 0 4px 30px rgba(0, 229, 255, 0.1);
    transition: all 0.25s ease;
}

.about-content:hover {
    border-color: rgba(58, 180, 255, 0.3);
    box-shadow: 0 8px 40px rgba(0, 229, 255, 0.15);
}

.about-content p {
    font-size: 1rem;
    color: #A9B7C6;
    margin-bottom: 25px;
    line-height: 2;
    font-weight: 300;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* --- Contact Section --- */
.contact {
    padding: 120px 20px;
    background: #0D1117;
}

.contact-card {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(58, 180, 255, 0.15);
    border-radius: 16px;
    padding: 60px 40px;
    box-shadow: 0 4px 30px rgba(0, 229, 255, 0.1);
    text-align: center;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58, 180, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.contact-card:hover {
    border-color: rgba(58, 180, 255, 0.4);
    box-shadow: 0 8px 50px rgba(0, 229, 255, 0.2);
}

.contact-card:hover::before {
    width: 300px;
    height: 300px;
}

.contact-label {
    font-size: 0.85rem;
    color: #A9B7C6;
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.contact-email {
    font-size: 1.1rem;
    font-weight: 400;
    color: #3AB4FF;
    display: inline-block;
    padding: 15px 35px;
    background: rgba(58, 180, 255, 0.1);
    border: 1px solid rgba(58, 180, 255, 0.3);
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.contact-button {
    font-size: 1rem;
    font-weight: 400;
    color: #E6EDF3;
    background: rgba(58, 180, 255, 0.15);
    border: 1px solid rgba(58, 180, 255, 0.3);
    border-radius: 8px;
    padding: 15px 35px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    font-family: inherit;
    display: inline-block;
    text-decoration: none;
}

.contact-button:hover {
    background: rgba(58, 180, 255, 0.25);
    border-color: #3AB4FF;
    box-shadow: 0 0 20px rgba(58, 180, 255, 0.4);
    transform: translateY(-2px);
}

.contact-or {
    font-size: 0.9rem;
    color: #A9B7C6;
    margin: 25px 0 15px;
    letter-spacing: 0.5px;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.contact-email:hover {
    background: rgba(58, 180, 255, 0.2);
    border-color: #3AB4FF;
    color: #00E5FF;
    box-shadow: 0 0 20px rgba(58, 180, 255, 0.4);
    transform: translateY(-2px);
}

/* --- Company Section --- */
.company {
    padding: 120px 20px;
    background: #161B22;
}

.company-content {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(58, 180, 255, 0.15);
    border-radius: 16px;
    padding: 60px 50px;
    box-shadow: 0 4px 30px rgba(0, 229, 255, 0.1);
    transition: all 0.25s ease;
}

.company-content:hover {
    border-color: rgba(58, 180, 255, 0.3);
    box-shadow: 0 8px 40px rgba(0, 229, 255, 0.15);
}

.company-info {
    font-size: 1rem;
    color: #A9B7C6;
    margin-bottom: 15px;
    line-height: 2;
    font-weight: 300;
}

.company-info:last-child {
    margin-bottom: 0;
}

/* --- Footer --- */
.footer {
    background: #0D1117;
    color: #A9B7C6;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(58, 180, 255, 0.1);
}

.footer p {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .header-inner {
        height: 65px;
        padding: 0 20px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-list {
        gap: 25px;
    }

    .nav-list a {
        font-size: 0.85rem;
    }

    .hero {
        padding: 100px 20px;
        min-height: 75vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .services,
    .about,
    .company,
    .contact {
        padding: 80px 20px;
    }

    .services-content,
    .about-content,
    .company-content {
        padding: 45px 35px;
    }

    .contact-card {
        padding: 45px 30px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .header-inner {
        height: 60px;
        padding: 0 15px;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-list {
        gap: 20px;
    }

    .nav-list a {
        font-size: 0.8rem;
    }

    .hero {
        padding: 80px 15px;
        min-height: 70vh;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.5;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.3rem;
        padding-left: 15px;
    }

    .section-title::before {
        height: 25px;
    }

    .services,
    .about,
    .company,
    .contact {
        padding: 60px 15px;
    }

    .services-content,
    .about-content,
    .company-content {
        padding: 35px 25px;
    }

    .services-intro {
        font-size: 0.9rem;
    }

    .service-title {
        font-size: 1rem;
    }

    .service-description {
        font-size: 0.85rem;
        padding-left: 15px;
    }

    .about-content p {
        font-size: 0.9rem;
        text-align: left;
    }

    .company-info {
        font-size: 0.9rem;
    }

    .contact-card {
        padding: 35px 25px;
    }

    .contact-button {
        font-size: 0.9rem;
        padding: 12px 25px;
    }

    .contact-email {
        font-size: 0.95rem;
        padding: 12px 25px;
    }
}
