/* Base Styles and Variables */
:root {
    --primary-color: #7e22ce; /* Purple - Primary brand color */
    --secondary-color: #10b981; /* Emerald - Secondary accent */
    --dark-color: #111827; /* Near black for dark mode */
    --light-color: #f9fafb; /* Off white for light mode */
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #1f2937;
    --container-width: 1200px;
    --radius: 8px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--light-color);
    transition: var(--transition);
    overflow-x: hidden;
}

/* Dark Mode */
body.dark-mode {
    color: var(--gray-200);
    background-color: var(--dark-color);
}

body.dark-mode .navbar,
body.dark-mode .service-card,
body.dark-mode .contact-form form,
body.dark-mode footer {
    background-color: var(--gray-900);
    border-color: var(--gray-700);
}

body.dark-mode .service-icon,
body.dark-mode .section-title::after {
    background-color: var(--primary-color);
    color: white;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.cta-button, .submit-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:hover, .submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.secondary-button {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    margin-left: 1rem;
}

.secondary-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    position: relative;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--light-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 2rem;
    box-shadow: var(--shadow-md);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-700);
    margin-left: 0;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links .cta-button {
    color: white;
}

.theme-toggle, .mobile-menu-btn {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--gray-700);
    transition: var(--transition);
}

.theme-toggle:hover, .mobile-menu-btn:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--gray-700);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding-top: 80px; /* For navbar */
}

.hero-content {
    max-width: 750px;
    padding: 2rem;
    z-index: 2;
    text-align: center;
    position: relative;
}

.hero-content .headline {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    animation: fade-in-up 1.2s ease-out;
}

.hero-content .subheadline {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    animation: fade-in-up 1.2s ease-out 0.3s backwards;
}

.hero-content .cta-button {
    animation: fade-in-up 1.2s ease-out 0.6s backwards;
}

.hero-content .secondary-button {
    animation: fade-in-up 1.2s ease-out 0.8s backwards;
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--light-color);
}

body.dark-mode .hero-visual {
    background-color: var(--dark-color);
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.animated-bg .particle {
    position: absolute;
    background-color: var(--primary-color);
    opacity: 0.2;
    border-radius: 50%;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0);
        opacity: 0.2;
    }
    25% {
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) translateX(20px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(0) translateX(0) rotate(360deg);
        opacity: 0.2;
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(126, 34, 206, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(126, 34, 206, 0.05) 1px, transparent 1px);
    animation: grid-pulse 15s infinite alternate;
}

@keyframes grid-pulse {
    0% {
        opacity: 0.3;
        background-size: 50px 50px;
    }
    50% {
        opacity: 0.7;
        background-size: 55px 55px;
    }
    100% {
        opacity: 0.3;
        background-size: 50px 50px;
    }
}

/* About Section */
.about-section {
    background-color: var(--gray-100);
    text-align: center;
}

body.dark-mode .about-section {
    background-color: var(--gray-900);
}

.about-blurb {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.25rem;
}

.keywords {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.keywords span {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 500;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: var(--gray-100);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: white;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.service-slogan {
    color: var(--primary-color);
    font-weight: 600;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.service-description {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    flex-grow: 1;
}

body.dark-mode .service-description {
    color: var(--gray-300);
}

body.dark-mode .service-slogan {
    color: var(--secondary-color);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    align-self: center;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-link i {
    width: 20px;
}

.contact-form form {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: inherit;
    background-color: var(--light-color);
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.1);
}

body.dark-mode .form-group input, 
body.dark-mode .form-group textarea {
    background-color: var(--gray-700);
    border-color: var(--gray-500);
    color: var(--gray-200);
}

/* Footer */
footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--gray-300);
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gray-700);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
}

.easter-egg-trigger {
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0.5;
    transition: var(--transition);
}

.easter-egg-trigger:hover {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content .headline {
        font-size: 3rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--light-color);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }

    body.dark-mode .nav-links {
        background-color: var(--gray-900);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        margin: 0 0 1.5rem 0;
    }

    .hero-content .headline {
        font-size: 2.5rem;
    }

    .hero-content .subheadline {
        font-size: 1.1rem;
    }

    .hero-visual {
        width: 30%;
    }

    .keywords {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo, .footer-links, .footer-social {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }

    .hero-content .headline {
        font-size: 2rem;
    }

    .secondary-button {
        margin: 1rem 0 0 0;
        display: block;
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-content .cta-button {
        display: block;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animations and effects */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Background animated particles for hero section */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    display: block;
    background-color: var(--primary-color);
    opacity: 0.2;
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0);
        opacity: 0.2;
    }
    25% {
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) translateX(20px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(0) translateX(0) rotate(360deg);
        opacity: 0.2;
    }
}