/* ============================
   Global Styles
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffc107;
    --secondary-color: #212529;
    --accent-color: #ff9800;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ============================
   Navbar
============================ */
.navbar {
    background: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
}

.navbar-brand i {
    color: var(--primary-color);
    margin-right: 5px;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ============================
   Hero Section
============================ */
.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.85), rgba(255, 193, 7, 0.2)),
                url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1920&h=1080&fit=crop') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.8), rgba(255, 152, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-section .lead {
    font-size: 1.3rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.animate-title {
    animation: fadeInUp 1s ease-out;
}

.animate-subtitle {
    animation: fadeInUp 1.2s ease-out;
}

.animate-buttons {
    animation: fadeInUp 1.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator a {
    color: #fff;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ============================
   Stats Section
============================ */
.stats-section {
    background: linear-gradient(135deg, #212529, #343a40);
}

.stat-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.counter {
    font-size: 3rem;
    color: var(--primary-color);
}

/* ============================
   Service Cards
============================ */
.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-card.featured {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #fff;
    transform: scale(1.05);
    overflow: hidden;
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured li {
    color: #fff;
}

.service-card.featured .service-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -32px;
    background: rgba(255,255,255,0.3);
    color: #fff;
    padding: 5px 45px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #fff;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.service-list li {
    padding: 8px 0;
    color: var(--text-light);
}

.service-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* ============================
   Portfolio
============================ */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
}

.portfolio-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.9), rgba(255, 193, 7, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-content {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.portfolio-content h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* ============================
   Feature List
============================ */
.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    margin-bottom: 25px;
    align-items: start;
}

.feature-icon {
    margin-right: 20px;
    font-size: 2rem;
}

.feature-text h5 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.feature-text p {
    color: var(--text-light);
    margin: 0;
}

/* ============================
   Testimonials
============================ */
.testimonials-section {
    background: linear-gradient(135deg, #1a1d20, #212529);
}

.testimonials-section .section-title {
    color: #fff;
}

.testimonials-section .section-title::after {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.testimonial-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.stars i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================
   Team Cards
============================ */
.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.team-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover img {
    transform: scale(1.1);
}

.team-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(33, 37, 41, 0.95), transparent);
    padding: 30px 20px 20px;
    color: #fff;
    transform: translateY(60px);
    transition: transform 0.3s ease;
}

.team-card:hover .team-content {
    transform: translateY(0);
}

.team-content h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.team-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.team-social {
    display: flex;
    gap: 15px;
}

.team-social a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.team-social a:hover {
    color: var(--primary-color);
}

/* ============================
   Contact Cards
============================ */
.contact-info-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.3);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.contact-info-card h5 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.contact-form-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.form-control,
.form-select {
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

/* ============================
   Footer
============================ */
.footer {
    background: linear-gradient(135deg, #1a1d20, #212529);
}

.footer h4, .footer h5 {
    color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================
   Back to Top Button
============================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
}

/* ============================
   Buttons
============================ */
.btn-warning {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* ============================
   Responsive Design
============================ */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .service-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .animate-buttons {
        display: flex;
        justify-content: center;
    }
    
    .stat-item {
        margin-bottom: 20px;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 10px 30px;
        font-size: 1rem;
    }
    
    .animate-buttons .btn {
        margin: 0 !important;
    }
    
    .contact-form-card {
        padding: 25px;
    }
}

/* ============================
   Smooth Scroll
============================ */
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 70px;
}

/* ============================
   Animations
============================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}
