/* Custom CSS for LOGAN, LLC */

/* Root Variables */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #7b68ee;
    --accent-color: #ff6b6b;
    --tertiary-color: #4ecdc4;
    --quaternary-color: #45b7d1;
    --light-blue: #e8f4fd;
    --dark-blue: #2c3e50;
    --orange: #ff9500;
    --green: #2ecc71;
    --purple: #9b59b6;
    --teal: #1abc9c;
    --yellow: #f1c40f;
    --pink: #e74c3c;
    --gray-light: #f8f9fa;
    --gray-dark: #34495e;
    --white: #ffffff;
    --black: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
}

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

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--gray-dark);
    padding-top: 0; /* Remove fixed navbar padding */
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.display-4 {
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.1;
}

.display-5 {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Modern Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 16px 32px;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.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,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
}

.btn-outline-primary {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--accent-color)) 1;
    color: var(--primary-color);
    background: transparent;
    padding: 14px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
    z-index: -1;
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: var(--gray-dark) !important;
}

.navbar-nav .nav-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--tertiary-color) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

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

.hero-section .hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero-section .hero-image {
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-buttons .btn {
    margin-bottom: 1rem;
}

/* Page Header */
.page-header {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Modern Cards */
.card {
    border: none;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--tertiary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.95);
}

.card-body {
    padding: 2.5rem;
}

.card .fa-3x {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover .fa-3x {
    transform: scale(1.1);
}

.card .fa-4x {
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.card:hover .fa-4x {
    transform: scale(1.1);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Modern Forms */
.form-control {
    border-radius: 15px;
    border: 2px solid rgba(74, 144, 226, 0.1);
    padding: 16px 20px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 0.25rem rgba(74, 144, 226, 0.15),
        0 8px 25px rgba(74, 144, 226, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.form-select {
    border-radius: 15px;
    border: 2px solid rgba(74, 144, 226, 0.1);
    padding: 16px 20px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 0.25rem rgba(74, 144, 226, 0.15),
        0 8px 25px rgba(74, 144, 226, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-error {
    border-color: #ff6b6b !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.invalid-feedback {
    display: block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 5px;
    font-size: 0.85rem;
    font-weight: 500;
}

.success-message {
    background: linear-gradient(135deg, var(--green), var(--teal));
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
    display: flex;
    align-items: center;
    font-weight: 600;
}

.success-message::before {
    content: '✓';
    font-size: 1.5rem;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-message {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    display: flex;
    align-items: center;
    font-weight: 600;
}

.error-message::before {
    content: '⚠';
    font-size: 1.5rem;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Testimonials */
.blockquote-footer {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: var(--gray-dark) !important;
}

footer h5 {
    color: var(--white);
    margin-bottom: 1rem;
}

footer p {
    color: #adb5bd;
    margin-bottom: 0.5rem;
}

footer .text-white-50 {
    color: #adb5bd !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .text-white-50:hover {
    color: var(--white) !important;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer li {
    margin-bottom: 0.5rem;
}

/* Modern Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .page-header {
        padding: 5rem 0 3rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.shadow {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-info {
    color: var(--info) !important;
}

/* Colorful Icon Classes */
.text-orange {
    color: var(--orange) !important;
}

.text-green {
    color: var(--green) !important;
}

.text-purple {
    color: var(--purple) !important;
}

.text-teal {
    color: var(--teal) !important;
}

.text-yellow {
    color: var(--yellow) !important;
}

.text-pink {
    color: var(--pink) !important;
}

/* Colorful Background Classes */
.bg-gradient-orange {
    background: linear-gradient(135deg, var(--orange) 0%, var(--warning) 100%) !important;
}

.bg-gradient-green {
    background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%) !important;
}

.bg-gradient-purple {
    background: linear-gradient(135deg, var(--purple) 0%, var(--secondary-color) 100%) !important;
}

.bg-gradient-blue {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--quaternary-color) 100%) !important;
}

/* Contact Form Specific */
#contactForm {
    background-color: var(--white);
}

#contactForm .form-control:invalid {
    border-color: #e9ecef;
}

#contactForm .form-control:valid {
    border-color: var(--success);
}

/* Success Message */
#successMessage {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Loading States */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 0.125rem solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .hero-section {
        background: none !important;
        color: var(--black) !important;
    }
    
    .page-header {
        background: none !important;
        color: var(--black) !important;
        margin-top: 0;
        padding-top: 2rem;
    }
}
