/* Variables and Base Styling */

:root {
    --primary: #2d46b9;
    --accent: #00d9ff;
    --dark: #121212;
    --light: #f9f9f9;
    --gray: #888888;
    --dark-gray: #333333;
    --light-gray: #e0e0e0;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gradient: linear-gradient(45deg, #2d46b9, #00d9ff);
    --text-gradient: linear-gradient(45deg, #00d9ff, #2d46b9);
    --glow: 0 0 10px rgba(0, 217, 255, 0.6), 0 0 20px rgba(0, 217, 255, 0.4), 0 0 30px rgba(0, 217, 255, 0.2);
}


/* Dark Theme Colors */
[data-theme="dark"] {
    --primary: #4d66d9;
    --light: #121212;
    --dark: #f9f9f9;
    --gray: #aaaaaa;
    --dark-gray: #e0e0e0;
    --light-gray: #333333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 100px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    display: inline-block;
}

.section-header .accent {
    color: var(--accent);
}

.section-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.section-underline:before {
    content: '';
    position: absolute;
    width: 120px;
    height: 1px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Cursor Follower */
.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    z-index: 9999;
    opacity: 0.7;
    display: none; /* Will be shown with JS */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(249, 249, 249, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 5%;
    background-color: rgba(249, 249, 249, 0.98);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .navbar {
    background-color: rgba(18, 18, 18, 0.95);
}

[data-theme="dark"] .navbar.scrolled {
    background-color: rgba(18, 18, 18, 0.98);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-shape {
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--accent);
    transform: rotate(30deg);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 120px;
}

.hero-content {
    width: 50%;
    padding-right: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.glowing-text {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.glowing-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    color: var(--accent);
    filter: blur(10px);
    opacity: 0.8;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% {
        filter: blur(5px);
        opacity: 0.5;
    }
    100% {
        filter: blur(10px);
        opacity: 0.8;
    }
}

.typewriter {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    height: 1.5em;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--dark);
    animation: blink 1s infinite;
    margin-left: 5px;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--gray);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
}

.primary-btn {
    background: var(--gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(45, 70, 185, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 70, 185, 0.4);
}

.secondary-btn {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--accent);
}

.secondary-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    color: var(--dark);
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-icon:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-5px);
}

.hero-image {
    width: 45%;
    position: relative;
}

.shape-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphing 10s infinite alternate;
    z-index: -1;
}

@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.profile-img {
    border-radius: 20px;
    box-shadow: var(--glow);
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* About Section */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--glow);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.experience-badge .years {
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-align: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 25px;
    color: var(--gray);
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    color: var(--accent);
    font-size: 1.5rem;
}

.info-item h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.info-item p {
    margin-bottom: 0;
    color: var(--gray);
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.skill-category h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: var(--dark);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.skill-item {
    background-color: var(--dark);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--glow);
    transition: var(--transition);
    text-align: center;
}

[data-theme="dark"] .skill-item {
    background-color: var(--light);
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.skill-item h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.skill-progress {
    height: 8px;
    background-color: var(--accent);
    border-radius: 4px;
    position: relative;
    margin-top: 10px;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    background: var(--gradient);
    position: relative;
    transition: width 1.5s ease-in-out;
}

.progress-text {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    background: transparent;
    color: var(--dark);
    font-family: inherit;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    background-color: var(--dark);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--glow);
    transition: var(--transition);
}

[data-theme="dark"] .project-card {
    background-color: var(--light);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--accent);
    color: white;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-info p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    padding: 5px 10px;
    background-color: var(--light-gray);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--dark);
}

.view-more {
    text-align: center;
    margin-top: 40px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background-color: var(--light);
    padding: 40px 25px;
    border-radius: 15px;
    box-shadow: var(--glow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .service-card {
    background-color: var(--light);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--gradient);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient);
    color: white;
    transform: rotateY(360deg);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-link {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--accent);
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-gray);
    position: relative;
}

[data-theme="dark"] .testimonials {
    background-color: var(--light);
}

.testimonial-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial {
    min-width: 100%;
    padding: 30px;
    background-color: var(--light);
    border-radius: 15px;
    box-shadow: var(--glow);
    position: relative;
}

[data-theme="dark"] .testimonial {
    background-color: var(--light);
}

.quote-icon {
    position: absolute;
    top: 2px;
    left: 20px;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--dark);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark);
}

[data-theme="dark"] .control-btn {
    background: var(--dark-gray);
    color: var(--light);
}

.control-btn:hover {
    background: var(--gradient);
    color: white;
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    width: 25px;
    border-radius: 10px;
    background: var(--gradient);
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--dark);
    margin-bottom: 30px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-content p {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--dark);
}

.social-link:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    background-color: var(--light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--glow);
}

[data-theme="dark"] .contact-form {
    background-color: var(--light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background-color: var(--light);
    color: var(--dark);
    font-family: inherit;
    transition: var(--transition);
}

[data-theme="dark"] .form-group input, [data-theme="dark"] .form-group textarea {
    background-color: var(--dark);
    border-color: var(--dark-gray);
    color: var(--light);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--light);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--dark);
    padding: 80px 5% 30px;
}

[data-theme="dark"] .footer {
    background-color: #0a0a0a;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.footer-logo p {
    color: var(--accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.footer-links a {
    color: var(--dark);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-newsletter p {
    color: var(--accent);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    height: 50px;
}

.newsletter-form input {
    flex: 1;
    padding: 0 15px;
    border: none;
    border-radius: 8px 0 0 8px;
    background-color: var(--dark-gray);
    color: var(--light);
    font-family: inherit;
}

.newsletter-form button {
    width: 50px;
    border: none;
    border-radius: 0 8px 8px 0;
    background: var(--gradient);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-credits i {
    color: #865bfc;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    section {
        padding: 80px 5%;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    
    .hero-content, .hero-image {
        width: 100%;
        padding-right: 0;
    }
    
    .hero-buttons, .social-icons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .skills-grid, .projects-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--light);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: var(--transition);
        z-index: 999;
    }
    
    [data-theme="dark"] .nav-links {
        background-color: var(--light);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .skills-grid, .projects-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 1s ease forwards;
}

[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

[data-theme="dark"] .page-loader {
    background-color: var(--light);
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s infinite linear;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}
