/* ===================================
   QUANTUM - CUSTOM STYLES
   Bootstrap 5 Premium Website
   =================================== */

/* === VARIABLES & ROOT === */
:root {
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Dark Theme Colors */
    --dark-900: #0a0a0f;
    --dark-800: #131318;
    --dark-700: #1a1a24;
    --dark-600: #252532;
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-white-50: rgba(255, 255, 255, 0.5);
    --text-white-75: rgba(255, 255, 255, 0.75);
    
    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-900);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
}

/* === UTILITIES === */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* === BACKGROUNDS === */
.bg-dark {
    background-color: var(--dark-900) !important;
}

.bg-dark-gradient {
    background: linear-gradient(180deg, var(--dark-900) 0%, var(--dark-800) 100%);
}

/* === NAVIGATION === */
.navbar {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(10, 10, 15, 0.98);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    transition: var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-white-75) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* === BUTTONS === */
.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-outline-gradient {
    background: transparent;
    border: 2px solid transparent;
    background-image: linear-gradient(var(--dark-900), var(--dark-900)), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-outline-gradient:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-link:hover {
    transform: translateX(5px);
}

/* === BADGES === */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.bg-gradient-soft {
    background: rgba(102, 126, 234, 0.15);
    color: #a5b4fc;
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(26, 26, 36, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* === PAGE HEADER === */
.page-header {
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.delay-2 {
    animation-delay: 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.delay-3 {
    animation-delay: 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.mouse-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* === CARDS === */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: var(--transition-base);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* === SERVICE CARDS === */
.service-card {
    padding: 2.5rem;
    transition: var(--transition-base);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.service-icon-large {
  width: 100px;
  height: 100px;
    background: var(--gradient-primary);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    color: var(--text-white-75);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features i {
    color: #a5b4fc;
}

/* === PORTFOLIO CARDS === */
.portfolio-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    height: 350px;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-base);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

/* Portfolio Filter */
.portfolio-filter .nav-link {
    background: transparent;
    color: var(--text-white-75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin: 0 0.5rem;
    transition: var(--transition-fast);
}

.portfolio-filter .nav-link:hover,
.portfolio-filter .nav-link.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* === TEAM CARDS === */
.team-card {
    padding: 2rem;
}

.team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(102, 126, 234, 0.3);
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

/* === BLOG CARDS === */
.blog-card {
    overflow: hidden;
    transition: var(--transition-base);
}

.blog-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 1.5rem 1.5rem 0 0;
    transition: var(--transition-base);
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.featured-post {
    padding: 0 !important;
}

/* Blog Single */
.blog-single-content {
    color: var(--text-white-75);
}

.blog-single-content h2,
.blog-single-content h3 {
    margin-top: 2rem;
}

.blog-quote {
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
    padding: 2rem;
    border-radius: 1rem;
}

.author-bio {
    margin-top: 3rem;
}

/* === STATS === */
.stat-card {
    padding: 1rem;
}

/* === VALUES & PROCESS === */
.value-card,
.process-card {
    padding: 2rem;
}

.value-icon,
.process-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto;
}

.process-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
}

.process-card {
    position: relative;
}

/* === CONTACT === */
.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.map-placeholder {
    padding: 4rem 2rem !important;
}

/* === FORMS === */
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #667eea;
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-select option {
    background: var(--dark-800);
    color: white;
}

/* === CTA SECTION === */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -250px;
    right: -250px;
}

/* === FOOTER === */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-white-50);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

/* === SOCIAL ICONS === */
.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-icon,
.social-icon-sm {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-base);
}

.social-icon-sm {
    width: 35px;
    height: 35px;
    font-size: 0.875rem;
}

.social-icon:hover,
.social-icon-sm:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

/* Newsletter Form */
.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
    border-right: none;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
}

/* === PAGINATION === */
.pagination {
    gap: 0.5rem;
}

.page-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition-fast);
}

.page-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: transparent;
}

.page-item.disabled .page-link {
    opacity: 0.3;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .display-1 { font-size: 3rem; }
    .display-3 { font-size: 2.5rem; }
    .display-4 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .display-1 { font-size: 2.5rem; }
    .display-3 { font-size: 2rem; }
    .display-4 { font-size: 1.75rem; }
    
    .portfolio-card {
        height: 300px;
    }
    
    .btn-gradient,
    .btn-outline-gradient {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* === SCROLL ANIMATIONS === */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}
