/* ==========================================================================
   ALPATAD - BLOG PAGE STYLESHEET (css/blog.css)
   Aesthetic: Ultra-clean 3-column editorial grid, modern typography,
   smooth card hover zooms, custom lime/dark pagination, seamless integration.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES & GLOBAL RESETS
   -------------------------------------------------------------------------- */
:root {
    --primary-lime: #a8ff1a;
    --primary-lime-hover: #bbfb38;
    --primary-lime-solid: #9ee51c;
    --primary-lime-glow: rgba(168, 255, 26, 0.35);
    --dark-bg: #070a05;
    --dark-card: #0e140b;
    --dark-border: rgba(168, 255, 26, 0.12);
    --light-canvas: #f6f8f5;
    --light-card: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-white: #ffffff;
    --text-gray: rgba(255, 255, 255, 0.75);

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-canvas);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul, ol {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, textarea {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

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

/* Common Pill Buttons */
.btn-group {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-pill-lime {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-lime);
    color: #070a05;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 9999px;
    transition: var(--transition-smooth);
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-pill-circle-lime {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--primary-lime);
    color: #070a05;
    border-radius: 50%;
    margin-left: 6px;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.btn-pill-circle-lime svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-group:hover .btn-pill-lime,
.btn-group:hover .btn-pill-circle-lime {
    background-color: var(--primary-lime-hover);
    box-shadow: 0 6px 25px var(--primary-lime-glow);
}

.btn-group:hover .btn-pill-circle-lime svg {
    transform: translate(3px, -3px);
}

/* --------------------------------------------------------------------------
   2. MAIN HEADER (EXACT SAME AS OTHER PAGES)
   -------------------------------------------------------------------------- */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(7, 10, 5, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    padding: 16px 0;
    border-bottom: 1px solid rgba(168, 255, 26, 0.08);
    transition: var(--transition-smooth);
}

.main-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-bottom-color: rgba(168, 255, 26, 0.16);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #ffffff;
    line-height: 1;
}

.brand-sub {
    font-size: 0.55rem;
    letter-spacing: 0.16em;
    color: var(--primary-lime);
    font-weight: 700;
    margin-top: 3px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 24px);
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-lime);
    background: transparent;
    border: none;
    box-shadow: none;
}

.nav-item.has-dropdown {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 250px;
    background: rgba(12, 16, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 255, 26, 0.2);
    border-radius: 12px;
    padding: 10px 0;
    list-style: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    pointer-events: none;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 0;
    width: 100%;
    height: 18px;
    background: transparent;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: block;
}

.dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dropdown-link:hover {
    color: var(--primary-lime, #a8ff1a);
    background: rgba(168, 255, 26, 0.08);
    padding-left: 24px;
}

.dropdown-link.active {
    color: var(--primary-lime, #a8ff1a);
    background: rgba(168, 255, 26, 0.12);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dot-grid-btn {
    display: grid;
    grid-template-columns: repeat(3, 4px);
    gap: 4px;
    padding: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.grid-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    transition: var(--transition-smooth);
}

.dot-grid-btn:hover .grid-dot {
    background-color: var(--primary-lime);
    transform: scale(1.2);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   3. BREADCRUMB BANNER
   -------------------------------------------------------------------------- */
.services-hero-banner {
    position: relative;
    background: radial-gradient(circle at 50% 30%, #15220b 0%, #080d05 60%, #030502 100%);
    padding: 100px 0 120px;
    text-align: center;
    overflow: hidden;
}

.services-hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 255, 26, 0.2), transparent);
}

.hero-bubble-doodle {
    position: absolute;
    top: 35%;
    left: 10%;
    display: flex;
    gap: 8px;
    align-items: center;
    opacity: 0.8;
}

.doodle-circle {
    border-radius: 50%;
    border: 2px solid var(--primary-lime);
    background: transparent;
}

.doodle-circle.sm { width: 14px; height: 14px; }
.doodle-circle.md { width: 22px; height: 22px; }
.doodle-circle.lg { width: 34px; height: 34px; }

.hero-sparkle-doodle {
    position: absolute;
    top: 30%;
    right: 12%;
    animation: floatSparkle 4s ease-in-out infinite;
}

@keyframes floatSparkle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(6deg); }
}

.services-hero-title {
    font-family: var(--font-heading);
    font-size: 4.2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.services-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.crumb-home {
    color: #ffffff;
}

.crumb-home:hover {
    color: var(--primary-lime);
}

.crumb-divider {
    color: var(--primary-lime);
    font-weight: 800;
}

.crumb-current {
    color: var(--primary-lime);
}

/* --------------------------------------------------------------------------
   4. BLOG GRID MAIN SECTION (SCREENSHOTS 1 & 2)
   -------------------------------------------------------------------------- */
.blog-main-section {
    padding: 100px 0 120px;
    background-color: var(--light-canvas);
}

.blog-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px 36px;
}

.blog-card-item {
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease;
}

.blog-media-wrap {
    width: 100%;
    height: 290px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 22px;
    background-color: #e2e8f0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.blog-media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card-item:hover .blog-media-wrap img {
    transform: scale(1.06);
}

.blog-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 14px;
}

.blog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-meta-item i {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #060905;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.blog-card-title a {
    color: #060905;
    transition: color 0.25s ease;
}

.blog-card-item:hover .blog-card-title a {
    color: var(--primary-lime-solid);
}

/* --------------------------------------------------------------------------
   5. PAGINATION BAR (EXACT AS SCREENSHOT 2)
   -------------------------------------------------------------------------- */
.blog-pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 80px;
}

.pagination-btn {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #060905;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.pagination-btn:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.pagination-btn.active {
    background-color: var(--primary-lime-solid);
    color: #060905;
    font-weight: 900;
    border-color: var(--primary-lime-solid);
    box-shadow: 0 6px 20px rgba(158, 229, 28, 0.35);
}

.pagination-arrow {
    font-size: 1.25rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. GET IN TOUCH (3D PERSPECTIVE GRID CONTACT SECTION)
   -------------------------------------------------------------------------- */
.services-contact-section {
    position: relative;
    background: radial-gradient(circle at 45% 40%, rgba(45, 95, 12, 0.45) 0%, rgba(18, 38, 7, 0.22) 50%, #030602 85%), #030602;
    padding: 130px 0 140px;
    overflow: hidden;
    color: #ffffff;
}

.contact-starburst-decor {
    position: absolute;
    top: 0;
    right: 0;
    width: 175px;
    max-width: 25vw;
    height: auto;
    pointer-events: none;
    z-index: 2;
}

.contact-3d-grid-floor {
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 380px;
    background-image: 
        linear-gradient(to right, rgba(72, 232, 110, 0.22) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(72, 232, 110, 0.22) 1px, transparent 1px);
    background-size: 52px 52px;
    transform: perspective(450px) rotateX(68deg);
    transform-origin: bottom center;
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 45%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 45%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.contact-container {
    position: relative;
    z-index: 5;
    max-width: 860px;
    margin: 0 auto !important;
    width: 100%;
    text-align: center;
}

.contact-main-heading {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 50px;
    text-transform: uppercase;
    line-height: 1.1;
}

.services-contact-form {
    display: flex;
    flex-direction: column;
    gap: 36px;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
}

.form-input-line {
    width: 100%;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    font-family: var(--font-body);
    font-size: 1.05rem;
    padding: 12px 0;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    transition: var(--transition-smooth);
}

.form-input-line::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 400;
}

.form-input-line:focus {
    border-bottom-color: #9ee51c !important;
    box-shadow: 0 1px 0 #9ee51c !important;
    color: #ffffff !important;
}

.form-submit-row {
    display: flex;
    align-items: center;
    justify-content: center !important;
    margin-top: 36px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.form-submit-row .btn-group,
.form-submit-row .contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.form-submit-row .btn-pill-lime {
    background-color: #9ee51c;
    color: #080f05;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
    padding: 13px 30px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
}

.form-submit-row .btn-pill-circle-lime {
    background-color: #9ee51c;
    color: #080f05;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
}

.form-submit-row .btn-pill-circle-lime svg {
    width: 18px;
    height: 18px;
    stroke: #080f05;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.form-submit-row .btn-group:hover .btn-pill-lime,
.form-submit-row .contact-submit-btn:hover .btn-pill-lime {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(158, 229, 28, 0.35);
}

.form-submit-row .btn-group:hover .btn-pill-circle-lime,
.form-submit-row .contact-submit-btn:hover .btn-pill-circle-lime {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px) rotate(45deg);
    box-shadow: 0 8px 24px rgba(158, 229, 28, 0.35);
}

.form-submit-row .btn-group:hover .btn-pill-circle-lime svg,
.form-submit-row .contact-submit-btn:hover .btn-pill-circle-lime svg {
    stroke: #000000;
}

/* --------------------------------------------------------------------------
   7. FOOTER
   -------------------------------------------------------------------------- */
.services-footer {
    background-color: #ffffff;
    position: relative;
    padding: 100px 0 0;
    overflow: hidden;
}

.footer-watermark-shape {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 450px;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 255, 26, 0.06) 0%, rgba(241, 245, 249, 0.8) 100%);
    clip-path: polygon(40% 0%, 100% 0%, 100% 100%, 0% 100%);
    pointer-events: none;
    z-index: 1;
}

.footer-main-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand-col .brand-title {
    color: #060905;
}

.footer-brand-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 320px;
}

.footer-social-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #060905;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-social-link:hover {
    background-color: var(--primary-lime);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #060905;
    margin-bottom: 24px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links-list a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    transition: var(--transition-smooth);
}

.footer-links-list a:hover {
    color: #060905;
    padding-left: 6px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-info p,
.footer-contact-info a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.6;
}

.footer-contact-info a:hover {
    color: #060905;
}

.footer-bottom-bar {
    position: relative;
    z-index: 2;
    background-color: #060905;
    padding: 20px 0;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .blog-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 28px;
    }

    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background-color: rgba(7, 10, 5, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 24px;
        transition: var(--transition-smooth);
        overflow-y: auto;
    }

    .nav-menu.is-active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 20px;
    }

    .mobile-toggle {
        display: flex;
    }

    .blog-grid-3 {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .services-hero-title,
    .contact-main-heading {
        font-size: 2.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}
