/* CSS Variables for Color Scheme */
:root {
    --primary-color: #5B2A86;
    --primary-dark: #472068;
    --primary-light: #7B4AA6;
    --secondary-color: #A06CD5;
    --secondary-light: #C08EF7;
    --accent-color: #66CC99;
    --accent-hover: #4DAA77;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --background-light: #F9F7FC;
    --background-white: #FFFFFF;
    --border-color: #E0D6EB;
    --shadow-light: rgba(91, 42, 134, 0.1);
    --shadow-medium: rgba(91, 42, 134, 0.15);
    --shadow-dark: rgba(91, 42, 134, 0.25);
    --transition-speed: 0.3s;
    --border-radius: 12px;
    --border-radius-small: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

a:hover {
    color: var(--secondary-color);
}

/* Header and Navigation */
.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 20px var(--shadow-medium);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-speed);
}

.navbar {
    padding: 1rem 0;
}

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

.logo h1 {
    color: var(--background-white);
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tagline {
    color: var(--secondary-light);
    font-size: 0.9rem;
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--background-white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    transition: all var(--transition-speed);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--background-white);
    border-radius: 3px;
    transition: all var(--transition-speed);
}

/* Main Content Sections */
main {
    margin-top: 80px;
}

section {
    padding: 4rem 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--background-light) 0%, rgba(160, 108, 213, 0.1) 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 204, 153, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero-slogan {
    text-align: center;
    margin: 3rem 0;
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
}

.hero-slogan h3 {
    font-size: 2rem;
    color: var(--accent-color);
    font-style: italic;
    text-shadow: 2px 2px 4px var(--shadow-light);
}

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

.image-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-medium);
    transition: transform var(--transition-speed);
    background: var(--background-light);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About Section */
.about-section {
    background: var(--background-white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Services Section */
.services-section {
    background: linear-gradient(180deg, var(--background-light) 0%, var(--background-white) 100%);
}

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

.service-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-speed);
}

.service-card:hover .service-icon {
    transform: rotate(10deg) scale(1.1);
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--background-white);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

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

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 2.5rem;
    border-radius: var(--border-radius);
    color: var(--background-white);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.contact-info h3 {
    color: var(--background-white);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact-item a,
.contact-item span {
    color: var(--background-white);
    transition: color var(--transition-speed);
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* Contact Form */
.contact-form {
    background: var(--background-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow-light);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-speed);
    background: var(--background-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(160, 108, 213, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.error-message {
    display: none;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    animation: shake 0.3s ease-in-out;
}

.form-group.error .error-message {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--background-white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(102, 204, 153, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 204, 153, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.success-message {
    display: none;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--background-white);
    padding: 1rem;
    border-radius: var(--border-radius-small);
    margin-top: 1rem;
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

.success-message.show {
    display: block;
}

/* Legal Sections */
.legal-section {
    background: var(--background-light);
    min-height: 100vh;
    padding: 6rem 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--background-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow-light);
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.legal-content p {
    line-height: 1.7;
    color: var(--text-dark);
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--background-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-info h3 {
    color: var(--background-white);
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: var(--secondary-light);
    font-style: italic;
}

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

.footer-link {
    color: var(--background-white);
    transition: color var(--transition-speed);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
}

.footer-link:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.animate-fade-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Effect */
.parallax-element {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-slogan h3 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        padding: 2rem;
        gap: 1rem;
        transition: right var(--transition-speed);
        box-shadow: -5px 0 20px var(--shadow-dark);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero Section */
    .hero-images {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .image-container {
        height: 200px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact Section */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    /* Padding Adjustments */
    section {
        padding: 3rem 0;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    /* Typography */
    body {
        font-size: 0.95rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Buttons */
    .btn-submit {
        width: 100%;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }
    
    /* Contact Info */
    .contact-info,
    .contact-form {
        padding: 2rem 1.5rem;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .main-footer,
    .nav-toggle {
        display: none;
    }
    
    main {
        margin-top: 0;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Additional Styles for Multi-Page Structure */

/* Logo Link Styles */
.logo a {
    text-decoration: none;
    color: inherit;
}

.logo a:hover {
    opacity: 0.9;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 6rem 0 3rem;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.page-title {
    color: var(--background-white);
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    color: var(--background-white);
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Button Styles */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0.5rem;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    transition: all var(--transition-speed);
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--background-white);
    box-shadow: 0 4px 15px rgba(102, 204, 153, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 204, 153, 0.4);
    color: var(--background-white);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--background-white);
    box-shadow: 0 4px 15px rgba(102, 204, 153, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 204, 153, 0.4);
    color: var(--background-white);
}

.cta-buttons {
    margin-top: 2rem;
    text-align: center;
}

/* Quick Overview Grid */
.quick-overview {
    background: var(--background-light);
    padding: 4rem 0;
}

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

.overview-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all var(--transition-speed);
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.overview-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--primary-color);
}

/* Values Section */
.values-section {
    background: var(--background-light);
    padding: 4rem 0;
}

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

.value-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.value-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background-white);
}

.value-icon svg {
    width: 30px;
    height: 30px;
}

/* Team Section */
.team-section {
    padding: 4rem 0;
    background: var(--background-white);
}

.team-content {
    max-width: 900px;
    margin: 0 auto;
}

.team-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.team-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.team-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 0;
    text-align: center;
    color: var(--background-white);
}

.cta-content h2 {
    color: var(--background-white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--background-white);
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Contact Details */
.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.contact-details {
    display: grid;
    gap: 2rem;
}

.contact-form-wrapper {
    background: var(--background-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow-light);
}

.contact-form-wrapper h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.availability {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Map Section */
.map-section {
    background: var(--background-light);
    padding: 4rem 0;
}

.map-content h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.service-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.area-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-light);
    text-align: center;
}

.area-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Legal Date */
.legal-date {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.legal-date p {
    color: var(--text-light);
    font-style: italic;
}

/* Active Navigation Indicator for Current Page */
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-color);
}