/* General Styling */
:root {
    --primary-color: #8B4513; /* Saddle Brown */
    --secondary-color: #FFD700; /* Gold - accent color */
    --dark-color: #36220B; /* Darker Brown */
    --light-color: #F5F5DC; /* Beige - off-white */
    --white-color: #FFFFFF;
    --text-color: #36220B;
    --light-text-color: #F5F5DC;
}

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

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

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
}

.btn-small {
    font-size: 0.8rem;
    padding: 5px 10px;
}

/* Header */
header {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: var(--light-text-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url("greasemike.jpg") no-repeat center center/cover;
    color: var(--white-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    z-index: 1;
    transform: translateY(0);
    opacity: 1;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-style: italic;
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

section h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

/* About Section */
.about {
    background: var(--white-color);
}

.about .about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about .about-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.about .about-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--secondary-color);
    box-shadow: 0 0 0 8px var(--primary-color);
    transition: transform 0.3s ease;
}

.about .about-image img:hover {
    transform: scale(1.05);
}

.about .about-text {
    flex: 2;
    min-width: 300px;
}

.about .about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Skills Section */
.skills {
    background: var(--light-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.skill-item {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.skill-item p {
    font-size: 1rem;
    color: #555;
}

/* Portfolio Section */
.portfolio {
    background: var(--white-color);
}

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

.portfolio-item {
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.portfolio-item h3 {
    margin: 15px 0 10px;
    color: var(--primary-color);
    font-size: 1.6rem;
}

.portfolio-item p {
    padding: 0 15px 15px;
    color: #555;
}

/* Contact Section */
.contact {
    background: var(--dark-color);
    color: var(--light-text-color);
}

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

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.social-links {
    text-align: center;
    margin-top: 40px;
}

.social-links a {
    display: inline-block;
    margin: 0 15px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.social-links img {
    width: 45px;
    height: 45px;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%); /* Make icons white */
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    header nav {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        margin-top: 15px;
        display: none;
    }

    header nav ul li {
        margin: 0 15px;
    }

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

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

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .about .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .about .about-image img {
        width: 250px;
        height: 250px;
    }

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

    .contact-form {
        padding: 0 15px;
    }

    .social-links img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    header nav ul li {
        margin: 0 8px;
    }

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

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

    section h2 {
        font-size: 2rem;
    }
}



/* Portfolio Filter Buttons */
.filter-buttons {
    text-align: center;
    margin-bottom: 30px;
}

.filter-buttons .btn-small {
    margin: 0 5px;
    background: var(--light-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.filter-buttons .btn-small:hover,
.filter-buttons .btn-small.active {
    background: var(--primary-color);
    color: var(--white-color);
}


