/* =====================================================
GLOBAL PAGE STRUCTURE
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    background-color: #0d0d0d;
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* =====================================================
NAVBAR
===================================================== */

.navbar {
    background: #000;
    padding: 20px 0;
    border-bottom: 1px solid #1a1a1a;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 20px;
    color: #ffffff;
}

.logo svg {
    margin-right: 10px;
}

.logo .accent {
    color: #A3FF12;
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
}

nav a:hover {
    color: #00E0C6;
}

/* =====================================================
HERO SECTION
===================================================== */

.hero {
    position: relative;
    padding: 60px 0 10px; /* trimmed bottom space for footer */
    text-align: center;
    overflow: hidden;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #A3FF12;
}

.hero p {
    font-size: 18px;
    max-width: 650px;
    margin: auto;
    color: #cccccc;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* =====================================================
BUTTONS
===================================================== */

.btn-primary {
    background: #A3FF12;
    color: #000;
    padding: 12px 28px;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: #8BE000;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #00E0C6;
    color: #00E0C6;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: #00E0C6;
    color: #000;
}

/* =====================================================
CARD STYLES
===================================================== */

.card {
    position: relative;
    background: #111;
    padding: 1.6rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.card h3 {
    color: #A3FF12;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 20px rgba(163,255,18,0.4),
        0 0 40px rgba(0,224,198,0.2);
}

.card.center-text {
    text-align: center;
}

/* =====================================================
SERVICES SECTION
===================================================== */

.services {
    padding: 40px 0;
}

.services h2 {
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* home page 3-wide */
    gap: 22px;
}

.tech-tags {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* centers tags */
    gap: 8px;
}

.tech-tags span {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.08);
    padding: 4px 10px;
    border-radius: 12px;
    color: #ddd;
}

/* =====================================================
SERVICE PAGE
===================================================== */

/* =====================================================
OUR WORK / SERVICES CONTAINER FIX FOR SINGLE CARD CENTERING
===================================================== */

.services-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* services page 4-wide */
    gap: 22px;
}

.work-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* existing */
    gap: 2rem;
    justify-content: center; /* centers single or partial rows */
}

.service-card {
    background:#111;
    padding:1.5rem;
    border-radius:10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.service-card h2 {
    color:#A3FF12;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 20px rgba(163,255,18,0.4),
        0 0 40px rgba(0,224,198,0.2);
}

.service-card p {
    margin-bottom: 12px;
}

.service-card {
    max-width: 420px;
    margin: auto;
}

.project-link {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

/* =====================================================
PRICING PAGE
===================================================== */

.pricing-container {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:2rem;
}

.pricing-card {
    background:#111;
    padding:2rem;
    border-radius:10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.pricing-card h2 {
    color:#A3FF12;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 20px rgba(163,255,18,0.4),
        0 0 40px rgba(0,224,198,0.2);
}

/* =====================================================
CALL TO ACTION
===================================================== */

.cta {
    padding:25px 0 35px;
    text-align:center;
}

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

/* =====================================================
CONTACT PAGE
===================================================== */

.contact-section {
    padding:1rem 0 1.5rem;
}

.contact-card {
    max-width:500px;
    margin:auto;
    padding:20px;
    border-radius: 10px;
    background: #111;
}

.contact-form {
    display:flex;
    flex-direction:column;
    gap:12px;
}

.contact-form label {
    font-weight:500;
    color: #fff; /* labels white */
}

.contact-form input,
.contact-form textarea {
    width:100%;
    padding:10px;
    border-radius:6px;
    border:1px solid #00E0C6;
    background:#111;
    color:#fff;
    font-size:1rem;
}

.contact-form button {
    width:100%;
}

/* Contact info below card */
.contact-info {
    text-align: center;
    margin-top: 1rem;
}

.contact-info p {
    margin: 4px 0;
    font-weight: 500;
    color: #fff; /* label text white */
}

.contact-info p a {
    color: #A3FF12; /* actual email/phone green */
    font-weight: bold;
    text-decoration: none;
}

.contact-info p a:hover {
    text-decoration: underline; /* optional hover effect */
}}

/* =====================================================
PAGE HEADER
===================================================== */

.page-header {
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:1rem;
}

.page-header h1 {
    font-size:2rem;
}

/* =====================================================
FOOTER
===================================================== */

.footer {
    background:#000;
    padding:20px 0;
    text-align:center;
    font-size:14px;
    color:#777;
}

/* =====================================================
FLASH MESSAGE
===================================================== */

#flash-container {
    position:fixed;
    top:110px;
    left:0;
    width:100%;
    display:flex;
    justify-content:center;
    z-index:9999;
}

.flash-message {
    background:#A3FF12;
    color:#000;
    border:2px solid #A3FF12;
    padding:20px 30px;
    border-radius:10px;
    font-weight:bold;
    box-shadow:0 0 15px #A3FF12;
    animation:fadeOut 4s forwards;
}

@keyframes fadeOut {
    0% {opacity:1;}
    80% {opacity:1;}
    100% {opacity:0;}
}

/* =====================================================
RESPONSIVE
===================================================== */

@media (max-width:768px){

    .nav-content{
        flex-direction:column;
    }

    nav{
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
    }

    nav a{
        margin:6px 12px;
    }

    .hero{
        padding:60px 15px;
    }

    .hero h1{
        font-size:30px;
    }

    .hero-buttons{
        flex-direction: row; /* side by side buttons on mobile */
        gap: 10px;
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary{
        width:auto;
        max-width:280px;
        margin:0;
    }

    .card-grid,
    .services-container,
    .pricing-container{
        display:flex;
        flex-direction:column; /* stack all cards on mobile */
        align-items:center;
    }

    .card,
    .service-card,
    .pricing-card{
        width:100%;
        max-width:350px;
        margin-bottom:20px;
    }

    .contact-card {
        padding:20px;
    }

    .page-header{
        flex-direction:column;
        text-align:center;
    }
}

/* Small phones */
@media (max-width:480px){

    .hero h1{
        font-size:24px;
    }

    .hero p{
        font-size:14px;
    }

    .contact-card {
        padding:25px;
    }

    .contact-info .label,
    .contact-info .value {
        text-align:center;
    }
}
