/* ==========================================================================
   DF Coding - Premium Landing Page Stylesheet
   ========================================================================== */

/* Design Tokens & Custom Properties */
:root {
    /* Color Palette */
    --bg-dark: #05050a;
    --bg-darker: #020204;
    --bg-card: rgba(10, 10, 20, 0.6);
    --bg-card-hover: rgba(15, 15, 30, 0.8);

    --primary: #8a2be2;
    /* Electric Violet */
    --primary-rgb: 138, 43, 226;
    --secondary: #00ffff;
    /* Neon Cyan */
    --secondary-rgb: 0, 255, 255;
    --tertiary: #10b981;
    /* Emerald Green */
    --tertiary-rgb: 16, 185, 129;
    --orange: #f97316;

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(138, 43, 226, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-glow: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--secondary-rgb), 0.05) 50%, transparent 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    --gradient-card-border-active: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(var(--primary-rgb), 0.3);
    --shadow-glow-secondary: 0 0 30px rgba(var(--secondary-rgb), 0.3);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s 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;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

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

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

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

/* Common Layout Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Background Special Effects
   ========================================================================== */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.2;
    animation: floatGlow 15s infinite alternate ease-in-out;
}

.bg-glow-1 {
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.bg-glow-2 {
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: 20%;
    left: -200px;
    animation-delay: -5s;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Custom Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.font-inter {
    font-family: var(--font-body);
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Buttons & Actions
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-darker);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(var(--secondary-rgb), 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 55%);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.btn-glow:hover::after {
    animation: shimmer 1.5s infinite;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--transition-normal);
}

.main-header.scrolled {
    height: 70px;
    background: rgba(2, 2, 4, 0.9);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 2px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.btn-contact-nav {
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    transition: var(--transition-normal);
}

.btn-contact-nav:hover {
    background: var(--gradient-primary);
    color: var(--bg-darker);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(var(--secondary-rgb), 0.3);
}

.btn-contact-nav::after {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-normal);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--tertiary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--tertiary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--tertiary);
    animation: pulse 1.5s infinite;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

/* Hero Visual Graphics */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-blob {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2) 0%, rgba(var(--secondary-rgb), 0.1) 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    filter: blur(40px);
    animation: blobMorph 10s infinite alternate ease-in-out;
    position: absolute;
    z-index: 1;
}

.floating-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    z-index: 2;
    box-shadow: var(--shadow-md);
    animation: floatCard 6s infinite ease-in-out;
    transition: var(--transition-normal);
}

.floating-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: scale(1.03);
}

.hero-card-1 {
    top: 15%;
    left: 5%;
}

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

.card-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.floating-card h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

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

/* ==========================================================================
   Section Headers (Reusable)
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* ==========================================================================
   Terminal Section
   ========================================================================== */
.terminal-section {
    padding: 6rem 0;
    position: relative;
}

.terminal-mockup {
    background: #08080f;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    transition: var(--transition-normal);
}

.terminal-mockup:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.terminal-header {
    background: #030306;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
    display: flex;
    gap: 6px;
    position: absolute;
    left: 1.5rem;
}

.terminal-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background-color: #ef4444;
}

.dot.yellow {
    background-color: #f59e0b;
}

.dot.green {
    background-color: #10b981;
}

.terminal-title {
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.terminal-tabs {
    display: flex;
    background: #05050a;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.85rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.tab-btn.active {
    background: #08080f;
    color: var(--text-primary);
    border-bottom: 1px solid transparent;
}

.tab-btn .method {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.method.post {
    background: rgba(138, 43, 226, 0.15);
    color: #a855f7;
}

.method.get {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.terminal-body {
    padding: 2rem;
    height: 380px;
    overflow-y: auto;
}

.terminal-body pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-body code {
    font-family: 'Consolas', 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: #e2e8f0;
}

/* Syntax Highlighting */
.code-key {
    color: #38bdf8;
}

/* Cyan */
.code-string {
    color: #34d399;
}

/* Emerald */
.code-number {
    color: #fb923c;
}

/* Orange */
.code-boolean {
    color: #f472b6;
}

/* Pink */
.code-comment {
    color: #64748b;
}

/* Grey */

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md), 0 0 20px rgba(var(--primary-rgb), 0.1);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 2;
}

.service-svg {
    width: 28px;
    height: 28px;
}

/* Colorful icon themes */
.service-icon-wrapper.purple {
    background: rgba(138, 43, 226, 0.15);
    color: #a855f7;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.1);
}

.service-icon-wrapper.blue {
    background: rgba(37, 99, 235, 0.15);
    color: #3b82f6;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.1);
}

.service-icon-wrapper.green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.service-icon-wrapper.orange {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.1);
}

.service-icon-wrapper.teal {
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Feature highlight card style */
.service-card.feature-highlight {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--secondary-rgb), 0.05) 100%);
    border: 1px solid rgba(var(--secondary-rgb), 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card.feature-highlight:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-md), 0 0 30px rgba(var(--secondary-rgb), 0.2);
}

.highlight-badge {
    align-self: flex-start;
    background: var(--gradient-primary);
    color: var(--bg-darker);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.highlight-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================================================
   Estimator Section
   ========================================================================== */
.estimator-section {
    padding: 6rem 0;
}

.estimator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.estimator-options h3,
.estimator-result h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.option-group {
    margin-bottom: 1.5rem;
}

/* Custom Checkbox Design */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 4px;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition-fast);
}

.checkbox-container:hover input~.checkmark {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.checkbox-container input:checked~.checkmark {
    background: var(--gradient-primary);
    border-color: transparent;
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark::after {
    display: block;
}

.checkbox-container .checkmark::after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid var(--bg-darker);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.option-label-group {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

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

/* Estimator Results Card styling */
.estimator-result {
    background: rgba(2, 2, 4, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.result-metric,
.result-techs {
    margin-bottom: 1.75rem;
}

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

.metric-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: var(--font-heading);
}

.complexity-bar-wrapper {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.complexity-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width var(--transition-normal);
}

.complexity-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tech-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

#btn-request-project {
    margin-top: auto;
}

/* ==========================================================================
   Tech Stack Section
   ========================================================================== */
.tech-section {
    padding: 6rem 0;
}

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

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-normal);
}

.tech-card:hover {
    transform: scale(1.04);
    border-color: rgba(var(--secondary-rgb), 0.3);
    box-shadow: 0 10px 25px rgba(var(--secondary-rgb), 0.08);
}

.tech-icon {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    color: var(--secondary);
    border: 1px solid var(--border-color);
}

.tech-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

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

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 6rem 0;
    position: relative;
}

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

.contact-info h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: rgba(138, 43, 226, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.detail-icon.whatsapp-icon {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
    transition: var(--transition-normal);
}

.whatsapp-svg {
    width: 24px;
    height: 24px;
}

.clickable-detail {
    transition: var(--transition-normal);
}

.clickable-detail:hover {
    transform: translateX(5px);
}

.clickable-detail:hover .detail-icon.whatsapp-icon {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

.clickable-detail:hover p {
    color: var(--secondary);
}

.detail-item h5 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.detail-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

/* Form Styles */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    box-shadow: var(--shadow-md);
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
    outline: none;
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition-normal);
    pointer-events: none;
}

/* Floating Label Animation */
.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -12px;
    font-size: 0.8rem;
    color: var(--secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--secondary);
}

.error-message {
    font-size: 0.75rem;
    color: #ef4444;
    position: absolute;
    bottom: -18px;
    left: 0;
    opacity: 0;
    transition: var(--transition-fast);
}

.form-group.invalid input,
.form-group.invalid textarea {
    border-bottom-color: #ef4444;
}

.form-group.invalid .error-message {
    opacity: 1;
}

/* Button Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top: 2px solid var(--bg-darker);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* Success State Styles */
.success-state {
    text-align: center;
    animation: fadeInUp var(--transition-normal) forwards;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin: 0 auto 2rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.success-state h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.success-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

#resetContactBtn {
    max-width: 240px;
    margin: 0 auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 5rem;
    padding-bottom: 3rem;
    background: #020205;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 320px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Keyframes & Animations
   ========================================================================== */
@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, -30px) scale(1.1);
    }

    100% {
        transform: translate(-30px, 50px) scale(0.9);
    }
}

@keyframes blobMorph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 40% 60% 50% 50% / 50% 60% 40% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes shimmer {
    100% {
        left: 125%;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Large Tablets & Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .estimator-card {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .estimator-result {
        min-height: auto;
    }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {

    /* Header menu */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: #020205;
        border-top: 1px solid var(--border-color);
        transition: var(--transition-normal);
        padding: 3rem 2rem;
        z-index: 99;
    }

    .nav-menu.open {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

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

    /* Layouts adjustment */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 2rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
    }

    .floating-card {
        padding: 0.85rem 1rem;
    }

    .hero-card-1 {
        left: 2%;
    }

    .hero-card-2 {
        right: 2%;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .estimator-card {
        padding: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .terminal-body {
        padding: 1rem;
        height: 320px;
    }

    .terminal-body code {
        font-size: 0.85rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .estimator-card {
        padding: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .option-title {
        font-size: 0.95rem;
    }
}