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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Header and Navigation */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

header h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

header nav a {
    color: white;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #3498db;
    text-decoration: none;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

section {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a6b3c 0%, #2ecc71 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 8px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.35);
}

.hero h2 {
    font-size: 3.5rem;
    color: white;
    border-bottom: none;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1.75rem;
}

.hero-cta {
    display: inline-block;
    background: white;
    color: #1a6b3c !important;
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease !important;
    text-decoration: none !important;
}

.hero-cta:hover {
    background: #f0faf4;
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* About Section */
#about ul {
    list-style: none;
    padding-left: 0;
}

#about li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

#about li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

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

.about-content > div {
    flex: 1;
}

.about-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }
    .about-image {
        width: 120px;
        height: 120px;
    }
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.project-card {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Featured (GreenPad) card */
.project-card.featured {
    grid-column: 1 / -1;
    border-left: 4px solid #1a6b3c;
    background: linear-gradient(135deg, #f0faf4 0%, #f9fffe 100%);
    padding: 2rem;
}

.featured-label {
    display: inline-block;
    background: #1a6b3c;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.project-type-badge {
    display: inline-block;
    background: #e6f4ec;
    color: #1a6b3c;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #b2d8c0;
    vertical-align: middle;
    margin-left: 0.4rem;
    font-style: normal;
}

.project-card.featured .feature-list {
    columns: 2;
    column-gap: 2rem;
}

@media (max-width: 600px) {
    .project-card.featured .feature-list {
        columns: 1;
    }
}

.project-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-card.featured h3 {
    font-size: 1.6rem;
    color: #1a3d2b;
}

.project-card p {
    color: #666;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #555;
    font-size: 0.9rem;
}

.feature-list li {
    padding: 0.2rem 0;
}

.project-card code {
    font-family: monospace;
    background-color: #eef;
    padding: 0 3px;
    border-radius: 3px;
    font-size: 0.85em;
}

.project-card .project-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.project-card a {
    color: #0066cc;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.project-card a:hover {
    color: #0052a3;
    transform: translateX(3px);
    text-decoration: none;
}

/* Contact Section */
#contact ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

#contact a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

#contact a:hover {
    background-color: #2980b9;
    text-decoration: none;
    color: white;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

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

    header nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    main {
        padding: 0 1rem;
    }

    section {
        padding: 1.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

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

    #contact ul {
        flex-direction: column;
        gap: 1rem;
    }

    #contact a {
        display: block;
        text-align: center;
    }
}
