/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    padding-top: 56px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333333;
}

/* Remove theme toggle styles */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1517134191118-9d595e4c8c2b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
}

/* Section Styles */
section {
    padding: 80px 0;
}

:root {
    /* Light theme variables */
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #ffffff;
    --nav-bg: #343a40;
    --nav-text: #ffffff;
    --section-bg: #f8f9fa;
    --border-color: #ddd;
    --shadow-color: rgba(0,0,0,0.1);
    --heading-color: #007bff;
    --card-title-color: #007bff;
}

[data-theme="dark"] {
    /* Dark theme variables */
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --nav-bg: #000000;
    --nav-text: #ffffff;
    --section-bg: #2d2d2d;
    --border-color: #444;
    --shadow-color: rgba(255,255,255,0.1);
    --heading-color: #ffffff;
    --card-title-color: #4da3ff;
}

/* Update heading colors */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
}

/* Update card title colors */
.card-title {
    color: var(--card-title-color) !important;
}

/* Update experience item heading */
.experience-item h4 {
    color: var(--card-title-color);
}

/* Apply theme variables */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.navbar {
    background-color: var(--nav-bg) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--nav-text);
}

section:nth-child(even) {
    background-color: var(--section-bg);
}

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

.experience-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 2px 5px var(--shadow-color);
}

/* Theme toggle button animation */
#theme-toggle {
    transition: transform 0.3s ease;
}

#theme-toggle:hover {
    transform: rotate(45deg);
}

/* Experience Items */
.experience-item {
    padding: 20px;
    border-left: 3px solid #007bff;
    background-color: white;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateX(5px);
}

.experience-item h4 {
    color: #007bff;
    margin-bottom: 10px;
}

.experience-item ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.experience-item li {
    margin-bottom: 5px;
}

/* Skill Badges */
.badge {
    font-size: 0.9rem;
    padding: 8px 16px;
    margin: 0 5px 8px;
    background-color: #007bff;
    transition: background-color 0.3s ease;
}

.badge:hover {
    background-color: #0056b3;
}

/* Contact Form */
.form-control {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.btn-primary {
    padding: 10px 30px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
    }
    
    .experience-item {
        margin: 10px;
        padding: 15px;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .experience-item h4 {
        font-size: 1.2rem;
    }
}


/* Project Cards */
.project-card .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

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

.project-card .card-title {
    color: #007bff;
    margin-bottom: 1rem;
}

.tech-stack {
    margin-top: 1rem;
}

.tech-stack .badge {
    margin: 0.2rem;
    background-color: #6c757d;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    color: #007bff;
}

.social-link i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}


/* Portfolio Section Styles */
.portfolio-category {
    margin-bottom: 4rem;
}

.portfolio-item .card {
    border: none;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.portfolio-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.portfolio-item .card-title {
    color: #007bff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.portfolio-item .card-text {
    color: #666;
    margin-bottom: 1.5rem;
}

.portfolio-item ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.portfolio-item ul li {
    margin-bottom: 0.5rem;
    color: #555;
}

.article-topics {
    margin-top: auto;
}

.article-topics .badge {
    margin: 0.2rem;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.contribution-highlights ul {
    list-style: none;
    padding-left: 0;
}

.contribution-highlights ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.contribution-highlights ul li:last-child {
    border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolio-category {
        margin-bottom: 2rem;
    }

    .portfolio-item .card-title {
        font-size: 1.2rem;
    }

    .portfolio-item {
        margin-bottom: 1rem;
    }
}

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

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

/* Mobile-First Base Styles */
body {
    padding-top: 56px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Responsive Typography */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }

/* Enhanced Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(33, 37, 41, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #007bff;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section Enhancement */
.hero-section {
    min-height: 100vh;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.8), rgba(0,0,0,0.5));
    z-index: 1;
}

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

/* Card Animations */
.card {
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Enhanced Portfolio Items */
.portfolio-item {
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.portfolio-item .card {
    height: 100%;
    overflow: hidden;
}

.portfolio-item img {
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Badge Animations */
.badge {
    transition: all 0.3s ease;
    transform: translateZ(0);
    margin: 0.25rem;
}

.badge:hover {
    transform: scale(1.1) translateZ(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Form Enhancements */
.form-control {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.15);
    background-color: #fff;
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.btn:hover::after {
    left: 100%;
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: rgba(33, 37, 41, 0.95);
        padding: 1rem;
        border-radius: 0.5rem;
    }

    .portfolio-category {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .hero-section {
        min-height: 60vh;
    }

    .card {
        margin-bottom: 1rem;
    }

    .portfolio-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.5s ease;
}

.loading.hide {
    opacity: 0;
    visibility: hidden;
}

/* Preloader Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
/* Technology badges */
.tech-item .badge {
    font-size: 1rem;
    padding: 10px 20px;
    margin: 5px;
    background-color: #007bff;
    transition: all 0.3s ease;
}

.tech-item .badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

/* Social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    color: #007bff;
}

.social-link i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}


/* Portfolio Section Styles */
.portfolio-category {
    margin-bottom: 4rem;
}

.portfolio-item .card {
    border: none;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.portfolio-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.portfolio-item .card-title {
    color: #007bff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.portfolio-item .card-text {
    color: #666;
    margin-bottom: 1.5rem;
}

.portfolio-item ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.portfolio-item ul li {
    margin-bottom: 0.5rem;
    color: #555;
}

.article-topics {
    margin-top: auto;
}

.article-topics .badge {
    margin: 0.2rem;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.contribution-highlights ul {
    list-style: none;
    padding-left: 0;
}

.contribution-highlights ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.contribution-highlights ul li:last-child {
    border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolio-category {
        margin-bottom: 2rem;
    }

    .portfolio-item .card-title {
        font-size: 1.2rem;
    }

    .portfolio-item {
        margin-bottom: 1rem;
    }
}

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

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

/* Mobile-First Base Styles */
body {
    padding-top: 56px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Responsive Typography */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }

/* Enhanced Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(33, 37, 41, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #007bff;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section Enhancement */
.hero-section {
    min-height: 100vh;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.8), rgba(0,0,0,0.5));
    z-index: 1;
}

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

/* Card Animations */
.card {
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Enhanced Portfolio Items */
.portfolio-item {
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.portfolio-item .card {
    height: 100%;
    overflow: hidden;
}

.portfolio-item img {
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}