/* Global Styles */
:root {
    --primary-color: #00d4ff;
    --background-color: #0f0f0f;
    --text-color: #e0e0e0;
    --secondary-text-color: #b0b0b0;
    --section-background: #1a1a1a;
    --highlight-background: #2a2a2a;
    --link-color: #00d4ff;
    --link-hover-color: #00a8cc;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Ensure dark theme isn't overridden by client/browser styles */
html, body {
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
}

/* Navigation Styles */
.main-nav {
    background-color: var(--section-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--link-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--link-hover-color);
}

/* Hero Section */
.hero {
    background-color: var(--highlight-background);
    text-align: center;
    padding: 8rem 2rem;
    margin-top: 60px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.5rem;
    color: var(--secondary-text-color);
}

/* Profile Image */
.profile-image {
    width: 150px;
    height: 150px;
    margin: 2rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Styles */
.section {
    padding: 5rem 2rem;
    background-color: var(--section-background);
    margin: 20px 0;
    border-radius: 8px;
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

/* Certifications Section */
#certifications {
    background-color: var(--highlight-background);
    border: 2px solid var(--primary-color);
}

.cert-list {
    list-style: none;
    padding: 0;
}

.cert-list li {
    background-color: var(--section-background);
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.skill-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--highlight-background);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.skill-item h3 {
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: var(--text-color);
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-item {
    background-color: var(--section-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-item h3 {
    font-size: 1.5rem;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.before-after-container, .single-build {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.before, .after, .single-build {
    flex: 1;
    margin-bottom: 1rem;
}

.before h4, .after h4 {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: var(--primary-color);
}

.project-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.description {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-color);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    background-color: var(--highlight-background);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
}

/* Updated Button Styles */
.cta-button,
.linkedin-link a {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover,
.linkedin-link a:hover {
    background-color: var(--link-hover-color);
    color: white;
}

/* Specific style for the contact form button */
.contact-form .cta-button {
    background-color: var(--primary-color);
    border: none;
    cursor: pointer;
}

/* LinkedIn button specific styles */
.linkedin-link {
    margin-top: 1rem;
}

.linkedin-link a {
    background-color: #0077B5; /* LinkedIn's brand color */
}

.linkedin-link a:hover {
    background-color: #005fa3;
}

/* Footer */
footer {
    background-color: var(--section-background);
    text-align: center;
    padding: 2rem;
    color: var(--secondary-text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

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

    .section {
        padding: 3rem 1rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .single-build {
        flex: 0 0 100%;
    }
}

@media (min-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .before-after-container {
        flex-direction: row;
    }

    .before, .after {
        flex: 0 0 calc(50% - 0.5rem);
    }

    .before {
        margin-right: 0.5rem;
    }

    .after {
        margin-left: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Space the CTA inside sections a bit from surrounding content */
.cta-wrapper {
    margin-top: 2rem;
    text-align: center;
}