:root {
    --color-bg: #f8fafc;
    --color-bg-alt: #ffffff;
    --color-primary: #22c55e;
    --color-primary-dark: #16a34a;
    --color-navy: #0f172a;
    --color-text-main: #0f172a;
    --color-text-muted: #64748b;
    --shadow-soft: 0 6px 20px rgba(15, 23, 42, 0.15);
    --shadow-soft-hover: 0 12px 30px rgba(15, 23, 42, 0.22);
    --radius-lg: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ========== GLOBAL BACKGROUND STYLE ========== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    font-size: 16px;
    color: #334155;
    /* global light gradient for the whole page */
    background: linear-gradient(180deg,
            var(--color-bg) 0%,
            var(--color-bg-alt) 40%,
            #f9fefb 100%);
    position: relative;
    overflow-x: hidden;
}

/* Global hero-style background shapes for the whole page
   (About and Footer visually override this with their own solid backgrounds) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.18), transparent 55%),
        radial-gradient(circle at 12% 65%, rgba(15, 23, 42, 0.10), transparent 60%);
}


/* Header & Navigation */
.navbar {
    background: #f8fafc;
    transition: background 0.4s ease, box-shadow 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}


.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    margin-left: 0;
    color: var(--color-primary);
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding-top: 8px;
    gap: 8px;
}

.nav-menu {
    margin-right: 0;
    padding-top: 0;
    display: flex;
    list-style: none;
    gap: 2rem;
}

li {
    font-size: 1.1rem;
}

.nav-menu a {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--color-primary);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-text-main);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    color: var(--color-text-main);
    padding: 130px 0 100px;
    overflow: hidden;
    min-height: calc(100vh - 80px);
    /* account for navbar height */
    display: flex;
    align-items: center;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

/* Left side */
.hero-content {
    text-align: left;
}

.hero-tag {
    display: inline-block;
    padding: 0.2rem 0.9rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.08);
    color: #15803d;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
    color: #0f172a;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 540px;
}

/* Actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    background: var(--color-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hero-secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.98rem;
    font-weight: 500;
    color: #0f172a;
    text-decoration: none;
}

.hero-secondary-cta::after {
    content: "→";
    font-size: 0.95rem;
    opacity: 0.7;
}

.hero-secondary-cta:hover {
    color: var(--color-primary);
}

/* Stats row */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.hero-stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

/* Hero Visual Image */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 0;
    /* no rounded corners */
    box-shadow: none;
    /* remove all shadow */
    transform: none;
    transition: none;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-image {
        max-width: 340px;
    }
}


/* Global layout helpers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   Services Section
   =========================== */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

/* accent bar */
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft-hover);
    border-color: rgba(34, 197, 94, 0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
    font-weight: 600;
}

.service-card p {
    font-size: 0.98rem;
    color: #555;
    line-height: 1.7;
}

/* ===========================
   Portfolio Section
   =========================== */
.portfolio {
    padding: 100px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Portfolio Card */
.portfolio-item {
    background: #f8fafc;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: left;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft-hover);
}

/* Image area */
.portfolio-image {
    height: 200px;
    background: linear-gradient(45deg, #0f172a, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 4rem;
}

/* Text content */
.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
    font-size: 1.5rem;
    font-weight: 600;
}

.portfolio-content p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--color-navy);
    color: #e2e8f0;
}

.about-content {
    display: grid;
    justify-content: center;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.aboutHeading {
    text-align: center;
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ===========================
   Why Us Section
   =========================== */
.whyus {
    padding: 100px 0;
}

/* Grid layout for items */
.whyus-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Individual card style */
.whyus-item {
    background: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whyus-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft-hover);
}

/* Icon style */
.whyus-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

/* Headings & text */
.whyus-item h3 {
    font-size: 1.5rem;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

.whyus-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: #667eea;
    margin-right: 1rem;
    width: 20px;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}



.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1f2937;
    color: #94a3b8;
}

/* Admin Panel Styles (unused on public page but kept) */
.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
}

.admin-content {
    background: white;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.admin-header {
    background: #667eea;
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-admin {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.admin-body {
    padding: 2rem;
}

.admin-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.admin-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.admin-tab.active {
    border-bottom: 2px solid #667eea;
    color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.admin-login {
    max-width: 400px;
    margin: 100px auto;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .logo {
        font-size: 1.6rem;
        padding-top: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #f1f5f9;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        padding: 110px 1.5rem 70px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio {
        padding: 70px 0;
    }

    .portfolio-content {
        padding: 1.5rem;
    }

    .portfolio-content h3 {
        font-size: 1.3rem;
    }

    .portfolio-image {
        height: 180px;
        font-size: 3rem;
    }

    .services {
        padding: 70px 0;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-icon {
        font-size: 2.6rem;
    }

    .whyus {
        padding: 70px 0;
    }

    .whyus-item {
        padding: 2rem 1.5rem;
    }

    .whyus-item h3 {
        font-size: 1.3rem;
    }

    .whyus-icon {
        font-size: 2.5rem;
    }
}