/*
 Theme Name:   Dickson Li Theme
 Theme URI:    https://dicksonli.com
 Author:       Dickson Li
 Author URI:   https://dicksonli.com
 Description:  A professional WordPress theme for Dickson Li, SEO & Analytics Manager, featuring a centered design inspired by naledi.co.uk.
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  dicksonli-theme
*/

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #2c3e50;
    line-height: 1.6;
    background: #f5f7fa;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header, footer {
    background: linear-gradient(135deg, #ffffff, #ecf0f1);
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content, .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin: 0;
    font-size: 32px;
    color: #2980b9;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav {
    margin-top: 15px;
}

nav a {
    margin: 0 20px;
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #2980b9;
}

.resume-btn, .cta-btn {
    background: #3498db;
    padding: 10px 25px;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
    margin-top: 20px;
}

.resume-btn:hover, .cta-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.hero {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
    background: url('https://via.placeholder.com/1200x400') no-repeat center/cover;
    padding: 100px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: #000000; /* Changed from white to black */
}

.hero-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #000000; /* Changed from white to black */
}

.featured, .portfolio, .contact {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
}

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

.featured-cards, .project-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.card, .project-card {
    width: 300px;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card i, .project-card i {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.card:hover i, .project-card:hover i {
    color: #2980b9;
}

.project-card img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.project-card:hover img {
    opacity: 0.9;
}

.date {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.contact form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.contact input, .contact textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

.contact textarea {
    height: 100px;
    resize: vertical;
}

footer {
    margin-top: auto;
}

footer p {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-cards, .project-cards {
        flex-direction: column;
        align-items: center;
    }
    .card, .project-card {
        width: 90%;
    }
    .hero {
        padding: 60px 20px;
    }
    .hero-content h2 {
        font-size: 30px;
        color: #000000; /* Changed from white to black */
    }
    .hero-content p {
        font-size: 16px;
        color: #000000; /* Changed from white to black */
    }
    h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 28px;
    }
    .cta-btn {
        padding: 8px 20px;
    }
    .contact form {
        width: 100%;
    }
}