/* Base Styles */
:root {
    --primary-color: #980e37;
    --secondary-color: #011530;
    --dark-color: #47001b;
    --light-color: #5e0e2ba1;
    --text-color: #fefffa;
    --text-light: #e9ebee;
    --bg-color: #2a0d17;
    --card-bg: rgba(27, 38, 59, 0.8);
    --shadow: 0 5px 15px rgba(174, 172, 172, 0.3);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --glass-bg: rgba(224, 225, 221, 0.2);
    --glass-border: 1px solid rgba(224, 225, 221, 0.1);
    --glass-shadow: 0 4px 30px rgba(243, 240, 240, 0.1);
    --glass-blur: blur(10px);
}

[data-theme="dark"] {
    --primary-color: #f8fafb;
    --secondary-color: #c7cdd3;
    --dark-color: #0d1b2a;
    --light-color: #1b263b;
    --text-color: #c9c8c8;
    --text-light: #b8c2d1;
    --bg-color: #0d1b2a;
    --card-bg: rgba(27, 38, 59, 0.8);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(27, 38, 59, 0.5);
    --glass-border: 1px solid rgba(224, 225, 221, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: capitalize;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(65, 90, 119, 0.3);
}

.primary-btn:hover {
    background-color: #3a4f6a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(65, 90, 119, 0.4);
}

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

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-3px);
}

.small-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    color: var(--text-color);
}

.section-title span {
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--text-light);
}

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

.loader {
    position: relative;
    width: 120px;
    height: 90px;
    margin: 0 auto;
}

.box {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    animation: animate 2s linear infinite;
    border-radius: 3px;
}

.box:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.box:nth-child(2) {
    top: 0;
    right: 0;
    animation-delay: 0.5s;
}

.box:nth-child(3) {
    bottom: 0;
    left: 0;
    animation-delay: 1s;
}

.shadow {
    position: absolute;
    width: 50px;
    height: 5px;
    background: #000;
    opacity: 0.1;
    border-radius: 50%;
    bottom: -10px;
    animation: shadow 2s linear infinite;
}

.shadow:nth-child(4) {
    left: 0;
    animation-delay: 0s;
}

.shadow:nth-child(5) {
    right: 0;
    animation-delay: 0.5s;
}

.shadow:nth-child(6) {
    left: 0;
    bottom: -60px;
    animation-delay: 1s;
}

@keyframes animate {
    17% {
        border-bottom-right-radius: 3px;
    }
    25% {
        transform: translateY(9px) rotate(22.5deg);
    }
    50% {
        transform: translateY(18px) scale(1, 0.9) rotate(45deg);
        border-bottom-right-radius: 40px;
    }
    75% {
        transform: translateY(9px) rotate(67.5deg);
    }
    100% {
        transform: translateY(0) rotate(90deg);
    }
}

@keyframes shadow {
    50% {
        transform: scale(1.2, 1);
    }
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 999;
}

.theme-switch {
    display: none;
}

.theme-label {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    background-color: var(--dark-color);
    border-radius: 50px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.theme-label i {
    position: absolute;
    color: var(--primary-color);
    font-size: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
}

.theme-label .fa-sun {
    left: 7px;
}

.theme-label .fa-moon {
    right: 7px;
}

.theme-ball {
    position: absolute;
    width: 22px;
    height: 22px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 4px;
    left: 4px;
    transition: transform 0.3s ease;
}

.theme-switch:checked + .theme-label .theme-ball {
    transform: translateX(30px);
}

/* Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
}

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

.nav-menu {
    display: flex;
}

.nav-item {
    margin-left: 3rem;
}

.nav-link {
    font-size: 1.6rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-color);
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Home Section */
.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 8rem;
    padding-left: 5%;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 0, 12, 0.8);
}

.home-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.home-text {
    flex: 1;
    padding-right: 3rem;
}

.home-image {
    /* flex: 1;
    display: flex; */
    justify-content: center;
    padding-right: 10%;
    border-radius: 50%;

}

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

.title {
    font-size: 5.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--text-color);
}

.typing-text {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.typed-text {
    color: var(--primary-color);
    font-weight: 600;
}

.description {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    max-width: 600px;
    color: var(--text-light);
}

.home-buttons {
    display: flex;
    margin-top: 3rem;
}

.image-wrapper {
    position: relative;
    max-width: 400px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
    border-radius: 50%;
    z-index: -1;
    animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

.scroll-down {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    font-size: 1.4rem;
    animation: bounce 2s infinite;
}

.scroll-down i {
    margin-top: 0.5rem;
    font-size: 1.8rem;
}

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

/* About Section */
.about-section {
    padding: 1% 0%;
    background-color: var(--bg-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.image-container {
    position: relative;
    max-width: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.shape-blob {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 30% 50% 20% 40%;
    opacity: 0.1;
    z-index: -1;
    animation: blob 8s ease-in-out infinite;
}

@keyframes blob {
    0%, 100% {
        border-radius: 30% 50% 20% 40%;
        transform: rotate(0deg);
    }
    50% {
        border-radius: 50% 30% 40% 20%;
        transform: rotate(180deg);
    }
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.about-text p {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-item span {
    font-weight: 600;
    margin-right: 1rem;
    color: var(--primary-color);
}

.info-item p {
    margin: 0;
    color: var(--text-color);
}

.skills h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-info span {
    font-size: 1.4rem;
    color: var(--text-color);
}

.skill-bar {
    height: 8px;
    background-color: var(--dark-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    position: relative;
    animation: progress 1.5s ease-in-out forwards;
}

@keyframes progress {
    from {
        width: 0;
    }
}

.html-css {
    width: 85%;
}

.javascript {
    width: 80%;
}

.ui-ux {
    width: 80%;
}

.react {
    width: 80%;
}
.canva{
    width: 85%;
}

.about-buttons {
    display: flex;
    margin-top: 3rem;
}

/* Projects Section */
.projects-section {
    padding: 10rem 0;
    background-color: var(--light-color);
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: var(--card-bg);
}

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

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.project-overlay p {
    color: var(--text-light);
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-align: center;
}

.project-link {
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
}

.project-link:hover {
    background-color: var(--secondary-color);
}

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal-content {
    background-color: var(--card-bg);
    width: 90%;
    max-width: 900px;
    border-radius: var(--border-radius);
    padding: 3rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

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

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Services Section */
.services-section {
    padding: 10rem 0;
    background-color: var(--bg-color);
}

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

.service-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    color: var(--text-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background-color: rgba(65, 90, 119, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: rgba(224, 225, 221, 0.2);
}

.service-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    color: var(--text-color);
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card p {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-card:hover p {
    color: rgba(224, 225, 221, 0.8);
}

.service-hover {
    height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover .service-hover {
    height: auto;
}

/* Testimonials Section */
.testimonials-section {
    padding: 10rem 0;
    background-color: var(--light-color);
}

.testimonials-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: var(--transition);
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-content {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 3rem;
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text p {
    font-size: 1.6rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.testimonial-text h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.testimonial-text span {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    gap: 2rem;
}

.testimonial-prev,
.testimonial-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--secondary-color);
}

.testimonial-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.theme-switch {
    display: none;
}

.theme-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60px;
    height: 30px;
    background: var(--toggle-bg);
    border-radius: 50px;
    padding: 5px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.theme-label i {
    font-size: 16px;
    color: var(--toggle-icon);
}

.theme-ball {
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--toggle-ball);
    border-radius: 50%;
    left: 5px;
    transition: transform 0.3s ease;
}

.theme-switch:checked + .theme-label .theme-ball {
    transform: translateX(30px);
}

/* Enhanced header styles with better visual separation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(var(--header-bg-rgb), 0.95); /* Added opacity */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1); /* Subtle border */
    backdrop-filter: blur(8px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(8px); /* For Safari */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

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

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: var(--text-color);
    transition: all 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
    .theme-toggle {
        top: 15px;
        right: 15px;
    }
    
    .theme-label {
        width: 50px;
        height: 25px;
    }
    
    .theme-ball {
        width: 18px;
        height: 18px;
    }
    
    .theme-switch:checked + .theme-label .theme-ball {
        transform: translateX(25px);
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(var(--header-bg-rgb), 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
        border-top: 1px solid rgba(var(--primary-color-rgb), 0.1);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1.5rem 0;
    }
    
    .nav-link::after {
        display: none;
    }
}
.testimonials-section {
padding: 80px 0;
background: #210f14;
}

.section-header {
text-align: center;
margin-bottom: 50px;

}

.section-title {
font-size: 40px;
color: #f6eeef;
}

.section-title span {
color: #f8f6f6;
}

.section-subtitle {
color: #060606;
font-size: 1.1rem;
}

.testimonials-container {
max-width: 800px;
margin: 0 auto;
position: relative;
}

.testimonial-slider {
display: flex;
overflow: hidden;
padding: 20px 0;
}

.testimonial-slide {
min-width: 100%;
transition: transform 0.5s ease;
}

.testimonial-content {
background: #ede8ea;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
padding: 30px;
margin: 0 20px;
display: flex;
align-items: center;
height: 100%;
}

.testimonial-img {
width: 120px;
height: 120px;
margin-right: 30px;
display: flex;
align-items: center;
justify-content: center;
background: white;
padding: 15px;
border-radius: 8px;
box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.testimonial-img img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}

.testimonial-text {
flex: 1;
}

.testimonial-text p {
font-size: 22px;
color: #444;
line-height: 1.6;
margin-bottom: 10px;
font-style: italic;
}

.testimonial-text h4 {
font-size: 18px;
color: #63022c;
margin-bottom: 5px;
}

.testimonial-text span {
display: block;
color: #0e0e0e;
font-size: 20px;
}

.testimonial-controls {
display: flex;
justify-content: center;
align-items: center;
margin-top: 30px;
}

.testimonial-prev,
.testimonial-next {
background: #84093c;
color: white;
border: none;
width: 40px;
height: 40px;
border-radius: 50%;
cursor: pointer;
margin: 0 15px;
transition: all 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
background: #710e2d;
transform: scale(1.1);
}

.testimonial-dots {
display: flex;
}

.dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: #ddd;
margin: 0 5px;
cursor: pointer;
transition: all 0.3s ease;
}

.dot.active {
background: #56052c;
transform: scale(1.2);
}



/* Compact Footer */
.footer {
    padding: 30px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-links h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Home Section Social Links */
.home-social {
    display: flex;
    margin-top: 20px;
    gap: 15px;
}

.home-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: rgb(53, 3, 31);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.home-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
/* Contact Section */
.contact-section {
    padding: 10rem 0;
    background-color: var(--bg-color);
}

.contact-container {
    display: flex;
    gap: 5rem;
}

.contact-info {
    flex: 1;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(65, 90, 119, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-text p {
    font-size: 1.4rem;
    color: var(--text-light);
}

.contact-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

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

.contact-social a:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 1px solid var(--dark-color);
    border-radius: var(--border-radius);
    font-size: 1.6rem;
    font-family: inherit;
    background-color: var(--light-color);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

#form-message {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 1.4rem;
    display: none;
}

#form-message.success {
    display: block;
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

#form-message.error {
    display: block;
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--text-color);
    padding: 8rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo .logo {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.footer-logo p {
    font-size: 1.4rem;
    color: var(--text-light);
    line-height: 1.8;
}

.footer-links h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--text-color);
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-links ul li a {
    font-size: 1.4rem;
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-newsletter h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--text-color);
}

.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-newsletter p {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1.4rem;
    background-color: rgba(224, 225, 221, 0.1);
    color: var(--text-color);
}

.newsletter-form input::placeholder {
    color: var(--text-light);
}

.newsletter-form button {
    width: 50px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(224, 225, 221, 0.1);
    text-align: center;
    font-size: 1.4rem;
    color: var(--text-light);
    position: relative;
}

.back-to-top {
    position: absolute;
    right: 2rem;
    top: -2.5rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(65, 90, 119, 0.3);
}

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

/* Education Section */
.education-section {
    padding: 80px 0;
    background: var(--light-color);
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    width: 120px;
    padding: 5px 10px;
    background: var(--primary-color);
    color: var(--text-color);
    border-radius: 20px;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -15px;
    z-index: 3;
    font-weight: 600;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s ease;
    color: var(--text-color);
}

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

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -15px;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent var(--card-bg);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -15px;
    border-width: 10px 15px 10px 0;
    border-color: transparent var(--card-bg) transparent transparent;
}

.timeline-card {
    padding: 20px;
}

.timeline-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-card h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 16px;
}

.education-year {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}
.education-grade {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 14px;
    margin-bottom: 10px;
}

.education-badge {
    display: flex;
    align-items: center;
    margin-top: 15px;
    color: var(--primary-color);
}

.education-badge i {
    margin-right: 8px;
}

.timeline-connector {
    position: absolute;
    width: 4px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.education-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    color: #000000;
}

.highlight-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background: white;
    color: var(--dark-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}
.highlight-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.highlight-card:hover {
    transform: translateY(-10px);
}

.highlight-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-content, 
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        margin-left: 0;
        margin-top: 30px;
    }
    
    .timeline-dot,
    .timeline-date {
        left: 30px;
        transform: none;
    }
    
    .timeline-content::before {
        display: none;
    }
    
    .timeline-connector {
        left: 30px;
    }
}

/* Add this at the end of your existing CSS */

/* ======================
   RESPONSIVE DESIGN
   ====================== */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .home-content {
        padding: 0 5%;
    }
    
    .title {
        font-size: 5rem;
    }
    
    .typing-text {
        font-size: 2.2rem;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 8rem;
        left: -100%;
        width: 80%;
        height: calc(100vh - 8rem);
        background-color: var(--card-bg);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        align-items: center;
        padding: 4rem 0;
        transition: var(--transition);
        z-index: 998;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1.5rem 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Home Section */
    .home-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 12rem;
    }
    
    .home-text {
        padding-right: 0;
        margin-top: 5rem;
    }
    
    .home-buttons {
        justify-content: center;
    }
    
    .image-wrapper {
        max-width: 350px;
    }
    
    /* About Section */
    .about-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .about-image {
        display: flex;
        justify-content: center;
    }
    
    /* Contact Section */
    .contact-container {
        flex-direction: column;
    }
    
    /* Timeline */
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: auto;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    html {
        font-size: 58%;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 4rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    /* Home Section */
    .title {
        font-size: 4rem;
    }
    
    .typing-text {
        font-size: 2rem;
    }
    
    .home-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .secondary-btn {
        margin-left: 0;
        margin-top: 1.5rem;
    }
    
    /* About Info */
    .about-info {
        grid-template-columns: 1fr;
    }
    
    /* Projects */
    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    /* Services */
    .services-container {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials */
    .testimonial-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* Timeline */
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-content, 
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        margin-left: 0;
        margin-top: 30px;
    }
    
    .timeline-dot,
    .timeline-date {
        left: 30px;
        transform: none;
    }
    
    .timeline-content::before {
        display: none;
    }
    
    .timeline-connector {
        left: 30px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 1.5rem;
    }
    
    html {
        font-size: 56%;
    }
    
    /* Section Headers */
    .section-title {
        font-size: 3rem;
    }
    
    /* Home Section */
    .home-section {
        padding-left: 0;
    }
    
    .title {
        font-size: 3.5rem;
    }
    
    .typing-text {
        font-size: 1.8rem;
    }
    
    .image-wrapper {
        max-width: 280px;
    }
    
    /* Theme Toggle */
    .theme-toggle {
        top: 1.5rem;
        right: 1.5rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 1.5rem 0;
    }
    
    .logo {
        font-size: 2.2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        width: 100%;
        border-radius: var(--border-radius);
        padding: 1rem;
    }
    
    /* Modal */
    .modal-content {
        padding: 2rem;
    }
    
    .close-modal {
        top: 1rem;
        right: 1rem;
    }
    
    /* Project Filters */
    .project-filters {
        gap: 1rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.5rem;
    }
    
    /* Education Highlights */
    .highlight-card {
        min-width: 100%;
    }
}

/* Very small devices (phones under 400px) */
@media (max-width: 399.98px) {
    /* Home Section */
    .title {
        font-size: 3rem;
    }
    
    .typing-text {
        font-size: 1.6rem;
    }
    
    /* Buttons */
    .btn {
        padding: 1rem 2rem;
        font-size: 1.4rem;
    }
    
    /* Projects */
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    /* Testimonial Controls */
    .testimonial-controls {
        gap: 1rem;
    }
    
    /* Contact Cards */
    .contact-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-text {
        text-align: center;
    }
    
    .contact-social {
        justify-content: center;
    }
}

/* Landscape phones and taller small devices */
@media (max-height: 600px) and (orientation: landscape) {
    .home-section {
        min-height: auto;
        padding: 15rem 0 8rem;
    }
    
    .home-content {
        flex-direction: row;
        text-align: left;
    }
    
    .home-text {
        padding-right: 3rem;
    }
    
    .image-wrapper {
        max-width: 250px;
    }
    
    .scroll-down {
        display: none;
    }
}

/* High DPI devices */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Add any high-DPI specific styles here */
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .header, .footer, .theme-toggle, .scroll-down {
        display: none;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .section-header {
        page-break-after: avoid;
    }
    
    .section-title::after {
        background: black;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
}
