/* Custom CSS for ParaQual Website */

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --border-color: #e2e8f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

/* Transparent navbar for hero section */
#mainNavbar {
    /* gradient at top (original state) */
    background: linear-gradient(135deg, #4c1d95, #dc2626) !important;
    backdrop-filter: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: none;
}

#mainNavbar.navbar-scrolled {
    /* white after scroll */
    background: #ffffff !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#mainNavbar .navbar-brand,
#mainNavbar .nav-link {
    color: white !important;
    transition: color 0.3s ease;
}

/* Force all link states to white at top */
#mainNavbar .navbar-nav .nav-link,
#mainNavbar .navbar-nav .nav-link:link,
#mainNavbar .navbar-nav .nav-link:visited,
#mainNavbar .navbar-nav .nav-link:active,
#mainNavbar .navbar-nav .nav-link.show,
#mainNavbar .navbar-nav .nav-link.dropdown-toggle {
    color: #ffffff !important;
}

#mainNavbar.navbar-scrolled .navbar-brand,
#mainNavbar.navbar-scrolled .nav-link,
#mainNavbar.navbar-scrolled .navbar-nav .nav-link,
#mainNavbar.navbar-scrolled .navbar-nav .nav-link:link,
#mainNavbar.navbar-scrolled .navbar-nav .nav-link:visited,
#mainNavbar.navbar-scrolled .navbar-nav .nav-link:active {
    color: #333333 !important;
}

#mainNavbar .navbar-toggler {
    border-color: white;
}

#mainNavbar.navbar-scrolled .navbar-toggler {
    border-color: #333;
}

#mainNavbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mainNavbar.navbar-scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Enforce white nav text at top for bootstrap navbar-light */
.navbar-light#mainNavbar .navbar-nav .nav-link,
.navbar-light#mainNavbar .navbar-nav .nav-link:link,
.navbar-light#mainNavbar .navbar-nav .nav-link:visited,
.navbar-light#mainNavbar .navbar-nav .nav-link:active,
.navbar-light#mainNavbar .navbar-nav .nav-link.show,
.navbar-light#mainNavbar .navbar-nav .nav-link.dropdown-toggle {
    color: #ffffff !important;
}

/* When scrolled, switch to dark */
.navbar-light#mainNavbar.navbar-scrolled .navbar-nav .nav-link,
.navbar-light#mainNavbar.navbar-scrolled .navbar-nav .nav-link:link,
.navbar-light#mainNavbar.navbar-scrolled .navbar-nav .nav-link:visited,
.navbar-light#mainNavbar.navbar-scrolled .navbar-nav .nav-link:active {
    color: #333333 !important;
}

/* Also force toggler icon and border */
.navbar-light#mainNavbar .navbar-toggler { border-color: #ffffff !important; }
.navbar-light#mainNavbar.navbar-scrolled .navbar-toggler { border-color: #333333 !important; }

/* Navigation Styles */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Optional: underline color adapts */
#mainNavbar .nav-link::after { background: rgba(255,255,255,0.9); }
#mainNavbar.navbar-scrolled .nav-link::after { background: var(--primary-color); }

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

/* Hero Section */
.hero-section {
    min-height: 80vh;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(245, 158, 11, 0.1));
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e2e8f0" opacity="0.5"/><circle cx="75" cy="75" r="1" fill="%23e2e8f0" opacity="0.5"/><circle cx="50" cy="10" r="0.5" fill="%23e2e8f0" opacity="0.3"/><circle cx="10" cy="60" r="0.8" fill="%23e2e8f0" opacity="0.4"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: grain 20s linear infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta {
    animation: fadeInUp 1s ease-out 0.4s both;
}

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

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Card Styles */
.paraqual .card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.paraqual .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.paraqual .card-body {
    padding: 2rem;
}

/* Section Styles */
.section {
    padding: 40px 0;
}

.section:first-of-type {
    padding-top: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}


/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    background: white;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Footer */
:root {
    --paraqual-purple: #4c1d95;
    --paraqual-deep-purple: #581c87;
    --paraqual-red: #dc2626;
    --paraqual-light-red: #ef4444;
    --paraqual-white: #ffffff;
    --paraqual-light-gray: #f8fafc;
}

.modern-footer {
    position: relative;
    background: linear-gradient(135deg, 
        var(--paraqual-deep-purple) 0%, 
        #1f1b36 30%,
        #0f0b1a 70%,
        var(--paraqual-purple) 100%);
    padding: 50px 0;
    margin-top: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(76, 29, 149, 0.15) 0%, transparent 50%),
        linear-gradient(45deg, rgba(76, 29, 149, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
}

/* Decorative Elements */
.footer-decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(76, 29, 149, 0.1));
    animation: footerFloat 8s ease-in-out infinite;
}

.footer-shape.shape-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.footer-shape.shape-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.footer-shape.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes footerFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Modern Footer Responsive */
@media (max-width: 768px) {
    .modern-footer {
        padding: 40px 0;
    }
    
    .footer-copyright {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .footer-policy-links {
        justify-content: center;
        gap: 25px;
        flex-wrap: wrap;
    }
    
    .policy-link {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .modern-footer {
        padding: 35px 0;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .footer-policy-links {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .policy-link {
        padding: 14px 24px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }
    
    .footer-shape.shape-1,
    .footer-shape.shape-2,
    .footer-shape.shape-3 {
        display: none;
    }
}

.footer-policy-links {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: flex-end;
}

.policy-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.policy-link i {
    font-size: 1rem;
    color: var(--paraqual-white);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.policy-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--paraqual-purple), var(--paraqual-red));
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.policy-link:hover {
    color: var(--paraqual-white);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 30px rgba(76, 29, 149, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.policy-link:hover::before {
    opacity: 0.15;
}

.policy-link:hover i {
    transform: scale(1.15);
    color: var(--paraqual-white);
}

.footer-copyright-section {
    position: relative;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
    position: relative;
}

.developer-link {
    color: var(--paraqual-white);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--paraqual-purple), var(--paraqual-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.developer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--paraqual-red), var(--paraqual-purple));
    transition: width 0.3s ease;
}

.developer-link:hover {
    transform: translateY(-1px);
}

.developer-link:hover::after {
    width: 100%;
}



/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .navbar-logo {
        height: 35px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .navbar-logo {
        height: 30px;
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    .modern-footer {
        padding: 60px 0 0;
    }
    
    .footer-brand-title {
        font-size: 1.7rem;
        margin: 10px 0 15px;
    }
    
    .footer-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
        max-width: 100%;
    }
    
    .footer-heading {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .contact-item {
        gap: 12px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-text {
        font-size: 0.9rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .modern-footer {
        padding: 50px 0 0;
    }
    
    .footer-main {
        padding-bottom: 40px;
    }
    
    .footer-brand-title {
        font-size: 1.5rem;
    }
    
    .footer-logo {
        height: 40px;
    }
    
    .footer-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .footer-heading {
        font-size: 1rem;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
    
    .contact-items {
        gap: 15px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .contact-text {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding: 25px 0;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* Back to Top Button - ParaQual Gradient */
.back-to-top {
    background: linear-gradient(135deg, #4c1d95, #dc2626) !important;
    box-shadow: 0 8px 25px rgba(76, 29, 149, 0.4) !important;
    border: none !important;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #dc2626, #4c1d95) !important;
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.5) !important;
}

/* Force gradient override */
button.back-to-top,
button[class*="back-to-top"] {
    background: linear-gradient(135deg, #4c1d95, #dc2626) !important;
}

/* Custom Cursor - ParaQual Gradient */
.custom-cursor {
    background: linear-gradient(135deg, #4c1d95, #dc2626) !important;
    background-image: linear-gradient(135deg, #4c1d95, #dc2626) !important;
}
