/* Base Styles and Variables */
:root {
    /* Primary palette - dreamy, professional */
    --primary-dark: #2c1c59;  /* Deep purple */
    --primary: #5a4a9f;       /* Medium purple */
    --primary-light: #8c7bd8; /* Light purple */
    
    /* Secondary colors */
    --accent: #4ab0d9;        /* Dream blue */
    --accent-dark: #2a6b8a;   /* Deep blue */
    
    /* Neutrals */
    --dark: #1e1e2f;
    --medium: #4a4a65;
    --light: #f5f5f8;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark), var(--primary));
    --gradient-accent: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-hero: linear-gradient(135deg, rgba(44, 28, 89, 0.9), rgba(90, 74, 159, 0.8));
    
    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Cormorant Garamond', Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 5rem;
    
    /* Borders & Shadows */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.16);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--medium);
    background-color: var(--white);
    overflow-x: hidden;
}

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

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-title {
    text-align: center;
    position: relative;
    margin-bottom: var(--space-xl);
}

.section-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gradient-accent);
    margin: var(--space-md) auto 0;
    border-radius: var(--radius-sm);
}

p {
    margin-bottom: 1.5rem;
}

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

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

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

/* Layout */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-xl) 0;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--white);
}

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

.btn-secondary:hover {
    background-color: var(--light);
    color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.logo img {
    height: 40px;
    margin-right: var(--space-sm);
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: var(--space-lg);
}

nav a {
    position: relative;
    color: var(--medium);
    font-weight: 500;
    padding: 0.5rem 0;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width var(--transition-normal);
}

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

nav a:hover:after, nav a.active:after {
    width: 100%;
}

.btn-login {
    background-color: var(--light);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-md);
}

.btn-login:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-btn span {
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    background: var(--gradient-hero), url('../img/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
}

.hero-buttons .btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.hero-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all var(--transition-slow);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0);
}

/* Features Section */
.features-overview {
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.features-overview::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(255,255,255,0) 70%);
    top: -150px;
    left: -150px;
    opacity: 0.3;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.feature-card {
    background-color: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

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

.feature-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: var(--primary);
    display: inline-block;
    position: relative;
    z-index: 1;
}

.feature-icon::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: rgba(90, 74, 159, 0.1);
    border-radius: 50%;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.features-link {
    text-align: center;
}

/* How It Works Section */
.how-it-works {
    position: relative;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    opacity: 0.3;
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-weight: 600;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.step img {
    border-radius: var(--radius-md);
    margin: var(--space-lg) auto;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.step:hover img {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.testimonials::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, rgba(255,255,255,0) 70%);
    bottom: -150px;
    right: -150px;
    opacity: 0.3;
}

.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: var(--space-lg);
    padding-bottom: var(--space-md);
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    flex: 0 0 calc(33.333% - var(--space-lg));
    scroll-snap-align: start;
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

.testimonial-content {
    font-style: italic;
    margin-bottom: var(--space-lg);
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -10px;
    color: var(--primary-light);
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light);
}

.testimonial-author h4 {
    margin-bottom: 0;
    font-size: 1rem;
}

.testimonial-author p {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--medium);
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}

.faq-item {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(74, 74, 101, 0.1);
}

.faq-item h3 {
    margin-bottom: var(--space-sm);
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast);
    position: relative;
    padding-right: 30px;
}

.faq-item h3:hover {
    color: var(--primary);
}

.faq-item h3::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-item.active h3::after {
    content: '-';
}

.faq-more {
    text-align: center;
}

/* CTA Section */
.cta {
    background: var(--gradient-primary), url('../img/cta-bg.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: var(--space-xxl) 0;
    position: relative;
}

.cta h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.cta-buttons .btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.cta-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    font-size: 1.2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.footer-logo img {
    height: 30px;
    margin-right: var(--space-sm);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--space-sm);
}

.footer-column a {
    color: var(--light);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-column a:hover {
    opacity: 1;
    color: var(--white);
}

.footer-newsletter p {
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter button {
    padding: 0.8rem 1.2rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.footer-newsletter button:hover {
    background-color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.875rem;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: var(--space-xl);
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .testimonial {
        flex: 0 0 calc(50% - var(--space-lg));
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        padding: var(--space-lg);
        z-index: 999;
    }
    
    .mobile-menu ul {
        list-style: none;
    }
    
    .mobile-menu li {
        margin-bottom: var(--space-md);
    }
    
    .testimonial {
        flex: 0 0 calc(100% - var(--space-md));
    }
    
    .footer-columns {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero {
        padding: 7rem 0 4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .steps::before {
        display: none;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
}

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

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

/* About Page Specific Styles */
.page-hero {
    padding: 8rem 0 5rem;
    color: var(--white);
    text-align: center;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: var(--space-md);
    font-family: var(--font-secondary);
    font-weight: 600;
}

.page-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-grid.reverse {
    direction: rtl;
}

.about-grid.reverse > * {
    direction: ltr;
}

.about-content {
    max-width: 600px;
}

.about-content .section-title {
    text-align: left;
}

.about-content .section-title:after {
    margin-left: 0;
}

.about-content .lead {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.about-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.value-card {
    background-color: var(--white);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-normal);
}

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

.value-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    width: 80px;
    height: 80px;
    background-color: rgba(90, 74, 159, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.team-intro {
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    text-align: center;
    font-size: 1.2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.team-member {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-member img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.team-info {
    padding: var(--space-lg);
}

.team-info h3 {
    margin-bottom: var(--space-xs);
}

.team-info .role {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

/* Responsive adjustments for About page */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .about-content .section-title {
        text-align: center;
    }
    
    .about-content .section-title:after {
        margin: var(--space-md) auto 0;
    }
    
    .about-image {
        margin-top: var(--space-lg);
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .team-member img {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .values-grid,
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .team-member img {
        height: 200px;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
} 