/* Custom styles for modern look */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth; /* Adds smooth scrolling */
}

.font-serif-display {
    font-family: 'Playfair Display', serif;
}

/* ======================================= */
/* === DYNAMIC SECTION BACKGROUNDS ====== */
/* ======================================= */

.hero-section {
    background-image: url('/images/webdev-2-background.webp');
    background-color: #000000; /* Fallback color */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#about {
    background-image: url('/images/about-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#services {
    background-color: #000000;
    position: relative; 
    overflow: hidden;
}

/* This ensures your cards and text appear ON TOP of the particles */
#services > .max-w-7xl {
    position: relative;
    z-index: 1;
}

#process {
    background-color: #000000;
    position: relative; 
    overflow: hidden;
}

/* Ensures the main content of the process section appears above the background */
#process > .max-w-7xl {
    position: relative;
    z-index: 1;
}

#contact {
    background-image: url('/images/contact-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* About Section Cards - UPDATED WITH GLOW */
.value-card {
    background-color: #b8ffc1; /* A tiny bit darker for a better match */
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.8), 
                0 0 10px rgba(0, 255, 0, 0.6), 
                0 0 20px rgba(0, 255, 0, 0.4), 
                0 0 40px rgba(0, 255, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 8px rgba(0, 255, 0, 1), 
                0 0 15px rgba(0, 255, 0, 0.8), 
                0 0 30px rgba(0, 255, 0, 0.6), 
                0 0 60px rgba(0, 255, 0, 0.5);
}


/* ======================================= */
/* ====== NEW GLASS CARD STYLES ========== */
/* ======================================= */

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate {
  to {
    --angle: 360deg;
  }
}

.glass-card {
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 1.5rem;
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: rotate 10s linear infinite;
    min-height: 24rem;
}

/* This pseudo-element creates the glowing border */
.glass-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    z-index: -2; /* Placed behind the main background */
    border-radius: 1.5rem;
    animation: rotate 10s linear infinite; 
}

/* Specific Glow Colors for the border */
.glow-gold::before {
    background: conic-gradient(from var(--angle), #FFD700, #DAA520, #FFD700);
}

.glow-blue::before {
    background: conic-gradient(from var(--angle), #7dd3fc, #38bdf8, #7dd3fc);
}

.glow-maroon::before {
    background: conic-gradient(from var(--angle), #b92b27, #800000, #b92b27);
}

/* NEW: Green glow for the new service card */
.glow-green::before {
    background: conic-gradient(from var(--angle), #00fc04, #00b303, #00fc04);
}


/* --- CORRECTED METALLIC + SWEEPING GLOW BACKGROUNDS --- */
.glow-gold {
    background: 
        /* Top Layer: Animated Sweep (tinted gold) */
        conic-gradient(from var(--angle) at 50% 50%, hsla(45, 100%, 70%, 0.25) 0%, hsla(45, 100%, 70%, 0) 25%, hsla(45, 100%, 70%, 0) 100%),
        /* Bottom Layer: Metallic Texture */
        linear-gradient(135deg, hsl(45, 100%, 25%), hsl(45, 100%, 45%) 50%, hsl(45, 100%, 25%));
}
.glow-blue {
    background:
        /* Top Layer: Animated Sweep (tinted blue) */
        conic-gradient(from var(--angle) at 50% 50%, hsla(200, 100%, 70%, 0.25) 0%, hsla(200, 100%, 70%, 0) 25%, hsla(200, 100%, 70%, 0) 100%),
        /* Bottom Layer: Metallic Texture */
        linear-gradient(135deg, hsl(200, 100%, 25%), hsl(200, 100%, 45%) 50%, hsl(200, 100%, 25%));
}
.glow-maroon {
    background:
        /* Top Layer: Animated Sweep (tinted maroon) */
        conic-gradient(from var(--angle) at 50% 50%, hsla(0, 100%, 70%, 0.2) 0%, hsla(0, 100%, 70%, 0) 25%, hsla(0, 100%, 70%, 0) 100%),
        /* Bottom Layer: Metallic Texture */
        linear-gradient(135deg, hsl(0, 100%, 15%), hsl(0, 100%, 25%) 50%, hsl(0, 100%, 15%));
}

/* NEW: Green metallic background */
.glow-green {
    background:
        /* Top Layer: Animated Sweep (tinted green) */
        conic-gradient(from var(--angle) at 50% 50%, hsla(120, 100%, 70%, 0.2) 0%, hsla(120, 100%, 70%, 0) 25%, hsla(120, 100%, 70%, 0) 100%),
        /* Bottom Layer: Metallic Texture */
        linear-gradient(135deg, hsl(120, 100%, 12%), hsl(120, 100%, 22%) 50%, hsl(120, 100%, 12%));
}


.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.card-icon-wrapper {
    margin-bottom: 1.5rem;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon {
    width: 64px;
    height: 64px;
    color: #e5e7eb;
}

.glow-gold .card-icon { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7)); }
.glow-blue .card-icon { filter: drop-shadow(0 0 10px rgba(125, 211, 252, 0.7)); }
.glow-maroon .card-icon { filter: drop-shadow(0 0 10px rgba(176, 35, 35, 0.7)); }
/* NEW: Green icon glow */
.glow-green .card-icon { filter: drop-shadow(0 0 10px rgba(0, 252, 4, 0.7)); }


.card-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.card-price {
    color: #000000;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.card-description {
    color: #ffffff; 
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.75;
    flex-grow: 1;
    margin-bottom: 2rem;
}

.card-button {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e5e7eb;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    margin-top: auto;
}

.card-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ======================================= */
/* ========= END GLASS CARD STYLES ========= */
/* ======================================= */


/* Contact Form Styles */
@keyframes contact-pulse {
  0% {
    box-shadow: 0 0 15px 5px rgba(0, 255, 0, 0.3), 0 0 5px 2px rgba(0, 255, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 25px 10px rgba(0, 255, 0, 0.6), 0 0 10px 4px rgba(0, 255, 0, 0.4);
  }
  100% {
    box-shadow: 0 0 15px 5px rgba(0, 255, 0, 0.3), 0 0 5px 2px rgba(0, 255, 0, 0.2);
  }
}

.contact-form-container {
    background-color: #000000;
    border: 2px solid #00ff00;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 0 15px 5px rgba(0, 255, 0, 0.3), 0 0 5px 2px rgba(0, 255, 0, 0.2);
    position: relative;
    animation: contact-pulse 3.5s infinite; 
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background-color: transparent;
    border: 1px solid #4a5568;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #718096;
}

.submit-button-wrapper {
    text-align: center;
    margin-top: 1rem;
}

.submit-button {
    background-color: #00ff00;
    color: #000000;
    font-weight: bold;
    font-size: 1.125rem;
    padding: 0.75rem 3rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: auto;
}

.submit-button:hover {
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

#success-message-new h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #00ff00;
    margin-bottom: 1rem;
}

#success-message-new p {
    font-size: 1.125rem;
    max-width: 80%;
    margin: 0 auto;
}

/* Cookie Banner Styles */
.cookie-button {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

/* ======================================= */
/* ===== PROCESS SECTION STYLES ====== */
/* ======================================= */

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 252, 4, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(0, 252, 4, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 252, 4, 0.7);
  }
}

/* Target the numbered circles */
#process .grid > div:nth-child(1) .relative > div {
    animation: pulse-glow 3.5s infinite;
    animation-delay: 0s;
}
#process .grid > div:nth-child(2) .relative > div {
    animation: pulse-glow 3.5s infinite;
    animation-delay: 0.5s;
}
#process .grid > div:nth-child(3) .relative > div {
    animation: pulse-glow 3.5s infinite;
    animation-delay: 1s;
}

/* Pulsating Line for Process Section */
#pulsating-line-container {
    position: absolute;
    top: 40px; /* Aligns the line with the center of the circles */
    left: 0;
    width: 100%;
    height: 2px; /* Base thickness of the line */
    background-color: rgba(0, 252, 4, 0.2); /* Faint background line */
}

.pulsating-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 20%; /* The width of the moving pulse */
    background: #00fc04;
    box-shadow: 0 0 8px #00fc04, 0 0 15px #00fc04;
    animation: move-and-thicken 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes move-and-thicken {
    0% {
        transform: translateX(-25%) scaleY(1); /* Starts off-screen to the left */
    }
    50% {
        transform: translateX(200%) scaleY(2.5); /* Moves across, getting thicker in the middle */
    }
    100% {
        transform: translateX(500%) scaleY(1); /* Finishes off-screen to the right, returning to normal thickness */
    }
}


/* ======================================= */
/* ====== LIGHTBULB FEATURE STYLES ======= */
/* ======================================= */

@keyframes bulb-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(79, 195, 247, 0.5));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(79, 195, 247, 1));
  }
}

#pulsating-lightbulb {
  animation: bulb-pulse 2.5s infinite ease-in-out;
  transform-origin: center;
}

@keyframes filament-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 2px #FFFDE7);
    }
    50% {
        filter: drop-shadow(0 0 5px #FFFDE7) drop-shadow(0 0 10px #FBC02D);
    }
}

#glowing-filament {
    animation: filament-pulse 2.5s infinite ease-in-out;
}
#filament-glow-effect {
    animation: filament-pulse 2.5s infinite ease-in-out reverse;
}

.popup-content-wrapper {
    max-width: 650px;
    border: 2px solid transparent;
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    animation: rotate 10s linear infinite; 
    background:
        conic-gradient(from var(--angle) at 50% 50%, hsla(120, 100%, 70%, 0.2) 0%, hsla(120, 100%, 70%, 0) 25%, hsla(120, 100%, 70%, 0) 100%),
        linear-gradient(135deg, hsl(120, 100%, 12%), hsl(120, 100%, 22%) 50%, hsl(120, 100%, 12%));
}

.popup-content-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    z-index: -2;
    border-radius: 1.5rem;
    animation: rotate 10s linear infinite;
    background: conic-gradient(from var(--angle), #00fc04, #00b303, #00fc04);
}

#popup-close-button {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    color: #7dd3fc;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    text-shadow: 0 0 10px rgba(125, 211, 252, 0.8);
}

#popup-close-button:hover {
    transform: scale(1.2);
    color: #ffffff;
}

@media (max-width: 640px) {
  .popup-content-wrapper p {
    text-align: center;
  }
  
  .popup-content-wrapper {
    padding: 2.75rem 1rem 1.75rem;
  }

  .popup-content-wrapper .leading-relaxed {
    font-size: 1rem;
  }
  .popup-content-wrapper .leading-relaxed p,
  .popup-content-wrapper .leading-relaxed ul {
    margin-bottom: 1rem;
  }
  
  #popup-close-button {
    top: 0.5rem;
    right: 0.75rem;
  }
}

/* Services Section - Neon Green Headline */
#services .text-center h2 {
    color: #d1ffd7; /* A bright, light-green "hot" center */
    text-shadow:
        0 0 5px rgba(0, 255, 0, 0.8),
        0 0 10px rgba(0, 255, 0, 0.6),
        0 0 20px rgba(0, 255, 0, 0.4),
        0 0 40px rgba(0, 255, 0, 0.3);
}

#services .text-center p {
    color: #b3ffbe; /* A slightly softer green for readability */
    text-shadow:
        0 0 5px rgba(0, 255, 0, 0.6),
        0 0 10px rgba(0, 255, 0, 0.4);
}

@media (max-width: 767px) {
    /* This code only applies to screens smaller than 768px (mobile devices) */

    /* Repositions the line container to be a vertical bar in the center */
    #pulsating-line-container {
        width: 2px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Updates the pulse to be a vertical bar and applies the new animation */
    .pulsating-line {
        width: 100%; 
        height: 20%; /* The length of the moving pulse */
        animation: move-and-thicken-vertical 4s ease-in-out infinite;
    }

    /* New animation for vertical movement and horizontal thickening */
    @keyframes move-and-thicken-vertical {
        0% {
            transform: translateY(-50%) scaleX(1); /* Starts above the container */
        }
        50% {
            transform: translateY(160%) scaleX(2.5); /* Final fine-tuned adjustment */
        }
        100% {
            transform: translateY(450%) scaleX(1); /* Ends below the container */
        }
    }
}