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

:root {
    --primary-color: #4A90E2;
    --secondary-color: #7B68EE;
    --accent-color: #FF6B6B;
    --dark-color: #2C3E50;
    --light-color: #ECF0F1;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

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

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

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.3rem; }

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

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo__text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo__tagline {
    font-size: 0.8rem;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

.nav__link:hover::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero__content {
    text-align: center;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero__subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero__services {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero__service {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero__icon {
    width: 48px;
    height: 48px;
    fill: white;
}

.hero__service span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero button special style */
.hero .btn--primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.hero .btn--primary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.4);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn--primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(118, 75, 162, 0.5);
}

/* Special style for form submit button */
#contactForm .btn--primary,
#modalForm .btn--primary {
    width: 100%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

#contactForm .btn--primary:hover,
#modalForm .btn--primary:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(245, 87, 108, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
    }
}

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

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

/* Section Styles */
.section__title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section__subtitle {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Projects */
.featured-projects {
    padding: 80px 0;
    background: var(--light-color);
}

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

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.project-card__image {
    height: 200px;
    overflow: hidden;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-card__image img {
    transform: scale(1.1);
}

.project-card__content {
    padding: 1.5rem;
}

.project-card__content h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    font-weight: 600;
}

/* Process Preview */
.process-preview {
    padding: 80px 0;
    text-align: center;
}

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

.process__step {
    padding: 2rem 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.process__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.process__icon svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
}

.process__step h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

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

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-card__icon {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
}

.service-card__description {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.service-card__features {
    margin: 1.5rem 0;
}

.service-card__features h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.service-card__features ul {
    list-style: none;
    padding-left: 0;
}

.service-card__features li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.service-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-card__btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.service-card__btn:hover {
    background: var(--secondary-color);
}

/* Projects Section */
.projects {
    padding: 80px 0;
}

.projects__full-grid {
    display: grid;
    gap: 3rem;
}

.project-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.project-full:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.project-full:nth-child(even) .project-full__image {
    order: 2;
}

.project-full__image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.project-full__content h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.project-full__client {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.project-full__task,
.project-full__solution {
    margin-bottom: 1rem;
}

/* Process Section - New Compact Design */
.process {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.process-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 20px;
}

.process-line {
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 0;
}

.process-item {
    position: relative;
    flex: 1;
    text-align: center;
    z-index: 1;
}

.process-number {
    width: 70px;
    height: 70px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.process-item:hover .process-number {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.process-content {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.process-item:hover .process-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.process-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.process-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.process-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.process-duration {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Timeline - Remove old styles */
.timeline {
    display: none;
}

.process__note {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    margin-top: 2rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--light-color);
}

.about__content {
    display: grid;
    gap: 3rem;
}

.about__mission,
.about__approach,
.about__why {
    text-align: center;
}

.about__mission h3,
.about__approach h3,
.about__why h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.about__feature {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.about__icon {
    width: 60px;
    height: 60px;
    fill: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contacts Section */
.contacts {
    padding: 80px 0;
}

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

.contacts__form h3,
.contacts__info h3 {
    margin-bottom: 2rem;
    color: var(--dark-color);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.contacts__icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

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

.footer__brand .logo__text {
    color: white;
}

.footer__links h4,
.footer__social h4 {
    margin-bottom: 1rem;
}

.footer__links ul {
    list-style: none;
}

.footer__links li {
    margin-bottom: 0.5rem;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer__links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

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

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

.social-links svg {
    width: 20px;
    height: 20px;
    fill: white;
}

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

.footer__legal {
    display: flex;
    gap: 2rem;
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.8);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal__close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.modal__close:hover {
    color: var(--dark-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav__menu.active {
        left: 0;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__services {
        gap: 1.5rem;
    }

    .projects__grid,
    .services__grid {
        grid-template-columns: 1fr;
    }

    .project-full {
        grid-template-columns: 1fr;
    }

    .project-full:nth-child(even) .project-full__image {
        order: 0;
    }

    /* Process Timeline Mobile */
    .process-timeline {
        flex-direction: column;
        padding: 0;
    }

    .process-line {
        left: 35px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: calc(100% - 50px);
    }

    .process-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 2rem;
        text-align: left;
    }

    .process-number {
        flex-shrink: 0;
        margin: 0 1rem 0 0;
    }

    .process-content {
        flex: 1;
    }

    .process-icon {
        margin: 0 0 0.5rem;
    }

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

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    
    .container {
        padding: 0 15px;
    }

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

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