/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* A more modern default font */
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8; /* Lighter background */
}

.container {
    width: 85%; /* Slightly wider container */
    max-width: 1200px; /* Max width for large screens */
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header & Navigation */
header {
    background: #2c3e50; /* Darker, professional header */
    color: #fff;
    padding: 1rem 0;
    border-bottom: #1abc9c 3px solid; /* Accent color */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header nav ul li {
    margin-left: 25px; /* Slightly more spacing */
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500; /* Lighter weight */
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #1abc9c; /* Accent color on hover */
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('hero-background.jpg') no-repeat center center/cover; /* Dark overlay + background image */
    color: #fff;
    text-align: center;
    padding: 120px 0; /* More vertical padding */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero h1 {
    font-size: 4rem; /* Larger heading */
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.6rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.button {
    display: inline-block;
    background: #1abc9c; /* Accent color */
    color: #fff;
    padding: 12px 28px; /* Larger buttons */
    text-decoration: none;
    border-radius: 30px; /* Pill-shaped buttons */
    transition: background 0.3s ease, transform 0.2s ease;
    margin: 0 15px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.button:hover {
    background: #16a085; /* Darker accent on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

.secondary-button {
    background: #34495e; /* Complementary dark color */
}

.secondary-button:hover {
    background: #2c3e50;
}

/* Sections */
section {
    padding: 80px 0; /* More padding between sections */
    text-align: center;
}

section:nth-child(even) {
    background: #ecf0f1; /* Light gray for alternate sections */
}

h2 {
    font-size: 3rem; /* Larger section titles */
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    color: #2c3e50;
}

h2::after {
    content: '';
    position: absolute;
    width: 80px; /* Longer underline */
    height: 5px;
    background: #1abc9c;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px; /* Lower underline */
    border-radius: 3px;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px; /* More spacing */
    align-items: center;
    justify-content: center;
    text-align: left;
}

.about-image img {
    max-width: 350px; /* Larger image */
    border-radius: 10px; /* Slightly rounded corners */
    box-shadow: 0 5px 20px rgba(0,0,0,0.15); /* More prominent shadow */
    transition: transform 0.3s ease;
}
.about-image img:hover {
    transform: scale(1.02);
}

.about-text {
    flex: 1;
    min-width: 320px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}
.about-text p {
    margin-bottom: 15px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Slightly larger min-width */
    gap: 40px; /* More gap */
    margin-top: 50px;
}

.portfolio-item {
    background: #fff;
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.portfolio-item img {
    width: 100%;
    height: 220px; /* Slightly taller images */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

.portfolio-item h3 {
    padding: 20px 20px 10px;
    font-size: 1.8rem;
    color: #2c3e50;
}

.portfolio-item p {
    padding: 0 20px 15px;
    font-size: 1rem;
    color: #666;
}

.portfolio-item .small-button {
    margin: 0 20px 20px;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 20px;
    box-shadow: none; /* Remove button shadow for inner items */
}
.portfolio-item .small-button:hover {
    transform: none; /* Remove lift for inner items */
}

/* Contact Form */
.contact form {
    max-width: 700px; /* Wider form */
    margin: 40px auto 20px;
    background: #fff;
    padding: 40px; /* More padding */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 15px; /* Larger input fields */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1abc9c;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2); /* Focus ring effect */
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact button {
    width: auto;
    padding: 14px 35px;
    font-size: 1.2rem;
    cursor: pointer;
}

.social-links {
    margin-top: 40px;
}

.social-links p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #555;
}

.social-links a {
    color: #1abc9c;
    text-decoration: none;
    margin: 0 20px; /* More spacing */
    font-size: 1.3rem; /* Larger icons/text */
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: #16a085;
    transform: translateY(-3px); /* Subtle bounce effect */
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 25px 0;
    margin-top: 60px;
    font-size: 0.95rem;
}

footer p {
    margin: 7px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    header nav ul {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 15px;
    }

    header nav ul li {
        margin: 5px 12px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .about-image img {
        margin-bottom: 25px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact form {
        padding: 30px;
    }

    .social-links a {
        margin: 0 10px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .button {
        display: block;
        margin: 15px auto;
        width: 80%; /* Make buttons full width on small screens */
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .portfolio-item h3 {
        font-size: 1.5rem;
    }

    .contact button {
        width: 100%;
        padding: 12px 20px;
    }
}