/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== CSS VARIABLES ===== */
:root {
    --bg-color: #f4f4f4;
    --text-color: #333;
    --header-bg: #333;
    --header-text: #fff;
    --accent-color: #f4b41a;
    --container-bg: #fff;
    --project-bg: #fafafa;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hero-overlay: rgba(0, 0, 0, 0.5);
    --nav-hover-shadow: 0 0 8px #f4b41a;
    --link-color: #333;
    --hero-text: white;
    --hero-p-color: #666;
}

.dark-theme {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --header-bg: #1e1e1e;
    --header-text: #fff;
    --accent-color: #f4b41a;
    --container-bg: #1e1e1e;
    --project-bg: #2a2a2a;
    --shadow-color: rgba(255, 255, 255, 0.1);
    --hero-overlay: rgba(0, 0, 0, 0.7);
    --nav-hover-shadow: 0 0 8px #f4b41a;
    --link-color: #e0e0e0;
    --hero-text: #e0e0e0;
    --hero-p-color: #ccc;
}

/* ===== GENERAL STYLES ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.cta-btn {
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(244, 180, 26, 0.5);
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.cta-btn:hover {
    background-color: #d99e0a;
    transform: scale(1.05);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 2rem auto;
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px var(--shadow-color);
    transition: background-color 0.3s ease;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.project {
    background-color: var(--project-bg);
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 0 5px var(--shadow-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background-color 0.3s ease;
}

.project h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.project img.product-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid var(--accent-color);
    object-fit: cover;
}

/* ===== HEADER & NAV ===== */
header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

nav .logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.menu-toggle {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    color: var(--header-text);
}

nav ul {
    list-style: none;
    display: flex;
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
    max-height: 0;
}

nav ul.show {
    max-height: 500px;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--header-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
    animation: navLinkHover 0.3s ease forwards;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--header-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.theme-toggle-btn:hover {
    color: var(--accent-color);
}

.theme-toggle-li {
    display: block;
}

@keyframes navLinkHover {
    0% {
        transform: scale(1);
        color: var(--header-text);
        text-shadow: none;
    }
    50% {
        transform: scale(1.1);
        color: var(--accent-color);
        text-shadow: var(--nav-hover-shadow);
    }
    100% {
        transform: scale(1);
        color: var(--accent-color);
        text-shadow: none;
    }
}

/* ===== HERO SECTION ===== */
#hero {
    position: relative;
    background-image: url('./assist/uchenna img.png');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    text-align: center;
    color: var(--hero-text);
    opacity: 0;
    animation: fadeInHero 1.5s ease forwards;
    animation-delay: 0.3s;
}

#hero .hero-content {
    background-color: var(--hero-overlay);
    padding: 1rem 2rem;
    border-radius: 8px;
}

#hero .hero-content h1,
#hero .hero-content p {
    margin: 0;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var( --hero-p-color);
}

#hero .cta-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1s;
}

#hero .cta-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
}

#hero .cta-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

@keyframes fadeInHero {
    to {
        opacity: 1;
    }
}

/* ===== SECTIONS ===== */
#about .container {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

#services .portfolio-grid {
    margin-top: 1rem;
}

#products .cta-buttons {
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 2.5s;
}

#products .cta-buttons .cta-btn {
    min-width: 180px;
    text-align: center;
}

#portfolio .container {
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 1s ease forwards;
    animation-delay: 1s;
}

.portfolio-grid .project {
    opacity: 0;
    transform: scale(0.9);
    animation: popIn 0.5s ease forwards;
    animation-delay: 1.5s;
}

.portfolio-grid .project:nth-child(2) {
    animation-delay: 1.7s;
}

.portfolio-grid .project:nth-child(3) {
    animation-delay: 1.9s;
}

.testimonials {
    background-color: var(--project-bg);
    padding: 1rem 2rem;
    border-radius: 6px;
    box-shadow: 0 0 5px var(--shadow-color);
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

.testimonials h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.testimonials blockquote {
    font-style: italic;
    margin: 1rem 0;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    color: var(--text-color);
}

.testimonials blockquote footer {
    font-style: normal;
    font-weight: 600;
    margin-top: 0.5rem;
    color: var(--accent-color);
}

#contact .container {
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInRight 1s ease forwards;
    animation-delay: 1.5s;
}

#contact .container p a {
    color: var(--link-color);
    text-decoration: none;
    position: relative;
    padding-left: 25px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

#contact .container p a i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--accent-color);
    transition: opacity 0.3s ease;
    opacity: 0;
}

#contact .container p a:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

#contact .container p a:hover i {
    opacity: 1;
}

#contact .container p a span.initials {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 14px;
    color: var(--link-color);
    transition: opacity 0.3s ease;
    opacity: 1;
}

#contact .container p a:hover span.initials {
    opacity: 0;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--header-bg);
    color: var(--header-text);
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInFooter 1s ease forwards;
    animation-delay: 0.5s;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.footer-right a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.footer-right a:hover {
    text-decoration: underline;
}

/* ===== FEEDBACK MODAL ===== */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

.modal-content {
    background-color: var(--container-bg);
    margin: 10% auto; /* 10% from the top and centered */
    padding: 20px;
    border: 1px solid var(--accent-color);
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 0 10px var(--shadow-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.modal-content h2 {
    margin-top: 0;
    color: var(--accent-color);
}

.modal-content label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-content textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid var(--accent-color);
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--container-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.modal-content button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(244, 180, 26, 0.5);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-content button:hover {
    background-color: #d99e0a;
    transform: scale(1.05);
}

/* Close button */
.close {
    color: var(--accent-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #d99e0a;
    text-decoration: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInFooter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 600px) {
    body {
        padding-top: 0;
    }

    nav ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        background-color: var(--header-bg);
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 8px 8px;
        z-index: 1000;
    }

    nav ul.show {
        max-height: 500px;
    }

    nav ul li {
        margin: 0.5rem 0;
        text-align: center;
    }

    nav ul li a {
        color: var(--header-text);
        font-weight: 600;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    nav ul li a:hover {
        color: var(--accent-color);
        animation: navLinkHover 0.3s ease forwards;
    }

    .menu-toggle {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        color: var(--header-text);
    }

    .theme-toggle-btn {
        display: block;
        font-size: 1.8rem;
        padding: 0.75rem;
        margin: 1rem auto;
        cursor: pointer;
        color: var(--header-text);
        background-color: transparent;
        border: none;
        outline: none;
        transition: color 0.3s ease;
        z-index: 1100;
    }

    .theme-toggle-li {
        display: block;
        margin: 1rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .img {
        width: 160px;
        height: 160px;
        border-width: 4px;
    }

    .container {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }

    /* Added styles for mobile design of cta-buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .cta-btn {
        padding: 0.5rem 1rem;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (min-width: 601px) {
    nav ul {
        max-height: none !important;
        flex-direction: row;
        background-color: transparent;
        position: static;
        width: auto;
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .theme-toggle-btn {
        display: block;
    }

    .theme-toggle-li {
        display: block;
    }
}

@media (min-width: 1000px) {
    body {
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .img {
        width: 200px;
        height: 200px;
        border-width: 5px;
    }

    .container {
        padding: 2rem;
        margin: 2rem auto;
    }
}

#network-services {
    background-color: var(--container-bg);
    padding: 2rem 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px var(--shadow-color);
    margin: 2rem auto;
    max-width: 1100px;
}

#network-services h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.network-services-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.network-contact p {
    font-size: 1rem;
    margin: 0.3rem 0;
}

.network-contact .icon {
    margin-right: 0.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.network-contact a {
    color: var(--accent-color);
    text-decoration: none;
}

.network-contact a:hover {
    text-decoration: underline;
}
