/* ===========================
   Global Styles & Variables
   =========================== */

:root {
    --primary-red: #dc3545;
    --primary-green: #28a745;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --border-radius: 1rem;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* ===========================
   Navigation Bar
   =========================== */

.navbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(220, 53, 69, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    margin: 0 0.5rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

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

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

.navbar-nav .nav-link:hover {
    color: var(--primary-red) !important;
}

/* ===========================
   Hero Section
   =========================== */

.hero-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.7) 100%), url('../images/hero-bg.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: slideInDown 0.8s ease;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease 0.2s both;
    color: #e0e0e0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-section .d-flex {
    animation: slideInUp 0.8s ease 0.4s both;
}

.floating-box {
    animation: float 4s ease-in-out infinite;
    border: 2px solid rgba(220, 53, 69, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* ===========================
   Services Section
   =========================== */

.services-section {
    position: relative;
    padding: 5rem 0;
}

.services-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.service-card {
    background: white;
    border: 1px solid rgba(220, 53, 69, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.15) !important;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    transition: var(--transition);
}

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

.service-card h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
}

/* ===========================
   Features Section
   =========================== */

.features-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 5rem 0;
}

.features-section h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.feature-box {
    border: 2px solid rgba(40, 167, 69, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 0.8s ease;
}

.feature-list {
    animation: slideInRight 0.8s ease;
}

.feature-item {
    transition: var(--transition);
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.5);
}

.feature-item:hover {
    background: rgba(220, 53, 69, 0.05);
    transform: translateX(10px);
}

.feature-check {
    flex-shrink: 0;
    animation: scaleIn 0.5s ease;
}

.feature-item h5 {
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* ===========================
   Team Section
   =========================== */

.team-section {
    padding: 5rem 0;
}

.team-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.team-card {
    border: 1px solid rgba(220, 53, 69, 0.1);
    transition: var(--transition);
    overflow: hidden;
}

.team-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    transition: var(--transition);
}

.team-card:hover .team-image {
    transform: scale(1.05);
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(220, 53, 69, 0.2) !important;
}

.team-card h5 {
    color: var(--text-dark);
    font-size: 1.2rem;
}

.team-card p.text-success,
.team-card p.text-danger {
    font-size: 0.95rem;
}

/* ===========================
   Contact Section
   =========================== */

.contact-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 5rem 0;
}

.contact-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.contact-info {
    transition: var(--transition);
}

.contact-info:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-info:hover .contact-icon {
    transform: scale(1.2) rotate(-10deg);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    border: 2px solid rgba(220, 53, 69, 0.1);
    transition: var(--transition);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* ===========================
   Footer
   =========================== */

.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 2px solid rgba(220, 53, 69, 0.2);
}

.footer h5,
.footer h6 {
    color: white;
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    transform: translateY(-3px);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.2);
}

/* ===========================
   Buttons
   =========================== */

.btn-danger {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c82333 100%);
    border: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, #c82333 0%, #a01d2a 100%);
}

.btn-outline-success {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-success:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.3);
}

/* ===========================
   Modal Styles
   =========================== */

.modal-content {
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 2px solid rgba(220, 53, 69, 0.2);
}

.modal-title {
    color: var(--text-dark);
}

/* ===========================
   Animations
   =========================== */

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

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

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

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

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

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

/* ===========================
   Utility Classes
   =========================== */

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

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

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

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

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

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .services-section h2,
    .features-section h2,
    .team-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }

    .d-flex {
        flex-direction: column !important;
    }

    .d-flex.gap-3 {
        gap: 1rem !important;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }

    .hero-section::before,
    .hero-section::after {
        display: none;
    }

    .feature-item {
        padding: 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.8rem !important;
    }

    .services-section h2,
    .features-section h2,
    .team-section h2,
    .contact-section h2 {
        font-size: 1.6rem;
    }

    .service-card,
    .team-card {
        margin-bottom: 1rem;
    }

    .row.g-4 {
        gap: 1rem !important;
    }

    .container {
        padding: 0 1rem;
    }

    .min-vh-100 {
        min-height: auto !important;
        padding: 2rem 0;
    }
}

/* ===========================
   Dark Mode Support (Optional)
   =========================== */

@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .bg-light {
        background: #2d2d2d !important;
    }

    .bg-white {
        background: #2d2d2d !important;
        color: #e0e0e0;
    }

    .text-muted {
        color: #b0b0b0 !important;
    }

    .text-dark {
        color: #e0e0e0 !important;
    }
}
