/* CSS Variables */
:root {
    --black: #020202ff;
    --deep-space-blue: #0d324dff;
    --dusty-lavender: #7f5a83ff;
    --dusty-mauve: #a188a6ff;
    --cool-steel: #9da2abff;
    
    /* Additional derived colors */
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--deep-space-blue);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.highlight {
    color: var(--dusty-lavender);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(127, 90, 131, 0.2);
    z-index: -1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-primary {
    background: var(--dusty-lavender);
    color: white;
}

.btn-primary:hover {
    background: var(--dusty-mauve);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--deep-space-blue);
    border: 2px solid var(--cool-steel);
}

.btn-secondary:hover {
    border-color: var(--dusty-lavender);
    color: var(--dusty-lavender);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--black);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-accent {
    color: var(--dusty-lavender);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--deep-space-blue);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link.contact-btn {
    background: var(--deep-space-blue);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
}

.nav-link.contact-btn:hover {
    background: var(--dusty-lavender);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--deep-space-blue);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--deep-space-blue);
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 400px;
    animation: fadeIn 1.5s ease-out;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.card {
    position: absolute;
    width: 280px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

/* Fixed positioning with proper spacing */
.card-1 {
    top: 20px;
    left: 0;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 40px;
    right: 0;
    z-index: 2;
    animation: float 6s ease-in-out infinite 1s;
}

/* Fixed Hero Card Images */
.card-image-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-info {
    padding: 20px;
    background: white;
}

.card-info h4 {
    color: var(--deep-space-blue);
    margin-bottom: 5px;
}

.card-info p {
    color: var(--dusty-lavender);
    font-size: 0.9rem;
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--cool-steel);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--cool-steel);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--dusty-lavender);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

/* Sections Common */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--cool-steel);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--light-bg);
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--dusty-lavender), var(--dusty-mauve));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 1.8rem;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--deep-space-blue);
}

.feature-card p {
    color: var(--cool-steel);
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: var(--white);
}

.gallery-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.gallery-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(127, 90, 131, 0.1);
    border-top: 4px solid var(--dusty-lavender);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.gallery-container {
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

.gallery {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding-left: 20px;
    padding-right: 20px;
    cursor: grab;
}

.gallery:active {
    cursor: grabbing;
}

.gallery::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 auto;
    width: 280px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeIn 0.5s ease-out;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-info {
    padding: 20px;
    background: white;
}

.gallery-info h3 {
    color: var(--deep-space-blue);
    margin-bottom: 5px;
}

.gallery-info .style {
    color: var(--dusty-lavender);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--light-bg);
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 35px;
    top: 80px;
    bottom: -50px;
    width: 2px;
    background: var(--cool-steel);
    opacity: 0.3;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--deep-space-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.step-content h3 {
    margin-bottom: 15px;
    color: var(--deep-space-blue);
}

.step-content p {
    color: var(--cool-steel);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--deep-space-blue), #1a4b6d);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 20px;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--dusty-lavender), var(--dusty-mauve));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-card h3 {
    margin-bottom: 10px;
    color: var(--deep-space-blue);
}

.contact-card p {
    color: var(--cool-steel);
    margin-bottom: 10px;
}

.contact-link, .contact-detail {
    color: var(--dusty-lavender);
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--deep-space-blue);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--cool-steel);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dusty-lavender);
    background: white;
}

/* Footer */
.footer {
    background: var(--black);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 15px;
}

.footer-tagline {
    color: var(--cool-steel);
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-column a {
    display: block;
    color: var(--cool-steel);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(157, 162, 171, 0.2);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--cool-steel);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--cool-steel);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--dusty-mauve);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scrollWheel {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-visual {
        height: 350px;
        margin-top: 40px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-visual {
        height: 320px;
    }
    
    /* Mobile layout for two cards side by side */
    .floating-cards {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    
    .card {
        position: relative;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 200px;
        animation: none;
    }
    
    .card-1, .card-2 {
        animation: none;
        position: relative;
    }
    
    .card-image-container {
        height: 260px;
    }
    
    .gallery-item {
        width: 250px;
    }
    
    .gallery-image {
        height: 340px;
    }
    
    .steps-container {
        padding: 0 20px;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .step:not(:last-child)::after {
        left: 50%;
        top: 70px;
        bottom: -40px;
        transform: translateX(-50%);
        height: 40px;
        width: 2px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-visual {
        height: 280px;
    }
    
    /* Smaller mobile layout */
    .floating-cards {
        gap: 15px;
    }
    
    .card {
        width: 170px;
    }
    
    .card-image-container {
        height: 220px;
    }
    
    .gallery-item {
        width: 220px;
    }
    
    .gallery-image {
        height: 300px;
    }
}

@media (max-width: 375px) {
    .hero-visual {
        height: 260px;
    }
    
    .floating-cards {
        gap: 10px;
    }
    
    .card {
        width: 150px;
    }
    
    .card-image-container {
        height: 200px;
    }
    
    .card-info {
        padding: 15px;
    }
    
    .card-info h4 {
        font-size: 1rem;
    }
    
    .card-info p {
        font-size: 0.8rem;
    }
}