:root {
    --primary-color: #ffffff;
    --secondary-color: #bbbbbb;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --accent-color: #00aaff;
    --navbar-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

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

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.hidden {
    transform: translateY(-100%);
}

.navbar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.nav-logo img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    object-fit: cover;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-color);
}


.content-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

#about {
    padding-top: calc(var(--navbar-height) + 60px); 
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    max-width: 400px;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
}

.about-text {
    flex: 1.5;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slide-track {
    display: flex;
    width: calc(350px * 10); 
    animation: scroll 40s linear infinite;
}

.slide {
    width: 350px;
    height: 250px;
    padding: 15px;
    position: relative; 
}

.project-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative; 
    overflow: hidden; 
    border-radius: 10px; 
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease; 
}

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

.slide .project-link:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 77, 111, 0.85); 
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; 
    transition: opacity 0.4s ease;
    border-radius: 10px; 
}

.slide .project-link:hover .project-overlay {
    opacity: 1; 
}

.project-title {
    font-size: 1.5rem;
    text-align: center;
    padding: 0 10px;
    transform: translateY(15px); 
    transition: transform 0.4s ease;
}

.slide .project-link:hover .project-title {
    transform: translateY(0); 
}


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

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

.service-card {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

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

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--primary-color);
    font-size: 1rem;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--secondary-color);
}

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

.submit-btn {
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0088cc;
}

.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px; 
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.page-fade-out {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, var(--background-color) 20%, transparent);
    z-index: 50;
    pointer-events: none;
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    
    .hamburger {
        display: block;
        z-index: 101;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.4s ease;
        gap: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1.5rem 0;
        font-size: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text h2 {
        text-align: center;
    }
}
