/*
Theme Name: CODEVISION Theme
Theme URI: https://example.com
Author: Antigravity
Author URI: https://example.com
Description: A custom WordPress theme converted from React.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: codevision
*/

/* Contact Form 7 Styles */
.wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 0.5rem;
}

.wpcf7-text,
.wpcf7-email,
.wpcf7-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  outline: none;
  transition: all 0.2s;
}

.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-textarea:focus {
  border-color: #000;
  box-shadow: 0 0 0 1px #000;
}

.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
  background-color: #000;
  color: #fff;
  padding: 1rem 3rem;
  font-size: 1.125rem;
  border-radius: 0.5rem;
  border: none;
  width: 100%;
}

@media (min-width: 768px) {
  .wpcf7-submit {
    width: auto;
  }
}

.wpcf7-submit:hover {
  background-color: #1f2937;
}

.wpcf7-spinner {
  position: absolute;
  margin-top: 1rem;
}

/* Navigation Dropdown Styles */
/* Navigation Dropdown Styles */
.nav-dropdown-content {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown:hover .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Pagination Styles */
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s;
}

.pagination .page-numbers:hover {
  background-color: #f3f4f6;
  color: #000;
}

.pagination .page-numbers.current {
  background-color: #000;
  color: #fff;
}

.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 1rem;
}

/* =========================================
   UI Enhancements: Modern & Tech
   ========================================= */

/* 1. Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items */
.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }

/* 2. Tech Background Pattern */
.bg-tech-grid {
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 24px 24px;
}

/* 3. Hero Animation */
@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-bg-animate {
    animation: slowZoom 20s linear infinite alternate;
}

.hero-overlay-tech {
    background: 
        linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.7)),
        repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(0,0,0,0.03) 50px);
}

/* 4. Card Interactivity */
.card-hover-effect {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.05);
}

.card-hover-effect:hover .card-icon-bg {
    background-color: black;
    transform: scale(1.1) rotate(-5deg);
}

.card-hover-effect:hover .card-arrow {
    transform: translateX(5px);
}

/* 5. Particle Network */
#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* 6. Typing Animation */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    color: #000;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 7. Glitch Effect (Removed) */

/* 8. Hero Parallax */
.hero-parallax-bg {
    will-change: transform;
    /* Initial scale to prevent whitespace when moving */
    transform: scale(1.1); 
}
