/* =========================================
   GLOBAL STYLES
========================================= */

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background: url('img/bg.png') repeat;
}

h1, h2, h3 {
    letter-spacing: -0.5px;
}

section {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s;
}

nav a {
    transition: color 0.3s ease;
}

nav a:hover {
    color: #03c2e6; /* Tailwind red-500 */
}

/* Smooth dropdown animation */
#mobileMenu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

/* When menu is open */
#mobileMenu.open {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

/* Rotate animation for menu button */
#menuBtn.rotate {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}


/* ===== LET'S TALK BUTTON EFFECT ===== */
.lets-talk-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    animation: pulseBtn 2.5s infinite; /* subtle idle pulse */
}

@keyframes pulseBtn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.lets-talk-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(45deg, #000000, #ff4d4d);
    animation: none;
}

.hero-section {
    min-height: 80px; /* adjust as needed */
}

#typing-text {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 4px solid #FC3314; /* cursor */
  animation: blink 0.8s infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

@keyframes slow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
.slow-bounce {
  animation: slow-bounce 2s infinite;
}
@keyframes floaty {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -12px); }
}
.floaty {
  animation: floaty 3s ease-in-out infinite;
}

/* ===== ABOUT SECTION STATS ===== */
.about-stats h3 {
    color: #FFD4D0;
    font-weight: bold;
    font-size: 2.5rem;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: translateY(20px);
    opacity: 0;
}

.about-stats.animate h3 {
    transform: translateY(0);
    opacity: 1;
}

.about-stats h3:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Service icons styling */
#services div > div:first-child {
    font-size: 32px;
    line-height: 1;
}

/* Portfolio hover effect */
#portfolio .shadow:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Progress bar smooth animation */
#skills .bg-red-500 {
    transition: width 0.6s ease;
}

/* Testimonial card */
#testimonials .shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#testimonials .shadow:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Blog hover effect */
#blog .hover\:shadow-lg {
    transition: all 0.3s ease;
}

/* Simple fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.8s forwards;
}

/* ===== FADE-UP ANIMATION ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeUp {
    animation: fadeUp 0.8s forwards;
}

/* Chat bubbles */
.user-bubble {
    background-color: #f3f3f3;
    color: #111;
    padding: 8px 12px;
    border-radius: 9999px;
    max-width: 70%;
    margin-left: auto;
    word-wrap: break-word;
}

.ai-bubble {
    background-color: #f87171; /* Tailwind red-400 */
    color: #fff;
    padding: 8px 12px;
    border-radius: 9999px;
    max-width: 70%;
    word-wrap: break-word;
}

.typing {
    font-style: italic;
    opacity: 0.6;
}

#back-to-top {
    font-size: 1.5rem;
    cursor: pointer;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== LOGIN PAGE STYLING ===== */

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-box {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeUp 0.8s forwards;
}

.login-box button[type="submit"] {
    padding: 12px 30px; /* add horizontal padding for width */
    background: linear-gradient(45deg, #000000, #ff4d4d);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulseBtn 2.5s infinite;
    display: block;
    margin: 0 auto; /* centers the button horizontally */
}

.login-box button[type="submit"]:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(45deg, #ff4d4d, #ef4444);
    animation: none;
}


.login-box .logo h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    color: #111;
}

.login-box .logo p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 30px;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-box label {
    text-align: left;
    font-weight: 600;
    color: #333;
}

.login-box input[type="email"],
.login-box input[type="password"] {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.login-box input[type="email"]:focus,
.login-box input[type="password"]:focus {
    border-color: #ef4444;
    box-shadow: 0 5px 10px rgba(239, 68, 68, 0.2);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper #togglePassword {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.password-wrapper #togglePassword:hover {
    transform: scale(1.2);
}

.login-box .forgot {
    font-size: 0.85rem;
    color: #ef4444;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.3s ease;
    display: inline-block;
    text-align: right;
    width: 100%;
}

.login-box .forgot:hover {
    color: #b91c1c;
}

.login-box button[type="submit"] {
    padding: 12px;
    background: linear-gradient(45deg, #000000, #ff4d4d);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulseBtn 2.5s infinite;
}

.login-box button[type="submit"]:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(45deg, #ff4d4d, #ef4444);
    animation: none;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseBtn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }
}

/* Slide-up animation for alerts */
.flash-message {
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.5s ease;
}

.flash-message.show {
  transform: translateY(0);
  opacity: 1;
}

/* =========================================
   PRICING SECTION STYLING
========================================= */

.pricing-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 77, 77, 0.1) 0%,
    rgba(255, 77, 77, 0.3) 50%,
    rgba(255, 77, 77, 0.1) 100%
  );
  transform: rotate(25deg);
  animation: shimmer 3s infinite linear;
  z-index: 0;
}

.pricing-card > * {
  position: relative;
  z-index: 1;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }
  100% {
    transform: translateX(100%) rotate(25deg);
  }
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: #ef4444;
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  color: #555;
}

.pricing-card ul li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.pricing-card button {
  background: linear-gradient(45deg, #000000, #ff4d4d);
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  background: linear-gradient(45deg, #ff4d4d, #ef4444);
}

.toggle-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.toggle-content.active {
  max-height: 500px; /* adjust if needed */
  opacity: 1;
}

/* =========================================
   LOVELY EFFECTS ENHANCEMENTS
========================================= */

/* ===== Section Fade-in on Scroll ===== */
.scroll-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Hero Floating Effect ===== */
.hero-img {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== Button Lovely Hover Effects ===== */
.lovely-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    animation: gentlePulse 2.5s infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.lovely-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    animation: none;
}

/* ===== Card Hover Glow ===== */
.card-glow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-glow:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.2);
}

/* Back-to-top button on the right */
#back-to-top {
    position: fixed;
    bottom: 2rem;       /* distance from bottom */
    right: 2rem;        /* distance from right */
    z-index: 50;
    font-size: 1.5rem;
    cursor: pointer;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Show class to fade in/out */
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}


/* ===== Subtle Icon Hover ===== */
.icon-hover {
    transition: transform 0.3s ease, color 0.3s ease;
}

.icon-hover:hover {
    transform: scale(1.2);
    color: #ef4444;
}

/* ===== Portfolio Hover Floating ===== */
.portfolio-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ===== Smooth Entrance for Pricing Cards ===== */
.pricing-card.scroll-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.pricing-card.scroll-fade.show {
    opacity: 1;
    transform: translateY(0);
}

.toggle-icon {
  transition: transform 0.3s ease;
}
.rotate-180 {
  transform: rotate(180deg);
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 2s infinite;
}

@keyframes bounceOnce {
  0%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.hover\:animate-bounce-once:hover {
  animation: bounceOnce 0.6s ease;
}

/* ===== Responsive Enhancements ===== */
@media (max-width: 1024px) {
    .hero-section {
        min-height: 60px;
        padding: 2rem 1rem;
    }
    .pricing-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    section {
        padding: 2rem 1rem;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .pricing-card {
        max-width: 90vw;
        margin: 1rem auto;
        padding: 1rem;
    }
    .login-box {
        max-width: 95vw;
        padding: 20px 10px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 40px;
        padding: 1rem 0.5rem;
    }
    section {
        padding: 1rem 0.5rem;
    }
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.2rem;
    }
    .pricing-card {
        padding: 0.5rem;
        font-size: 0.95rem;
    }
    .login-box {
        padding: 15px 5px;
        font-size: 0.95rem;
    }
    #back-to-top {
        right: 1rem;
        bottom: 1rem;
        font-size: 1.2rem;
    }
}
video {
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}