/* static/css/custom.css */
:root {
    --primary-color: #4299e1;
    --primary-dark: #1a365d;
    --secondary-color: #2d3748;
    --accent-color: #4299e1;
    --text-color: #2d3748;
    --light-gray: #f7fafc;
}

/* Theme Variables */
.theme-light {
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --gradient-start: #1a365d;
    --gradient-end: #2d3748;
    --border-color: #e2e8f0;
}

.theme-dark {
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --card-bg: #2d3748;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --gradient-start: #1a202c;
    --gradient-end: #2d3748;
    --border-color: #4a5568;
}

/* Base Styles */
body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

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

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

/* Logo and Navigation - IMPROVED */
.logo {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    min-width: 48px;
    min-height: 48px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 16px;
    border-radius: 8px;
   background-color: #2f855a; /* Green background */
    color: white; /* White text */
}

.logo:hover {
    transform: scale(1.05);
}

.nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: all 0.3s ease;
    flex-wrap: nowrap !important;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    gap: 1rem;
}

.nav-links.hidden {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-link {
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--bg-secondary);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* COMPLETELY REMOVE Mobile Menu */
.mobile-menu {
    display: none !important;
    visibility: hidden !important;
}

/* COMPLETELY DISABLE Menu button */
.menu-button {
    display: none !important;
    visibility: hidden !important;
}

/* Components */
.timeline-item,
.process-step {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-item::before,
.process-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item::after,
.process-step::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.process-step {
    margin-bottom: 1.5rem;
}

/* Cards */
.blog-card,
.skill-card,
.competency-card,
.service-card {
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.competency-card,
.service-card {
    border-left: 4px solid transparent;
}

.competency-card:hover,
.service-card:hover {
    border-left: 4px solid var(--primary-color);
    transform: translateX(5px);
}

/* Profile Image */
.profile-img {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
}

/* Theme Toggle - Updated to bottom right */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Form Styles */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

/* "Work With Me" Section - Fix for Dark Mode */
#workWithMe {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

#workWithMe h2, 
#workWithMe h4 {
    color: var(--text-primary);
}

#workWithMe h3 {
    color: var(--primary-color);
}

#workWithMe p, 
#workWithMe li span {
    color: var(--text-secondary);
}

#workWithMe .service-card,
#workWithMe .process-step {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

/* Utility Classes */
.text-primary-color {
    color: var(--primary-color);
}

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

.text-accent-color {
    color: var(--accent-color);
}

.bg-primary-color {
    background-color: var(--primary-color);
}

.bg-accent-color {
    background-color: var(--accent-color);
}

.from-primary-color {
    --tw-gradient-from: var(--primary-color);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(98, 0, 234, 0));
}

.to-accent-color {
    --tw-gradient-to: var(--accent-color);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

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

::-webkit-scrollbar-thumb:hover {
    background: #3182ce;
}

/* Overrides for all screen sizes */
@media screen {
    .mobile-menu {
        display: none !important;
        visibility: hidden !important;
    }
    
    .menu-button {
        display: none !important;
        visibility: hidden !important;
    }
    
    .nav-links.hidden {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Tablet/medium screens adjustments */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0.65rem 1rem;
    }
    
    .logo {
        width: 55px;
        height: 55px;
        font-size: 1.1rem;
    }
    
    .nav-link {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }
    
    .nav-links {
        gap: 0.75rem;
    }
}

/* Mobile adjustments - IMPROVED */
@media (max-width: 768px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .nav-container {
        padding: 0.6rem 0.9rem !important;
        background-color: var(--bg-primary);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    }
    
    .logo {
        width: 50px !important;
        height: 50px !important;
        font-size: 1rem !important;
        margin-right: 12px;
        flex-shrink: 0;
    }
    
    .nav-link {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.92rem !important;
    }
    
    .nav-links {
        gap: 0.5rem !important;
    }
    
    .profile-img {
        width: 220px;
        height: 220px;
    }
    
    .theme-toggle {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

/* Small screens - IMPROVED */
@media (max-width: 640px) {
    .nav-container {
        padding: 0.55rem 0.75rem !important;
    }
    
    .logo {
        width: 48px !important;
        height: 48px !important;
        font-size: 0.95rem !important;
        margin-right: 10px;
    }
    
    .nav-link {
        padding: 0.55rem 0.7rem !important;
        font-size: 0.9rem !important;
    }
    
    .nav-links {
        gap: 0.4rem !important;
    }
    
    .nav-link::after {
        height: 1.5px;
    }
}

/* Extra small screens - IMPROVED */
@media (max-width: 480px) {
    .container {
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
    }
    
    .nav-container {
        padding: 0.5rem 0.7rem !important;
    }
    
    .logo {
        width: 45px !important;
        height: 45px !important;
        font-size: 0.9rem !important;
        margin-right: 8px;
    }
    
    .nav-link {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.875rem !important;
        font-weight: 500 !important;
    }
    
    .nav-links {
        gap: 0.3rem !important;
    }
    
    /* Make sure there's enough space for tapping */
    .nav-link {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Simplify the hover effect */
    .nav-link::after {
        bottom: 0;
    }
}

/* Very small screens (iPhone SE, etc.) - IMPROVED */
@media (max-width: 375px) {
    .nav-container {
        padding: 0.45rem 0.5rem !important;
        justify-content: space-between !important;
    }
    
    .logo {
        width: 42px !important;
        height: 42px !important;
        font-size: 0.85rem !important;
        margin-right: 6px;
    }
    
    .nav-link {
        padding: 0.45rem 0.5rem !important;
        font-size: 0.82rem !important;
    }
    
    .nav-links {
        gap: 0.2rem !important;
    }
    
    /* Simplify the link appearance for very small screens */
    .nav-link::after {
        display: none; /* Remove underline animation */
    }
    
    .nav-link.active {
        background-color: var(--bg-secondary);
    }
}

/* Extreme small screens - IMPROVED */
@media (max-width: 320px) {
    .nav-container {
        padding: 0.4rem !important;
    }
    
    .logo {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.8rem !important;
        margin-right: 4px;
    }
    
    .nav-link {
        padding: 0.4rem !important;
        font-size: 0.75rem !important;
        min-width: 0 !important;
    }
    
    /* Adjust spacing to fit all links */
    .nav-links {
        gap: 0.15rem !important;
        justify-content: space-around !important;
    }
}