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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    text-transform: lowercase;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: left;
    padding: 0 2rem;
    height: 8rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 7rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -3px;
    margin: 0;
}

header a {
    color: white;
    text-decoration: none;
}


.tabs {
    background-color: #2c3e50;
    display: flex;
    padding: 0 2rem;
    padding-top: 0.5rem;
    height: 4.5rem;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
    margin-top: -0.5rem;
}

.tabs a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1;
}

.tabs a:hover {
    opacity: 1;
}

.tabs a.active {
    opacity: 1;
    position: relative;
}

.tabs a.active::after {
    content: '';
    position: absolute;
    bottom: -1.2rem;
    left: 0;
    right: 0;
    height: 3px;
    background-color: white;
}

main {
    max-width: 100%;
    flex: 1;
}

.portfolio-item {
    display: block;
    width: 100%;
    padding: 4rem 0;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-item::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: left 0.5s;
}

.portfolio-item:hover::before {
    left: 100%;
}

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

.portfolio-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.portfolio-item img {
    width: 400px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: translateY(-5px);
}

.portfolio-info {
    flex: 1;
    min-width: 300px;
}

.portfolio-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.portfolio-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

footer p {
    opacity: 0.8;
}

@media (max-width: 768px) {
    header {
        height: 5rem;
    }
    
    header h1 {
        font-size: 3.5rem;
    }
    
    .tabs {
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .portfolio-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .portfolio-item {
        padding: 3rem 0;
    }
    
    .portfolio-info h2 {
        font-size: 1.5rem;
    }
    
    .portfolio-info p {
        font-size: 1rem;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .portfolio-item img {
        width: 500px;
    }
}

.portfolio-item:nth-child(odd) .portfolio-content {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .portfolio-item:nth-child(odd) .portfolio-content {
        flex-direction: column;
    }
}