/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --text-lighter: #9CA3AF;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-card: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    z-index: 9999;
    transition: width 0.1s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(249, 250, 251, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 50px;
    padding: 8px 12px;
    box-shadow: var(--shadow-lg);
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-light);
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link i {
    font-size: 16px;
}

.nav-link:hover {
    color: var(--text-dark);
    background: var(--bg-light);
    transform: scale(1.05);
}

.nav-link.active {
    background: var(--text-dark);
    color: var(--bg-white);
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 100px 0;
    scroll-margin-top: 80px;
}

/* Home Section */
#home {
    padding-top: 140px;
    padding-bottom: 100px;
}

.home-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: center;
    max-width: 100%;
}

.availability-badge {
    display: inline-block;
    background: var(--bg-light);
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-light);
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.home-title {
    font-size: 68px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

.home-subtitle {
    font-size: 40px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    animation: fadeInUp 0.6s ease 0.6s backwards;
}

.home-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 520px;
    animation: fadeInUp 0.6s ease 0.8s backwards;
}

.home-info {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease 1s backwards;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

.info-item i {
    color: var(--text-light);
}

.home-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease 1.2s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--text-dark);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.social-separator {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeInUp 0.6s ease 1.4s backwards;
}

.social-title {
    font-size: 13px;
    color: var(--text-light);
    margin-right: 4px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 17px;
}

.social-icon:hover {
    background: var(--text-dark);
    color: var(--bg-white);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: var(--shadow-md);
}

.home-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.8s ease 0.6s backwards;
    transition: all 0.4s ease;
}

.image-placeholder:hover {
    transform: scale(1.02) rotate(2deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: grayscale(100%);
}

.image-placeholder:hover img {
    transform: scale(1.1);
    filter: grayscale(80%);
}

/* About Section */
#about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: start;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-lighter);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-size: 44px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-title.centered {
    text-align: center;
}

.title-underline {
    width: 70px;
    height: 3px;
    background: var(--text-dark);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.title-underline::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.title-underline.centered {
    margin-left: auto;
    margin-right: auto;
}

.about-description {
    margin-bottom: 36px;
}

.about-description p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.subsection-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 26px 22px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    transition: left 0.5s ease;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px) scale(1.02);
}

.card-icon {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    display: inline-block;
}

.info-card:hover .card-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-color);
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.card-text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-container {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.about-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.about-image-container:hover::before {
    opacity: 1;
}

.about-image-container:hover {
    border-color: var(--primary-color);
    transform: scale(1.02) rotate(1deg);
    box-shadow: var(--shadow-xl);
}

.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: grayscale(100%);
}

.about-image-container:hover img {
    transform: scale(1.08);
    filter: grayscale(80%);
}

/* Projects Section */
#projects {
    padding: 100px 0;
}

.projects-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-description {
    font-size: 15px;
    color: var(--text-light);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--bg-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(79, 70, 229, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.project-card:hover::after {
    opacity: 1;
}

.project-image {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    overflow: hidden;
    position: relative;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
    z-index: 1;
}

.project-card:hover .project-image::before {
    background: rgba(0, 0, 0, 0.1);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 22px;
}

.project-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.project-description {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.project-buttons {
    display: flex;
    gap: 8px;
}

.btn-project {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--text-dark);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-project::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-project:hover::before {
    width: 300px;
    height: 300px;
}

.btn-project:hover {
    background: #000;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-demo {
    background: var(--primary-color);
}

.btn-demo:hover {
    background: var(--primary-dark);
}

/* Services Section */
#services {
    padding: 100px 0;
}

.services-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 36px 26px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    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(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-15px);
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(79, 70, 229, 0.03) 100%);
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-icon img,
.service-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-icon svg {
    transition: all 0.4s ease;
}

.service-card:hover .service-icon svg {
    filter: drop-shadow(0 4px 8px rgba(79, 70, 229, 0.3));
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-description {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
#contact {
    padding: 100px 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 70px;
    align-items: start;
}

.contact-intro {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 36px;
    transition: all 0.3s ease;
}

.contact-intro:hover {
    color: var(--text-dark);
    transform: translateX(5px);
}

.contact-details {
    margin-bottom: 36px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.contact-item:hover {
    transform: translateX(10px);
    color: var(--primary-color);
}

a.contact-item {
    color: var(--text-dark);
}

a.contact-item:hover {
    color: var(--primary-color);
}

.contact-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 17px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 17px;
}

.contact-item:hover .contact-icon {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: rotate(10deg) scale(1.1);
}

.contact-item:hover .contact-icon i {
    color: var(--bg-white);
}

.contact-social {
    display: flex;
    gap: 12px;
}

.contact-social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
}

.contact-social-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--text-dark);
    border-radius: 8px;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.contact-social-icon:hover::after {
    transform: scale(1);
}

.contact-social-icon:hover {
    color: var(--bg-white);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: var(--shadow-md);
}

.contact-form-container {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-input:hover {
    border-color: var(--text-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: var(--text-lighter);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: var(--bg-white);
    font-size: 15px;
    font-weight: 500;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .home-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar {
        max-width: 100%;
    }

    .nav-menu {
        gap: 4px;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 12px;
    }

    .nav-link span {
        display: none;
    }

    .home-title {
        font-size: 48px;
    }

    .home-subtitle {
        font-size: 32px;
    }

    .section-title {
        font-size: 36px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 100px 0 60px;
    }

    .home-title {
        font-size: 40px;
    }

    .home-subtitle {
        font-size: 28px;
    }

    .home-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

