/* ==========================================================================
   SkyElevate - Professional Website Styles
   ========================================================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Balanced Brand Colors (From Warm to Cool) */
    --primary-color: #62738f;          /* Primary Brand Blue - Headers, Navigation */
    --primary-blue: #62738f;           /* Main Brand Blue - Buttons, Key highlights */
    --accent-blue: #0066ff;            /* Bright Accent Blue - CTAs, Important elements */
    
    /* Supporting Colors (Warmer Tones) */
    --secondary-color: #3498db;        /* Light Blue - Hover effects, Icons */
    --light-blue: #e8f4fd;             /* Very Light Blue - Background accents */
    
    /* Clean Neutral Colors (More White Focus) */
    --white: #FFFFFF;                  /* Primary background */
    --light-gray: #F8FAFC;            /* Very light sections */
    --medium-gray: #64748B;           /* Supporting text */
    --dark-text: #1E293B;             /* Main text color */
    
    /* Legacy variables for compatibility */
    --accent-color: #3498db;
    --light-color: #64748B;
    --lighter-color: #F8FAFC;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    /* Warmer Gradients */
    --gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    --blue-gradient: linear-gradient(135deg, var(--accent-blue) 0%, var(--secondary-color) 100%);
    --light-gradient: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    overflow-x: hidden;
    background-color: var(--white);
}

.container-fluid {
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(58, 124, 255, 0.3);
    }
    50% {
        box-shadow: 0 8px 40px rgba(58, 124, 255, 0.6);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Improved Navigation */
.navbar {
    background: var(--white) !important;
    backdrop-filter: blur(15px);
    padding: 0.8rem 0;
    box-shadow: 0 2px 20px rgba(26, 47, 117, 0.08);
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--light-blue);
}

.navbar-brand {
    font-size: 1.8rem !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    padding: 0.2rem 0;
}

.navbar-brand img {
    height: 70px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    color: var(--dark-text) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--blue-gradient);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #62738f 0%, #324770 50%, #0066ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff" fill-opacity="0.1" points="0,1000 1000,0 1000,1000"/></svg>');
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,87,229,0.3);
    font-weight: 700;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
}

/* Hero Stats Cards */
.stats-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.15);
}

.stats-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.floating-card-1 {
    animation: floatingStats1 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: floatingStats2 4s ease-in-out infinite 1s;
}

.floating-card-3 {
    animation: floatingStats3 4s ease-in-out infinite 2s;
}

@keyframes floatingStats1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(5px) rotate(-1deg); }
    75% { transform: translateY(-5px) rotate(0.5deg); }
}

@keyframes floatingStats2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(8px) rotate(-1deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
    75% { transform: translateY(3px) rotate(-0.5deg); }
}

@keyframes floatingStats3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-6px) rotate(0.5deg); }
    50% { transform: translateY(10px) rotate(-1deg); }
    75% { transform: translateY(-8px) rotate(1deg); }
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--blue-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(31, 78, 216, 0.3);
}

.btn-primary:hover {
    background: var(--accent-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 78, 216, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    border-color: var(--primary-blue);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    border-color: var(--white);
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-title {
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--blue-gradient);
    border-radius: 2px;
}

/* Background Variations */
.bg-light {
    background-color: var(--white) !important;
}

/* Contact Form Updates */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(58, 124, 255, 0.1);
    border: 1px solid var(--light-blue);
}

.form-control {
    border: 2px solid var(--light-blue);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--dark-text);
}

.form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(58, 124, 255, 0.15);
    background: var(--white);
    color: var(--dark-text);
    outline: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #001f3f 0%, #0a1a2a 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer-logo img {
    height: 80px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

/* Service Cards */
.service-card {
    border: 1px solid var(--light-blue);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.5s ease;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(58, 124, 255, 0.08);
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(58, 124, 255, 0.2);
    border-color: var(--accent-blue);
}

.service-card h5 {
    color: var(--primary-blue);
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card:hover h5 {
    color: var(--accent-blue);
    transform: translateX(5px);
}

.service-card .card-text {
    color: var(--medium-gray);
    line-height: 1.7;
    transition: all 0.3s ease;
}

.service-card:hover .card-text {
    color: var(--dark-text);
}

.service-card .service-image img {
    transition: all 0.5s ease;
    border-radius: 10px;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Slideshow Styles */
.testimonial-slideshow {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    padding: 80px 0;
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(58, 124, 255, 0.1);
    text-align: center;
    margin: 0 15px;
    border: 1px solid var(--light-blue);
}

.testimonial-card .quote {
    font-size: 1.2rem;
    color: var(--dark-text);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.testimonial-card .company {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.carousel-indicators {
    margin-bottom: -50px;
}

.carousel-indicators button {
    background-color: var(--accent-blue);
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(13, 27, 42, 0.1);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.feature-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--lighter-color);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.feature-item h6 {
    color: var(--primary-color);
    font-weight: 600;
}

.feature-item .text-muted {
    color: var(--medium-gray) !important;
}

/* Portfolio/Gallery */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(13, 27, 42, 0.08);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 27, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay .btn {
    margin: 0 0.5rem;
}

/* CTA Section */
.cta {
    background: var(--gradient);
    color: var(--white);
    padding: 80px 0;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/cta-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: -1;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(13, 27, 42, 0.08);
}

.form-control {
    border: 2px solid var(--lighter-color);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background: var(--light-gray);
    color: var(--dark-text);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(31, 78, 216, 0.25);
    background: var(--white);
    color: var(--dark-text);
}

/* Footer */
footer {
    background: #001f3f;
    color: white;
    padding: 60px 0 30px;
}

.footer-logo img {
    height: 80px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    color: var(--white);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid var(--lighter-color);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar-brand img {
        height: 60px;
    }
    
    .navbar-brand {
        font-size: 1.5rem !important;
    }
    
    .hero {
        padding: 100px 0;
        text-align: center;
    }
    
    section {
        padding: 60px 0;
    }
    
    .contact-form {
        margin-top: 2rem;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 55px;
    }
    
    .footer-logo img {
        height: 75px;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 50px;
    }
    
    .footer-logo img {
        height: 70px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Utility Classes */
.bg-gradient {
    background: var(--gradient) !important;
}

.text-gradient {
    background: var(--light-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-muted {
    color: var(--medium-gray) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.border-primary {
    border-color: var(--primary-blue) !important;
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(13, 27, 42, 0.1) !important;
}

.border-radius-lg {
    border-radius: 20px !important;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .cta,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Hero Slideshow Styles */
.hero-slideshow {
    position: relative;
    text-align: center;
}

.hero-slideshow .carousel-indicators {
    position: static;
    margin: 20px 0 0 0;
    justify-content: center;
}

.hero-slideshow .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(58, 124, 255, 0.5);
    background-color: transparent;
    margin: 0 5px;
}

.hero-slideshow .carousel-indicators .active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.hero-slideshow .carousel-item img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(31, 78, 216, 0.3);
    transition: all 0.3s ease;
}

.hero-slideshow .carousel-item.active img {
    transform: scale(1.02);
}

/* Enhanced Service Card Animations */
.service-card.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
}

.service-card.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Glow Effect */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(58, 124, 255, 0.5);
}