/*
* Portfolio Website - Prasiddha Regmi
* Custom CSS Styles - Enhanced for Mobile and Modern Design
*/

/* ===== GENERAL STYLES ===== */
:root {
    /* Main Colors */
    --primary-color: #6c63ff;
    --secondary-color: #f50057;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333;
    --gray-color: #6c757d;

    /* Additional Colors */
    --accent-color: #00bcd4;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --info-color: #2196f3;

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, #8e2de2 100%);
    --secondary-gradient: linear-gradient(135deg, var(--secondary-color) 0%, #ff4081 100%);
    --dark-gradient: linear-gradient(135deg, var(--dark-color) 0%, #1a2a38 100%);

    /* Effects */
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.2);
    --card-border-radius: 12px;
    --button-border-radius: 30px;
}

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

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-color);
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

a:hover {
    color: var(--secondary-color);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* Preloader styles removed - using dynamic content loading */

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 0 auto 30px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: var(--button-border-radius);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

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

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

.btn-primary:hover {
    background: var(--secondary-gradient);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

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

.btn-services {
    background: var(--secondary-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 35px;
    box-shadow: 0 5px 20px rgba(245, 0, 87, 0.3);
    animation: pulse-services 2s infinite;
}

.btn-services:hover {
    background: linear-gradient(135deg, #ff4081 0%, #f50057 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 0, 87, 0.4);
    color: #fff;
}

@keyframes pulse-services {
    0% {
        box-shadow: 0 5px 20px rgba(245, 0, 87, 0.3);
    }
    50% {
        box-shadow: 0 5px 25px rgba(245, 0, 87, 0.5);
    }
    100% {
        box-shadow: 0 5px 20px rgba(245, 0, 87, 0.3);
    }
}

.btn-secondary:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.btn-outline-light {
    color: #fff;
    border: 2px solid #fff;
    background: transparent;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

/* ===== NAVBAR ===== */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    background-color: transparent;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    border-bottom: none;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-brand::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #ff3366; /* Clean red color */
    border-radius: 50%;
    bottom: 8px;
    right: -10px;
}

.navbar.scrolled .navbar-brand {
    color: #333;
    font-weight: 700;
}

.navbar.scrolled .navbar-brand::after {
    background-color: #ff3366; /* Keep the red dot */
}

.navbar-toggler {
    border: none;
    padding: 0;
    outline: none;
    box-shadow: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.navbar.scrolled .navbar-toggler {
    background-color: rgba(0, 0, 0, 0.05);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 24px;
    height: 17px;
    background-image: none !important;
    position: relative;
    border-bottom: 2px solid #2c3e50;
    transition: all 300ms linear;
    display: inline-block;
}

.navbar-toggler-icon:after,
.navbar-toggler-icon:before {
    width: 24px;
    position: absolute;
    height: 2px;
    background-color: #2c3e50;
    top: 0;
    left: 0;
    content: '';
    z-index: 2;
    transition: all 300ms linear;
}

.navbar-toggler-icon:after {
    top: 8px;
}

.navbar.scrolled .navbar-toggler-icon,
.navbar.scrolled .navbar-toggler-icon:after,
.navbar.scrolled .navbar-toggler-icon:before {
    background-color: var(--dark-color);
}

.navbar-nav .nav-link {
    color: #2c3e50;
    font-weight: 500;
    padding: 10px 15px;
    position: relative;
    transition: var(--transition);
    margin: 0 5px;
    letter-spacing: 0.5px;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: #ff3366; /* Clean red color */
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
    border-radius: 3px;
}

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

.navbar-nav .nav-link.active {
    color: #2c3e50;
}

.navbar-nav .nav-link.active::after {
    width: 100%;
    background-color: #ff3366; /* Clean red color */
}

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

.navbar.scrolled .navbar-nav .nav-link::after {
    background-color: #ff3366; /* Keep red color when scrolled */
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffebee 0%, #f3e5f5 25%, #e8eaf6 50%, #e3f2fd 75%, #fce4ec 100%);
    color: #2c3e50;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 50px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/pattern.png');
    opacity: 0.1;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 100%;
    }
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #f8f9fa, transparent);
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    color: #2c3e50;
}

.hero-section h1::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.typed-text {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    display: inline-block;
    position: relative;
}

.typed-text::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    background-color: rgba(245, 0, 87, 0.3);
    bottom: 5px;
    left: 0;
    z-index: -1;
}

.hero-img {
    max-width: 90%;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    transform-origin: center bottom;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
}

.hero-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top,
        rgba(252, 228, 236, 0.9) 0%,
        rgba(243, 229, 245, 0.7) 25%,
        rgba(232, 234, 246, 0.5) 50%,
        rgba(227, 242, 253, 0.3) 75%,
        transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.hero-btns {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #2c3e50;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-scroll-down i {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* ===== ABOUT SECTION ===== */
.about-img-container {
    position: relative;
    padding: 20px;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about-img-container:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.about-img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: var(--card-border-radius);
    transform: translate(15px, 15px);
    z-index: -1;
    transition: var(--transition);
}

.about-img-container:hover::before {
    transform: translate(10px, 10px);
}

.about-img-container img {
    border-radius: var(--card-border-radius);
    transition: var(--transition);
}

.about-img-container:hover img {
    transform: scale(1.03);
}

.personal-info {
    margin-top: 30px;
    background-color: #fff;
    padding: 25px;
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
}

.info-item {
    margin-bottom: 15px;
    display: flex;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-title {
    min-width: 120px;
    font-weight: 600;
    color: var(--primary-color);
}

.info-value {
    font-weight: 500;
}

.location-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.location-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: var(--box-shadow-hover);
}

/* ===== SKILLS SECTION ===== */
.skill-item {
    margin-bottom: 30px;
    position: relative;
}

.skill-info h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-info h4 span {
    font-weight: 700;
    color: var(--primary-color);
}

.progress {
    height: 12px;
    border-radius: 30px;
    background-color: #e9ecef;
    overflow: visible;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: var(--primary-gradient);
    border-radius: 30px;
    position: relative;
    transition: width 1.5s ease-in-out;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.skills-container {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.skills-container:hover {
    box-shadow: var(--box-shadow-hover);
}

.soft-skill-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--card-border-radius);
    background-color: #fff;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.soft-skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary-gradient);
    opacity: 0.05;
    transition: var(--transition);
    z-index: -1;
}

.soft-skill-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.soft-skill-item:hover::before {
    height: 100%;
}

.soft-skill-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
    display: inline-block;
}

.soft-skill-item:hover i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.soft-skill-item h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.soft-skill-item h4::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
}

.soft-skill-item:hover h4::after {
    width: 50px;
}

.soft-skill-item p {
    font-size: 0.95rem;
    color: var(--gray-color);
}

/* ===== EXPERIENCE & EDUCATION SECTION ===== */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 100%;
    background: var(--primary-gradient);
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    border-radius: 3px;
}

.timeline-item {
    margin-bottom: 70px;
    position: relative;
    display: flex;
    justify-content: center;
}

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

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 1;
    box-shadow: 0 0 0 5px rgba(108, 99, 255, 0.2);
    transition: var(--transition);
}

.timeline-item:hover .timeline-icon {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 0 8px rgba(108, 99, 255, 0.2);
}

.timeline-content {
    width: 45%;
    padding: 30px;
    background-color: #fff;
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    transition: var(--transition);
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #fff;
    top: 20px;
    transform: rotate(45deg);
    box-shadow: var(--box-shadow);
    z-index: -1;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.timeline-content h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--primary-gradient);
    bottom: -5px;
    left: 0;
    border-radius: 2px;
}

.timeline-item:nth-child(odd) .timeline-content h3::after {
    left: auto;
    right: 0;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-date {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 15px;
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-gradient);
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content ul {
    padding-left: 20px;
    text-align: left;
}

.timeline-content ul li {
    margin-bottom: 10px;
    position: relative;
}

.timeline-content ul li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* ===== PROJECTS SECTION ===== */
.project-card {
    border-radius: var(--card-border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    background-color: #fff;
    position: relative;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow-hover);
}

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

.project-placeholder {
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
}

.dark-mode .project-placeholder {
    background: #2c3e50;
    border-color: #495057;
}

.about-placeholder {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: var(--card-border-radius);
}

.dark-mode .about-placeholder {
    background: #2c3e50;
    border-color: #495057;
}

.project-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.project-card:hover .project-img::before {
    opacity: 1;
}

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

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

.project-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-category {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.project-content {
    padding: 25px;
    position: relative;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.project-content h3::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.project-card:hover .project-content h3::after {
    width: 100%;
}

.project-content p {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    transition: var(--transition);
}

.project-links a:hover {
    transform: translateY(-3px);
}

/* Project Technologies */
.project-technologies {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.tech-title {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Load More Button */
.btn-load-more {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
    transition: var(--transition);
}

.btn-load-more:hover {
    background: var(--secondary-gradient);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

/* Hidden projects animation */
.hidden-project {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.hidden-project.show {
    opacity: 1;
    transform: translateY(0);
    display: block !important;
}

/* ===== CONTACT SECTION ===== */
.contact-info {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.contact-info:hover {
    box-shadow: var(--box-shadow-hover);
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
    transition: var(--transition);
}

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

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item .icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-right: 20px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
}

.contact-item:hover .icon {
    transform: scale(1.1) rotate(10deg);
}

.contact-item .text h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.contact-item .text p {
    margin-bottom: 0;
    color: var(--gray-color);
}

.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.contact-form:hover {
    box-shadow: var(--box-shadow-hover);
}

.contact-form .form-control {
    padding: 15px 20px;
    border-radius: var(--button-border-radius);
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    transition: var(--transition);
    font-size: 1rem;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

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

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-gradient);
    color: #fff;
    padding: 80px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/pattern.png');
    opacity: 0.05;
}

.footer h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.footer .social-links {
    margin-top: 0;
}

.footer .social-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.footer .social-link:hover {
    background: var(--primary-gradient);
    transform: translateY(-5px);
}

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

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(108, 99, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0);
    }
}

.back-to-top:hover {
    background: var(--secondary-gradient);
    color: #fff;
    transform: translateY(-5px);
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.7;
}

.theme-switcher:hover {
    transform: translateY(-5px) scale(1.1);
    opacity: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.theme-switcher.active {
    opacity: 1;
    background: var(--secondary-gradient);
}

/* Floating Action Button */
.floating-action-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.floating-action-btn:hover {
    transform: scale(1.1);
}

.floating-action-menu {
    position: fixed;
    bottom: 160px;
    right: 30px;
    z-index: 98;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(20px);
}

.floating-action-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-action-item {
    width: 40px;
    height: 40px;
    background: #fff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.floating-action-item:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

/* Date Converter Improvements */
.date-converter {
    background-color: #fff;
    padding: 25px;
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.date-converter:hover {
    box-shadow: var(--box-shadow-hover);
}

.date-converter-toggle {
    background: var(--primary-gradient);
    transition: var(--transition);
}

.date-converter-toggle:hover {
    transform: rotate(45deg);
    background: var(--secondary-gradient);
}

.date-converter-result {
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow-hover);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1199px) {
    html {
        font-size: 15px;
    }

    .hero-section h1 {
        font-size: 3.2rem;
    }

    .typed-text {
        font-size: 1.8rem;
    }
}

@media (max-width: 991px) {
    html {
        font-size: 14px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: var(--card-border-radius);
        box-shadow: var(--box-shadow);
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav .nav-link {
        color: var(--dark-color);
        padding: 12px 15px;
    }

    .navbar-nav .nav-link::after {
        bottom: 8px;
    }

    .hero-section {
        min-height: auto;
        padding: 150px 0 100px;
    }

    .hero-img {
        margin-top: 50px;
        max-width: 70%;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }

    .typed-text {
        font-size: 1.6rem;
    }

    .hero-scroll-down {
        display: none;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-icon {
        left: 30px;
        width: 50px;
        height: 50px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-content h3::after {
        left: 0;
        right: auto;
    }

    .timeline-content::before {
        display: none;
    }

    .project-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 13px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 120px 0 80px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.3rem;
    }

    .hero-section h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .typed-text {
        font-size: 1.4rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-img-container {
        margin-top: 40px;
    }

    .personal-info {
        margin-bottom: 30px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-item .icon {
        margin: 0 auto 15px;
    }

    .contact-form {
        margin-top: 30px;
    }

    .date-converter-toggle {
        top: 70px;
    }

    .date-converter {
        top: 70px;
        width: 280px;
    }

    .floating-action-btn,
    .floating-action-menu {
        display: none;
    }

    /* Make theme switcher circular on mobile */
    .theme-switcher {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
        z-index: 9999; /* Ensure it's above everything */
        border-radius: 50%;
        background: var(--secondary-gradient);
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
        opacity: 0.8;
    }

    .theme-switcher:hover {
        transform: translateY(-3px) scale(1.05);
        opacity: 1;
    }
}

@media (max-width: 575px) {
    .section-padding {
        padding: 50px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .typed-text {
        font-size: 1.2rem;
    }

    .hero-img {
        max-width: 80%;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content h4 {
        font-size: 1rem;
    }

    .timeline-date {
        font-size: 0.8rem;
        padding: 4px 12px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* ===== DARK MODE STYLES ===== */
:root.dark-mode,
.dark-mode {
    --light-color: #121a2e;
    --text-color: #e6e6e6;
    --dark-color: #0a1022;
    --gray-color: #a0a0a0;
    --primary-color: #6c63ff;
    --secondary-color: #ff3366;
    --primary-gradient: linear-gradient(135deg, #6c63ff 0%, #ff3366 100%);
    --secondary-gradient: linear-gradient(135deg, #ff3366 0%, #ff6b6b 100%);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.dark-mode {
    background-color: var(--light-color);
    color: var(--text-color);
}

.dark-mode .hero-section {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
}

.dark-mode .hero-section::before {
    opacity: 0.05;
}

.dark-mode .navbar {
    background-color: #121a2e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .navbar.scrolled {
    background-color: rgba(18, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode .navbar-brand,
.dark-mode .navbar.scrolled .navbar-brand {
    color: #fff;
}

.dark-mode .navbar-brand::after,
.dark-mode .navbar.scrolled .navbar-brand::after {
    background-color: #ff3366;
}

.dark-mode .navbar-nav .nav-link,
.dark-mode .navbar.scrolled .navbar-nav .nav-link {
    color: #fff;
}

.dark-mode .navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .navbar-toggler-icon,
.dark-mode .navbar-toggler-icon:after,
.dark-mode .navbar-toggler-icon:before,
.dark-mode .navbar.scrolled .navbar-toggler-icon,
.dark-mode .navbar.scrolled .navbar-toggler-icon:after,
.dark-mode .navbar.scrolled .navbar-toggler-icon:before {
    background-color: #fff;
}

.dark-mode .section-title {
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.dark-mode .bg-light {
    background-color: #16213e !important;
}

.dark-mode .skills-container,
.dark-mode .contact-info,
.dark-mode .contact-form,
.dark-mode .personal-info,
.dark-mode .soft-skill-item,
.dark-mode .project-card,
.dark-mode .timeline-content,
.dark-mode .date-converter,
.dark-mode .date-converter-result {
    background-color: #0f3460;
    color: var(--text-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .progress {
    background-color: #2a2a4a;
}

.dark-mode .timeline-content::before {
    background-color: #0f3460;
}

.dark-mode .timeline-content h3,
.dark-mode .contact-item .text h3,
.dark-mode .info-title {
    color: var(--primary-color);
}

.dark-mode .timeline-content ul li::before {
    color: var(--secondary-color);
}

/* Dark mode hero section */
.dark-mode .hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
}

.dark-mode .hero-img::after {
    background: linear-gradient(to top,
        rgba(26, 26, 46, 0.9) 0%,
        rgba(26, 26, 46, 0.7) 20%,
        rgba(26, 26, 46, 0.4) 40%,
        rgba(26, 26, 46, 0.2) 60%,
        transparent 100%);
}

.dark-mode .hero-section h1,
.dark-mode .typed-text {
    color: #fff;
}

.dark-mode .hero-section h1::after {
    background: #fff;
}

.dark-mode .hero-scroll-down {
    color: #fff;
}

/* ===== SERVICES PAGE STYLES ===== */

/* Services Header */
.services-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    animation: slideInFromTop 0.6s ease-out;
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.services-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.back-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-5px);
    color: white;
}

.services-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.services-title i {
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.close-button {
    background: #dc3545;
    border: 2px solid #dc3545;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 3px 15px rgba(220, 53, 69, 0.3);
}

.close-button:hover {
    background: #c82333;
    border-color: #c82333;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.5);
    color: white;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
}

.service-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Service Modals */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.service-modal-content {
    background: #fff;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.service-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.service-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.service-modal-body {
    padding: 2rem;
}

.close-btn {
    background: #dc3545;
    border: 2px solid #dc3545;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    position: absolute;
    top: 15px;
    right: 15px;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
    z-index: 10;
}

.close-btn:hover {
    background: #c82333;
    border-color: #c82333;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.5);
    color: white;
}

.service-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* Weather App Styles */
.weather-card {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.weather-header h4 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.weather-temp h2 {
    font-size: 3rem;
    margin: 0;
    font-weight: 300;
}

.weather-details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

/* Horoscope Styles */
.horoscope-card {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    color: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.horoscope-header h4 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

.zodiac-icon {
    font-size: 3rem;
}

.horoscope-text {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.horoscope-text h5 {
    color: #fff;
    margin-bottom: 1rem;
}

.horoscope-text p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.lucky-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
}

.lucky-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.lucky-item i {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.lucky-item strong {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.lucky-item .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.compatibility-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
}

.compatibility-section i {
    font-size: 1.1rem;
}

.compatibility-section .badge {
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Love Calculator Styles */
.love-result-card {
    background: linear-gradient(135deg, #ff6b9d, #ff8a80);
    color: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.love-header {
    position: relative;
}

.percentage-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff, #ffebee);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.percentage-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, #ff6b9d 0%, #ff8a80 var(--percentage, 75%), transparent var(--percentage, 75%));
    border-radius: 50%;
    mask: radial-gradient(circle at center, transparent 35px, black 36px);
    -webkit-mask: radial-gradient(circle at center, transparent 35px, black 36px);
}

.percentage-text {
    font-size: 2rem;
    font-weight: 800;
    color: #ff6b9d;
    z-index: 2;
    position: relative;
}

.couple-names {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.boy-name, .girl-name {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin: 0.25rem;
}

.love-symbol {
    font-size: 1.5rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.love-message {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.love-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
}

.stat-item {
    padding: 0.5rem;
}

.stat-item i {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.stat-item strong {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-item .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.text-pink {
    color: #ff6b9d !important;
}

/* Enhanced Date Converter Styles */
.conversion-type-selector .btn-group {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.date-input-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.conversion-result {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.conversion-success {
    text-align: center;
}

.result-header h5 {
    color: #28a745;
    font-weight: 600;
}

.conversion-display {
    margin: 1.5rem 0;
}

.date-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.original-date {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.converted-date {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.date-card-header {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.date-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.date-format {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.conversion-note .alert {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

.conversion-actions {
    margin-top: 1.5rem;
}

.conversion-error .alert {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* Conversion Result Styles */
.conversion-result {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.result-item {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
}

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

/* Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode for Services */
.dark-mode .services-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.dark-mode .back-button {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-mode .service-card {
    background: var(--card-bg-dark);
    border-color: #444;
}

.dark-mode .service-card h4 {
    color: #fff;
}

.dark-mode .service-card p {
    color: #ccc;
}

.dark-mode .service-modal-content {
    background: var(--card-bg-dark);
    color: #fff;
}

.dark-mode .conversion-result {
    background: #333;
    color: #fff;
}

.dark-mode .close-btn {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.dark-mode .close-btn:hover {
    background: #c82333;
    border-color: #c82333;
    color: white;
}

.dark-mode .lucky-item strong {
    color: rgba(255, 255, 255, 0.9);
}

.dark-mode .compatibility-section {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .love-result-card {
    background: linear-gradient(135deg, #c2185b, #e91e63);
}

.dark-mode .stat-item strong {
    color: rgba(255, 255, 255, 0.9);
}

.dark-mode .date-input-section {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .conversion-result {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .services-header-content {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .services-title {
        font-size: 1.8rem;
        position: static;
        transform: none;
        flex: 1;
        text-align: center;
    }

    .back-button span {
        display: none;
    }

    .back-button {
        padding: 10px 12px;
        min-width: 45px;
        justify-content: center;
    }

    .close-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .service-modal-content {
        margin: 10px;
        max-height: 95vh;
    }

    .service-modal-body {
        padding: 1.5rem;
    }

    .weather-main {
        flex-direction: column;
        gap: 1rem;
    }

    .weather-temp h2 {
        font-size: 2.5rem;
    }

    .close-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        top: 10px;
        right: 10px;
    }

    .percentage-circle {
        width: 100px;
        height: 100px;
    }

    .percentage-text {
        font-size: 1.5rem;
    }

    .couple-names {
        font-size: 1rem;
    }

    .boy-name, .girl-name {
        display: block;
        margin: 0.5rem 0;
    }

    .date-card {
        margin-bottom: 1rem;
    }

    .date-value {
        font-size: 1.2rem;
    }

    .conversion-actions .btn {
        margin: 0.25rem;
        width: 100%;
    }
}

/* Social Links Styling */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-item .social-links {
    margin-top: 0.5rem;
}

.contact-item .social-links .social-link {
    width: 35px;
    height: 35px;
    font-size: 1rem;
}

/* Footer Bio */
.footer-bio {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Hero Description */
.hero-description {
    font-size: 1.1rem;
    margin: 1rem 0;
    opacity: 0.9;
}

/* Dynamic Content Fallbacks */
.no-content-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.dark-mode .no-content-message {
    color: #ccc;
}

/* Dynamic Typing Animation Styles */
.typed-text {
    color: inherit;
    font-weight: normal;
    min-height: 1.5em;
    display: inline;
    text-decoration: none;
    white-space: nowrap;
}

/* Hide any cursor elements that might be generated */
.typed-cursor,
.typed-cursor--blink {
    display: none !important;
    visibility: hidden !important;
}

/* Hero section improvements */
.hero-section h2 {
    font-size: 2rem;
    margin: 1rem 0;
    min-height: 3rem;
    display: block;
    line-height: 1.2;
}

/* Fix for typed text positioning */
.typed-text {
    vertical-align: baseline;
    line-height: inherit;
}

/* Ensure typed.js elements stay inline */
.hero-section h2 .typed-text {
    display: inline;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-section h2 {
        font-size: 1.5rem;
        min-height: 2.5rem;
    }

    .typed-text {
        font-size: 1.5rem;
    }
}

.dark-mode .project-content p,
.dark-mode .soft-skill-item p,
.dark-mode .contact-item .text p {
    color: #ccc;
}

.dark-mode .project-technologies {
    border-top-color: #444;
}

.dark-mode .tech-title {
    color: var(--primary-color);
}

.dark-mode .navbar-collapse {
    background-color: rgba(18, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .navbar-nav .nav-link {
    color: #fff;
}

/* Fix for mobile dark mode */
@media (max-width: 991px) {
    .dark-mode .navbar-collapse {
        background-color: rgba(18, 26, 46, 0.98);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
}

.dark-mode .floating-action-item {
    background-color: #0f3460;
    color: #fff;
}

.dark-mode .date-converter-toggle {
    background: var(--secondary-gradient);
}

.dark-mode .overlay {
    background-color: rgba(0, 0, 0, 0.7);
}
