/*
Theme Name: CraftDigital
Theme URI: https://seekcraftdigital.com
Author: CraftDigital
Author URI: https://seekcraftdigital.com
Description: Professional website design and IT support for businesses
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: craftdigital
*/

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

:root {
    --lime: #00D9A3;
    --lime-bright: #00B88A;
    --teal: #03604C;
    --light-gray: #C9C9C9;
    --dark-gray: #6B6B69;
    --dark: #0a0e1a;
    --dark-card: #141824;
    --white: #ffffff;
    --black: #0b0b0c;
    --accent: #00D9A3;
    --accent-dark: #00B88A;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --accent-purple: #8b5cf6;
    --accent-orange: #f59e0b;
    --hero-glow-h: 90;
    --hero-glow-s: 100%;
    --hero-glow-l: 62%;
    --hero-glow-a: 0.9;
    --footer-grid-alpha: 0;
    --footer-glow-alpha: 0;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--dark-card);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

main {
    position: relative;
    z-index: 1;
    background: var(--dark-card);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(10, 22, 24, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}


.logo-craft {
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo-digital {
    color: var(--lime);
    margin-left: 0.2rem;
}

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

.nav-menu a {
    color: var(--light-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--lime);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--lime);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Background effects */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(168, 255, 62, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 255, 62, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        hsla(var(--hero-glow-h), var(--hero-glow-s), var(--hero-glow-l), var(--hero-glow-a)) 0%,
        transparent 70%
    );
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(3, 96, 76, 0.85) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: 7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(3, 96, 76, 0.85) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    z-index: 10;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(180deg, rgba(20, 24, 36, 0) 0%, rgba(20, 24, 36, 0.65) 70%, rgba(20, 24, 36, 1) 100%);
    pointer-events: none;
    z-index: 9;
}

.hero-section .hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 20;
    margin: 0 auto;
}

.hero-section h1 {
    font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2.6rem, 5.6vw, 5.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin: 0 auto 2rem;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.2em;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--accent);
    opacity: 0.7;
    transform: translateX(0);
}

.hero-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 400;
    color: #C9C9C9;
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.hero-description {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.hero-section .cta-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-section .btn {
    padding: 1.2rem 2.8rem;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    text-align: center;
    border: none;
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.hero-section .btn span {
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
    line-height: 1.1;
    text-align: center;
}

.hero-section .btn-primary {
    background: var(--lime);
    color: var(--black);
}

.hero-section .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.hero-section .btn-primary:hover::before {
    left: 100%;
}

.hero-section .btn-primary:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(0, 217, 163, 0.4);
}

.hero-section .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-section .btn-secondary:hover {
    border-color: var(--lime);
    color: var(--lime);
    transform: translateX(4px);
}

/* Network */
.geo-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.geo-shapes::before,
.geo-shapes::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.geo-shapes::before {
    background:
        linear-gradient(120deg, rgba(3, 96, 76, 0.25) 0%, rgba(3, 96, 76, 0) 60%),
        linear-gradient(220deg, rgba(201, 201, 201, 0.18) 0%, rgba(201, 201, 201, 0) 60%),
        linear-gradient(40deg, rgba(3, 96, 76, 0.2) 0%, rgba(3, 96, 76, 0) 55%);
    opacity: 0.18;
}

.geo-shapes::after {
    background:
        repeating-linear-gradient(30deg, rgba(201, 201, 201, 0.12) 0, rgba(201, 201, 201, 0.12) 1px, transparent 1px, transparent 120px),
        repeating-linear-gradient(150deg, rgba(3, 96, 76, 0.12) 0, rgba(3, 96, 76, 0.12) 1px, transparent 1px, transparent 140px);
    opacity: 0.12;
}

.shape {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--teal);
    opacity: 0.45;
    animation: nodeFloat 8s ease-in-out infinite;
}

@keyframes nodeFloat {
    0%, 100% { transform: translate(0, 0); opacity: 0.4; }
    50% { transform: translate(20px, -20px); opacity: 0.6; }
}

.network-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.shape-1 { top: 20%; left: 10%; animation-delay: 0s; }
.shape-2 { top: 25%; right: 15%; animation-delay: 1s; }
.shape-3 { bottom: 30%; left: 15%; animation-delay: 2s; }
.shape-4 { bottom: 25%; right: 20%; animation-delay: 3s; }
.shape-5 { top: 50%; left: 12%; animation-delay: 4s; }
.shape-6 { top: 60%; right: 18%; background: rgba(201, 201, 201, 0.7); animation-delay: 5s; }
.shape-7 { top: 35%; left: 25%; animation-delay: 1.5s; }
.shape-8 { bottom: 40%; right: 25%; animation-delay: 3.5s; }
.shape-9 { top: 45%; right: 30%; animation-delay: 2.5s; }
.shape-10 { top: 15%; left: 35%; animation-delay: 4.5s; background: rgba(201, 201, 201, 0.7); }
.shape-11 { top: 30%; right: 8%; animation-delay: 5.5s; }
.shape-12 { bottom: 15%; left: 8%; animation-delay: 6s; background: rgba(201, 201, 201, 0.7); }
.shape-13 { top: 55%; left: 20%; animation-delay: 2s; }

/* Sections */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header p:first-child {
    display: inline-block;
    background: rgba(0, 217, 163, 0.1);
    color: var(--lime);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

.section-header p:last-child {
    font-size: 1.05rem;
    color: var(--light-gray);
    line-height: 1.6;
}

.stats {
    padding: 4rem 2rem;
    position: relative;
    z-index: 10;
    background: var(--dark-card);
}

.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 217, 163, 0.03);
    border: 1px solid rgba(0, 217, 163, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 217, 163, 0.3);
    background: rgba(0, 217, 163, 0.05);
}

.stat-icon {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin: 0 auto 1rem;
    background: var(--teal);
}

.stat-icon--teal { background: var(--teal); }
.stat-icon--gray { background: var(--light-gray); }
.stat-icon--lime { background: var(--teal); }

.stat-number {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--lime) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--light-gray);
    font-size: 1.05rem;
    line-height: 1.5;
}

.services {
    padding: 6rem 2rem;
    position: relative;
    z-index: 10;
    background: var(--dark-card);
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: center;
}

.service-card {
    background: var(--dark-card);
    border: 1px solid rgba(0, 217, 163, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lime) 0%, var(--teal) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 217, 163, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

.service-card p {
    color: var(--light-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.process {
    padding: 6rem 2rem;
    position: relative;
    z-index: 10;
    background: var(--dark-card);
}

.process-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.process-step {
    background: var(--dark-card);
    padding: 2.5rem 2rem 2rem;
    border-radius: 16px;
    position: relative;
    border: 1px solid rgba(0, 217, 163, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.process-step:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 217, 163, 0.3);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    width: 44px;
    height: 44px;
    background: var(--lime);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transform: translateX(-50%);
}

.process-step h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

.process-step p {
    color: var(--light-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.contact {
    padding: 6rem 2rem;
    position: relative;
    z-index: 10;
    background: var(--dark-card);
}

.contact-form {
    max-width: 700px;
    margin: 3rem auto 0;
    background: var(--dark-card);
    border: 1px solid rgba(0, 217, 163, 0.15);
    border-radius: 24px;
    padding: 3rem;
}

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

.form-group label {
    display: block;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 217, 163, 0.03);
    border: 1px solid rgba(0, 217, 163, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--white);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--lime);
    background: rgba(0, 217, 163, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 217, 163, 0.2);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    border: none;
    background: var(--lime);
    color: var(--dark);
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 217, 163, 0.4);
}

.contact-message {
    background: rgba(0, 217, 163, 0.16);
    border: 1px solid rgba(0, 217, 163, 0.45);
    color: var(--white);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0 auto 1.5rem;
    max-width: 600px;
    text-align: center;
    font-weight: 500;
}

.contact-message.error {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--dark-card);
    position: relative;
    z-index: 10;
}

.footer-grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(rgba(168, 255, 62, var(--footer-grid-alpha)) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 255, 62, var(--footer-grid-alpha)) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 1;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.6) 82%, rgba(0,0,0,1) 100%);
    mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.6) 82%, rgba(0,0,0,1) 100%);
}

.footer-grid-overlay::after {
    content: '';
    position: absolute;
    top: 55%;
    right: -10%;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 255, 62, var(--footer-glow-alpha)) 0%, transparent 70%);
    filter: blur(90px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--lime);
}

.footer-bottom {
    text-align: center;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    nav {
        flex-direction: row;
        gap: 0.75rem;
    }

    .nav-menu {
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-menu a {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-section .cta-container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-section .btn {
        width: 100%;
        justify-content: center;
    }

    .geo-shapes {
        height: 100%;
    }

    .services,
    .process,
    .contact {
        padding: 4rem 1.5rem;
    }
}