@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===========================
   Header / Navbar
   =========================== */
.navbar {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #334155;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar * {
    color: #e2e8f0;
}

.nav-link {
    position: relative;
    color: #d1d5db !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #60a5fa !important;
}

.nav-link.active {
    color: #60a5fa !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 30;
    background: #1e293b !important;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* ===========================
   Hero Section Animations
   =========================== */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fade-in 0.8s ease-out; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-20px) rotate(5deg); }
}
.animate-float  { animation: float 6s ease-in-out infinite; }
.float-element  { animation: float 6s ease-in-out infinite; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59,130,246,0.3); }
    50%       { box-shadow: 0 0 40px rgba(59,130,246,0.6), 0 0 60px rgba(139,92,246,0.4); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

.hero-text   { animation: fadeInUp 1s ease-out; }
.hero-image  { animation: slideInRight 1s ease-out 0.3s both; }
.pulse-glow  { animation: pulse-glow 3s ease-in-out infinite; }

.gradient-bg {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

/* Button Ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}
@keyframes ripple-animation {
    to { transform: scale(4); opacity: 0; }
}

/* Hero Responsive Typography */
@media (max-width: 640px) {
    .hero-title { font-size: 2rem !important; line-height: 1.3; }
}
@media (min-width: 641px) and (max-width: 768px) {
    .hero-title { font-size: 2.25rem !important; line-height: 1.25; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title { font-size: 2.75rem !important; line-height: 1.2; }
}

/* ===========================
   Testimonials Section
   =========================== */
.testimonials-section {
    background: #0f172a;
    background-size: 200% 200%;
    animation: subtleMove 10s ease infinite;
    padding: 3rem 1rem;
}
@keyframes subtleMove {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

.testimonial-card {
    background: #09031b;
    border: 1px solid #1e293b;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    margin: 1rem;
}
.testimonial-card:hover {
    transform: translateY(-8px) rotateY(5deg) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(249,115,22,0.15);
}

.quote-icon {
    transition: all 0.5s ease;
    transform-origin: center;
    color: #94a3b8;
}
.testimonial-card:hover .quote-icon {
    transform: scale(1.2) rotate(10deg);
    color: #f97316;
}

.profile-img {
    transition: all 0.3s ease;
    filter: grayscale(10%);
}
.testimonial-card:hover .profile-img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.orange-text {
    color: #f97316;
    font-weight: 700;
    position: relative;
}
.orange-text::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 2px;
    background: #f97316;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.testimonial-card:hover .orange-text::after { transform: scaleX(1); }

.testimonials-badge {
    background: #431407;
    color: #fb923c;
    border: 1px solid #7c2d12;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
}
.testimonials-badge:hover {
    background: #7c2d12;
    transform: scale(1.05);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.floating { animation: floating 3s ease-in-out infinite; }
@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-5px); }
}

@media (max-width: 640px) {
    .testimonials-section { padding: 2rem 0.5rem; }
    .testimonial-card { margin: 0.5rem; padding: 1rem; }
    .testimonial-card:hover { transform: translateY(-4px); }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .testimonials-section { padding: 2.5rem 1rem; }
    .testimonial-card { margin: 0.75rem; }
}

/* ===========================
   FAQ Section
   =========================== */
.faq-item {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
}
.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-color: #475569;
}

.faq-summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    color: #e2e8f0;
}
.faq-summary::-webkit-details-marker { display: none; }

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 1.5rem;
    color: #64748b;
    flex-shrink: 0;
}
details[open] .faq-icon {
    transform: rotate(180deg);
    color: #60a5fa;
}

.faq-content {
    animation: slideDown 0.3s ease-out;
    padding: 0 1rem 1rem;
    color: #94a3b8;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.team-image { transition: all 0.4s ease; }
.team-image:hover { transform: scale(1.02); filter: brightness(1.05); }

@media (max-width: 640px) {
    .faq-summary { padding: 0.75rem; font-size: 0.9rem; }
    .faq-icon { font-size: 1.25rem; }
    .faq-content { padding: 0 0.75rem 0.75rem; font-size: 0.875rem; }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .faq-summary { padding: 0.875rem; }
}

/* ===========================
   Contact Us Section
   =========================== */
.contact-bg {
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=800&h=600&fit=crop') center/cover;
    background-attachment: fixed;
}

.form-input {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    transition: all 0.3s ease;
    width: 100%;
}
.form-input::placeholder { color: #64748b; }
.form-input:focus {
    background: #263548;
    border-color: #60a5fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.2);
    outline: none;
    color: #f1f5f9;
}

.fade-in-up { animation: fadeInUp 0.6s ease-out; }

.service-checkbox { position: relative; cursor: pointer; }
.service-checkbox input[type="checkbox"] { display: none; }
.service-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #3b82f6;
}

.checkmark {
    display: inline-block;
    padding: 4px 10px;
    background-color: #1e293b;
    border: 2px solid #334155;
    color: #94a3b8;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
}
.checkmark:hover {
    border-color: #60a5fa;
    background-color: #1e3a5f;
    color: #e2e8f0;
}

.centered-container {
    max-width: calc(100vw - 200px);
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 640px) {
    .centered-container { max-width: 100%; padding: 0 1rem; }
    .contact-bg { background-attachment: scroll; }
    .checkmark { font-size: 11px; padding: 3px 8px; }
    .form-input { font-size: 0.875rem; }
}
@media (min-width: 641px) and (max-width: 768px) {
    .centered-container { max-width: calc(100vw - 80px); padding: 0 1.5rem; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .centered-container { max-width: calc(100vw - 120px); padding: 0 2rem; }
}

/* ===========================
   Footer Section
   =========================== */
.footer-gradient {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-top: 1px solid #334155;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hover-lift { transition: all 0.3s ease; }
.hover-lift:hover { transform: translateY(-2px); }

.footer-link {
    position: relative;
    color: #94a3b8;
    transition: color 0.3s ease;
    display: inline-block;
}
.footer-link:hover { color: #60a5fa; }
.footer-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -2px; left: 0;
    background-color: #60a5fa;
    transition: width 0.3s ease;
}
.footer-link:hover::after { width: 100%; }

@media (max-width: 640px) {
    .footer-link { font-size: 0.875rem; padding: 0.25rem 0; }
    .glass-effect { padding: 1rem; }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .footer-link { font-size: 0.9375rem; }
}

/* ===========================
   Modal
   =========================== */
@keyframes scale-in {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
.animate-scale-in {
    animation: scale-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
body.modal-open { overflow: hidden; }

@media (max-width: 640px) {
    .animate-scale-in { width: 95%; margin: 0 auto; }
}
@media (min-width: 641px) and (max-width: 768px) {
    .animate-scale-in { width: 90%; max-width: 500px; }
}

/* ===========================
   Global Responsive Utilities
   =========================== */
@media (max-width: 640px) {
    .hero-text  { padding: 1rem; }
    .hero-image { margin-top: 2rem; }
    .float-element { width: 150px !important; height: 150px !important; }
    button { font-size: 0.875rem; padding: 0.75rem 1.5rem !important; }
}
@media (min-width: 641px) and (max-width: 768px) {
    .hero-text { padding: 1.5rem; }
    .float-element { width: 200px !important; height: 200px !important; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-text { padding: 2rem; }
    .testimonial-card { max-width: 90%; margin: 0 auto; }
}
@media (min-width: 1025px) and (max-width: 1440px) {
    .centered-container { max-width: 1200px; }
}
@media (min-width: 1441px) {
    .centered-container { max-width: 1400px; }
    .hero-title { font-size: 3.5rem !important; }
}

/* Device Specific */
@media (max-width: 412px) {
    .hero-title { font-size: 1.75rem !important; }
    .faq-summary { font-size: 0.8125rem; }
}
@media (max-width: 280px) {
    .hero-title { font-size: 1.5rem !important; }
    button { font-size: 0.75rem; padding: 0.5rem 1rem !important; }
    .testimonial-card { padding: 0.75rem; }
}
@media (min-width: 428px) and (max-width: 640px) {
    .hero-title { font-size: 2.125rem !important; }
}
@media (min-width: 912px) and (max-width: 1024px) {
    .hero-text { padding: 2.5rem; }
    .testimonial-card { max-width: 85%; }
}
@media (min-width: 1024px) and (max-width: 1280px) and (max-height: 800px) {
    .hero-title { font-size: 2.5rem !important; }
    .faq-item { margin-bottom: 0.75rem; }
}