:root {
    --primary: #1D3557;
    --light: #F1FAEE;
    --accent: #E76F51;
    --dark: #14213D;
    --gradient-primary: linear-gradient(135deg, #1D3557 0%, #2A4A72 100%);
    --gradient-accent: linear-gradient(135deg, #E76F51 0%, #F28C73 100%);
    --gradient-hero: linear-gradient(135deg, #14213D 0%, #1D3557 50%, #2A4A72 100%);
}

* {
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
}

/* Hero Section Enhancements */
.hero-section {
    background: linear-gradient(135deg, #14213D 0%, #1D3557 50%, #2A4A72 100%) !important;
    position: relative;
    overflow: hidden;
}

.hero-section.bg-primary {
    background: linear-gradient(135deg, #14213D 0%, #1D3557 50%, #2A4A72 100%) !important;
}

div.hero-section.bg-primary.text-white {
    background: linear-gradient(135deg, #14213D 0%, #1D3557 50%, #2A4A72 100%) !important;
}

/* Animated Gradient Background */
.bg-primary:not(.hero-section):not(.navbar) {
    background: linear-gradient(135deg, #1D3557 0%, #2A4A72 100%) !important;
    position: relative;
    overflow: hidden;
}

/* Navbar overflow fix for dropdown */
.navbar.bg-primary {
    overflow: visible !important;
}

.bg-primary:not(.hero-section):not(.navbar)::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(231, 111, 81, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 10%) scale(1.1); }
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(241, 250, 238, 0.3));
}

.hero-section h1 {
    animation: fadeInUp 0.8s ease-out;
    background: linear-gradient(135deg, #fff 0%, #F1FAEE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-section .btn {
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

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

/* Navbar Link Animations */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #E76F51, #F28C73);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

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

.navbar-nav .nav-link:hover {
    color: #F28C73 !important;
    transform: translateY(-2px);
}

/* Modern Buttons */
.btn-accent {
    background: linear-gradient(135deg, #E76F51 0%, #F28C73 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(231, 111, 81, 0.4);
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-accent:hover::before {
    width: 300px;
    height: 300px;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(231, 111, 81, 0.5);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.btn-outline-primary:hover::before {
    left: 0;
}

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

/* Card Effects */
.card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none !important;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
}

.hover-lift {
    position: relative;
}

.hover-lift::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

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

.hover-lift:hover::after {
    width: 80%;
}

/* Service Icons */
.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(231, 111, 81, 0.1) 0%, rgba(231, 111, 81, 0.2) 100%);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.hover-lift:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-accent);
}

.hover-lift:hover .service-icon i {
    color: white !important;
}

/* Section Titles */
section h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* Navbar Enhancements */
.navbar-dark.bg-primary,
.navbar.navbar-dark {
    background: rgba(20, 33, 61, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    position: relative;
    transition: all 0.3s ease;
}

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

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

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Portfolio/Blog Cards */
.card-img-top {
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--gradient-primary);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(231, 111, 81, 0.5), transparent);
}

footer a {
    transition: all 0.3s ease;
    display: inline-block;
}

footer a:hover {
    color: var(--accent) !important;
    transform: translateX(5px);
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gradient-accent);
    transform: translateY(-5px) rotate(360deg);
}

/* Contact Bar */
.quick-contact-bar {
    background: var(--gradient-primary);
    position: relative;
    z-index: 10;
}

/* Form Inputs */
.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(231, 111, 81, 0.25);
    transform: translateY(-2px);
}

/* Badge */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

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

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

/* Stats/Numbers */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Utility Classes */
.min-vh-50 {
    min-height: 50vh;
}

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

.bg-accent {
    background: var(--gradient-accent) !important;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
}

.breadcrumb-item.active {
    color: var(--accent);
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--accent);
    color: white;
}

::-moz-selection {
    background: var(--accent);
    color: white;
}

/* Hero Shape Animation */
.hero-shape-container {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-shape.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(231, 111, 81, 0.2) 0%, rgba(242, 140, 115, 0.1) 100%);
    animation-delay: 0s;
}

.hero-shape.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(241, 250, 238, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    animation-delay: 2s;
    left: 60px;
}

.hero-shape.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(231, 111, 81, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    animation-delay: 4s;
    right: 40px;
}

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

/* Placeholder Image */
.placeholder-image {
    height: 250px;
    background: linear-gradient(135deg, #1D3557 0%, #2A4A72 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
