/* Base Styles & Theme Transitions */
html {
    scroll-padding-top: 80px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 72px;
    /* Offset for fixed-top navbar */
    letter-spacing: -0.01em;
}

.section {
    padding: 5rem 0;
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

/* Theme Toggle Switch */
.mode-switch {
    display: flex;
    align-items: center;
}

.mode-switch .form-check-input {
    cursor: pointer;
    height: 1.5em;
    width: 3em;
}

.mode-switch .form-check-label {
    cursor: pointer;
    margin-left: 0.5rem;
    display: none;
    /* Hide by default, show based on state if needed contextually, or just show both */
}

/* Show Sun in Light, Moon in Dark logic not strictly needed if we show both icons next to switch or just one. 
   The requested design usually has icons inside or next to it. 
   Let's keep it simple: Show the appropriate icon active or just show the icons next to the switch. 
   For now, let's display them conditionally to match the "switch" feel if desired, 
   OR better yet, display the one that corresponds to the UNCHECKED state (to switch TO) or just fixed icons.
   Code below makes the 'active' one visible or highlights it. 
*/
[data-bs-theme="light"] .bi-sun-fill {
    display: inline-block;
}

[data-bs-theme="light"] .bi-moon-stars-fill {
    display: none;
}

[data-bs-theme="dark"] .bi-sun-fill {
    display: none;
}

[data-bs-theme="dark"] .bi-moon-stars-fill {
    display: inline-block;
}

/* Global No-Underline */
a,
button {
    text-decoration: none !important;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    /* display: none; Removed to allow JS opacity transition to work */
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    z-index: 999;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#back-to-top:hover {
    transform: scale(1.1);
}

/* GitHub Icon Theme Awareness */
.github-icon {
    color: #333 !important;
}

[data-bs-theme="dark"] .github-icon {
    color: #fff !important;
}

/* Premium Sticky Navbar */
.navbar.sticky-top {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(var(--bs-tertiary-bg-rgb), 0.8) !important;
}

/* Animated CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
    background-color: var(--bs-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    /* Subtle border */
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10%;
    width: 100%;
    height: 100%;
    background-image: url('../img/designs/paperairplanesend.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 80%;
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
    filter: brightness(0) invert(1);
}

[data-bs-theme="dark"] .cta-section {
    background-blend-mode: soft-light;
}

/* Button & Card Utilities */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0px);
    }
}

.header-global .btn-primary {
    animation: float 4s ease-in-out infinite;
}

.header-global .btn-primary:hover {
    animation: none;
}

/* Functional Optimization Classes */
.card-img-container {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-storyset-card {
    max-height: 180px;
    width: auto;
}

.img-storyset-project {
    max-height: 150px;
    width: auto;
}

.z-index-1 {
    z-index: 1;
}

.img-collaborate {
    max-height: 320px;
    transform: scale(1.1);
}

/* Subtle border for sections */
.border-subtle-custom {
    border: 1px solid rgba(var(--bs-border-color-rgb), 0.5) !important;
}

/* Footer & Social Icons */
.footer-link {
    color: var(--bs-secondary-color);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.footer-link:hover {
    color: var(--bs-primary);
}

.social-link-icon {
    font-size: 1.25rem;
    transition: transform 0.2s;
}

.social-link-icon:hover {
    transform: scale(1.2);
}

/* Mobile Menu Animated Toggle */
.hamburger-inner {
    position: relative;
    width: 20px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Open State for Hamburger */
#mobile-menu-btn.menu-open .hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#mobile-menu-btn.menu-open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.menu-open .hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px);
}

#mobile-menu.menu-open {
    max-height: 400px;
    /* Adjust as needed */
    opacity: 1;
    transform: translateY(0);
}

/* Brand Colors */
.text-linkedin {
    color: #0077b5 !important;
}

.text-instagram {
    color: #e4405f !important;
}

.text-facebook {
    color: #1877f2 !important;
}

.text-medium {
    color: #00ab6c !important;
}

.text-behance {
    color: #1769ff !important;
}

/* Reduced CTA Size */
.cta-section-small {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}


/* Skills Summary Section Refactor */
.skills-summary-section {
    padding: 3rem 0;
    background-color: #f9fafb;
    /* gray-50 */
    transition: background-color 0.3s ease;
}

[data-bs-theme="dark"] .skills-summary-section {
    background-color: rgba(31, 41, 55, 0.5);
    /* gray-800/50 */
}

.skill-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    /* rounded-xl */
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    /* gray-100 */
    transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.skill-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-bs-theme="dark"] .skill-card {
    background-color: #1f2937;
    /* gray-800 */
    border-color: #374151;
    /* gray-700 */
}

.skill-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skill-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    /* rounded-full */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    /* text-2xl */
}

/* Icon Colors */
.skill-icon-wrapper.blue {
    background-color: #dbeafe;
    /* blue-100 */
    color: #2563eb;
    /* blue-600 */
}

[data-bs-theme="dark"] .skill-icon-wrapper.blue {
    background-color: rgba(30, 58, 138, 0.3);
    /* blue-900/30 */
    color: #60a5fa;
    /* blue-400 */
}

.skill-icon-wrapper.purple {
    background-color: #f3e8ff;
    /* purple-100 */
    color: #9333ea;
    /* purple-600 */
}

[data-bs-theme="dark"] .skill-icon-wrapper.purple {
    background-color: rgba(88, 28, 135, 0.3);
    /* purple-900/30 */
    color: #c084fc;
    /* purple-400 */
}

.skill-icon-wrapper.teal {
    background-color: #ccfbf1;
    /* teal-100 */
    color: #0d9488;
    /* teal-600 */
}

[data-bs-theme="dark"] .skill-icon-wrapper.teal {
    background-color: rgba(19, 78, 74, 0.3);
    /* teal-900/30 */
    color: #2dd4bf;
    /* teal-400 */
}

.skill-title {
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 700;
    color: #111827;
    /* gray-900 */
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

[data-bs-theme="dark"] .skill-title {
    color: #ffffff;
}

.skill-description {
    color: #4b5563;
    /* gray-600 */
    font-size: 0.875rem;
    /* text-sm */
    transition: color 0.3s ease;
}

[data-bs-theme="dark"] .skill-description {
    color: #d1d5db;
    /* gray-300 */
}


/* About Section Refactor */
.about-section {
    padding: 5rem 0;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

[data-bs-theme="dark"] .about-section {
    background-color: #111827;
    /* gray-900 */
}

.about-title {
    font-size: 1.875rem;
    /* text-3xl */
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #111827;
    /* gray-900 */
    margin-bottom: 1.5rem;
}

[data-bs-theme="dark"] .about-title {
    color: #ffffff;
}

@media (min-width: 640px) {
    .about-title {
        font-size: 2.25rem;
        /* sm:text-4xl */
    }
}

.about-subtitle {
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 700;
    color: #111827;
    /* gray-900 */
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] .about-subtitle {
    color: #ffffff;
}

.about-text {
    font-size: 1.125rem;
    /* text-lg */
    color: #4b5563;
    /* gray-600 */
    line-height: 1.625;
}

[data-bs-theme="dark"] .about-text {
    color: #d1d5db;
    /* gray-300 */
}

.about-text-small {
    color: #4b5563;
    /* gray-600 */
    line-height: inherit;
}

[data-bs-theme="dark"] .about-text-small {
    color: #d1d5db;
    /* gray-300 */
}

.about-link {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    /* blue-600 */
    font-weight: 500;
    transition: text-decoration 0.2s;
}

.about-link:hover {
    text-decoration: underline !important;
}

[data-bs-theme="dark"] .about-link {
    color: #60a5fa;
    /* blue-400 */
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-item {
    background-color: #f9fafb;
    /* gray-50 */
    border-radius: 1rem;
    /* rounded-2xl */
    padding: 2rem;
    text-align: center;
    border: 1px solid #f3f4f6;
    /* gray-100 */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-bs-theme="dark"] .stat-item {
    background-color: #1f2937;
    /* gray-800 */
    border-color: #374151;
    /* gray-700 */
}

.stat-icon {
    font-size: 2.25rem;
    /* text-4xl */
    color: #2563eb;
    /* blue-600 */
    margin-bottom: 1rem;
    display: block;
}

[data-bs-theme="dark"] .stat-icon {
    color: #60a5fa;
    /* blue-400 */
}

.stat-number {
    font-size: 1.875rem;
    /* text-3xl */
    font-weight: 700;
    color: #111827;
    /* gray-900 */
    margin-bottom: 0.5rem;
}

[data-bs-theme="dark"] .stat-number {
    color: #ffffff;
}

.stat-label {
    font-size: 0.875rem;
    /* text-sm */
    color: #6b7280;
    /* gray-500 */
}

[data-bs-theme="dark"] .stat-label {
    color: #d1d5db;
    /* gray-300 */
}

/* Education Section Refactor */
.education-section {
    padding: 4rem 0;
    background-color: #f9fafb;
    /* gray-50 */
    transition: background-color 0.3s ease;
}

[data-bs-theme="dark"] .education-section {
    background-color: #1f2937;
    /* gray-800 */
}

.section-header {
    text-align: center;
    max-width: 48rem;
    /* 3xl */
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 1.875rem;
    /* text-3xl */
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #111827;
    /* gray-900 */
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] .section-title {
    color: #ffffff;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
        /* sm:text-4xl */
    }
}

.section-description {
    font-size: 1.125rem;
    /* text-lg */
    color: #4b5563;
    /* gray-600 */
}

[data-bs-theme="dark"] .section-description {
    color: #d1d5db;
    /* gray-300 */
}

.sub-section-title {
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 700;
    text-align: center;
    color: #111827;
    /* gray-900 */
    margin-bottom: 2rem;
}

[data-bs-theme="dark"] .sub-section-title {
    color: #ffffff;
}

.edu-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    /* rounded-xl */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    /* gray-100 */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.edu-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .edu-card {
    background-color: #111827;
    /* gray-900 */
    border-color: #374151;
    /* gray-700 */
}

.edu-img-container {
    height: 12rem;
    /* h-48 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #f9fafb;
    /* gray-50 */
    border-radius: 0.5rem;
    /* rounded-lg */
    margin-bottom: 1.5rem;
}

[data-bs-theme="dark"] .edu-img-container {
    background-color: #1f2937;
    /* gray-800 */
}

.edu-title {
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 700;
    color: #111827;
    /* gray-900 */
    margin-bottom: 0.5rem;
}

[data-bs-theme="dark"] .edu-title {
    color: #ffffff;
}

.edu-meta {
    font-size: 0.875rem;
    /* text-sm */
    color: #6b7280;
    /* gray-500 */
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

[data-bs-theme="dark"] .edu-meta {
    color: #d1d5db;
    /* gray-300 */
}

.edu-text {
    font-size: 0.875rem;
    /* text-sm */
    color: #4b5563;
    /* gray-600 */
    flex-grow: 1;
}

[data-bs-theme="dark"] .edu-text {
    color: #d1d5db;
    /* gray-300 */
}

/* Projects Section Refactor */
.projects-section {
    padding: 4rem 0;
    background-color: rgba(249, 250, 251, 0.5);
    /* gray-50/50 */
    transition: background-color 0.3s ease;
}

[data-bs-theme="dark"] .projects-section {
    background-color: rgba(31, 41, 55, 0.5);
    /* gray-800/50 */
}

.project-card-container {
    background-color: #ffffff;
    border-radius: 1rem;
    /* rounded-2xl */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    /* gray-100 */
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.project-card-container:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .project-card-container {
    background-color: #1f2937;
    /* gray-800 */
    border-color: #374151;
    /* gray-700 */
}

.project-img-side {
    width: 100%;
    background-color: #eff6ff;
    /* blue-50 */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

[data-bs-theme="dark"] .project-img-side {
    background-color: rgba(30, 58, 138, 0.1);
    /* blue-900/10 */
}

.project-img-side.teal {
    background-color: #f0fdfa;
    /* teal-50 */
}

[data-bs-theme="dark"] .project-img-side.teal {
    background-color: rgba(19, 78, 74, 0.1);
    /* teal-900/10 */
}

.project-content-side {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .project-content-side {
        padding: 2rem;
    }
}

.project-title {
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 700;
    color: #111827;
    /* gray-900 */
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

[data-bs-theme="dark"] .project-title {
    color: #ffffff;
}

@media (min-width: 1024px) {
    .project-title {
        font-size: 1.5rem;
        /* @lg:text-2xl */
    }
}

.project-description {
    color: #4b5563;
    /* gray-600 */
    margin-bottom: 1.5rem;
    line-height: 1.625;
}

[data-bs-theme="dark"] .project-description {
    color: #d1d5db;
    /* gray-300 */
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag-blue {
    background-color: #dbeafe;
    color: #1e40af;
}

[data-bs-theme="dark"] .tag-blue {
    background-color: rgba(30, 58, 138, 0.3);
    color: #93c5fd;
}

.tag-purple {
    background-color: #f3e8ff;
    color: #6b21a8;
}

[data-bs-theme="dark"] .tag-purple {
    background-color: rgba(88, 28, 135, 0.3);
    color: #d8b4fe;
}

.tag-green {
    background-color: #dcfce7;
    color: #166534;
}

[data-bs-theme="dark"] .tag-green {
    background-color: rgba(20, 83, 45, 0.3);
    color: #86efac;
}

.tag-teal {
    background-color: #ccfbf1;
    color: #115e59;
}

[data-bs-theme="dark"] .tag-teal {
    background-color: rgba(19, 78, 74, 0.3);
    color: #5eead4;
}

.tag-orange {
    background-color: #ffedd5;
    color: #9a3412;
}

[data-bs-theme="dark"] .tag-orange {
    background-color: rgba(124, 45, 18, 0.3);
    color: #fdba74;
}

.tag-gray {
    background-color: #f3f4f6;
    color: #1f2937;
}

[data-bs-theme="dark"] .tag-gray {
    background-color: #374151;
    color: #d1d5db;
}

/* Work Experience Section Refactor */
.experience-section {
    padding: 4rem 0;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

[data-bs-theme="dark"] .experience-section {
    background-color: #111827;
    /* gray-900 */
}

.exp-card {
    background-color: #ffffff;
    border-radius: 1rem;
    /* rounded-2xl */
    border: 1px solid #f3f4f6;
    /* gray-100 */
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.exp-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .exp-card {
    background-color: #1f2937;
    /* gray-800 */
    border-color: #374151;
    /* gray-700 */
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.exp-logo {
    width: 3rem;
    /* w-12 */
    height: 3rem;
    /* h-12 */
    background-color: #eff6ff;
    /* blue-50 */
    border-radius: 0.75rem;
    /* rounded-xl */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    /* blue-600 */
    font-size: 1.5rem;
    /* text-2xl */
}

[data-bs-theme="dark"] .exp-logo {
    background-color: rgba(30, 58, 138, 0.2);
    /* blue-900/20 */
    color: #60a5fa;
    /* blue-400 */
}

.exp-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    /* rounded-full */
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 600;
    background-color: #dcfce7;
    /* green-100 */
    color: #166534;
    /* green-800 */
}

[data-bs-theme="dark"] .exp-badge {
    background-color: rgba(20, 83, 45, 0.3);
    /* green-900/30 */
    color: #86efac;
    /* green-300 */
}

.exp-title {
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 700;
    color: #111827;
    /* gray-900 */
}

[data-bs-theme="dark"] .exp-title {
    color: #ffffff;
}

.exp-company {
    color: #2563eb;
    /* blue-600 */
    font-weight: 500;
    margin-bottom: 0.25rem;
}

[data-bs-theme="dark"] .exp-company {
    color: #60a5fa;
    /* blue-400 */
}

.exp-period {
    font-size: 0.875rem;
    /* text-sm */
    color: #6b7280;
    /* gray-500 */
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] .exp-period {
    color: #9ca3af;
    /* gray-400 */
}

.exp-list {
    margin-top: 1rem;
    padding-left: 1.25rem;
    list-style-type: disc;
    color: #4b5563;
    /* gray-600 */
    font-size: 0.875rem;
    /* text-sm */
}

[data-bs-theme="dark"] .exp-list {
    color: #d1d5db;
    /* gray-300 */
}

.exp-list li {
    margin-bottom: 0.5rem;
}

/* CTA Section Refactor */
.cta-container {
    margin-top: 5rem;
    position: relative;
    /* mt-20 */
}

.cta-card {
    position: relative;
    border-radius: 1.5rem;
    /* rounded-3xl */
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    /* from-blue-600 to-purple-600 */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.cta-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100px 100px;
    }
}

.cta-bg-svg {
    position: absolute;
    left: -5%;
    bottom: -10%;
    width: 450px;
    height: auto;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    transform: rotate(-15deg);
}

.cta-content-wrapper {
    position: relative;
    z-index: 10;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

@media (min-width: 768px) {
    .cta-content-wrapper {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .cta-content-wrapper {
        flex-direction: row;
    }
}

.cta-text-side {
    text-align: center;
}

@media (min-width: 1024px) {
    .cta-text-side {
        width: 66.666667%;
        text-align: left;
    }
}

.cta-title {
    font-size: 1.875rem;
    /* text-3xl */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-description {
    color: #dbeafe;
    /* text-blue-100 */
    font-size: 1.125rem;
    /* text-lg */
    margin-bottom: 2rem;
    max-width: 36rem;
    /* max-w-xl */
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: #2563eb;
    background-color: #ffffff;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.cta-button:hover {
    background-color: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.cta-img-side {
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .cta-img-side {
        width: 33.333333%;
    }
}

.cta-illustration {
    width: 20rem;
    /* w-80 instead of w-64 */
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-illustration:hover {
    transform: scale(1.1) rotate(2deg);
}

/* Project Filter Buttons */
.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #4b5563;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .filter-btn {
    background-color: #1f2937;
    border-color: #374151;
    color: #d1d5db;
}

.filter-btn:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
    transform: translateY(-1px);
}

[data-bs-theme="dark"] .filter-btn:hover {
    background-color: #374151;
    border-color: #4b5563;
    color: #ffffff;
}

.filter-btn.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.filter-btn.active:hover {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
    color: #ffffff;
}

/* Footer Section Refactor */
.footer-section {
    background-color: #f9fafb;
    /* gray-50 */
    border-top: 1px solid #e5e7eb;
    /* gray-200 */
    padding-top: 4rem;
    padding-bottom: 2rem;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .footer-section {
    background-color: #030712;
    /* gray-950 */
    border-color: #1f2937;
    /* gray-800 */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand {
    text-align: center;
}

@media (min-width: 1024px) {
    .footer-brand {
        text-align: left;
    }
}

.footer-brand-name {
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 700;
    color: #111827;
    /* gray-900 */
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] .footer-brand-name {
    color: #ffffff;
}

.footer-brand-desc {
    color: #4b5563;
    /* gray-600 */
    font-size: 0.875rem;
    /* text-sm */
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

[data-bs-theme="dark"] .footer-brand-desc {
    color: #9ca3af;
    /* gray-400 */
}

.footer-heading {
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 600;
    color: #111827;
    /* gray-900 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] .footer-heading {
    color: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: #4b5563;
    /* gray-600 */
    font-size: 0.875rem;
    /* text-sm */
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-link i {
    width: 1.25rem;
    /* Fixed width for icons */
    margin-right: 0.75rem;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .footer-link {
    color: #9ca3af;
    /* gray-400 */
}

.footer-link:hover {
    color: #2563eb;
    /* blue-600 */
    transform: translateX(4px);
}

[data-bs-theme="dark"] .footer-link:hover {
    color: #60a5fa;
    /* blue-400 */
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f3f4f6;
    /* gray-100 */
    text-align: center;
}

[data-bs-theme="dark"] .footer-bottom {
    border-color: #1f2937;
    /* gray-800 */
}

.footer-copyright {
    color: #6b7280;
    /* gray-500 */
    font-size: 0.875rem;
    /* text-sm */
}

[data-bs-theme="dark"] .footer-copyright {
    color: #9ca3af;
    /* gray-400 */
}

/* Theme Toggle Refinement */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch-pill {
    position: relative;
    width: 3.5rem;
    /* w-14 equivalent */
    height: 1.75rem;
    /* h-7 equivalent */
    background-color: #f3f4f6;
    /* gray-100 */
    border: 1px solid #e5e7eb;
    /* gray-200 */
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 2px;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

[data-bs-theme="dark"] .theme-switch-pill {
    background-color: #374151;
    /* gray-700 */
    border-color: #4b5563;
    /* gray-600 */
}

.theme-switch-circle {
    width: 1.25rem;
    /* w-5 equivalent */
    height: 1.25rem;
    /* h-5 equivalent */
    background-color: #ffffff;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

[data-bs-theme="dark"] .theme-switch-circle {
    background-color: #1f2937;
    /* gray-800 */
}

#theme-mode:checked+.theme-switch-pill .theme-switch-circle {
    transform: translateX(1.75rem);
    /* Adjust based on pill width and padding */
}

.theme-switch-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-switch-icon.sun {
    color: #f59e0b;
    /* yellow-500 */
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-switch-icon.moon {
    color: #60a5fa;
    /* blue-400 */
    opacity: 0;
    transform: scale(0) rotate(-90deg);
}

#theme-mode:checked+.theme-switch-pill .theme-switch-icon.sun {
    opacity: 0;
    transform: scale(0) rotate(90deg);
}

#theme-mode:checked+.theme-switch-pill .theme-switch-icon.moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}