/* Custom Properties */
:root {
    --primary: #4361ee;
    --primary-light: #5a7cff;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --accent-light: #ff4da6;
    --light: #f8f9fa;
    --dark: #212529;
    --text: #333333;
    --text-light: #666666;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --footer-bg: #232946;
    --navbar-bg: rgba(255, 255, 255, 0.9);
    --gradient: linear-gradient(135deg, #4361ee, #3a0ca3, #f72585);
    --transition: all 0.3s ease-in-out;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Dark mode colors */
[data-theme="dark"] {
    --primary: #5a7cff;
    --secondary: #7b4dff;
    --accent: #ff4da6;
    --light: #121212;
    --dark: #f8f9fa;
    --text: #f0f0f0;
    --text-light: #b0b0b0;
    --bg: #1e1e1e;
    --card-bg: #2d2d2d;
    --footer-bg: #121212;
    --navbar-bg: rgba(30, 30, 30, 0.9);
    --gradient: linear-gradient(135deg, #5a7cff, #7b4dff, #ff4da6);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --border: 1px solid rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: var(--transition);
}

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

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

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

img {
    max-width: 100%;
    transition: var(--transition);
}

section {
    padding: 5rem 0;
    background-color: var(--bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
    animation: pulse 2s infinite;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: white;
    animation: none;
}

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

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    background-color: var(--navbar-bg);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: var(--border);
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--text);
}

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text);
    z-index: 1001;
}

.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text);
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 1001;
}

.theme-toggle:hover {
    background-color: var(--primary);
    color: white;
}

.theme-toggle i {
    position: absolute;
    transition: var(--transition);
}

.theme-toggle .fa-moon {
    opacity: 1;
}

.theme-toggle .fa-sun {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(170deg, var(--bg) 0%, var(--card-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), rgba(247, 37, 133, 0.2));
    top: -100px;
    right: -100px;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(247, 37, 133, 0.1));
    bottom: -200px;
    left: -200px;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    position: relative;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-text .role {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    display: block;
}

.hero-text p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    color: var(--primary);
    transition: var(--transition);
    box-shadow: var(--shadow);
    font-size: 1.2rem;
}

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

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow);
    object-fit: cover;
/*     animation: float 6s ease-in-out infinite; */
    transition: transform 0.3s;
}

/* @keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

 .profile-img:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: var(--accent);
} */

/* About Section */
.about {
    background-color: var(--bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-stats {
    margin-top: 2rem;
}

.stat-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: var(--transition);
    border: var(--border);
}

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

.stat-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Skills Section */
.skills {
    background-color: var(--card-bg);
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.skill-category {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: var(--border);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50%;
    height: 3px;
    background: var(--gradient);
}

.skill-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Removed the extra closing parenthesis */
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    font-size: 0.8rem;
}

/* Projects Section */
.projects {
    background-color: var(--bg);
    padding: 5rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: var(--border);
}

.hidden-project {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

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

.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-content {
    padding: 1.25rem;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.tech-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.project-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.project-link {
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

/* Update the existing show-more-btn styles */
.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    animation: pulse 2s infinite;
}

.show-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: none;
}

.show-more-btn i {
    transition: transform 0.3s ease;
}

.show-more-btn.active i {
    transform: rotate(180deg);
}

/* Remove the old styles that might conflict */
.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Add these to ensure the button matches your project's button styles */
.show-more-btn span {
    display: inline-block;
}

.show-more-btn:focus {
    outline: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .projects {
        padding: 3rem 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .project-img {
        height: 160px;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .show-more-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Certifications Section */
.certifications {
    background-color: var(--card-bg);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.cert-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: var(--border);
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cert-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.cert-issuer {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-top: 1rem;
    color: var(--primary);
}

/* Contact Section */
.contact {
    background-color: var(--bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

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

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--card-bg);
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

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

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 3rem 0 1.5rem;
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
    color: white;
}

.footer-logo span {
    color: var(--accent);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.footer-social:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-link {
    display: block;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-content, 
    .about-content, 
    .contact-content, 
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-img {
        grid-row: 1;
        display: flex;
        justify-content: center;
    }

    .profile-img {
        max-width: 300px;
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background-color: var(--card-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-btn {
        display: block;
    }

    .theme-toggle {
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

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

    .skill-list {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Loading Animation Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    position: relative;
    width: 150px;
    height: 150px;
    z-index: 1;
}

.loader-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    perspective: 800px;
}

.loader-line-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.loader-line-wrap:nth-child(1) {
    animation: spin 2s linear infinite;
}
.loader-line-wrap:nth-child(2) {
    animation: spin 2s linear 0.2s infinite;
}
.loader-line-wrap:nth-child(3) {
    animation: spin 2s linear 0.4s infinite;
}
.loader-line-wrap:nth-child(4) {
    animation: spin 2s linear 0.6s infinite;
}
.loader-line-wrap:nth-child(5) {
    animation: spin 2s linear 0.8s infinite;
}

.loader-line {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0.8;
}

.loader-text {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    width: 100%;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Background Particles */
.loader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0.3;
    animation: float 15s infinite linear;
}

.particle-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}
.particle-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 20s;
}
.particle-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 30%;
    animation-delay: 4s;
    animation-duration: 18s;
}
.particle-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 25%;
    animation-delay: 6s;
    animation-duration: 22s;
}

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

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-100px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
} */

/* Add this to your existing animations */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}


/* Success Modal Styles */
/* ===================== */
/* SUCCESS MODAL STYLING */
/* ===================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease;
}

.thank-you-message {
  position: relative;
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  overflow: hidden;
}

/* Confetti Background */
.confetti-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><circle cx="5" cy="5" r="0.8" fill="%234361ee"/><circle cx="2" cy="3" r="0.6" fill="%23f72585"/><circle cx="8" cy="7" r="0.6" fill="%233a0ca3"/></svg>');
  opacity: 0.08;
  pointer-events: none;
}

/* Icon Styling */
.success-icon {
  font-size: 3.25rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  animation: float 3.5s ease-in-out infinite;
}

/* Text Styling */
.success-heading {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.3;
}

.success-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Personalized Name Styling */
.thank-you-personal {
  font-weight: 600;
  display: inline-block;
}

.visitor-name {
  color: var(--accent);
  font-weight: 700;
  margin: 0 0.2rem;
}

.response-time {
  position: relative;
  display: inline-block;
}

/* Progress Bar */
.progress-container {
  margin: 2rem auto 1.5rem;
  max-width: 300px;
}

.progress-bar {
  height: 5px;
  background: rgba(67, 97, 238, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  animation: progress 24s linear forwards;
}

/* Button Styling */
.modal-close-btn {
  margin-top: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.modal-close-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

/* ================ */
/* ANIMATIONS */
/* ================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(3deg); }
  50% { transform: translateY(4px) rotate(-3deg); }
  75% { transform: translateY(-4px) rotate(2deg); }
}

@keyframes progress {
  from { width: 0%; }
  to { width: 100%; }
}

/* ================ */
/* MOBILE RESPONSIVE */
/* ================ */
@media (max-width: 576px) {
  .thank-you-message {
    padding: 1.75rem;
    border-radius: 12px;
  }
  
  .success-icon {
    font-size: 2.75rem;
    margin-bottom: 1rem;
  }
  
  .success-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .success-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .progress-container {
    margin: 1.5rem auto;
  }
  
  .modal-close-btn {
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {
  .thank-you-message {
    padding: 1.5rem;
  }
  
  .success-heading {
    font-size: 1.4rem;
  }
  
  .success-text {
    font-size: 0.95rem;
  }
}
