:root {

    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #10B981;
    --dark: #1F2937;
    --dark-gray: #4B5563;
    --gray: #9CA3AF;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

[data-bs-theme="dark"] {
    --dark: #E5E7EB;
    --light-gray: #1F2937;
    --dark-gray: #9CA3AF;
    --gray: #6B7280;
    --white: #111827;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.5), 0 10px 10px -5px rgba(0,0,0,0.3);
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .skill-card,
[data-bs-theme="dark"] .timeline-content,
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .modal-content {
    background-color: #111827;
    border-color: #374151;
}

[data-bs-theme="dark"] .text-dark {
    color: #E5E7EB !important;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #1F2937 !important;
}

[data-bs-theme="dark"] .navbar {
    background-color: #111827 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

[data-bs-theme="dark"] .footer {
    background-color: #111827 !important;
    color: #E5E7EB;
}

[data-bs-theme="dark"] .btn-outline-primary {
    color: #E5E7EB;
    border-color: #4F46E5;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
    background-color: #4F46E5;
    color: white;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    line-height: 1.7;
    background-color: var(--light-gray);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

#theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

#theme-toggle i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.navbar {
    padding: 1.5rem 0;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--dark) !important;
    position: relative;
    margin: 0 0.25rem;
}

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

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

.hero-section {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(45deg, rgba(79, 70, 229, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    z-index: 1;
}

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

.hero-section h4 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-section p.lead {
    font-size: 1.25rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-image {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.hero-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: translate(-10px, -10px);
}


section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}


@media (max-width: 1199.98px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 991.98px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .hero-section {
        padding: 150px 0 80px;
        text-align: center;
    }
    
    .hero-section::before {
        width: 100%;
        opacity: 0.3;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-section p.lead {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767.98px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    :root {
        --section-padding: 60px 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
    
    .hero-section p.lead {
        font-size: 1.1rem;
    }
}

#about {
    background-color: var(--white);
}

.skills-chart {
    background: var(--light-gray);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

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

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-item span {
    font-weight: 500;
    color: var(--dark);
}

.progress {
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 1s ease-in-out;
}


#skills {
    background-color: var(--light-gray);
}

.skill-card {
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
}

.skill-card i {
    transition: var(--transition);
}

.skill-card:hover i {
    transform: scale(1.1);
}


#experience {
    background-color: var(--white);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--light-gray);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border: 4px solid var(--primary);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.left {
    left: 0;
    padding-right: 25px;
    text-align: right;
}

.right {
    left: 50%;
    padding-left: 25px;
}

.left::after {
    right: -12px;
}

.right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.timeline-date {
    color: var(--gray);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

#projects {
    background-color: var(--light-gray);
}

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.project-img {
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Contact Section */
#contact {
    background-color: var(--white);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-text p, .contact-text a {
    margin: 0;
    color: var(--dark-gray);
    text-decoration: none;
}

.contact-text a:hover {
    color: var(--primary);
}

.contact-form .form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: var(--transition);
    margin-bottom: 1.25rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: none;
}

.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

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

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.resume-section {
    margin-bottom: 40px;
}

.resume-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.experience-item, .education-item {
    margin-bottom: 20px;
}

.experience-item h4, .education-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.experience-item .date, .education-item .date {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.experience-item .company, .education-item .institution {
    font-weight: 500;
    color: var(--secondary-color);
}

.project-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.project-card .card-body {
    display: flex;
    flex-direction: column;
}

.project-card .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    margin-top: auto;
}

.project-card .btn-primary:hover {
    background-color: #2980b9; /* Darker blue */
    border-color: #2980b9;
}

footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 20px;
    text-align: center;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: static;
        height: auto;
        text-align: center;
    }
    .main-content {
        padding: 40px 20px;
    }
    .sidebar .profile-pic {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767.98px) {
    .sidebar, .main-content {
        padding: 20px;
    }
    .sidebar h1 {
        font-size: 1.8rem;
    }
    .main-content h3 {
        font-size: 1.5rem;
    }
}
