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

:root {
    /* Color Variables */
    --background: hsl(220, 25%, 10%);
    --foreground: hsl(210, 40%, 98%);
    --primary: hsl(214, 100%, 58%);
    --primary-foreground: hsl(210, 40%, 98%);
    --muted-foreground: hsl(215, 20%, 65%);
    --card-bg: hsl(220, 20%, 15%);
    --border: hsl(220, 20%, 25%);
    --input-bg: hsl(220, 20%, 20%);
    
    /* Glass Effect Variables */
    --glass-bg: hsla(220, 20%, 15%, 0.7);
    --glass-border: hsla(210, 40%, 98%, 0.1);
    
    /* Glow Variables */
    --glow: hsl(214, 100%, 58%);
    --glow-strong: hsl(214, 100%, 70%);
    
    /* Spacing */
    --container-padding: 1.5rem;
    --section-padding: 6rem 1.5rem;
    
    /* Border Radius */
    --radius: 1rem;
    --radius-lg: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.glow-effect {
    box-shadow: 0 0 20px hsla(214, 100%, 58%, 0.3), 0 0 40px hsla(214, 100%, 58%, 0.1);
}

.glow-text {
    text-shadow: 0 0 20px hsla(214, 100%, 58%, 0.5);
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    text-shadow: 0 0 20px hsla(214, 100%, 58%, 0.5);
    transition: transform 0.3s ease;
}

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

.desktop-menu {
    display: none;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    position: relative;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

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

.nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover .nav-underline {
    width: 100%;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    animation: slideDown 0.3s ease;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.bg-effects {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    width: 384px;
    height: 384px;
    border-radius: 50%;
    filter: blur(120px);
    animation: float 6s ease-in-out infinite;
}

.bg-blob-1 {
    top: 5rem;
    left: 2.5rem;
    background: hsla(214, 100%, 58%, 0.2);
}

.bg-blob-2 {
    bottom: 5rem;
    right: 2.5rem;
    background: hsla(214, 100%, 58%, 0.2);
    animation-delay: 2s;
}

.bg-blob-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: hsla(214, 100%, 58%, 0.1);
    border-radius: 50%;
    filter: blur(150px);
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    animation: slideUp 0.8s ease;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px hsla(214, 100%, 58%, 0.3), 0 0 40px hsla(214, 100%, 58%, 0.1);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px hsla(214, 100%, 58%, 0.5), 0 0 60px hsla(214, 100%, 58%, 0.2);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.logo-container {
    animation: float 6s ease-in-out infinite;
}

.hero-logo {
    width: 100%;
    max-width: 28rem;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 20px 40px hsla(214, 100%, 58%, 0.3));
    transition: transform 0.5s ease;
    animation: glow-pulse 3s ease-in-out infinite;
}

.hero-logo:hover {
    transform: scale(1.1);
}

/* About Section */
.about-section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 1200px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: slideUp 0.8s ease;
}

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

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid hsla(214, 100%, 58%, 0.2);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.05);
    border-color: hsla(214, 100%, 58%, 0.5);
    box-shadow: 0 0 20px hsla(214, 100%, 58%, 0.3), 0 0 40px hsla(214, 100%, 58%, 0.1);
}

.feature-icon {
    color: var(--primary);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--muted-foreground);
}

.about-content-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.about-content-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-content-text {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-highlight {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    text-shadow: 0 0 20px hsla(214, 100%, 58%, 0.5);
}

/* Contact Section */
.contact-section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.contact-container {
    max-width: 56rem;
}

.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid hsla(214, 100%, 58%, 0.2);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 0 20px hsla(214, 100%, 58%, 0.3), 0 0 40px hsla(214, 100%, 58%, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--foreground);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid hsla(214, 100%, 58%, 0.3);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(214, 100%, 58%, 0.1);
}

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

.submit-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px hsla(214, 100%, 58%, 0.3);
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 30px hsla(214, 100%, 58%, 0.5);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-icon {
    transition: transform 0.3s ease;
}

.submit-button:hover .button-icon {
    transform: translateX(4px);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px hsla(214, 100%, 58%, 0.4);
    animation: slideIn 0.3s ease;
    z-index: 2000;
}

.toast.hidden {
    display: none;
}

/* Footer */
.footer {
    padding: 3rem 1.5rem;
    border-top: 1px solid hsla(214, 100%, 58%, 0.2);
}

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

.footer-brand {
    text-align: center;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 20px hsla(214, 100%, 58%, 0.5);
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    color: var(--muted-foreground);
}

.footer-info {
    text-align: center;
}

.footer-copyright {
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

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

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 20px 40px hsla(214, 100%, 58%, 0.3));
    }
    50% {
        filter: drop-shadow(0 20px 60px hsla(214, 100%, 58%, 0.5));
    }
}

/* Media Queries */
@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-brand,
    .footer-info {
        text-align: left;
    }
    
    .footer-info {
        text-align: right;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 6rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content-card {
        padding: 2rem;
    }
    
    .contact-card {
        padding: 2rem;
    }
}
