/* Base Styles */
:root {
    /* Original Colors - Kept for compatibility */
    --primary-color: #6e3dc8;
    --primary-light: #9d4edd;
    --primary-dark: #5a189a;
    --secondary-color: #e0aaff;
    --text-dark: #ffffff;
    --text-light: #e0aaff;
    --text-white: #ffffff;
    --background-light: #10002b;
    --background-alt: #240046;
    --border-color: #3c096c;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(110, 61, 200, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(110, 61, 200, 0.3), 0 2px 4px -1px rgba(110, 61, 200, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(110, 61, 200, 0.3), 0 4px 6px -2px rgba(110, 61, 200, 0.2);
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --transition: all 0.3s ease;
    
    /* Cosmic Theme Colors */
    --cosmic-primary: #6e3dc8;
    --cosmic-secondary: #9d4edd;
    --cosmic-accent: #c77dff;
    --cosmic-highlight: #e0aaff;
    --cosmic-dark: #10002b;
    --cosmic-deep: #240046;
    --cosmic-medium: #3c096c;
    --cosmic-light: #e0aaff;
    --cosmic-text: #ffffff;
    --cosmic-text-secondary: #e0aaff;
    --cosmic-gradient: linear-gradient(135deg, #6e3dc8, #9d4edd, #c77dff);
    --cosmic-gradient-alt: linear-gradient(135deg, #240046, #3c096c, #5a189a);
    --cosmic-shadow: 0 8px 32px rgba(110, 61, 200, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cosmic-dark);
    overflow-x: hidden;
    position: relative;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 3rem;
    height: 0.25rem;
    background: var(--cosmic-gradient);
    border-radius: var(--radius-sm);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 5rem 0;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--cosmic-gradient);
    background-size: 200% 100%;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(110, 61, 200, 0.3);
}

.btn-primary:hover {
    background-position: 100% 0;
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(110, 61, 200, 0.5);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transform: rotate(30deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.btn-primary:hover::after {
    opacity: 1;
    transform: rotate(30deg) translate(10%, -10%);
}

.btn-secondary {
    background: rgba(224, 170, 255, 0.2);
    color: var(--cosmic-highlight);
    border: 1px solid var(--cosmic-highlight);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(224, 170, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 170, 255, 0.3);
}

.btn-text {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

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

.btn-text:after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.btn-text:hover:after {
    transform: translateX(4px);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(16, 0, 43, 0.8);
    box-shadow: 0 4px 20px rgba(110, 61, 200, 0.3);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(157, 78, 221, 0.3);
}

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

.logo a {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo span {
    background: linear-gradient(90deg, #6e3dc8, #9d4edd, #c77dff, #e0aaff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nebula-text-animation 8s ease infinite;
    text-shadow: 0 0 20px rgba(224, 170, 255, 0.5);
    font-weight: 700;
}

@keyframes nebula-text-animation {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--cosmic-text);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover {
    color: var(--cosmic-highlight);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--cosmic-gradient);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--cosmic-text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero:before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(157, 78, 221, 0.3) 0%, rgba(16, 0, 43, 0) 70%);
    z-index: 0;
}

.hero:after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(110, 61, 200, 0.3) 0%, rgba(16, 0, 43, 0) 70%);
    z-index: 0;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

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

/* Services Section */
.services {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(36, 0, 70, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(110, 61, 200, 0.2);
    transition: var(--transition);
    border: 1px solid rgba(157, 78, 221, 0.3);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(110, 61, 200, 0.4);
    border: 1px solid rgba(157, 78, 221, 0.6);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--cosmic-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(110, 61, 200, 0.4);
    position: relative;
    overflow: hidden;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    transform: rotate(30deg);
    animation: service-icon-shine 6s infinite linear;
    opacity: 0;
}

@keyframes service-icon-shine {
    0% {
        opacity: 0;
        transform: rotate(30deg) translate(-100%, -100%);
    }
    20% {
        opacity: 0.8;
    }
    30% {
        opacity: 0;
        transform: rotate(30deg) translate(100%, 100%);
    }
    100% {
        opacity: 0;
        transform: rotate(30deg) translate(100%, 100%);
    }
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

/* Service Detail Sections */
.service-detail {
    padding: 6rem 0;
}

.alt-bg {
    background-color: var(--cosmic-deep);
    position: relative;
}

.alt-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(157, 78, 221, 0.2) 0%, rgba(16, 0, 43, 0) 70%);
    z-index: 0;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.service-features {
    margin: 2rem 0;
}

.service-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.service-features li:before {
    content: '✓';
    color: var(--success-color);
    margin-right: 0.75rem;
    font-weight: bold;
}

.service-features li.sub-feature {
    margin-left: 2rem;
    font-size: 0.95em;
}

.service-features li.sub-feature:before {
    content: '•';
    color: var(--secondary-color);
    font-size: 1.2em;
}

.service-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.gallery-placeholder {
    background: linear-gradient(135deg, rgba(36, 0, 70, 0.7), rgba(90, 24, 154, 0.7));
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cosmic-text-secondary);
    font-style: italic;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(157, 78, 221, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(16, 0, 43, 0.3);
}

/* Pricing Cards */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.price-card {
    background: rgba(36, 0, 70, 0.7);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(110, 61, 200, 0.2);
    border: 1px solid rgba(157, 78, 221, 0.3);
    text-align: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(110, 61, 200, 0.4);
    border: 1px solid rgba(157, 78, 221, 0.6);
}

.price-card h4 {
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cosmic-highlight);
    margin: 1rem 0 1.5rem;
    text-shadow: 0 0 10px rgba(224, 170, 255, 0.5);
}

/* Robot Models */
.robot-models {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.robot-model {
    background-color: var(--background-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.note {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-light);
}

/* Wishlist Form */
.wishlist-container {
    margin-top: 2rem;
    background-color: var(--background-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.wishlist-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.wishlist-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.wishlist-form input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Contact Section */
.contact {
    background-color: var(--background-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    margin-top: 3rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.contact-info {
    background-color: var(--background-alt);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.info-item {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.info-item i {
    margin-right: 1rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--background-alt);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--text-light);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem 0;
}

.modal-content {
    background-color: var(--background-light);
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .service-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-content > div:first-child {
        order: 1;
    }
    
    .service-content > div:last-child {
        order: 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--background-light);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .robot-models {
        grid-template-columns: 1fr;
    }
    
    .wishlist-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .pricing {
        grid-template-columns: 1fr;
    }
}
