/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Fonts */
    --font-heading: 'Outfit', 'Noto Sans Thai', sans-serif;
    --font-body: 'Inter', 'Noto Sans Thai', sans-serif;

    /* Color Palette */
    --primary: #0f172a;       /* Deep slate/navy */
    --primary-light: #1e293b; /* Medium slate */
    --accent: #2563eb;        /* Bright blue */
    --accent-hover: #1d4ed8;  /* Deep blue */
    --accent-light: #eff6ff;  /* Soft light blue */
    --glow: #06b6d4;          /* Cyan for glow details */
    --bg-light: #f8fafc;      /* Clean off-white background */
    --bg-dark: #0b0f19;       /* Deep dark blue (for details) */
    --text-main: #1e293b;     /* Main text color */
    --text-muted: #64748b;    /* Subtitles and footnotes */
    --white: #ffffff;
    
    /* UI Elements */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(226, 232, 240, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
    --glow-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* ==========================================================================
   REUSABLE UTILITIES / COMPONENTS
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--accent-light);
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.btn-secondary:hover {
    background-color: var(--accent-light);
    color: var(--accent);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    padding: 14px;
}

/* Scroll Animation Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   NAVIGATION BAR (NAVBAR)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    height: 70px;
    box-shadow: var(--glass-shadow);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    height: 100%;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--glow) 100%);
    color: var(--white);
    border-radius: 10px;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-logo span span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--primary-light);
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    padding: 10px 22px;
    background-color: var(--accent);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 10px;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.nav-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.nav-btn-mobile {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 5px;
    transition: var(--transition-smooth);
}

/* Hamburger menu transformation when active */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    z-index: -1;
    filter: blur(50px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--glass-border);
    padding-top: 25px;
}

.avatar-group {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-light);
    color: var(--accent);
    border: 2px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    margin-left: -12px;
}

.avatar:first-child {
    margin-left: 0;
}

.trust-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.trust-text strong {
    color: var(--primary);
}

/* Hero Browser Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-container {
    width: 100%;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

.mockup-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

.mockup-header {
    background-color: #f1f5f9;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #eab308; }
.dot.green { background-color: #22c55e; }

.mockup-url {
    margin: 0 auto;
    background-color: var(--white);
    padding: 4px 24px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    font-family: var(--font-heading);
}

.mockup-body {
    padding: 10px;
    background-color: #f8fafc;
}

.hero-image {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

/* Floating Glass Cards */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 12px 20px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: floatUpDown 6s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 15%;
    left: -10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 10%;
    right: -5%;
    animation-delay: 3s;
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-val {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-section {
    padding: 40px 0;
    background-color: var(--white);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 15px;
}

.stat-num {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 5px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, var(--glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item:nth-child(1) .stat-num::after {
    content: '%';
}
.stat-item:nth-child(2) .stat-num::after {
    content: 'x';
}
.stat-item:nth-child(3) .stat-num::after {
    content: '/7';
}

.stat-desc {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--glow));
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.08);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background-color: var(--accent);
    color: var(--white);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.service-features {
    margin-bottom: 30px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.service-features li i {
    color: var(--accent);
    font-size: 0.9rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent);
}

.service-link i {
    transition: transform 0.2s ease;
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* ==========================================================================
   WHY CHOOSE US SECTION
   ========================================================================== */
.why-us-section {
    padding: 100px 0;
    background-color: var(--white);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.why-us-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-us-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.tech-stack-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    filter: blur(30px);
}

.visual-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.stack-box {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    padding: 14px 24px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
}

.stack-box i {
    font-size: 1.5rem;
}

.stack-box:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.2);
}

/* Staggered box placements */
.b-html {
    top: 10%;
    left: 10%;
    color: #e34f26;
}
.b-css {
    top: 25%;
    right: 15%;
    color: #1572b6;
}
.b-js {
    bottom: 15%;
    left: 15%;
    color: #f7df1e;
}
.b-seo {
    bottom: 35%;
    right: 25%;
    color: var(--glow);
}
.b-responsive {
    top: 50%;
    left: 40%;
    color: var(--accent);
}

.why-us-content h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.why-us-content > p {
    color: var(--text-muted);
    margin-bottom: 35px;
    font-size: 1.05rem;
}

.benefit-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.benefit-text h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.benefit-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   INTERACTIVE BUDGET CALCULATOR SECTION
   ========================================================================== */
.calculator-section {
    padding: 100px 0;
    background: radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.02) 0%, transparent 60%);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
    background-color: var(--white);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.calc-group {
    margin-bottom: 35px;
}

.calc-group:last-child {
    margin-bottom: 0;
}

.calc-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.calc-label i {
    color: var(--accent);
}

/* Step 1 Options Grid */
.calc-grid-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.calc-option {
    background-color: var(--bg-light);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-option:hover {
    background-color: var(--white);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.calc-option.active {
    background-color: var(--accent-light);
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.08);
}

.opt-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.calc-option:hover .opt-icon, .calc-option.active .opt-icon {
    color: var(--accent);
}

.opt-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
}

.opt-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Step 2 Slider Styling */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-value {
    background-color: var(--accent);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    margin-top: 15px;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Step 3 Feature Grid */
.calc-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.calc-feature-item {
    cursor: pointer;
}

.calc-feature-item input {
    display: none;
}

.feature-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: var(--bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    transition: var(--transition-smooth);
    height: 100%;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    background-color: var(--white);
    transition: var(--transition-smooth);
}

.calc-feature-item input:checked + .feature-box {
    border-color: var(--accent);
    background-color: var(--accent-light);
}

.calc-feature-item input:checked + .feature-box .checkbox-custom {
    background-color: var(--accent);
    border-color: var(--accent);
}

.calc-feature-item input:checked + .feature-box .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.feature-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.feature-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Calculator Receipt Board */
.calc-result {
    background: radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.05) 0%, transparent 65%),
                linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.9);
}

.result-glow {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.result-header {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.result-header h3 {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.result-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.result-details {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.res-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.res-item span {
    color: var(--text-muted);
}

.res-item strong {
    color: var(--primary);
    max-width: 60%;
    text-align: right;
}

.result-divider {
    border: none;
    border-top: 1px dashed #cbd5e1;
    margin: 25px 0;
    position: relative;
    z-index: 1;
}

.result-metrics {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.metric-box {
    display: flex;
    flex-direction: column;
}

.metric-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.metric-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.metric-price .currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-light);
}

.metric-time {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.result-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 15px;
    text-align: center;
}

/* ==========================================================================
   PORTFOLIO SHOWCASE SECTION
   ========================================================================== */
.portfolio-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 45px;
}

.filter-tab {
    background-color: var(--white);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.filter-tab:hover, .filter-tab.active {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.portfolio-card.hidden {
    display: none;
}

.port-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.port-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.port-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(37, 99, 235, 0.2) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--white);
    transition: var(--transition-smooth);
}

.port-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.port-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 50px;
}

.port-overlay h3 {
    color: var(--white);
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.port-overlay p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.port-zoom-btn {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: var(--accent);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
}

.port-zoom-btn:hover {
    background-color: var(--accent-hover);
}

/* Hover behaviors */
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.portfolio-card:hover .port-img {
    transform: scale(1.1);
}

.portfolio-card:hover .port-overlay {
    opacity: 1;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.testimonials-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--glass-shadow);
    position: relative;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: auto;
}

.testimonial-slide {
    display: none;
    animation: fadeInSlide 0.5s ease;
}

.testimonial-slide.active {
    display: block;
}

.quote-icon {
    font-size: 2.5rem;
    color: rgba(37, 99, 235, 0.15);
    margin-bottom: 20px;
}

.testi-text {
    font-size: 1.25rem;
    color: var(--primary-light);
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.7;
}

.testi-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    font-size: 2.75rem;
    color: var(--accent);
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.user-meta strong {
    font-size: 1.05rem;
    color: var(--primary);
}

.user-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.ctrl-btn {
    background: none;
    border: 1px solid var(--glass-border);
    background-color: var(--white);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.ctrl-btn:hover {
    background-color: var(--accent-light);
    color: var(--accent);
    border-color: rgba(37, 99, 235, 0.2);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot-indicator.active {
    width: 24px;
    background-color: var(--accent);
    border-radius: 4px;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   CONTACT SECTION & FORM
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background: radial-gradient(circle at 10% 90%, rgba(6, 182, 212, 0.02) 0%, transparent 60%);
}

.contact-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-info > p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

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

.detail-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-text strong {
    font-size: 1.05rem;
    color: var(--primary);
}

/* Form Card Style */
.contact-form-card {
    background-color: var(--white);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.form-title {
    margin-bottom: 25px;
}

.form-title h3 {
    font-size: 1.35rem;
    margin-bottom: 5px;
}

.form-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    background-color: var(--white);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--primary);
    transition: var(--transition-smooth);
    outline: none;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
}

/* Success Panel */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    z-index: 10;
    animation: slideInSuccess 0.4s ease forwards;
}

.form-success-overlay.active {
    display: flex;
}

.success-content {
    text-align: center;
    max-width: 450px;
}

.success-icon {
    font-size: 4.5rem;
    color: #22c55e;
    margin-bottom: 20px;
    animation: scaleCheck 0.5s ease;
}

.success-content h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.success-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

@keyframes slideInSuccess {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleCheck {
    0% {
        transform: scale(0);
    }
    70% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand .nav-logo {
    color: var(--white);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

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

.footer-links h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

.footer-links a {
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.footer-links p {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links p i {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 25px 0;
    background-color: #0b0f19;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 15px;
}

.footer-legal a:hover {
    color: var(--white);
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: -60px; /* Hidden offscreen initially */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    z-index: 99;
    transition: var(--transition-smooth);
}

.scroll-to-top.show {
    right: 30px;
}

.scroll-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE STYLING)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 650px;
        margin: 0 auto;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    h1 {
        font-size: 2.75rem;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        gap: 30px;
        transition: var(--transition-smooth);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-btn {
        display: none;
    }
    
    .nav-btn-mobile {
        display: inline-block;
        padding: 12px 30px;
        background-color: var(--accent);
        color: var(--white);
        font-family: var(--font-heading);
        font-weight: 600;
        border-radius: 10px;
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-us-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-us-visual {
        order: 2;
        height: 300px;
    }
    
    .calc-grid-options, .calc-features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-wrapper {
        padding: 30px;
    }
    
    .testi-text {
        font-size: 1.05rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .floating-card {
        display: none; /* Hide decorative floating elements on small mobile screens */
    }
}
