:root {
    /* Light theme variables */
    --bg-primary-light: #FFFFFF;
    --bg-secondary-light: #F5F9FF;
    --text-primary-light: #0A192F;
    --text-secondary-light: #2E4057;
    --accent-light: #FF7B35;
    --accent-light-hover: #E56A27;
    --sidebar-light: #0F172A;

    /* Dark theme variables */
    --bg-primary-dark: #0F172A;
    --bg-secondary-dark: #1E293B;
    --text-primary-dark: #E2E8F0;
    --text-secondary-dark: #94A3B8;
    --accent-dark: #FF7B35;
    --accent-dark-hover: #E56A27;
    --sidebar-dark: #0F172A;

    /* Common variables */
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --max-content-width: 1200px;
    --content-padding: 30px;

    /* New blue accent color */
    --accent-blue: rgba(59, 130, 246, 0.9);
    --accent-blue-hover: rgba(37, 99, 235, 0.9);

    /* WhatsApp green */
    --whatsapp-green: #25D366;
    --whatsapp-green-hover: #128C7E;
}

/* Default to light theme */
:root {
    --bg-primary: var(--bg-primary-light);
    --bg-secondary: var(--bg-secondary-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --accent: var(--accent-light);
    --accent-hover: var(--accent-light-hover);
    --sidebar: var(--sidebar-light);
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: var(--bg-primary-dark);
    --bg-secondary: var(--bg-secondary-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --accent: var(--accent-dark);
    --accent-hover: var(--accent-dark-hover);
    --sidebar: var(--sidebar-dark);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.container {
    display: flex;
    min-height: 100vh;
}


/* New Animated Loader with Shadow */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.animated-loader {
    width: 60px;
    height: 60px;
    position: relative;
    margin-bottom: 2rem;
}

.loader-circle {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.438);
    border-top: 4px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.loader-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 123, 53, 0.1);
    border-top: 4px solid var(--accent-blue);
    border-radius: 50%;
    animation: spinReverse 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes bounce {

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

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

.loading-text {
    margin-top: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    animation: bounce 2s infinite;
}

/* Interactive Background with Parallax Effect - Faster Animation */
.interactive-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
    /* Faster animation */
}

.bg-element:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--accent-blue);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.bg-element:nth-child(2) {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 70%;
    left: 80%;
    animation-delay: -3s;
    /* Reduced delay for faster animation */
}

.bg-element:nth-child(3) {
    width: 250px;
    height: 250px;
    background: var(--accent-blue);
    top: 30%;
    left: 75%;
    animation-delay: -6s;
    /* Reduced delay for faster animation */
}

.bg-element:nth-child(4) {
    width: 150px;
    height: 150px;
    background: var(--accent);
    top: 60%;
    left: 10%;
    animation-delay: -9s;
    /* Reduced delay for faster animation */
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-30px, 20px) rotate(5deg);
    }

    /* Increased movement */
    50% {
        transform: translate(15px, -25px) rotate(-5deg);
    }

    /* Increased movement */
    75% {
        transform: translate(20px, 15px) rotate(3deg);
    }

    /* Increased movement */
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background-color: var(--sidebar);
    color: white;
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    z-index: 1000;
    overflow-y: auto;

}

::-webkit-scrollbar {
    width: 7px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    /* Changed to blue color */
    border-radius: 10px;
}

.sidebar-header {
    text-align: center;
}

.avatar {
    width: 160px;
    /* Increase from 120px */
    height: 160px;
    /* Increase from 120px */
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-blue);
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(93, 140, 241, 0.938);
}

.name {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
    white-space: nowrap;
}

.tagline {
    font-size: 0.9rem;
    color: #CBD5E1;
    margin-bottom: 2rem;
}

.nav-links {
    list-style: none;
    margin: 2rem 0;
    text-align: left;

}

.nav-links li {
    margin-bottom: 0.8rem;
}

.nav-links a {
    color: #E5E7EB;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: var(--transition);
}

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

.sidebar-social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.sidebar-social-icons a {
    color: #7dd3fc;
    /* Light blue color */
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-social-icons a:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(125, 211, 252, 0.5);
    /* Light blue shadow */
    background-color: rgba(125, 211, 252, 0.1);
}

/* WhatsApp Button */
.whatsapp-button {
    background: var(--whatsapp-green);
    /* WhatsApp green */
    border: none;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem auto 0;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    width: 100%;
}

.whatsapp-button:hover {
    background: var(--whatsapp-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--whatsapp-green);
    /* Green shadow */
}


/* Sidebar Footer Styles */
.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer .footer-content {
    text-align: center;
    margin-bottom: 1rem;
}

.sidebar-footer .copyright {
    color: #94A3B8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.sidebar-footer hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 0.5rem 0;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem var(--content-padding);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section {
    margin-bottom: 6rem;
    max-width: var(--max-content-width);
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;

}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-blue);
    border-radius: 2px;

}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2rem;
    
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.1em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align:justify;
    padding-right:200px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

/* Improved button styles */
.btn {
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--accent-blue);
    background-color: var(--accent-blue-hover);
}

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

.btn-secondary:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: justify;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-secondary);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    transition: all 0.4s ease;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--accent-blue-hover);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.service-card .btn {
    align-self: center;
    margin-top: auto;
}

/* Experience Section - Updated Layout */
.experience-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--accent-blue);
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-blue);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-role {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-desc ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.timeline-desc li {
    margin-bottom: 0.5rem;
    text-align: justify;    
}

/* Additional content for experience section */
.experience-sidebar {
    background-color: var(--bg-secondary);
    padding: 2rem;
    margin-right:30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.skills-list {
    list-style: none;
}

.skills-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-list i {
    color: var(--accent-blue);
}

/* Testimonials Section - Fixed Layout */
/* Testimonials Section - Fixed Layout */
/* Testimonials Section - Fixed Layout */
.testimonials-container {
    position: relative;
    height: 280px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
    padding: 0 15px;
}

.testimonial-track {
    display: flex;
    position: absolute;
    left: 15px;
    top: 0;
    transition: transform 0.8s ease;
    /* Slower transition for better effect */
    width: calc(100% - 30px);
    gap: 2rem;
    /* Added gap between cards instead of margin-right */
}

.testimonial-card {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    position: relative;
    width: 100%;
    /* Full width of container */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    height: 280px;
    box-sizing: border-box;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -1rem;
    left: 1rem;
    color: rgba(255, 153, 0, 0.966);
    font-family: serif;
}

.testimonial-content {
    padding-top: 30px;
    flex-grow: 1;
    overflow: hidden;
}

.testimonial-text {
    padding-top: 50px;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: break-word;
    hyphens: auto;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
    flex-wrap: wrap;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid var(--accent-blue);
}

.author-info h4 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.author-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.stars {
    color: #FFD700;
    margin-left: auto;
    font-size: 1rem;
}



/* Mobile styles for centered stars */
/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-item:hover::before {
    transform: scaleX(1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

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

.contact-item:hover .contact-icon {
    background-color: var(--accent-blue-hover);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 5px 15px var(--accent-blue);
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-form {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--text-secondary);
    border-radius: var(--border-radius);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue);
}

/* Animated focus effect */
.form-group input:focus,
.form-group textarea:focus {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.1);
    }

    100% {
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    }
}

.form-group .error {
    color: #ff3860;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
}

/* Loading button state */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    color: var(--text-secondary);
    margin-top: 4rem;
    width: 100%;
    max-width: var(--max-content-width);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

footer hr {
    width: 100%;
    margin: 2rem auto;
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #00aaff, transparent);
    opacity: 0.3;
}

/* Floating Theme Toggle */
.floating-theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 999;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-theme-toggle:hover {
    transform: translateY(-5px) rotate(15deg);
    box-shadow: 0 8px 20px var(--accent-blue);
    background-color: var(--accent-blue-hover);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.modal-title {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    font-size: 1.8rem;
}

/* Center aligned form elements */
.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.modal-text {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-btn {
    margin-top: 1.5rem;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--sidebar);
    padding: 1rem;
    z-index: 1001;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.mobile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 0.5px solid var(--accent-blue);
}

.mobile-name {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
}

.hamburger {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.hamburger:hover {
    color: var(--accent-blue);
    transform: scale(1.1);
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--sidebar);
    padding: 2rem 1.5rem;
    z-index: 1002;
    transition: var(--transition);
    overflow-y: auto;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
}

.mobile-sidebar.active {
    left: 0;
}

.close-sidebar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-sidebar:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-left: 240px;
        padding: 2rem var(--content-padding);
    }

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar::-webkit-scrollbar {
        width: 7px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: var(--accent-blue);
        /* Changed to blue color */
        border-radius: 10px;

    }
}

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

    .sidebar {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding: 5rem var(--content-padding) 2rem;
    }

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

    .hero p {
        /* Adjust this value as needed */
        /* text-align: left; */
        
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

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

    .testimonials-container {
        height: 450px;
        padding: 0 10px;
    }

    .testimonial-track {
        left: 10px;
        width: calc(100% - 20px);
        gap: 1.5rem;
        /* Reduced gap for mobile */
    }

    .testimonial-card {
        padding: 1.5rem 1rem;
        min-height: 380px;
    }

    .testimonial-card::before {
        font-size: 3rem;
        top: -0.5rem;
        left: 0.5rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
        padding-top: 15px;
        text-align: center;
    }

    .stars {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    .testimonial-author {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

    .testimonial-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .author-info {
        width: 100%;
    }

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

@media (max-width: 500px) {
    .main-content {
        padding: 5rem 1rem 2rem;
    }

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

    .hero h1 {
        font-size: 4rem;
    }
    .hero p{
    text-align:justify;
    padding-right:25px;
    padding-left: 5px;
    }
    .contact-form {
        padding: 1.5rem;
    }

    .experience-sidebar{
        margin-right:20px;
        margin-left: 20px;
    }

    .testimonials-container {
        height: 390px;
        border-radius: 20px;
    }

    .testimonial-track {
        left: 5px;
        width: calc(100% - 10px);
        gap: 1rem;
        /* Further reduced gap for very small screens */
    }

    .testimonial-card {
        min-height: 420px;
        padding: 1.2rem 0.8rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }


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

    .modal {
        padding: 1.5rem;
    }
}