/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Enhanced Card Hover Effects */
.card-lift--hover {
    transition: all 0.3s ease-in-out;
    transform: translateY(0);
}

.card-lift--hover:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07) !important;
}

/* Text Selection Styling */
::selection {
    background: rgba(94, 114, 228, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(94, 114, 228, 0.3);
    color: #ffffff;
}

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

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

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

/* Animated Project Badges */
.badge-pill {
    transition: all 0.3s ease;
    transform: scale(1);
}

.badge-pill:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 6px rgba(50,50,93,0.1);
}

/* Animated Skill Icons */
.icon-shape {
    transition: all 0.3s ease;
    will-change: transform;
}

.icon-shape:hover {
    transform: rotate(360deg) scale(1.1);
}

/* Subtle Text Reveal Animation */
@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lead, .display-3 {
    animation: textReveal 1s ease-out;
}

[data-theme="dark"] {
  --bg-color: #0f0c29;
  --text-color: #e9ecef;
  --card-bg: #252f4a;
  --border-color: rgba(255,255,255,0.125);
  --heading-color: #ffffff;
  --nav-bg: rgba(26, 31, 54, 0.9);
  --shadow-color: rgba(0,0,0,0.3);
  --footer-bg: #0a0b2e;
  --footer-text: #8898aa;
  --footer-link-hover: #5e72e4;
  --footer-border: rgba(255,255,255,0.1);
  --hero-bg: #0f0c29;
}

[data-theme="dark"] body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Theme switcher button */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(94, 114, 228, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-switch:hover {
    background-color: rgba(94, 114, 228);
    transform: scale(1.1);
}

.theme-switch i {
    font-size: 18px;
    color: #fff;
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-switch {
    background-color: rgba(37, 47, 74, 0.3); 
    box-shadow: 0 2px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-switch:hover {
    background-color: rgba(37, 47, 74);
}

[data-theme="dark"] .theme-switch i {
    color: var(--text-color);
}

[data-theme="dark"] .card {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .card-header {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .display-1,
[data-theme="dark"] .display-2,
[data-theme="dark"] .display-3,
[data-theme="dark"] .display-4 {
    color: var(--heading-color) !important;
}

[data-theme="dark"] .footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .footer hr {
    border-color: var(--footer-border);
}

[data-theme="dark"] .footer .copyright {
    color: var(--footer-text);
}

[data-theme="dark"] .footer .btn-icon-only {
    border-color: var(--footer-border);
}

[data-theme="dark"] .footer .btn-icon-only:hover {
    background-color: var(--footer-link-hover);
    border-color: var(--footer-link-hover);
}

/* Button hover effect */
.theme-switch .moon-icon,
.theme-switch .sun-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

[data-theme="dark"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="dark"] .moon-icon {
    opacity: 0;
    transform: rotate(100deg);
}

[data-theme="light"] .sun-icon {
    opacity: 0;
    transform: rotate(-100deg);
}

[data-theme="light"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="dark"] .section-hero.section-shaped > .shape {
    background: #140b645d !important;
    opacity: 1;
}

/*[data-theme="dark"] .section-hero .shape.shape-style-3.shape-default span {
    background-color: rgba(57, 73, 171, 0.2) !important; 
    box-shadow: 0 0 1rem 0 rgba(57, 73, 171, 0.1);
}*/

[data-theme="dark"] .section-hero .shape.shape-style-3.shape-default .span-150 {
    background-color: rgba(30, 41, 114, 0.2); /* Bright Pink */
}

[data-theme="dark"] .section-hero .shape.shape-style-3.shape-default .span-50 {
    background-color: rgba(50, 6, 132, 0.3); /* Vivid Green */
}

[data-theme="dark"] .section-hero .shape.shape-style-3.shape-default .span-75 {
    background-color: rgba(3, 47, 81, 0.4); /* Bright Orange */
}

[data-theme="dark"] .section-hero .shape.shape-style-3.shape-default .span-100 {
    background-color: rgba(26, 36, 128, 0.589); /* Intense Red */
}

[data-theme="dark"] .fill-white {
    fill: #0f0c29 !important;
}

[data-theme="dark"] .typewrite {
    color: #4a6acc !important; /* Light gray color for better readability */
}

[data-theme="dark"] .typed-cursor {
    color: #859bb1 !important; /* Slightly muted color for the cursor */
}

[data-theme="dark"] .avatar {
    background-color: rgba(15, 12, 41);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

#profile-pic:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: rgba(15, 12, 41, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #5e72e4, #11cdef);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #11cdef, #5e72e4);
    box-shadow: 0 0 10px rgba(17, 205, 239, 0.5);
}

[data-theme="dark"]::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"]::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #252f4a, #0f0c29);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"]::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #0f0c29, #252f4a);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Enhanced Hobby Paragraph Styling */

.hobby-highlight {
    color: #252f4a;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.hobby-highlight::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #0f0c29, #7189cb);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.hobby-highlight:hover {
    color: #0f0c29;
}

.hobby-highlight:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

[data-theme="dark"] .hobby-highlight {
    color: #a0b4d5;
}

[data-theme="dark"] .hobby-highlight:hover {
    color: #c0d0e5;
}

[data-theme="dark"] .hobby-highlight::after {
    background: linear-gradient(45deg, #1a2b4a, #3a4b6a);
}

[data-theme="dark"] .hobby-highlight:hover::after {
    background: linear-gradient(45deg, #2a3b5a, #4a5b7a);
}

/* Language Proficiency Styling */
.language-proficiency {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.language-item {
    display: flex;
    align-items: center;
    background-color: rgba(37, 47, 74, 0.05);
    border-radius: 10px;
    padding: 15px;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .language-item {
    background-color: rgba(37, 47, 74, 0.2);
}

.language-flag {
    font-size: 3rem;
    margin-right: 20px;
    opacity: 0.9;
}

.language-details {
    flex-grow: 1;
}

.language-details h5 {
    margin-bottom: 10px;
    color: #252f4a;
    font-weight: 600;
}

[data-theme="dark"] .language-details h5 {
    color: #a0b4d5;
}

.proficiency-bar {
    width: 100%;
    height: 12px;
    background-color: rgba(37, 47, 74, 0.1);
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

[data-theme="dark"] .proficiency-bar {
    background-color: rgba(255, 255, 255, 0.1);
}

.proficiency-level {
    height: 100%;
    background: linear-gradient(45deg, #0f0c29, #7189cb);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.proficiency-level.full {
    background: linear-gradient(45deg, #0f0c29, #252f4a);
}

.language-description {
    color: #6c757d;
    font-size: 0.9rem;
}

[data-theme="dark"] .language-description {
    color: #a0b4d5;
}

@media (max-width: 768px) {
    .language-proficiency {
        flex-direction: column;
    }
}

/* Music Section Styling */
.music-section {
    background-color: rgba(37, 47, 74, 0.05);
    border-radius: 10px;
    padding: 20px;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .music-section {
    background-color: rgba(37, 47, 74, 0.2);
}

.music-section p {
    margin-bottom: 20px;
    color: #495057;
}

[data-theme="dark"] .music-section p {
    color: #fff;
}

.spotify-embed {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

[data-theme="dark"] .spotify-embed {
    box-shadow: 0 4px 15px rgba(255,255,255,0.05);
}

.spotify-embed iframe {
    width: 100%;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .music-section {
        margin-top: 20px;
    }
}

/* Moments Gallery Styling */
.moments-gallery {
    margin-bottom: 20px;
}

.moments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.moment-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.moment-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.moment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.moment-item:hover .moment-overlay {
    opacity: 1;
}

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

.moment-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.moment-overlay p {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.moment-item:hover {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .moments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .moments-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .moments-grid {
        grid-template-columns: 1fr;
    }
}

/* Professional Journey Timeline Styling */
.experience-timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.timeline-content {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(113, 137, 203, 0.1);
    box-shadow: 0 6px 20px rgba(113, 137, 203, 0.03);
    display: flex;
    align-items: flex-start;
}

.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(113, 137, 203, 0.1);
}

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: contain;
    border: 2px solid rgba(113, 137, 203, 0.2);
    padding: 3px;
    transition: transform 0.3s ease;
}

.timeline-content:hover .company-logo {
    transform: scale(1.1);
}

.timeline-details {
    flex-grow: 1;
}

.timeline-title h4 {
    margin-bottom: 3px;
    font-size: 1rem;
    font-weight: 600;
    color: #252f4a;
    transition: color 0.3s ease;
}

.timeline-title .company-name {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 3px;
    color: #7189cb;
    font-weight: 500;
    transition: color 0.3s ease;
}

.timeline-title .timeline-date {
    font-size: 0.75rem;
    opacity: 0.7;
}

.timeline-body ul {
    padding-left: 15px;
    margin-bottom: 0;
}

.timeline-body li {
    margin-bottom: 5px;
    line-height: 1.5;
    font-size: 0.9rem;
    color: #525f7f;
}

.experience-timeline > .col-md-8 p {
    max-width: 800px;
    margin: 10px auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

.text-center.mt-4 {
    margin-top: 15px !important;
}

.btn-primary.btn-lg {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-primary.btn-lg i {
    margin-right: 8px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .timeline-content {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .company-logo {
        margin-right: 0;
        margin-bottom: 10px;
        width: 40px;
        height: 40px;
    }

    .timeline-title {
        text-align: center;
    }
}

[data-theme="dark"] .timeline-content {
    background: rgba(37, 47, 74, 0.5);
    border-color: rgba(160, 180, 213, 0.1);
}

[data-theme="dark"] .timeline-title h4 {
    color: #fff;
}

[data-theme="dark"] .timeline-title .company-name {
    color: #7189cb;
}

[data-theme="dark"] .timeline-body li {
    color: #a0b4d5;
}

/* LinkedIn Journey Button */
.btn-primary.btn-lg {
    background-color: #0077B5;
    border-color: #0077B5;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary.btn-lg:hover {
    background-color: #005582;
    border-color: #005582;
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-primary.btn-lg i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Experience Note Styling */
.experience-timeline > .col-md-8 p {
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.6;
}

.experience-timeline p a {
    color: #7189cb;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.experience-timeline p a:hover {
    color: #252f4a;
    text-decoration: none;
}
