/*
Creative & Professional Stylesheet for Code.Serve Contact Page - V5
*/

/* --- 0. FONT IMPORTS & VARIABLES --- */
:root {
    /* Keeping original colors for brand consistency */
    --theme-color: #387cf9;
    --secondary-glow: rgba(56, 124, 249, 0.5); /* New variable for glow effects */
}

/* Using a more modern, readable font for body text */
body {
    font-family: 'Poppins', sans-serif;
}


/* --- 1. CREATIVE PRELOADER (UNCHANGED) --- */
.creative-preloader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: 'Courier New', Courier, monospace;
}

.creative-preloader .project-name {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    opacity: 0;
    animation: preloader-fade-in 1s ease 0.2s forwards;
}

.loading-bar {
    width: 80%;
    max-width: 300px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: preloader-fade-in 1s ease 0.4s forwards;
}

.progress-bar {
    width: 0;
    height: 100%;
    background-color: var(--theme-color);
    animation: load-progress 2s ease-out 1s forwards;
}

@keyframes load-progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loading-status {
    margin-top: 15px;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--font-color);
    text-transform: uppercase;
    opacity: 0;
    animation: preloader-fade-in 1s ease 0.6s forwards;
}

@keyframes preloader-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- 2. ENHANCED CREATIVE HERO SECTION --- */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.services-hero .entry-header {
    position: relative;
    z-index: 2;
}

.animated-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px; /* Slightly larger grid */
    animation: pan-grid 60s linear infinite;
    z-index: 1;
    opacity: 0.2;
}

@keyframes pan-grid {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.hero-tagline {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--theme-color);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7; /* Improved readability */
}

.tech-heading-glitch {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    position: relative;
    color: var(--heading-color);
    text-transform: uppercase;
}

.tech-heading-glitch::before,
.tech-heading-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    overflow: hidden;
}

.tech-heading-glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--theme-color);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.tech-heading-glitch::after {
    left: -2px;
    text-shadow: -2px 0 #E44D26, 2px 2px var(--theme-color);
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 { 0% { clip-path: inset(45% 0 50% 0); } 20% { clip-path: inset(10% 0 85% 0); } 40% { clip-path: inset(60% 0 30% 0); } 60% { clip-path: inset(20% 0 70% 0); } 80% { clip-path: inset(80% 0 5% 0); } 100% { clip-path: inset(45% 0 50% 0); } }
@keyframes glitch-anim-2 { 0% { clip-path: inset(5% 0 90% 0); } 20% { clip-path: inset(95% 0 2% 0); } 40% { clip-path: inset(40% 0 55% 0); } 60% { clip-path: inset(15% 0 75% 0); } 80% { clip-path: inset(70% 0 20% 0); } 100% { clip-path: inset(5% 0 90% 0); } }

/* --- 3. PROFESSIONAL CONTACT SECTION STYLES --- */
.contact-form-container {
    background-color: var(--bg-color);
}

.contact-info-box h3, .form-box h3 {
    padding-bottom: 15px;
    border-bottom: 2px solid var(--theme-color);
    display: inline-block;
}

.contact-info-card {
    display: flex;
    align-items: center;
    background-color: var(--assistant-color);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 0 0 0 var(--secondary-glow);
    transition: box-shadow 0.4s ease;
}

.contact-info-card:hover {
    transform: translateY(-8px);
}

.contact-info-card:hover::before {
    box-shadow: 0 0 25px 5px var(--secondary-glow);
}

.contact-info-card .info-icon {
    font-size: 28px;
    color: var(--theme-color);
    margin-right: 25px;
    transition: transform 0.4s ease;
}

.contact-info-card:hover .info-icon {
    transform: scale(1.15);
}

.contact-info-card h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-info-card p, .contact-info-card a {
    color: var(--font-color);
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: var(--theme-color);
}


/* --- 4. MODERN & CREATIVE FORM STYLING --- */
.form-group-floating {
    position: relative;
    margin-bottom: 35px;
}

.form-group-floating input,
.form-group-floating textarea {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 16px;
    color: var(--heading-color);
    transition: border-color 0.3s ease;
    position: relative;
    z-index: 1;
}

.form-group-floating textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group-floating label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--font-color);
    pointer-events: none;
    transition: top 0.3s ease, font-size 0.3s ease, color 0.3s ease;
    z-index: 0;
}

.form-group-floating input:focus,
.form-group-floating textarea:focus {
    outline: none;
    border-bottom-color: var(--theme-color);
}

/* Floating label animation */
.form-group-floating input:focus + label,
.form-group-floating textarea:focus + label,
.form-group-floating input:valid + label,
.form-group-floating textarea:valid + label {
    top: -15px;
    font-size: 12px;
    color: var(--theme-color);
}


/* --- 5. CREATIVE SUBMIT BUTTON --- */
.creative-button {
    position: relative;
    display: inline-block;
    padding: 15px 35px;
    background-color: transparent;
    border: 1px solid var(--theme-color);
    color: white;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: color 0.4s ease;
    border-radius: 5px;
}

.creative-button .button-text {
    position: relative;
    z-index: 2;
}

.creative-button .shimmer {
    position: absolute;
    top: -50%;
    left: -150%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    transform: skewX(-25deg);
    z-index: 1;
}

.creative-button:hover {
    color: white; /* Ensure text is visible */
}

.creative-button:hover .shimmer {
    left: 150%;
}