/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Lato:wght@400;700&display=swap');

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

body {
    font-family: 'Lato', sans-serif;
    background-color: #FFFFFF; /* Clean White Background */
    color: #212529; /* Very Dark Gray for Text */
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #212529; /* Dark heading color */
    line-height: 1.3;
}

a {
    color: #E03A3C; /* Bold Accent Red */
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #B82E30; /* Darker Red on hover */
}

/* Header */
header {
    background: #1A1D20; /* Very Dark Charcoal Background */
    color: #F8F9FA; /* Off-White Text */
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header #branding h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

header #branding h1 a {
    color: #F8F9FA;
    transition: color 0.3s ease;
}
header #branding h1 a:hover {
    color: #E03A3C;
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-left: 25px;
}

header nav ul li a {
    color: #F8F9FA;
    text-transform: uppercase;
    font-weight: 600; /* Poppins bold */
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li.current a {
    color: #E03A3C; /* Accent Red for hover/current */
    border-bottom: 2px solid #E03A3C;
}

/* Hero Section (Homepage) */
.hero {
    background: #1A1D20; /* Dark background for contrast with white body */
    color: #F8F9FA;
    padding: 80px 0;
    text-align: center;
    min-height: calc(60vh - 88px); /* Adjust based on header height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 48px; /* Large, impactful heading */
    font-weight: 700; /* Poppins Bold */
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    color: #adb5bd; /* Lighter gray for subheading */
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.hero .button,
.main-content .button { /* General button style */
    display: inline-block;
    background: #E03A3C; /* Accent Red */
    color: #FFFFFF;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600; /* Poppins Bold */
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(224, 58, 60, 0.3);
}

.hero .button:hover,
.main-content .button:hover {
    background: #B82E30; /* Darker Red */
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 46, 48, 0.4);
}


/* Main Content Area */
.main-content {
    padding: 60px 0;
    min-height: calc(100vh - 88px - 100px); /* Full viewport height minus header and footer */
}

.main-content h1, .main-content h2.page-title { /* Specific for page titles */
    font-size: 36px;
    color: #212529;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.main-content .subtitle {
    font-size: 18px;
    color: #495057; /* Lighter gray */
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

/* Section Headings (e.g., "Welcome" on homepage) */
.section-heading {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 700;
}

.section-intro {
    text-align: center;
    font-size: 18px;
    color: #495057;
    max-width: 700px;
    margin: 0 auto 40px auto;
}


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

.project-item {
    background: #FFFFFF;
    border: 1px solid #E9ECEF; /* Light Gray Border */
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.project-item img { /* For design projects */
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #E9ECEF;
}

.project-item h3 {
    font-size: 22px;
    font-weight: 600; /* Poppins semibold */
    color: #E03A3C; /* Accent Red */
    margin-bottom: 10px;
}

.project-item p {
    font-size: 15px;
    color: #495057; /* Lighter text for description */
    margin-bottom: 15px;
    flex-grow: 1; /* Makes description take available space */
}

.project-item p.technologies {
    font-size: 14px;
    font-style: italic;
    color: #6c757d; /* Even lighter gray */
    margin-bottom: 20px;
}

.project-item .project-links a {
    display: inline-block;
    background: #212529; /* Dark button for contrast */
    color: #FFFFFF;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600; /* Poppins */
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    margin-right: 10px;
    margin-top: auto; /* Pushes button to bottom if content varies */
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.project-item .project-links a:last-child {
    margin-right: 0;
}

.project-item .project-links a:hover {
    background: #E03A3C; /* Accent Red on hover */
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Specific for homepage call-to-action boxes */
.cta-box {
    text-align: center;
    padding: 30px;
}
.cta-box h3 {
    margin-bottom: 15px;
}
.cta-box p {
    margin-bottom: 20px;
}

/* Contact Page */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    border: 1px solid #E9ECEF;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700; /* Lato bold */
    color: #343A40;
    font-size: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ced4da; /* Standard input border */
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #E03A3C; /* Accent Red on focus */
    box-shadow: 0 0 0 0.2rem rgba(224, 58, 60, 0.25); /* Subtle glow */
    outline: none;
}

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

.contact-form button {
    display: block;
    width: 100%;
    padding: 15px;
    background: #E03A3C; /* Accent Red */
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600; /* Poppins */
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(224, 58, 60, 0.3);
}

.contact-form button:hover {
    background: #B82E30; /* Darker Red */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 46, 48, 0.4);
}

.contact-info {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
}

.contact-info p {
    font-size: 17px;
    color: #495057;
    margin-bottom: 15px;
}

.contact-info a {
    font-weight: 700; /* Lato bold */
}

/* Footer */
footer {
    background: #1A1D20; /* Very Dark Charcoal */
    color: #adb5bd; /* Lighter gray for footer text */
    text-align: center;
    padding: 30px 0;
    margin-top: 50px; /* Ensure space above footer */
    font-size: 14px;
}

footer p {
    margin: 0;
}

footer a {
    color: #F8F9FA; /* Off-white for links in footer */
    font-weight: 600; /* Poppins */
}

footer a:hover {
    color: #E03A3C; /* Accent Red on hover */
}

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

    header #branding {
        margin-bottom: 15px;
        text-align: center;
    }

    header nav ul {
        text-align: center;
    }

    header nav ul li {
        display: block;
        margin: 10px 0;
    }
    header nav ul li a,
    header nav ul li.current a {
        border-bottom: none; /* Remove underline for stacked mobile nav */
        padding-bottom: 0;
    }
    header nav ul li a:hover,
    header nav ul li.current a {
        color: #E03A3C;
    }


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

    .hero p {
        font-size: 17px;
    }

    .main-content h1, .main-content h2.page-title {
        font-size: 28px;
    }
    .main-content .subtitle {
        font-size: 16px;
    }

    .project-grid {
        grid-template-columns: 1fr; /* Stack projects */
    }

    .container {
        width: 90%;
    }

    .contact-form-container {
        padding: 20px;
    }
}