/* ============================================
   PHPNest - Premium Modern Design
   ============================================ */

:root {
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --secondary: #FD79A8;
    --gradient: linear-gradient(135deg, #6C5CE7, #FD79A8);
    --dark: #0D0C1D;
    --bg-light: #F4F6FA;
    --text-muted: #8A8D9F;
    --card-shadow: 0 20px 50px rgba(108, 92, 231, 0.08);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: 'Inter', sans-serif;
    padding-top: 76px;
    background: #ffffff;
    color: #1A1A2E;
    line-height: 1.7;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- Navbar ----- */
.navbar {
    background: rgba(13, 12, 29, 0.85) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 12px 0;
    transition: var(--transition);
}
.navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
}
.navbar .navbar-brand i {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar .nav-link {
    font-weight: 500;
    color: rgba(255,255,255,0.7) !important;
    margin: 0 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.06);
}
.navbar .btn-primary {
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 600;
}

/* ----- Hero ----- */
.hero-section {
    min-height: calc(100vh - 76px);
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    right: -10%;
    top: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(108,92,231,0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section h1 { font-weight: 900; letter-spacing: -1px; }
.typing-text {
    border-right: 3px solid var(--secondary);
    padding-right: 5px;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { border-color: transparent; } }

/* ===== HERO SLIDER ===== */
.hero-slider {
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.hero-slider .swiper-slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: 0.3s;
}
.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: rgba(108,92,231,0.8);
}
.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
    font-size: 16px;
}
.hero-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}
.hero-slider .swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

/* ----- Stats ----- */
.stats-section {
    background: var(--bg-light);
    padding: 60px 0;
}
.stat-item h3 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary);
}
.stat-item p {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

/* ----- Section Padding ----- */
.section-padding { padding: 80px 0; }

/* ----- Service Card ----- */
.service-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 20px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--card-shadow);
    height: 100%;
}
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(108,92,231,0.12);
    border-color: var(--primary);
}
.service-card .icon-box {
    width: 76px;
    height: 76px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 30px;
    color: var(--primary);
    transition: var(--transition);
}
.service-card:hover .icon-box {
    background: var(--gradient);
    color: #fff;
    transform: scale(1.05);
}
.service-card h5 { font-weight: 700; margin-bottom: 12px; }
.service-card .btn-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.service-card .btn-link:hover { color: var(--primary-dark); }

/* ----- Portfolio Card ----- */
.portfolio-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--card-shadow);
}
.portfolio-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s;
}
.portfolio-card:hover img { transform: scale(1.06); }
.portfolio-card .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13,12,29,0.88);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    color: #fff;
}
.portfolio-card:hover .overlay { opacity: 1; }
.portfolio-card .overlay h5 { font-weight: 700; }

/* ----- Testimonial ----- */
.testimonial-section {
    background: var(--dark);
    position: relative;
}
.testimonial-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(108,92,231,0.08) 0%, transparent 70%);
}
.testimonial-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    color: #fff;
    padding: 28px;
    transition: var(--transition);
}
.testimonial-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}
.testimonial-card img { border: 2px solid var(--primary); }
.swiper-pagination-bullet {
    background: rgba(255,255,255,0.3);
}
.swiper-pagination-bullet-active {
    background: var(--primary);
}

/* ----- Blog Card ----- */
.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0,0,0,0.08); }
.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.blog-card h5 { font-weight: 700; }

/* ----- CTA ----- */
.cta-section {
    background: var(--dark);
    color: #fff;
    padding: 80px 0;
}

/* ----- Buttons ----- */
.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(108,92,231,0.35);
    color: #fff;
}
.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}
.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 10px 28px;
    border-radius: 50px;
}
.btn-outline-light:hover {
    background: #fff;
    color: var(--dark);
}

/* ----- WhatsApp Float (Flying) ----- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.whatsapp-float:hover {
    color: white;
    transform: scale(1.08);
}

/* ----- Footer ----- */
.footer {
    background: #0B0A16;
    color: #A7A9BE;
    padding-top: 60px;
    padding-bottom: 30px;
}
.footer h5, .footer h6 { color: #fff; font-weight: 700; }
.footer a { color: #A7A9BE; text-decoration: none; transition: var(--transition); }
.footer a:hover { color: #fff; }
.footer .social-icons a {
    display: inline-block;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    text-align: center;
    line-height: 42px;
    margin-right: 8px;
    transition: var(--transition);
}
.footer .social-icons a:hover {
    background: var(--gradient);
    color: #fff;
    transform: translateY(-3px);
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
    .hero-section { min-height: auto; padding: 80px 0; text-align: center; }
    .hero-section h1 { font-size: 2.8rem; }
    .stat-item h3 { font-size: 2.5rem; }
    .hero-slider { max-width: 100%; }
}
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.2rem; }
    .stat-item h3 { font-size: 2rem; }
    .section-padding { padding: 50px 0; }
    .navbar .btn-primary { margin-top: 8px; }
    .hero-slider .swiper-slide img { height: 250px; }
}
@media (max-width: 576px) {
    .hero-section h1 { font-size: 1.8rem; }
    .display-4 { font-size: 2rem; }
    .portfolio-card img { height: 200px; }
    .blog-card img { height: 160px; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 24px; bottom: 20px; right: 20px; }
}