/* Root Variables */

:root {
    --primary: #08C6AB;
    --primary-hover: #069e8d;
    --text-light: #fff;
    --text-muted: #ccc;
    --bg-dark: #121212;
    --font-main: 'Poppins', sans-serif;
}


/* Global Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}


/* Header */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    background-color: transparent;
    position: relative;
}

.logo img {
    width: 120px;
    height: auto;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a:hover {
    color: var(--primary-hover);
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: 600;
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    margin-left: auto;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -250px;
    height: 100%;
    width: 250px;
    background-color: #121212;
    color: white;
    padding: 2rem;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.side-menu a {
    color: white;
    text-decoration: none;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #444;
}


/* Side menu dropdown */

.dropdown {
    display: flex;
    flex-direction: column;
}

.dropdown-btn {
    background: none;
    border: none;
    color: white;
    text-align: left;
    padding: 12px 16px;
    font-size: 16px;
    cursor: pointer;
}

.dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-content {
    display: none;
    flex-direction: column;
    padding-left: 16px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    max-height: 0;
}

.dropdown-content.show {
    display: flex;
    max-height: 300px;
}

.dropdown-content a {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 15px;
    text-decoration: none;
}

.dropdown-content a:hover {
    color: white;
}

.close-btn {
    font-size: 2rem;
    margin-bottom: 2rem;
    cursor: pointer;
    align-self: flex-end;
    background: none;
    border: none;
    color: white;
}

.contact-btn {
    border: 2px solid var(--text-light);
    padding: 6px 14px;
    border-radius: 20px;
}


/* Hero Section */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    position: relative;
    background: url('/images/hero_bg.jpg') no-repeat center center / cover;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 600;
}

h1 span {
    color: var(--primary);
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #ddd;
    margin: 1rem 0;
}

.description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta {
    display: inline-block;
    background-color: var(--primary);
    color: #000;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 4px #02675e;
    transition: transform 0.2s;
}

.cta:hover {
    transform: translateY(-3px);
}


/* Service Section */

.service-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    background-color: var(--bg-dark);
}

.service-section h1 {
    font-size: 40px;
    padding-bottom: 20px;
    color: var(--primary);
    text-align: center;
}

.service-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 20px 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1 1 250px;
    max-width: 300px;
    min-width: 250px;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 10px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-card img {
    width: 100%;
    max-width: 80px;
    height: auto;
    margin-bottom: 10px;
    object-fit: contain;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.service-card a {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.service-card a:hover {
    background-color: var(--primary-hover);
}


/* Portfolio Section */

.work-section {
    display: none;
}

.work-section h2,
.work-section p {
    text-align: center;
    margin: 0 auto 1rem auto;
    /* centers and adds space below */
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 2rem;
}

.portfolio-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    width: 300px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.portfolio-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.portfolio-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.portfolio-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


/* About Section */

.about-section {
    padding: 4rem 2rem;
    background-color: transparent;
    color: var(--text-light);
    max-width: 1000px;
    margin: 0 auto;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.about-intro,
.about-outro {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.about-core,
.about-message {
    flex: 1 1 300px;
}

.about-core h3,
.about-message h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-core ul {
    list-style: none;
    padding-left: 0;
}

.about-core ul li {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.95rem;
}

.about-message p {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}


/* Contact Section */

.contact-section.no-snap {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem 6rem;
    background-color: var(--bg-dark);
}

.contact-section h2 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin: 1rem 0 2rem;
}

.social-icons img {
    width: 36px;
    height: 36px;
    transition: transform 0.2s;
}

.social-icons img:hover {
    transform: scale(1.1);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.contact-form label {
    color: var(--primary);
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.contact-form button {
    background-color: var(--primary);
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background-color: #79ffeb;
}


/* Modal */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    border-radius: 10px;
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 10px;
    color: #333;
}

.modal-content p {
    color: #666;
    margin-bottom: 20px;
}

.close-btn.modal-close {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.close-btn.modal-close:hover {
    background-color: #79ffeb;
}


/* Footer */

.site-footer {
    width: 100%;
    background-color: #212B38;
    color: #fff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 40px;
    border-top: 3px solid #08C6AB;
    font-size: 0.9rem;
}

.site-footer a {
    color: #08C6AB;
    text-decoration: none;
    margin: 0 8px;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-left,
.footer-center,
.footer-right {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.footer-center a {
    margin: 0 10px;
}

.social-icon {
    width: 22px;
    height: 22px;
    margin-left: 10px;
}


/* Responsive */

@media (max-width: 768px) {
    header {
        padding: 2rem;
    }
    .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .hero {
        padding: 2rem;
        text-align: center;
        justify-content: center;
    }
    .content {
        margin-top: -100px;
    }
    .content h1 {
        font-size: 39px;
    }
    .subtitle {
        font-size: 18px;
    }
    .service-section h1 {
        font-size: 32px;
    }
    .service-cards {
        flex-direction: column;
        align-items: center;
    }
    .service-card {
        max-width: 90%;
        min-width: 90%;
    }
    .service-card img {
        max-width: 60px;
        height: auto;
    }
    .about-section {
        text-align: center;
    }
    .about-content {
        flex-direction: column;
    }
    .about-core ul li {
        text-align: left;
    }
    .social-icons {
        justify-content: center;
    }
}