/* Modern Portfolio Styles with Dark Mode */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* Light theme colors */
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #f8f9fa;
    --border-color: #dee2e6;
    --nav-bg: rgba(248, 249, 250, 0.95);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Dark theme colors */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e9ecef;
    --card-bg: #2d2d2d;
    --border-color: #495057;
    --nav-bg: rgba(45, 45, 45, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

#theme-toggle-btn {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

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

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-link {
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color) !important;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.text-gradient {
    background: linear-gradient(45deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.fade-in {
    animation: fadeInUp 1s ease forwards;
}

.fade-in-delay {
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

/* Stats Section */
.stats-section {
    background: var(--card-bg);
    padding: 40px 20px;
    border-radius: 15px;
    margin-bottom: 4rem;
}

.stat-card {
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.stat-card p {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0;
}

/* Section Styling */
.section-padding {
    padding: 40px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Skills Section */
.skills-category {
    margin-bottom: 2rem;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Programming Language Badges */
.skill-badge.python { background: linear-gradient(135deg, #3776ab, #ffd43b); color: white; }
.skill-badge.java { background: linear-gradient(135deg, #f89820, #ed8b00); color: white; }
.skill-badge.js { background: linear-gradient(135deg, #f7df1e, #ffeb3b); color: #333; }
.skill-badge.c { background: linear-gradient(135deg, #00599c, #004482); color: white; }
.skill-badge.shell { background: linear-gradient(135deg, #4eaa25, #2e7d32); color: white; }
.skill-badge.assembly { background: linear-gradient(135deg, #654321, #8b4513); color: white; }

/* Web Technology Badges */
.skill-badge.html { background: linear-gradient(135deg, #e34f26, #f06529); color: white; }
.skill-badge.css { background: linear-gradient(135deg, #1572b6, #33a9dc); color: white; }
.skill-badge.react { background: linear-gradient(135deg, #61dafb, #21232a); color: white; }
.skill-badge.flask { background: linear-gradient(135deg, #000000, #ffffff); color: white; }
.skill-badge.bootstrap { background: linear-gradient(135deg, #7952b3, #563d7c); color: white; }
.skill-badge.jinja { background: linear-gradient(135deg, #b41717, #c73e1d); color: white; }

/* System & Database Badges */
.skill-badge.sql { background: linear-gradient(135deg, #336791, #4479a1); color: white; }
.skill-badge.posix { background: linear-gradient(135deg, #fcc624, #f4a73e); color: #333; }
.skill-badge.networking { background: linear-gradient(135deg, #0066cc, #004499); color: white; }
.skill-badge.algorithms { background: linear-gradient(135deg, #ff6b6b, #ee5a52); color: white; }
.skill-badge.ml { background: linear-gradient(135deg, #ff9800, #f57c00); color: white; }

/* Tech Badge Colors */
.tech-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
}

.tech-badge.html { background: #e34f26; color: white; }
.tech-badge.css { background: #1572b6; color: white; }
.tech-badge.js { background: #f7df1e; color: #333; }
.tech-badge.python { background: #3776ab; color: white; }
.tech-badge.flask { background: #000000; color: white; }
.tech-badge.sql { background: #336791; color: white; }
.tech-badge.bootstrap { background: #7952b3; color: white; }
.tech-badge.jinja { background: #b41717; color: white; }
.tech-badge.c { background: #00599c; color: white; }
.tech-badge.posix { background: #fcc624; color: #333; }
.tech-badge.networking { background: #0066cc; color: white; }
.tech-badge.algorithms { background: #ff6b6b; color: white; }
.tech-badge.systems { background: #6c757d; color: white; }
.tech-badge.cpp { background: #00599c; color: white; }
.tech-badge.java { background: #f89820; color: white; }
.tech-badge.react { background: #61dafb; color: white; }
.tech-badge.ml { background: #ff9800; color: white; }
.skill-badge.cpp { background: linear-gradient(135deg, #00599c, #004482); color: white; }

/* Learning Badges */
.skill-badge.learning { 
    background: linear-gradient(135deg, #667eea, #764ba2); 
    color: white; 
    position: relative;
    overflow: hidden;
}

.skill-badge.learning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Skill Cards */
.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.skill-card .skill-icon {
    margin-bottom: 20px;
}

.skill-card .skill-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.skill-card .skill-description {
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.skill-level {
    margin-top: 20px;
}

.skill-level .progress {
    height: 8px;
    border-radius: 10px;
    background: var(--border-color);
    overflow: hidden;
}

.skill-level .progress-bar {
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

/* Soft Skills */
.soft-skill-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.soft-skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.soft-skill-card h5 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.soft-skill-card p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Focus Section */
.focus-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.focus-goals {
    margin-top: 30px;
}

.focus-goals span {
    font-weight: 600;
}

/* About Section */
.about-image-placeholder {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.about-image-placeholder:hover {
    transform: scale(1.05);
}

/* About Page Specific Styles */
.content-section {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.content-section:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.summary-card, .timeline-card, .action-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.summary-card:hover, .timeline-card:hover, .action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 25px;
}

.timeline-marker {
    position: absolute;
    left: -15px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
}

.timeline-content h6 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Contact Page Styles */
.contact-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    margin-bottom: 20px;
}

.contact-info {
    background: rgba(0, 123, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
}

.contact-form-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quick-info-card {
    background: var(--gradient-success);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

/* Projects Page Styles */
.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.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-content {
    padding: 30px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.project-type {
    background: var(--gradient-secondary);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-description {
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-technologies {
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.project-links .btn {
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Footer */
footer {
    background: var(--card-bg) !important;
    border-top: 3px solid var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .skill-badges {
        justify-content: center;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
    }
    
    #theme-toggle-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .stats-section {
        padding: 20px 10px;
    }
    
    .stat-card h4 {
        font-size: 1.5rem;
    }
    
    .focus-card {
        padding: 20px;
    }
}

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

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}