/* Base Variables */
:root {
    --primary: #8a2be2;
    --primary-light: #9b59b6;
    --primary-dark: #4b0082;
    --secondary: #2c3e50;
    --accent: #e74c3c;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #95a5a6;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --bg-accent: #f0e6fa;
    --shadow: 0 4px 20px rgba(138, 43, 226, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
}

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

h2:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

p {
    margin-bottom: 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--text-light);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-icon {
    margin-left: 8px;
}

/* Layout */
.section {
    padding: 5rem 0;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
}

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

.nav-link {
    position: relative;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    padding: 0.5rem 0;
}

.nav-link:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.nav-link:hover:before,
.nav-link.active:before {
    width: 100%;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 6px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.9) 0%, rgba(75, 0, 130, 0.9) 100%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23ffffff" fill-opacity="0.05" d="M50,0 L100,50 L50,100 L0,50 Z"/></svg>');
    background-size: cover, 150px;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero-container {
    min-height: 75vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 100%;
    height: auto;
    filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.2));
}

/* Shapes */
.shape {
    position: absolute;
    opacity: 0.15;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--text-light);
    animation: float 8s infinite alternate;
}

.shape-2 {
    bottom: 10%;
    left: 15%;
    width: 150px;
    height: 150px;
    background: var(--text-light);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: float 12s infinite alternate-reverse;
}

.shape-3 {
    top: 15%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: var(--text-light);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: float 10s infinite alternate;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(20px) rotate(10deg);
    }
}

/* Features */
.features {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0px 5px 10px rgba(138, 43, 226, 0.2));
}

/* How It Works */
.how-it-works {
    background-color: var(--bg-accent);
    position: relative;
    overflow: hidden;
}

.steps-container {
    position: relative;
}

.steps-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background-color: var(--primary);
}

.step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.step-icon {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.step-content {
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Gallery Section */
.gallery {
    background-color: var(--bg-light);
}

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

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--primary);
    height: 250px;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.15);
}

.gallery-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--text-light);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta h2:after {
    background-color: var(--text-light);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
}

.footer-logo-text {
    color: var(--text-light);
    font-weight: 800;
    font-size: 1.2rem;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    position: relative;
    display: inline-block;
}

.footer-heading:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        grid-row: 1;
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-light);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 30px 30px;
        transition: 0.4s;
        z-index: 1000;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: auto;
    }
}

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

.animate {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}
