* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.logo:hover {
    transform: scale(1.01);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transform: scale(1) rotate(0deg);
    transform-origin: center center;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    will-change: transform;
}

.logo:hover .logo-img {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a1a1a;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: #333;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    z-index: 2;
    padding-top: 80px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero p {
    font-size: 1.25rem;
    color: #4a4a4a;
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button .button-icon {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .button-icon {
    transform: translateX(5px);
}

.cta-button.secondary {
    background-color: transparent;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
}

.cta-button.secondary:hover {
    background-color: #f5f5f5;
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background-color: #fafafa;
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-item {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.about-item p {
    color: #4a4a4a;
}

/* Clients Section */
.clients {
    padding: 6rem 2rem;
    background-color: #ffffff;
}

.clients-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

/* Clients Slider */
.clients-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 4rem;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

.clients-slider::before,
.clients-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-slider::before {
    left: 0;
    background: linear-gradient(to right, #fff 60%, rgba(255,255,255,0));
}

.clients-slider::after {
    right: 0;
    background: linear-gradient(to left, #fff 60%, rgba(255,255,255,0));
}

.clients-track {
    display: flex;
    animation: scroll 40s linear infinite;
    width: max-content;
    max-width: 900px;
    padding: 0 40px;
}

.clients-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 3));
    }
}

.client-card {
    flex: 0 0 250px;
    margin: 0 1rem;
    text-align: center;
    transition: all 0.3s ease;
    padding: 1.5rem;
    opacity: 0.8;
}

.client-card:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.client-image {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
}

.client-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.client-card:hover .client-avatar {
    transform: scale(1.1);
}

.client-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.client-card p {
    color: #4a4a4a;
    font-size: 0.9rem;
    margin: 0;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 2rem;
    background-color: #fafafa;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: #4a4a4a;
    font-size: 1.1rem;
}

.portfolio-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 4rem;
}

@keyframes shadowAnimation {
    0% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    100% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.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 slideInBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    opacity: 0;
}

.portfolio-item:nth-child(even) {
    direction: rtl;
}

.portfolio-item:nth-child(even) .portfolio-content {
    direction: ltr;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
    transform: none !important;
}

.portfolio-item.animate-left,
.portfolio-item.animate-right,
.portfolio-item.animate-bottom {
    animation: none;
}

.portfolio-item:active {
    transform: none;
}

.portfolio-item img:hover {
    transform: none;
}

.portfolio-item .portfolio-content h3,
.portfolio-item .portfolio-content .client,
.portfolio-item .portfolio-content .description {
    transition: none;
    color: #1a1a1a;
    transform: none;
}

.portfolio-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.portfolio-content .client {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.portfolio-content .description {
    color: #4a4a4a;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background-color: #ffffff;
}

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

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

.contact-method {
    text-align: center;
}

.contact-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.contact-method p {
    color: #4a4a4a;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    background-color: #1a1a1a;
    color: #ffffff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: #a0a0a0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        text-align: center;
        padding-top: 100px;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .portfolio-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-item:nth-child(even) {
        direction: ltr;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

    .nav-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-social {
        align-items: center;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .client-card {
        flex: 0 0 200px;
    }

    .client-image {
        width: 100px;
        height: 100px;
    }

    .contact-methods {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 1000px) {
    .clients-track {
        max-width: 100vw;
        padding: 0 10vw;
    }
    .clients-slider::before,
    .clients-slider::after {
        width: 10vw;
    }
}

.dynamic-text {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.fade-in {
    opacity: 0;
    animation: fadeInLogo 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInLogo {
    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 1429px;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 24px;
    color: #1a1a1a;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.modal-overlay.active .modal-close {
    opacity: 1;
    transform: translateY(0);
}

.modal-close:hover {
    background: #f5f5f5;
    transform: rotate(90deg);
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 804px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.portfolio-item img:hover {
    transform: scale(1.02);
}
