@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-color: #1a1c22;
    --card-color: #24262d;
    --text-color: #ffffff;
    --text-color-light: #d1d5db;
    --primary-color: #2563EB;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

.blue-text {
    color: var(--primary-color);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(26, 28, 34, 0.9); 
    backdrop-filter: blur(8px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.navigation {
    display: flex;
    gap: 1.5rem;
}

.navigation a {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navigation a:hover {
    color: var(--text-color);
}

main {
    padding-top: 5rem;
}

section {
    padding: 6rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.hero-content {
    margin-bottom: 3rem;
}

.hero-section .title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-section .subtitle {
    font-size: 1.25rem;
    color: var(--text-color-light);
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px; 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #1e40af;
    transform: scale(1.05);
}


.about-section .about-image img, 
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.about-section, .contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.about-section .about-content, .contact-section .contact-content {
    text-align: center;
}

.about-section .about-image, .contact-section .contact-image {
    order: -1; 
}

.contact-section .contact-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

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

.works-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-color);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-0.5rem);
}

.project-card img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-info {
    padding: 1.5rem;
    text-align: left;
}

.project-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 0.875rem;
    color: var(--text-color-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-input, .form-textarea {
    background-color: var(--card-color);
    color: var(--text-color-light);
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

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

footer {
    background-color: var(--card-color);
    padding: 2rem 1rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-color-light);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

.copyright {
    font-size: 0.875rem;
    color: #6b7280;
}

@media (min-width: 768px) {
    .navigation {
        display: flex;
    }

    .hero-section {
        flex-direction: row;
        text-align: left;
    }
    
    .hero-content, .hero-image {
        flex: 1;
    }

    .hero-image {
        text-align: right;
    }
    
    .about-section {
        flex-direction: row;
    }

    .about-section .about-content {
        text-align: left;
    }

    .about-section .about-image {
        order: 0;
    }

    .contact-section {
        flex-direction: row;
    }
    
    .contact-section .contact-content {
        text-align: left;
    }

    .contact-section .contact-image {
        order: 0;
    }

    .works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-row {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .works-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
