body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.navbar {
    transition: background-color 0.3s;
}

.hero {
    background: linear-gradient(to right, #007bff, #00c6ff);
    color: #fff;
    padding: 150px 0 100px;
    text-align: center;
}

.profile-img {
    width: 142px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #fff;
    margin-bottom: 20px;
}

.section {
    padding: 60px 0;
}

h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 40px;
    color: #007bff;
}

.dark-mode h2 {
    color: #00c6ff;
}

.social-links p {
    margin: 10px 0;
}

.social-links a {
    color: #007bff;
    text-decoration: none;
}

.dark-mode .social-links a {
    color: #00c6ff;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #007bff;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid #007bff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -16px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dark-mode .timeline-content {
    background-color: #1e1e1e;
}

.dark-mode .timeline::after {
    background-color: #00c6ff;
}

.dark-mode .timeline-item::after {
    border-color: #00c6ff;
}

#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
}

form .form-control {
    transition: background-color 0.3s, color 0.3s;
}

.dark-mode .form-control {
    background-color: #333;
    color: #e0e0e0;
    border-color: #555;
}

.project-links .nav-link {
    color: #007bff;
}

.dark-mode .project-links .nav-link {
    color: #00c6ff;
}

@media (max-width: 767px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item::after {
        left: 15px;
    }
    .timeline-item:nth-child(even) {
        left: 0%;
    }
}

/* Fancy Accordion Enhancements */
.fancy-accordion .accordion-item {
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.fancy-accordion .accordion-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
}

.glass-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.18);
}

.premium-btn {
    background: linear-gradient(90deg, #007bff, #00c6ff);
    color: white !important;
    font-weight: bold;
    border: none;
    transition: all 0.4s ease;
    padding: 1.2rem;
    font-size: 1.3rem;
}

.premium-btn:hover {
    background: linear-gradient(90deg, #00c6ff, #007bff);
    transform: scale(1.02);
}

.premium-btn:not(.collapsed) {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.premium-btn .icon-spin,
.premium-btn .icon-pulse,
.premium-btn .icon-glow {
    transition: all 0.5s ease;
}

.premium-btn:not(.collapsed) .icon-spin {
    transform: rotate(180deg) scale(1.3);
}

.icon-pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }

.icon-glow { animation: glow 2s infinite alternate; }
@keyframes glow { from { text-shadow: 0 0 10px #ffd700; } to { text-shadow: 0 0 30px #ffd700; } }

.accordion-body {
    background: rgba(255,255,255,0.95);
    border-radius: 0 0 1rem 1rem;
}

.dark-mode .accordion-body {
    background: #1e1e1e;
}

.showcase-body {
    padding: 3rem !important;
}

.feature-card {
    background: white;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,123,255,0.15);
}

.dark-mode .feature-card {
    background: #2c2c2c;9:13 PM 1/11/2026
}

.hero-img {
    transition: transform 0.6s ease;
}

.hero-img:hover {
    transform: scale(1.05);
}

/* Animations for Coming Soon */
.bounce { animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-20px); } 60% { transform: translateY(-10px); } }

.sparkle { animation: sparkle 3s infinite; }
@keyframes sparkle { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }

/* Force black text in LIGHT mode (default) for the specified sections */
.hero-section h1.display-3,
.hero-section p.lead,
.showcase-body h2.display-5,
.showcase-body p.lead,
.showcase-body h3,
.showcase-body h5,
.feature-card h3,
.feature-card h5,
.showcase-body p {
    color: #000000 !important;  /* Pure black for maximum contrast on light backgrounds */
}

/* Force white/high-contrast text in DARK mode ONLY for these elements */
body.dark-mode .hero-section h1.display-3,
body.dark-mode .hero-section p.lead,
body.dark-mode .showcase-body h2.display-5,
body.dark-mode .showcase-body p.lead,
body.dark-mode .showcase-body h3,
body.dark-mode .showcase-body h5,
body.dark-mode .feature-card h3,
body.dark-mode .feature-card h5,
body.dark-mode .showcase-body p {
    color: #ffffff !important;  /* Pure white for best readability on dark backgrounds */
}

/* Extra safety for muted/lead text in dark mode (prevents gray washout) */
body.dark-mode .lead,
body.dark-mode .text-muted {
    color: #e0e0e0 !important;  /* Slightly off-white instead of medium gray */
}

/* Ensure accordion button text is always readable */
.premium-btn {
    color: #ffffff !important;  /* White on gradient button */
}

body.dark-mode .premium-btn {
    color: #ffffff !important;
}

/* Glass item body text fallback */
.accordion-body,
.showcase-body {
    color: #000000 !important;
}

body.dark-mode .accordion-body,
body.dark-mode .showcase-body {
    color: #ffffff !important;
}