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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2F4F2F;
    background-color: #F5F5DC;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(245, 245, 220, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2F4F2F;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

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

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 500;
    color: #556B2F;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #2F4F2F;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(245, 245, 220, 0.7), rgba(245, 245, 220, 0.7)), url('kotor.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #2F4F2F;
    color: #F5F5DC;
    border-radius: 0;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.cta-button:hover {
    background-color: #1B3A1B;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 5rem 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

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

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #2F4F2F;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.profile-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #2F4F2F;
}

.about-text {
    flex: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

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

.about-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    text-align: center;
    transition: transform 0.3s ease;
}

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

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 0;
    background-color: #f5f5dc;
}

.portfolio-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Contact Section */
form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

input, textarea {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #C3E6CB;
    border-radius: 0;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: #F5F5DC;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #2F4F2F;
}

button[type="submit"] {
    padding: 1rem;
    background-color: #2F4F2F;
    color: #F5F5DC;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
    font-weight: 500;
}

button[type="submit"]:hover {
    background-color: #1B3A1B;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #2F4F2F;
    color: #F5F5DC;
    font-size: 0.9rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: #F5F5DC;
    font-size: 2rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #C3E6CB;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

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

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .about-text {
        flex-direction: column;
    }

    .divider {
        width: auto;
        height: 1px;
        margin: 1rem 0;
    }
}
