/* Color Palette - Light Mode */
:root {
    --primary-accent: #4eefaf;
    --secondary-accent: #3498db;
    --neutral-base: #f5f5f5;
    --subtle-accent: #7f8c8d;
    --dark-text: #2c3e50;
    
    /* Light mode colors (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --card-bg: #ffffff;
    --navbar-bg: rgba(44, 62, 80, 0.95);
    --border-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --code-bg: #2c3e50;
    --code-text: #ffffff;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --card-bg: #2d2d2d;
    --navbar-bg: rgba(26, 26, 26, 0.95);
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --code-bg: #1a1a1a;
    --code-text: #ffffff;
}

/* System preference detection removed - manual theme selection takes priority */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 0.5rem;
    position: relative;
    z-index: 1000;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-accent);
    transform: scale(1.1);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-accent);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(15deg);
}

/* Navigation */
.navbar {
    background-color: var(--navbar-bg) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-accent) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-content h2 {
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-accent) !important;
    border-color: var(--secondary-accent) !important;
}

.btn-primary:hover {
    background-color: #2980b9 !important;
    border-color: #2980b9 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-outline-primary {
    color: var(--secondary-accent) !important;
    border-color: var(--secondary-accent) !important;
}

.btn-outline-primary:hover {
    background-color: var(--secondary-accent) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Code Animation */
.code-animation {
    background: var(--code-bg);
    border-radius: 10px;
    padding: 2rem;
    font-family: 'Courier New', monospace;
    color: var(--code-text);
    box-shadow: 0 10px 30px var(--shadow-color);
    animation: float 6s ease-in-out infinite;
}

.code-line {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.code-line.indent {
    margin-left: 2rem;
}

.keyword {
    color: var(--primary-accent);
    font-weight: bold;
}

.function {
    color: var(--secondary-accent);
    font-weight: bold;
}

.string {
    color: #e74c3c;
}

.comment {
    color: #7f8c8d;
    font-style: italic;
}

.variable {
    color: #f39c12;
    font-weight: bold;
}

.code-line.indent-2 {
    margin-left: 4rem;
}

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

/* Section Titles */
.section-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-content h3 {
    color: var(--text-primary);
    font-weight: 600;
}

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

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Platform Cards */
.platform-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.platform-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-accent);
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.platform-card i {
    font-size: 3rem;
    color: var(--secondary-accent);
    margin-bottom: 1rem;
}

.platform-card h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

/* Skills Section */
.skill-category {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow-color);
    height: 100%;
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.skill-category h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.skill-category h4 i {
    color: var(--primary-accent);
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item span {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.progress {
    height: 8px;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    border-radius: 4px;
    transition: width 1s ease;
}

/* Project Cards */
.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.project-image {
    position: relative;
    height: 200px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-placeholder {
    font-size: 3rem;
    color: var(--text-secondary);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-content {
    padding: 1.5rem;
}

.project-content h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-tech .badge {
    background-color: var(--secondary-accent) !important;
    color: #ffffff !important;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Contact Section */
.contact-item {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-item h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.social-link:hover {
    color: var(--primary-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

/* Override Bootstrap bg-light for dark mode */
.bg-light {
    background-color: var(--bg-secondary) !important;
}

/* Override Bootstrap lead text for dark mode */
.lead {
    color: var(--text-secondary) !important;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

footer p {
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
        margin-top: 2em;
    }
    
    .code-animation {
        font-size: 0.9rem;
        padding: 1.5rem;
    }
    
    .platform-cards {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .about-stats {
        margin-top: 2rem;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    .about-content h3 {
        color: var(--text-primary);
        font-weight: 600;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .code-animation {
        font-size: 0.8rem;
        padding: 1rem;
    }
    
    .platform-card {
        padding: 1.5rem;
        width: 100%;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
}

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

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

.hero-content, .about-content, .skill-category, .project-card {
    animation: fadeInUp 0.8s ease-out;
}

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

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

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

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

/* Logo styles */
.main-logo, .hero-logo {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.main-logo {
    height: 65px;
    width: auto;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin-bottom: 2rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
}

@media (max-width: 576px) {
    .main-logo {
        height: 50px;
    }
    
    .hero-logo {
        height: 100px;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
} 