:root {
    --primary-color: #c9a959;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --transition-speed: 0.3s;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed) ease;
    padding: 1rem 0;
    opacity: 0;
    transform: translateY(-40px);
    user-select: none;
}

.navbar * {
    user-select: none;
}

.navbar-scrolled {
    background-color: rgba(44, 62, 80, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: bold;
    font-size: 1.5rem;
    transition: transform var(--transition-speed);
}

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

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all var(--transition-speed);
    transform: translateX(-50%);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #fffbe7 0%, #fffbe7 60%, #fffbe7 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 30px;
    padding-bottom: 0;
    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: orange;
    clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%);
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-section .col-lg-6 {
    position: relative;
    z-index: 2;
}

.hero-section h1, .hero-section p, .hero-section .btn {
    color: #222;
}

.hero-image {
    border-radius: 22px;
    box-shadow: 0 12px 36px rgba(44,62,80,0.18), 0 2px 8px rgba(44,62,80,0.10);
    background: rgba(255,255,255,0.92);
    padding: 18px 18px 10px 18px;
    border: 2.5px solid #fffbe7;
    outline: 3.5px solid orange;
    outline-offset: -8px;
    max-width: 70%;
    height: auto;
    margin: 0 auto;
    display: block;
    transition: transform 0.5s cubic-bezier(.4,2,.6,1), box-shadow 0.5s, outline-offset 0.3s;
    position: relative;
    z-index: 3;
}

.hero-image-animate {
    opacity: 0;
    transform: translateY(40px) scale(0.95) perspective(1000px) rotateY(-5deg);
    animation: heroImageFadeIn 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
}

.hero-image:hover {
    transform: scale(1.045) rotate(-2deg);
    box-shadow: 0 24px 48px rgba(44,62,80,0.22), 0 4px 16px rgba(44,62,80,0.13);
    outline-offset: 0px;
}

@keyframes heroImageFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1) perspective(1000px) rotateY(-5deg);
    }
}

@keyframes heroFloat {
    0% { transform: translateY(0) perspective(1000px) rotateY(-5deg); }
    50% { transform: translateY(-18px) perspective(1000px) rotateY(-5deg); }
    100% { transform: translateY(0) perspective(1000px) rotateY(-5deg); }
}

@keyframes heroPulse {
    0%, 100% { filter: brightness(1) drop-shadow(0 10px 30px rgba(0,0,0,0.3)); }
    50% { filter: brightness(1.08) drop-shadow(0 18px 40px rgba(0,0,0,0.35)); }
}

.hero-image-right {
    margin-right: 0;
    margin-left: auto;
    display: block;
    /* Extra push for large screens */
}
@media (min-width: 1200px) {
    .hero-image-right {
        margin-right: 0;
        margin: left 30px;
    }
}

/* Feature Cards */
.feature-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-card .card-body {
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.2rem auto;
    background: linear-gradient(135deg, var(--primary-color), #b08d4a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.12);
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
    position: relative;
    height: 64px;
    width: 64px;
    min-width: 64px;
    min-height: 64px;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.18);
}

.feature-icon-wrapper i {
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.feature-card .card-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card .card-text {
    color: #666;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-list li {
    margin-bottom: 0.75rem;
    color: #555;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.feature-list li:hover {
    transform: translateX(5px);
}

.feature-list li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

/* Section Title Animation */
#features h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

#features h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: #b08d4a;
    border-color: #b08d4a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 169, 89, 0.3);
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

/* Contact Form */
.form-control {
    border-radius: 10px;
    padding: 0.8rem 1rem;
    border: 2px solid #eee;
    transition: all var(--transition-speed);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 89, 0.25);
}

.error-message {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 5px;
    color: white;
    transform: translateX(120%);
    transition: transform var(--transition-speed);
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0;
    }

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

    .feature-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: 80vh;
        height: auto;
        padding-top: 15px;
        padding-bottom: 0;
    }
    .hero-section .container {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .hero-image {
        margin-top: 2rem;
        transform: none;
        max-width: 90%;
    }
    
    .hero-image:hover {
        transform: none;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b08d4a;
}

/* Animated background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #1a1a1a, #2c3e50, #34495e, #2c3e50);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* Floating elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 8s infinite;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

/* Animations */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* Remove custom cursor styles */
/*
.cursor-dot, .cursor-outline {
    display: none !important;
}
*/

* {
    cursor: auto !important;
}

/* --- Global Animations --- */

/* Fade-in and slide-up for sections and elements */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,2,.6,1), transform 0.8s cubic-bezier(.4,2,.6,1);
}
.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered heading animation */
.section-heading {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(.4,2,.6,1), transform 0.7s cubic-bezier(.4,2,.6,1);
}
.section-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar slide-down on load */
.navbar.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card hover animation */
.feature-card, .testimonial-card {
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
}
.feature-card:hover, .testimonial-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 12px 32px rgba(44,62,80,0.13);
}

/* Button hover animation */
.btn, .btn-lg {
    transition: transform 0.2s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
}
.btn:hover, .btn-lg:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(201,169,89,0.18);
}

/* Animate testimonials and contact form */
#testimonials .animate-fade-up, #contact .animate-fade-up {
    transition-delay: 0.2s;
}

/* Animated About Page Background */
.about-bg-animated {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.about-bg-circle {
    position: absolute;
    top: 10%; left: -120px;
    width: 320px; height: 320px;
    background: radial-gradient(circle at 60% 40%, #ffd600 0%, #fffbe7 100%);
    opacity: 0.18;
    border-radius: 50%;
    animation: aboutFloat1 8s ease-in-out infinite alternate;
}
.about-bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.13;
}
.about-bg-shape1 {
    width: 180px; height: 180px;
    right: 8vw; top: 18vh;
    background: linear-gradient(135deg, #ffd600 60%, #fffbe7 100%);
    animation: aboutFloat2 7s ease-in-out infinite alternate;
}
.about-bg-shape2 {
    width: 120px; height: 120px;
    left: 12vw; bottom: 10vh;
    background: linear-gradient(135deg, #fffbe7 60%, #ffd600 100%);
    animation: aboutFloat3 9s ease-in-out infinite alternate;
}
@keyframes aboutFloat1 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(40px) scale(1.08); }
}
@keyframes aboutFloat2 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.12); }
}
@keyframes aboutFloat3 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(0.95); }
}

/* Timeline Styles */
.timeline-section-padding {
    padding: 100px 0;
    background: #f8f9fa;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #ffd600, #ff9800);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-step {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border: 4px solid #ffd600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-dot i {
    font-size: 1.2rem;
    color: #ffd600;
    transition: all 0.3s ease;
}

.timeline-step:hover .timeline-dot {
    background: #ffd600;
    box-shadow: 0 0 20px rgba(255, 214, 0, 0.3);
}

.timeline-step:hover .timeline-dot i {
    color: #fff;
}

.timeline-content {
    width: 45%;
    padding: 25px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-step:nth-child(odd) .timeline-content {
    margin-right: 55%;
}

.timeline-step:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-year {
    position: absolute;
    top: -30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd600;
}

.timeline-step:nth-child(odd) .timeline-year {
    right: 0;
}

.timeline-step:nth-child(even) .timeline-year {
    left: 0;
}

.timeline-content h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.timeline-content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.timeline-step:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 30px;
    }

    .timeline-dot {
        left: 30px;
        transform: none;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }

    .timeline-year {
        position: relative;
        top: 0;
        left: 0 !important;
        right: auto !important;
        margin-bottom: 10px;
    }

    .timeline-step {
        margin-bottom: 40px;
    }
}

.btn-learn-more {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    background: transparent;
    z-index: 1;
    transition: color 0.3s;
}
.btn-learn-more::before {
    content: '';
    position: absolute;
    left: 0; top: 0; width: 0; height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: width 0.35s cubic-bezier(.4,2,.6,1);
}
.btn-learn-more:hover,
.btn-learn-more:focus {
    color: #fff !important;
    border-color: var(--primary-color);
}
.btn-learn-more:hover::before,
.btn-learn-more:focus::before {
    width: 100%;
}

/* Modern Horizontal Timeline */
.modern-timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    margin: 80px auto 60px auto;
    flex-wrap: nowrap;
    max-width: 1100px;
    min-width: 320px;
    gap: 0;
}
.modern-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: #eee;
    z-index: 1;
    transform: translateY(-50%);
    border-radius: 3px;
}
.timeline-step-h {
    position: relative;
    flex: 1 1 0;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    margin: 0 10px;
}
.timeline-dot-h {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(44,62,80,0.18), 0 0 0 4px #ffd600;
    border: 4px solid #fff;
    z-index: 3;
    margin: 0 auto;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.timeline-step-h1 .timeline-dot-h { background: #ff9800; color: #fff; box-shadow: 0 4px 16px rgba(255,152,0,0.18), 0 0 0 4px #fff; }
.timeline-step-h2 .timeline-dot-h { background: #ffd600; color: #fff; box-shadow: 0 4px 16px rgba(255,214,0,0.18), 0 0 0 4px #fff; }
.timeline-step-h3 .timeline-dot-h { background: #4caf50; color: #fff; box-shadow: 0 4px 16px rgba(76,175,80,0.18), 0 0 0 4px #fff; }
.timeline-step-h4 .timeline-dot-h { background: #8bc34a; color: #fff; box-shadow: 0 4px 16px rgba(139,195,74,0.18), 0 0 0 4px #fff; }
.timeline-step-h5 .timeline-dot-h { background: #03a9f4; color: #fff; box-shadow: 0 4px 16px rgba(3,169,244,0.18), 0 0 0 4px #fff; }
.timeline-step-h6 .timeline-dot-h { background: #3f51b5; color: #fff; box-shadow: 0 4px 16px rgba(63,81,181,0.18), 0 0 0 4px #fff; }

.timeline-card-h {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(44,62,80,0.13);
    padding: 1.4rem 1.7rem;
    min-width: 220px;
    max-width: 300px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s, box-shadow 0.3s;
    color: #222;
}
.timeline-card-h h5, .timeline-card-h h6 { color: #222; }
.timeline-card-h.top {
    bottom: 90px;
    opacity: 1;
    pointer-events: auto;
    animation: timelineCardInTop 0.8s cubic-bezier(.4,2,.6,1);
}
.timeline-card-h.bottom {
    top: 90px;
    opacity: 1;
    pointer-events: auto;
    animation: timelineCardInBottom 0.8s cubic-bezier(.4,2,.6,1);
}
@media (max-width: 1200px) {
    .modern-timeline {
        max-width: 900px;
    }
    .timeline-card-h {
        min-width: 160px;
        max-width: 200px;
        padding: 1rem 1rem;
    }
}
@media (max-width: 991.98px) {
    .modern-timeline {
        flex-direction: column;
        align-items: flex-start;
        margin: 40px 0 20px 0;
        max-width: 100%;
    }
    .modern-timeline::before {
        top: 0;
        left: 24px;
        right: auto;
        width: 3px;
        height: 100%;
        background: #eee;
        transform: none;
    }
    .timeline-step-h {
        flex-direction: row;
        align-items: flex-start;
        min-width: 0;
        margin: 0 0 60px 0;
    }
    .timeline-dot-h {
        margin: 0 16px 0 0;
    }
    .timeline-card-h {
        position: static;
        left: auto;
        top: auto;
        bottom: auto;
        transform: none;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        opacity: 1;
        pointer-events: auto;
        animation: none;
    }
    .timeline-card-h.top, .timeline-card-h.bottom {
        top: auto;
        bottom: auto;
    }
}