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

:root {
    --primary-color: #3B82F6;
    --secondary-color: #1D4ED8;
    --accent-color: #60A5FA;
    --text-color: #1f2937;
    --light-bg: #F3F4F6;
    --white: #ffffff;
    --gray: #6B7280;
    --gray-dark: #374151;
    --dark-bg: #1F2937;
}

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-color);
    padding-top: 0;
}

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

/* Hero Section with Logo */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 60px 20px 80px;
    text-align: center;
}

.hero-logo {
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.hero-logo .logo-text {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.logo-applied {
    color: var(--white);
    font-weight: 600;
    font-size: 0.6em;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.95;
}

.logo-ai {
    color: var(--white);
    font-weight: 900;
    font-size: 1.8em;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ffffff 0%, rgb(255, 255, 255) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-services {
    color: var(--white);
    font-weight: 600;
    font-size: 0.6em;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.95;
}

.hero-logo .logo-text:hover .logo-ai {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Hero Navigation */
.hero-nav {
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease 0.3s backwards;
}

.hero-nav .nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    display: inline-flex;
}

.hero-nav .nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 25px;
}

.hero-nav .nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--primary-color);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.burger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px;
    transition: all 0.3s ease;
}

.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Content */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.5s backwards;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: var(--light-bg);
}

/* Services Section */
.services {
    padding: 80px 20px;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    border-top: 3px solid var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.service-card p {
    color: var(--gray);
}

/* About Section */
.about {
    padding: 80px 20px;
}

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

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

/* Contact Section */
.contact {
    padding: 80px 20px;
    background: var(--light-bg);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form .btn-primary {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.contact-form .btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 2rem 20px;
}

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

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

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

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: 80px 20px 60px;
    }

    .hero-logo .logo-text {
        font-size: 2.5rem;
    }

    .hero-nav .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.2);
        padding: 2rem 0;
        border-radius: 0;
        backdrop-filter: none;
        display: flex;
    }

    .hero-nav .nav-links.active {
        right: 0;
    }

    .hero-nav .nav-links a {
        font-size: 1.2rem;
        padding: 12px 20px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-logo .logo-text {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}
