/* ==========================================================================
   Framework Studio - Premium Hybrid Slate Theme
   ========================================================================== */

/* Assigning CSS Variables */
:root {
    --primary-color: #0ea5e9;
    --accent-dark: #0284c7;
    --bg-surface: #ffffff;
    --muted-text: #64748b;
    --logo-gold: #d4af37; /* logo gold tone */
    --header-height: 84px; /* increased to accommodate larger logo */
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f6f9; /* Premium subtle light gray base */
    color: #334155; /* Smooth slate text for excellent readability */
    scroll-behavior: smooth;
}

/* Ensure sections are not hidden under the fixed header when using anchors */
section {
    scroll-margin-top: var(--header-height);
}

.container {
    max-width: 1150px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

/* Header & Navigation (Tech Identity Anchor) */
header {
    background: #1e293b; /* Deep slate dark anchor for navigation */
    color: #f8fafc;
    padding: 1.1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(30, 41, 59, 0.15);
    height: var(--header-height);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1150px;
    margin: auto;
    padding: 0 2rem;
}

/* Logo wrapper and image styling (moved out of nested block) */
.logo-wrappers {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-img {
    width: 56px; /* increased size */
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.06);
    display: inline-block;
}

.nav-logo-text {
    font-size: 1.12rem; /* slightly larger to match logo scale */
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--logo-gold); /* match logo text to gold */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap; /* allow wrap on narrower viewports */
}

nav ul li {
    margin-left: 24px;
}

nav ul a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

nav ul a:hover {
    color: var(--primary-color);
}

/* Improve keyboard focus visibility for accessibility */
:focus-visible {
    outline: 3px solid rgba(14,165,233,0.15);
    outline-offset: 2px;
}

a:focus, button:focus, .tab-button:focus {
    outline: none; /* reset default, rely on focus-visible for keyboard users */
}

.tab-button:focus-visible {
    box-shadow: 0 0 0 4px rgba(14,165,233,0.12);
    border-radius: 8px;
}
/* Hero Split Design Section */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); /* Clean geometric gradient gradient */
    padding-top: calc(var(--header-height) + 6px);
    border-bottom: 1px solid #cbd5e1;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
}

.hero-content {
    flex: 1.2;
    text-align: left;
}

    .hero-content h1 {
        font-size: 3.4rem;
        font-weight: 800;
        line-height: 1.15;
        margin-bottom: 0.75rem;
        color: #0f172a;
    }

    .hero-content h2 {
        font-size: 1.75rem;
        font-weight: 600;
        color: #0ea5e9;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1.15rem;
        margin-bottom: 2.5rem;
        color: #475569;
        max-width: 580px;
    }

.hero-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .hero-image img {
        max-width: 320px;
        width: 100%;
        height: auto;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
        border: 6px solid #ffffff;
    }

.cta-button {
    text-decoration: none;
    color: #fff;
    background: #0ea5e9;
    background: var(--primary-color);
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

    .cta-button:hover {
        background: #0284c7;
        background: var(--accent-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
    }
/* Sections Base Layout */
section {
    padding: 7rem 0 4rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #0f172a;
    position: relative;
}
    /* Subtle line indicator under headers */
    h2::after {
        content: '';
        display: block;
        width: 50px;
        height: 4px;
        background: #0ea5e9;
        margin: 0.75rem auto 0;
        border-radius: 2px;
    }
/* About Section */
.about-text p {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 1.8rem;
    font-size: 1.1rem;
    color: #475569;
}

#about h3 {
    text-align: center;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
    font-size: 1.4rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    max-width: 850px;
    margin: 0 auto;
}

    .skills-list li {
        background: #ffffff;
        padding: 0.5rem 1.2rem;
        border-radius: 30px;
        margin: 0.5rem;
        font-weight: 600;
        font-size: 0.9rem;
        color: #0ea5e9;
        border: 1px solid #e2e8f0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    }
/* Grid Components & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: #ffffff; /* Crisp white cards break up the light gray background */
    padding: 3rem 2rem;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    }

    .service-card h3 {
        margin-bottom: 1rem;
        color: #0f172a;
        font-size: 1.25rem;
    }
/* Tab Filtering Dashboard System */
.tabs {
    text-align: center;
    margin-bottom: 3.5rem;
}

.tab-button {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    cursor: pointer;
    color: #64748b;
    border-bottom: 3px solid transparent;
    transition: all 0.25s ease;
}

    .tab-button:hover {
        color: #0f172a;
    }

    .tab-button.active {
        border-bottom: 3px solid #0ea5e9;
        color: #0ea5e9;
        border-bottom: 3px solid var(--primary-color);
        color: var(--primary-color);
    }
/* Project grid: ensure grid layout applies when visible */
.project-category {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

    .project-category.active {
        display: grid !important;
    }

.project-card {
    background: #ffffff;
    padding: 2.2rem;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

    .project-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    }

    .project-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
        color: #0f172a;
    }

    .project-card p {
        font-size: 0.98rem;
        color: #475569;
        flex-grow: 1;
        margin-bottom: 1.25rem;
    }

    .project-card img {
        width: 100%;
        height: 210px;
        object-fit: cover;
        display: block;
        margin-bottom: 1.5rem;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
    }

.project-links a {
    text-decoration: none;
    color: #0ea5e9;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

    .project-links a:hover {
        color: #0284c7;
    }
/* Pricing Section Details */
#pricing h3 {
    text-align: center;
    font-size: 1.6rem;
    color: #475569;
    margin-top: 3.5rem;
    margin-bottom: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2.5rem;
}

.price-card {
    background: #ffffff;
    padding: 3rem 2.2rem;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: all 0.25s ease;
}

    .price-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    }

    .price-card.popular {
        border: 2px solid #0ea5e9;
        position: relative;
    }

.card-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #0f172a;
}

.ideal-for {
    font-style: italic;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.price-value {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0ea5e9;
    margin-bottom: 1.75rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1.25rem;
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

    .features-list li {
        padding: 0.65rem 0;
        border-bottom: 1px solid #f1f5f9;
        color: #475569;
        font-size: 0.95rem;
    }

        .features-list li:last-child {
            border-bottom: none;
        }
/* Ad-Hoc Flex Deck Layout */
.ad-hoc-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.ad-hoc-item {
    background: #ffffff;
    padding: 2.2rem 1.8rem;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    max-width: 320px;
    text-align: center;
    flex: 1;
    min-width: 250px;
}

    .ad-hoc-item h4 {
        color: #0f172a;
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .ad-hoc-item .description {
        color: #64748b;
        font-size: 0.92rem;
    }

.ad-hoc-price {
    font-size: 1.55rem;
    font-weight: 700;
    color: #0ea5e9;
    margin-top: 1.25rem;
}

.note {
    text-align: center;
    font-size: 0.92rem;
    color: #64748b;
    margin-top: 3rem;
}
/* Contact Module Panel Setup */
#contact-form {
    display: flex;
    flex-direction: column;
    max-width: 650px;
    margin: auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

    #contact-form input,
    #contact-form textarea {
        padding: 1rem 1.2rem;
        margin-bottom: 1.25rem;
        border: 1px solid #cbd5e1;
        background: #f8fafc;
        color: #0f172a;
        border-radius: 8px;
        font-size: 0.98rem;
        font-family: inherit;
        transition: border-color 0.2s ease;
    }

        #contact-form input:focus,
        #contact-form textarea:focus {
            outline: none;
            border-color: #0ea5e9;
            background: #fff;
        }

    #contact-form button {
        background: #0ea5e9;
        color: #fff;
        border: none;
        padding: 1.1rem;
        cursor: pointer;
        border-radius: 8px;
        font-weight: 600;
        font-size: 1.05rem;
        transition: background 0.2s ease;
    }

        #contact-form button:hover {
            background: #0284c7;
        }

.social-links {
    text-align: center;
    margin-top: 3rem;
}

    .social-links a {
        text-decoration: none;
        color: #475569;
        margin: 0 1.25rem;
        font-size: 1.15rem;
        font-weight: 600;
        transition: color 0.2s ease;
    }

        .social-links a:hover {
            color: #0ea5e9;
        }
    /* Footer Section (Strong Deep Slate Base anchor) */
    footer {
        text-align: center;
        padding: 3rem 0;
        background: #0f172a;
        color: #94a3b8;
        font-size: 0.92rem;
        border-top: 1px solid #1e293b;
    }
    /* JavaScript Controlled Scroll Transitions */
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease-out, transform 0.4s ease-out;
    }

    .fade-in-visible {
        opacity: 1;
        transform: translateY(0);
    }
    /* Mobile Systems Fluid Responsive Breakpoints */
    @media (max-width: 768px) {
        .hero-wrapper {
            flex-direction: column-reverse;
            text-align: center;
            padding: 1rem 0;
        }

        .hero-content h1 {
            font-size: 2.6rem;
        }

        .hero-image img {
            max-width: 240px;
        }

        #contact-form {
            padding: 2rem 1.5rem;
        }

        section {
            padding: 5rem 0 2.5rem;
        }
        /* Slightly reduce navigation density on small screens */
        nav ul {
            gap: 0.6rem;
        }

            nav ul a {
                font-size: 0.92rem;
            }
    }
