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

:root {
    /* Colors */
    --background: hsl(250, 100%, 98%);
    --foreground: hsl(270, 15%, 10%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(270, 15%, 10%);
    --primary: hsl(262, 83%, 58%);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-glow: hsl(270, 100%, 70%);
    --secondary: hsl(270, 50%, 95%);
    --secondary-foreground: hsl(262, 83%, 58%);
    --muted: hsl(270, 40%, 96%);
    --muted-foreground: hsl(270, 10%, 50%);
    --accent: hsl(280, 70%, 60%);
    --border: hsl(270, 30%, 90%);
    
    /* Gradients */
    --gradient-purple: linear-gradient(135deg, hsl(262, 83%, 58%), hsl(280, 70%, 60%));
    --gradient-hero: linear-gradient(180deg, hsl(250, 100%, 98%), hsl(270, 50%, 95%));
    --gradient-card: linear-gradient(135deg, hsla(0, 0%, 100%, 0.9), hsla(270, 50%, 95%, 0.9));
    
    /* Shadows */
    --shadow-purple: 0 10px 40px -10px hsla(262, 83%, 58%, 0.3);
    --shadow-glow: 0 0 60px hsla(270, 100%, 70%, 0.4);
}

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

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

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

#header.scrolled {
    background: hsla(250, 100%, 98%, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-purple);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: box-shadow 0.3s ease;
}

.logo:hover .logo-icon {
    box-shadow: var(--shadow-purple);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsla(270, 15%, 10%, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-purple);
    color: white;
    box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid hsla(262, 83%, 58%, 0.3);
}

.btn-outline:hover {
    background: hsla(262, 83%, 58%, 0.1);
    border-color: hsla(262, 83%, 58%, 0.5);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('src/assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.6;
    z-index: 1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 3s ease-in-out infinite;
}

.floating-element-1 {
    top: 5rem;
    left: 2.5rem;
    width: 18rem;
    height: 18rem;
    background: hsla(262, 83%, 58%, 0.2);
}

.floating-element-2 {
    bottom: 5rem;
    right: 2.5rem;
    width: 24rem;
    height: 24rem;
    background: hsla(280, 70%, 60%, 0.2);
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-container {
    padding: 8rem 1rem;
}

.hero-content {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeIn 0.6s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: hsla(0, 0%, 100%, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(262, 83%, 58%, 0.2);
    margin-bottom: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.5rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--primary);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px hsla(262, 83%, 58%, 0.3);
    }
    50% {
        box-shadow: 0 0 40px hsla(262, 83%, 58%, 0.6);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

/* Section Styles */
.services, .platform, .portfolio, .contact {
    padding: 6rem 1rem;
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
    animation: fadeIn 0.6s ease-out;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(270, 30%, 90%, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-purple);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    background: hsla(262, 83%, 58%, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: background 0.3s ease;
}

.service-card:hover .service-icon {
    background: hsla(262, 83%, 58%, 0.2);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Platform Section */
.platform {
    position: relative;
    overflow: hidden;
}

.platform-bg-1, .platform-bg-2 {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(80px);
}

.platform-bg-1 {
    top: 0;
    right: 0;
    background: hsla(280, 70%, 60%, 0.1);
}

.platform-bg-2 {
    bottom: 0;
    left: 0;
    background: hsla(262, 83%, 58%, 0.1);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: hsla(262, 83%, 58%, 0.1);
    color: var(--primary);
    border: 1px solid hsla(262, 83%, 58%, 0.2);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.platform-main {
    max-width: 80rem;
    margin: 0 auto 4rem;
}

.platform-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(270, 30%, 90%, 0.5);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow-purple);
    animation: fadeIn 0.6s ease-out;
}

.platform-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.platform-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.platform-text {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.platform-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.platform-visual {
    position: relative;
}

.platform-stats-box {
    aspect-ratio: 1;
    border-radius: 1rem;
    background: hsla(262, 83%, 58%, 0.1);
    border: 1px solid hsla(262, 83%, 58%, 0.2);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.platform-icon {
    width: 5rem;
    height: 5rem;
    background: var(--gradient-purple);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-purple);
}

.platform-stat-number {
    font-size: 1.125rem;
    font-weight: 600;
}

.platform-stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.float-accent {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: float 3s ease-in-out infinite;
}

.float-accent-1 {
    top: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    background: hsla(280, 70%, 60%, 0.2);
}

.float-accent-2 {
    bottom: -1rem;
    left: -1rem;
    width: 8rem;
    height: 8rem;
    background: hsla(262, 83%, 58%, 0.2);
    animation-delay: 1s;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: hsla(0, 0%, 100%, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(270, 30%, 90%, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-purple);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: hsla(262, 83%, 58%, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--primary);
    transition: background 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: hsla(262, 83%, 58%, 0.2);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Platform Stats */
.platform-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

@media (max-width: 768px) {
    .platform-content {
        grid-template-columns: 1fr;
    }
    
    .platform-card {
        padding: 2rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Portfolio Section */
.portfolio {
    background: var(--gradient-hero);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-card {
    background: hsla(0, 0%, 100%, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(270, 30%, 90%, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-purple);
}

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

.portfolio-category {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.arrow-icon {
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .arrow-icon {
    opacity: 1;
}

.portfolio-result {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: hsla(262, 83%, 58%, 0.1);
    color: var(--primary);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Contact Section */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(270, 30%, 90%, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: hsla(262, 83%, 58%, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    color: var(--primary);
}

.contact-card h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.contact-form-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(270, 30%, 90%, 0.5);
    border-radius: 0.75rem;
    padding: 2rem;
    animation: fadeIn 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid hsla(262, 83%, 58%, 0.2);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    background: white;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    padding: 3rem 1rem;
    background: var(--gradient-hero);
    border-top: 1px solid hsla(270, 30%, 90%, 0.5);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Cards */
.service-card,
.feature-card,
.portfolio-card,
.contact-card {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.service-card:nth-child(1), .feature-card:nth-child(1), .portfolio-card:nth-child(1) {
    animation-delay: 0s;
}

.service-card:nth-child(2), .feature-card:nth-child(2), .portfolio-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3), .feature-card:nth-child(3), .portfolio-card:nth-child(3) {
    animation-delay: 0.2s;
}

.service-card:nth-child(4), .feature-card:nth-child(4) {
    animation-delay: 0.3s;
}

.service-card:nth-child(5), .feature-card:nth-child(5) {
    animation-delay: 0.4s;
}

.service-card:nth-child(6), .feature-card:nth-child(6) {
    animation-delay: 0.5s;
}

.contact-card:nth-child(1) {
    animation-delay: 0s;
}

.contact-card:nth-child(2) {
    animation-delay: 0.1s;
}

.contact-card:nth-child(3) {
    animation-delay: 0.2s;
}
