/* Dr. 3T's Junior SOC Lab - Custom Styles */

/* CSS Variables */
:root {
    --slate-dark: #1e293b;
    --navy-muted: #334155;
    --charcoal: #374151;
    --off-white: #fafafa;
    --light-gray: #f1f5f9;
}

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

/* Typography Refinements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Bold Text - Make bold more prominent */
strong,
b {
    font-weight: 700;
    color: var(--slate-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Mega Dropdown Styles */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:visible {
    visibility: visible;
}

.group:hover .group-hover\:rotate-180 {
    transform: rotate(180deg);
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    background-color: var(--slate-dark);
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: var(--navy-muted);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    background-color: transparent;
    color: var(--slate-dark);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background-color: var(--off-white);
    border-color: #cbd5e1;
}

/* Navigation Link Hover Effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--slate-dark);
    transition: width 0.2s ease;
}

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

/* Card Styles */
.card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* Section Divider */
.section-divider {
    width: 3rem;
    height: 2px;
    background-color: var(--slate-dark);
    margin: 1rem 0;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--slate-dark);
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

/* Level Badge */
.level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--slate-dark);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

/* Rank Tag */
.rank-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: var(--light-gray);
    color: var(--navy-muted);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--slate-dark);
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 0.3125rem;
    top: 1.5rem;
    width: 1px;
    height: calc(100% - 0.5rem);
    background-color: #e2e8f0;
}

.timeline-item:last-child::after {
    display: none;
}

/* Methodology Card */
.methodology-card {
    position: relative;
    overflow: hidden;
}

.methodology-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--slate-dark);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.methodology-card:hover::before {
    transform: scaleY(1);
}

/* Feature Icon */
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: var(--off-white);
    border-radius: 0.75rem;
    color: var(--slate-dark);
}

/* Hero Pattern */
.hero-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(30, 41, 59, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(51, 65, 85, 0.03) 0%, transparent 50%);
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-delay-100 {
    animation-delay: 0.1s;
    opacity: 0;
}

.animate-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-delay-300 {
    animation-delay: 0.3s;
    opacity: 0;
}

/* Stats Counter */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--slate-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }
}

/* Selection Color */
::selection {
    background-color: var(--slate-dark);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: var(--off-white);
}

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}