/* Custom styles for DevForge website */

/* Custom CSS Variables for Modern Color Scheme */
:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --accent-cyan: #06b6d4;
    --accent-purple: #7c3aed;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
    --surface-dark: #ffffff;
    --surface-card: #ffffff;
    --surface-elevated: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero-section .col-12 {
    max-width: 100% !important;
    width: 100% !important;
}

.hero-section .display-4 {
    max-width: 100% !important;
    width: 100% !important;
}

.hero-section .lead {
    max-width: 100% !important;
    width: 100% !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.hero-icon {
    font-size: 12rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

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

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

/* Navbar */
.navbar {
    backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-primary) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
    transform: translateY(-2px);
}

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

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

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: var(--surface-card);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-blue);
}

.card:hover::before {
    opacity: 1;
}

/* Buttons */
.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    padding: 12px 24px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.4);
    background: var(--gradient-primary);
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.btn-outline-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2);
}

/* Contact info links */
.contact-info a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.contact-info a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.contact-info a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.contact-info a:hover::before {
    width: 6px;
}

/* Badge animations */
.badge {
    background: var(--gradient-secondary) !important;
    color: var(--text-primary) !important;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
    font-size: 1.1rem;
    padding: 12px 24px;
}

.badge.bg-secondary {
    background: var(--surface-elevated) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 280px;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Section spacing */
section {
    padding: 80px 0;
}

/* Footer */
footer {
    background: var(--surface-dark) !important;
    border-top: 1px solid var(--border-color);
}

/* Loading animation for better UX */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

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

/* Icon hover effects */
.fas, .fab {
    transition: all 0.3s ease;
}

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

/* List styling */
.list-unstyled li {
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

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

/* Badge container */
.badge {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Modern text styling */
.text-primary {
    color: var(--primary-blue) !important;
}

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

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

/* Ensure proper text contrast */
body {
    color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
}

p {
    color: var(--text-primary);
}

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

/* Icon gradients */
.fas.text-primary,
.fab.text-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Enhanced sections */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

/* Modern typography */
.display-4, .display-5 {
    font-weight: 800;
    line-height: 1.2;
}

.lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Enhanced card titles */
.card-title {
    font-weight: 700;
    color: var(--text-primary) !important;
}

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

/* Modern list styling */
.list-unstyled li {
    padding: 0.25rem 0;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    margin-left: -1rem;
    transition: all 0.3s ease;
}

.list-unstyled li:hover {
    border-left-color: var(--primary-blue);
    transform: translateX(8px);
    background: rgba(37, 99, 235, 0.05);
}

/* Company info styling */
.company-info {
    background: var(--surface-elevated);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

/* Hero highlight box for About section */
.hero-highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.hero-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    border-radius: inherit;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.lead-enhanced {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* About Section Dark Background */
#about.bg-dark {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    color: white;
}

#about.bg-dark .lead-enhanced {
    color: white !important;
}

/* Track History Section Dark Background */
#track-history.bg-dark {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    color: white;
}

#track-history.bg-dark .lead-enhanced {
    color: white !important;
}

/* Enhanced tech list styling */
.tech-list {
    margin-top: 1.5rem;
}

.tech-item {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #000000 !important;
}

.tech-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.tech-item:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-color: var(--primary-blue);
    transform: translateX(5px);
}

.tech-item:hover::before {
    transform: scaleY(1);
}
