/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}
/* editing position of next and prev button of carousel */
.carousel-control-next, .carousel-control-prev {
    width: 10%;
}
/* set the bg color of footer  */
.bg-colour{
    background-color: #0d6dfd75;
}
/* Navigation styling*/
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.animated-brand {
    transition: all 0.3s ease;
}

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

.gradient-text {
    background: linear-gradient(45deg, #fff, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bounce-icon {
    animation: bounce 2s infinite;
}

/* using keyframes for bounce effect in keshavosft logo */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffc107 !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #ffc107;
}

/* Hero Section & Carousel index pgae*/
.hero-section {
    position: relative;
    overflow: hidden;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.carousel-inner .container {
    position: relative;
    z-index: 2;
}

/*Colors pallet for styling */
:root {
    --purple: #6f42c1;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-info: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-purple {
    background-color: var(--purple) !important;
}

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

.btn-purple {
    background-color: var(--purple);
    border-color: var(--purple);
    color: white;
}

.btn-purple:hover {
    background-color: #5a359a;
    border-color: #5a359a;
    color: white;
}

.progress-bar.bg-purple {
    background-color: var(--purple) !important;
}

/* Gradient Backgrounds effetcs */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-success {
    background: var(--gradient-success);
}

.bg-gradient-info {
    background: var(--gradient-info);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.typing-animation {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(30, end);
}

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

.floating {
    animation: float 6s ease-in-out infinite;
}

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

.pulse {
    animation: pulse 2s infinite;
}

/* Count Animation */
.counter {
    transition: all 0.3s ease;
}

/* Card Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Feature Icons */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Tech Cards */
.tech-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: #0d6efd;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Button Animations */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(45deg, #0d6efd, #0b5ed7);
    border: none;
}

.btn-outline-primary:hover {
    background: linear-gradient(45deg, #0d6efd, #0b5ed7);
    border-color: transparent;
}

/* Form Styling */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Card Styling */
.card {
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e9ecef;
}

.timeline-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #0d6efd;
}

/* Progress Circle css */
.progress-circle {
    position: relative;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
}

/* Dashboard Styles */
.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

/* Sidebar Styles */
.list-group-item {
    border: none;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    padding-left: 1.5rem;
}

.list-group-item.active {
    background: linear-gradient(45deg, #0d6efd, #0b5ed7);
    border-color: transparent;
}

/* Accordion button Styling */
.accordion-button {
    font-weight: 600;
    background: #f8f9fa;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: #e7f3ff;
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Breadcrumb Styles */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-weight: bold;
}


/* Footer Links */
footer a:hover {
    color: #ffc107 !important;
    transition: color 0.3s ease;
}

/* Social Icons */
.fab, .fas {
    transition: all 0.3s ease;
}

.fab:hover, .fas:hover {
    transform: scale(1.2);
}

/* Carousel Improvements */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 100%, 100%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    width: 3rem;
    height: 3rem;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Modal Improvements */
.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-radius: 1rem 1rem 0 0;
}

/* Loading States */
.btn:disabled {
    opacity: 0.7;
    transform: none !important;
}

/* Focus States for Accessibility */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* code for Responsive experience */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .typing-animation {
        animation: none;
        white-space: normal;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-marker {
        left: -32px;
    }
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .modal {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Extra small screens (phones <576px) */
@media (max-width: 576px) {
    /* Make headings smaller */
    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .display-6 {
        font-size: 1.25rem;
    }

    /* Center hero text & space out image */
    .hero-section {
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-image-container {
        margin-top: 1.5rem;
    }

    /* Stack flex buttons vertically */
    .d-flex.flex-sm-row {
        flex-direction: column !important;
        gap: 1rem;
    }

    /* Make counters smaller */
    .counter {
        font-size: 1.25rem;
    }

    /* Adjust carousel content alignment */
    .carousel .row {
        text-align: center;
    }

    /* Reduce padding on tech cards */
    .tech-card {
        padding: 1rem !important;
    }

    /* Timeline alignment fixes */
    .timeline {
        padding-left: 15px;
    }

    .timeline::before {
        left: 7px;
    }

    .timeline-marker {
        left: -28px;
    }
}
