/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #fff;
    padding: 20px 0;
    z-index: 100;
}

.header-content {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.social-bar {
    display: flex;
    gap: 15px;
}

.social-bar a {
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
}

.social-bar a:hover {
    opacity: 0.7;
}

.social-bar img {
    width: 20px;
    height: 20px;
}

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

nav a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s;
}

nav a:hover {
    color: #666;
}

/* Hero Section */
.hero {
    background-color: #fff;
    padding: 60px 20px 80px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.profile-image {
    width: 280px;
    height: auto;
    border-radius: 0;
    flex-shrink: 0;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid #333;
    background: transparent;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #333;
    color: #fff;
}

/* Portfolio Section */
.portfolio {
    padding: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.portfolio-item.has-overlay .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item.has-overlay:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 12px;
    line-height: 1.5;
}

/* Social Row Item */
.portfolio-item.social-row {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-social-bar {
    display: flex;
    gap: 20px;
}

.mini-social-bar a {
    display: flex;
    transition: opacity 0.3s;
}

.mini-social-bar a:hover {
    opacity: 0.7;
}

.mini-social-bar img {
    width: 20px;
    height: 20px;
}

/* Footer */
footer {
    background: #f5f5f5;
    padding: 30px 20px;
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    font-size: 14px;
    color: #666;
}

.scroll-up {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: background 0.3s;
}

.scroll-up:hover {
    background: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 36px;
    }

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

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

    .profile-image {
        width: 200px;
    }

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

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    nav ul {
        gap: 20px;
    }

    .hero h1 {
        font-size: 28px;
    }
}
