/* TR Portfolio - Dynamic Theme Styles */
/* Note: Theme colors are set via inline :root variables in index.php */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navbar Styles - Adapts to Light/Dark Mode */
.navbar {
    background: var(--bg-secondary) !important;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 400;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: var(--bg-hover);
    color: var(--text-primary) !important;
}

/* Theme Toggle in Public Navbar - Adapts to Mode */
.navbar .theme-toggle {
    background: var(--bg-primary) !important;
    border: 2px solid var(--border-color) !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: var(--shadow-sm) !important;
    position: relative;
    z-index: 1000;
}

.navbar .theme-toggle:hover {
    background: var(--bg-hover) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: var(--shadow-md) !important;
}

.navbar .theme-toggle-icon {
    font-size: 1.5rem !important;
    line-height: 1 !important;
    display: block !important;
}

/* Ensure it's visible in navbar */
.navbar-nav .nav-item .theme-toggle {
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive: Make toggle button always visible on mobile */
@media (max-width: 991px) {
    .navbar-collapse .theme-toggle {
        margin: 1rem auto !important;
        display: flex !important;
    }
}

/* Hero Section */
.hero-section {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Button Styles */
.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Icon Styles */
.project-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Badge Styles */
.badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer a {
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .project-card,
    .card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }
}
