/* Global Styles */
:root {
    --primary-color: #D82B2B;
    --primary-color-dark: #b71c1c;
    --primary-color-light: #e57373;
    --secondary-color: #212529;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --accent-color: #FF5722;
    --gray-color: #6c757d;
    --gray-light-color: #e9ecef;
}

body {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    color: var(--secondary-color);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
    background-color: #fafafa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

/* Header Styles */

/* Logo Size */
header .navbar-brand img {
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 1;
    z-index: 10;
}

header, nav {
    overflow: visible;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: inline-block;
}
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    position: relative;
    padding: 20px 0 80px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 1;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.navbar {
    padding: 15px 0;
    transition: all 0.4s ease;
    z-index: 1000;
}

.navbar-dark {
    background-color: transparent;
}

.navbar-scrolled {
    background: linear-gradient(135deg, rgba(216, 43, 43, 0.95) 0%, rgba(183, 28, 28, 0.95) 100%);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

.navbar-scrolled .navbar-brand img {
    max-height: 50px;
}

.navbar-brand img {
    max-height: 60px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

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

.nav-link {
    font-weight: 500;
    color: #ffffff !important;
    transition: all 0.3s ease;
    margin: 0 12px;
    padding: 8px 2px;
    position: relative;
    opacity: 0.9;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #ffffff !important;
    opacity: 1;
}

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

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

.hero-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    position: relative;
}

.hero-section h1 {
    font-size: 52px;
    letter-spacing: 0px;
    line-height: 1.15;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.hero-section .lead {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    background-color: #ffffff;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.card-icon {
    color: var(--primary-color);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover .card-icon {
    transform: scale(1.15) translateY(-5px);
    color: var(--accent-color);
}

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.card-text {
    color: var(--gray-color);
    font-size: 15px;
    line-height: 1.6;
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

section h2 {
    position: relative;
    padding-bottom: 18px;
    margin-bottom: 40px;
    font-weight: 800;
    font-size: 2.5rem;
    text-transform: uppercase;
}

section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 43, 43, 0.05) 0%, rgba(216, 43, 43, 0) 70%);
    top: -150px;
    left: -150px;
    z-index: -1;
}

section:nth-child(even)::before {
    left: auto;
    right: -150px;
}

/* CTA Section */
.bg-accent {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    position: relative;
    overflow: hidden;
}

#cta {
    padding: 5rem 0;
}

#cta::before,
#cta::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

#cta::before {
    top: -150px;
    left: -150px;
}

#cta::after {
    bottom: -150px;
    right: -150px;
}

#cta h2 {
    font-size: 2.3rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

#cta .btn {
    position: relative;
    z-index: 1;
}

/* Contact Section */
#contact {
    background-color: #fafafa;
    position: relative;
}

#contact .card {
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    padding: 30px;
    border: none;
    transition: all 0.4s ease;
}

#contact .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

#contact form .form-control {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #eaeaea;
    border-radius: 50px;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

#contact form textarea.form-control {
    border-radius: 20px;
    min-height: 120px;
}

#contact form .form-control:focus {
    border-color: var(--primary-color-light);
    box-shadow: 0 5px 15px rgba(216, 43, 43, 0.1);
}

#contact .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    border: none;
    padding: 14px 30px;
    font-weight: 600;
    border-radius: 50px;
    width: 100%;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(216, 43, 43, 0.2);
}

#contact .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(216, 43, 43, 0.3);
}

#contact h4 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

#contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

#contact p {
    font-size: 16px;
    margin-bottom: 15px;
}

#contact p i {
    color: var(--primary-color);
    width: 25px;
}

#contact a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

#contact a:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(216, 43, 43, 0) 0%, rgba(216, 43, 43, 0.7) 50%, rgba(216, 43, 43, 0) 100%);
}

footer p {
    margin-bottom: 0;
    font-size: 14px;
    opacity: 0.9;
}

footer a {
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    opacity: 0.8;
    margin-left: 1rem;
}

footer a:hover {
    color: var(--primary-color-light) !important;
    opacity: 1;
    text-decoration: none;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-light {
    color: var(--primary-color);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

.btn-light:hover {
    background-color: #ffffff;
    color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline-light {
    border: 2px solid #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-outline-light:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(216, 43, 43, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-color-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(216, 43, 43, 0.4);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 42px;
    }
    
    section h2 {
        font-size: 2.2rem;
    }
    
    #cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0 60px;
    }
    
    .hero-section {
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero-section h1 {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .hero-section .lead {
        font-size: 16px;
    }
    
    .hero-section img {
        margin-top: 2.5rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    section {
        padding: 4rem 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    section h2:after {
        width: 60px;
    }
    
    .navbar-collapse {
        background: linear-gradient(135deg, rgba(216, 43, 43, 0.95) 0%, rgba(183, 28, 28, 0.95) 100%);
        padding: 1.2rem;
        border-radius: 16px;
        margin-top: 1rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.7rem 0;
        text-align: center;
    }
    
    .btn-outline-light {
        margin-top: 1rem;
        display: block;
        text-align: center;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    #contact .card {
        margin-bottom: 30px;
    }
    
    footer p, footer .text-md-end {
        text-align: center !important;
    }
    
    footer a {
        margin: 0 10px;
        display: inline-block;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section .lead {
        font-size: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    #cta h2 {
        font-size: 1.6rem;
    }
    
    #contact h4 {
        font-size: 1.5rem;
    }
}

/* Animation Styles */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }
}

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

.pulsing {
    animation: pulse 4s ease-in-out infinite;
}

.animate-on-hover {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Lazy Loading */
.lazy-load {
    transition: opacity 0.5s ease;
    opacity: 0;
}

.lazy-load.loaded {
    opacity: 1;
}