
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.project-row:nth-child(1).fade-up { transition-delay: 0.1s; }
.project-row:nth-child(2).fade-up { transition-delay: 0.2s; }
.project-row:nth-child(3).fade-up { transition-delay: 0.3s; }
.project-row:nth-child(4).fade-up { transition-delay: 0.4s; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 600;
    color: #2A3B4C;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #8B7355;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.logo-link {
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.3;
    color: #2A3B4C;
}

.logo-text span {
    font-weight: 800;
}

.logo-text small {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: #8B7355;
}

nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-link:hover {
    color: #2A3B4C;
}

.nav-link.active {
    color: #2A3B4C;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2A3B4C;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #2A3B4C;
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-content h1 .highlight {
    color: #d4c5b0;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-content .btn-primary {
    animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    display: inline-block;
    background: #2A3B4C;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: 40px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #1f2e3a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #2A3B4C;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: 40px;
    transition: all 0.3s ease;
    border: 2px solid #2A3B4C;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: #2A3B4C;
    color: white;
    transform: translateX(5px);
}

.portfolio-section {
    padding: 100px 5%;
    background: #fafafa;
}

.projects-alternating {
    max-width: 1300px;
    margin: 0 auto;
}

.project-row {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-bottom: 5rem;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-row.reverse {
    flex-direction: row-reverse;
}

.project-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-row:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.project-number {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: rgba(42, 59, 76, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    letter-spacing: 1px;
}

.project-details {
    flex: 1;
    padding: 2rem;
}

.project-category {
    display: inline-block;
    background: #e8dfd3;
    color: #8B7355;
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.project-details h3 {
    font-size: 1.8rem;
    color: #2A3B4C;
    margin-bottom: 1rem;
}

.project-details p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-section {
    padding: 100px 5%;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #444;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2A3B4C;
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 1px;
}

.specializations, .awards {
    margin-top: 2rem;
}

.specializations h4, .awards h4 {
    color: #2A3B4C;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.spec-tags span {
    background: #f0f0f0;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #444;
    transition: all 0.3s ease;
}

.spec-tags span:hover {
    background: #2A3B4C;
    color: white;
}

.awards ul {
    list-style: none;
    padding: 0;
}

.awards ul li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.8rem;
}

.awards ul li::before {
    content: "🏆";
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-section {
    padding: 100px 5%;
    background: #f5f5f0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-info {
    background: #2A3B4C;
    padding: 2rem;
    border-radius: 16px;
    color: white;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #d4c5b0;
}

.info-item p {
    opacity: 0.9;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2A3B4C;
    box-shadow: 0 0 0 3px rgba(42, 59, 76, 0.1);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.success-msg {
    color: #2e7d32;
    background: #e8f5e9;
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
}

.error-msg {
    color: #c62828;
    background: #ffebee;
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
}

.footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 3rem 5% 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d4c5b0;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: #aaa;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #d4c5b0;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.85rem;
    color: #777;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    color: #2A3B4C;
}

.modal-gallery {
    margin-bottom: 1.5rem;
}

.modal-main {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.modal-thumbnails {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.modal-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.modal-thumb.active {
    opacity: 1;
    border: 2px solid #2A3B4C;
}

.modal-info {
    margin-top: 1rem;
}

.modal-info h3 {
    color: #2A3B4C;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.modal-info p {
    color: #666;
    line-height: 1.6;
}

.detail-grid {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.detail-grid div {
    color: #555;
    font-size: 0.9rem;
}

.full-description {
    margin-top: 1rem;
    color: #444;
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .project-row, .project-row.reverse {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-image {
        width: 100%;
        min-height: 300px;
    }
    
    .project-details {
        padding: 1.5rem;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
        max-height: 400px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .detail-grid {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 5%;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .header.mobile-open nav {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 0.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title h2::after {
        width: 50px;
    }
    
    .project-details h3 {
        font-size: 1.4rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .modal-thumb {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .btn-primary, .btn-outline {
        padding: 0.8rem 1.5rem;
    }
    
    .project-image {
        min-height: 250px;
    }
    
    .modal-thumb {
        width: 50px;
        height: 50px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-img {
        height: 40px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

a, button, .project-row, .btn-primary, .btn-outline {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2A3B4C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1f2e3a;
}

::selection {
    background: #2A3B4C;
    color: white;
}