/* Main CSS for Techsolut Platform */

/* Custom Variables */
:root {
    /* TECHSOLUT Color Palette */
    --techsolut-gradient: linear-gradient(135deg, #00C9FF 0%, #92FE9D 100%);
    --techsolut-blue-dark: #0A1F44;
    --techsolut-green-light: #92FE9D;
    --techsolut-gray-light: #F5F5F5;
    --techsolut-white: #FFFFFF;
    --techsolut-gray-text: #A0AEC0;
    --techsolut-red-alert: #FF4B4B;
    
    /* Legacy variables (kept for compatibility) */
    --primary-gradient: var(--techsolut-gradient);
    --secondary-gradient: linear-gradient(135deg, var(--techsolut-blue-dark) 0%, #495057 100%);
}

/* Global Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Header & Navigation */
.navbar-brand {
    font-weight: bold;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Breadcrumb */
.breadcrumb {
    padding: 0.75rem 1rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 0.25rem;
}

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

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(30, 30);
        opacity: 0;
    }
}

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

.hero-image {
    transition: transform 0.5s ease-in-out;
    z-index: 1;
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-tech-circle {
    width: 100%;
    height: 100%;
    background: var(--techsolut-gradient);
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.3;
    z-index: 0;
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    border-left: 3px solid var(--techsolut-green-light);
}

.feature-icon-container {
    width: 60px;
    height: 60px;
    background: var(--techsolut-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.feature-icon-container i {
    font-size: 24px;
    color: var(--techsolut-white) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Footer */
.footer {
    margin-top: auto;
}

.footer-links a {
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--techsolut-green-light) !important;
    padding-left: 5px;
}

.social-icons a {
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
    color: var(--techsolut-green-light) !important;
}

#back-to-top {
    transition: all 0.3s ease;
    opacity: 0.7;
}

#back-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Custom components */

/* Timeline for activity */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
    border-left: 2px solid var(--bs-primary);
    margin-left: 0.5rem;
    padding-left: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-item-visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-point {
    position: absolute;
    left: -0.5rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--bs-primary);
    border: 2px solid var(--bs-dark);
}

/* File cards */
.file-card {
    height: 100%;
}

.file-card .card-img-top {
    height: 150px;
    object-fit: cover;
    background-color: var(--bs-gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard stats */
.stat-card {
    border-radius: 0.5rem;
    overflow: hidden;
}

.stat-card .card-body {
    position: relative;
    z-index: 1;
}

.stat-card .stat-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    opacity: 0.2;
    z-index: 0;
}

/* Project list */
.project-card .badge {
    font-size: 0.7em;
}

/* Loading spinner overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-container {
    background-color: var(--bs-dark);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    text-align: center;
}

.spinner-container .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Utility classes */
.cursor-pointer {
    cursor: pointer;
}

.border-dashed {
    border-style: dashed !important;
}

/* TECHSOLUT Color Utility Classes */
.bg-techsolut-gradient {
    background: var(--techsolut-gradient) !important;
    color: var(--techsolut-white) !important;
}

.bg-techsolut-dark {
    background: var(--techsolut-blue-dark) !important;
    color: var(--techsolut-white) !important;
}

.bg-techsolut-light {
    background: var(--techsolut-green-light) !important;
    color: var(--techsolut-blue-dark) !important;
}

.text-techsolut-dark {
    color: var(--techsolut-blue-dark) !important;
}

.text-techsolut-light {
    color: var(--techsolut-green-light) !important;
}

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

.text-techsolut-alert {
    color: var(--techsolut-red-alert) !important;
}

.btn-techsolut-primary {
    background: var(--techsolut-gradient);
    border: none;
    color: var(--techsolut-white);
}

.btn-techsolut-primary:hover {
    background: linear-gradient(135deg, #00A9DF 0%, #72DE7D 100%);
    color: var(--techsolut-white);
}

.btn-techsolut-secondary {
    background-color: var(--techsolut-blue-dark);
    border: none;
    color: var(--techsolut-white);
}

.btn-techsolut-secondary:hover {
    background-color: #162a4d;
    color: var(--techsolut-white);
}

.border-techsolut {
    border-color: var(--techsolut-green-light) !important;
}

.badge-techsolut {
    background: var(--techsolut-gradient);
    color: var(--techsolut-white);
}

/* Legacy classes (kept for compatibility) */
.bg-gradient-primary {
    background: var(--primary-gradient) !important;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 1rem;
    }
}
