/* Global Styles */
:root {
    --primary-color: #00c3ff;
    --secondary-color: #ff0066;
    --dark-bg: #0a1622;
    --card-bg: #162231;
    --text-color: #ffffff;
    --text-secondary: #ccc;
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Improve mobile scrolling */
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('images/bg-texture.png');
    background-size: cover;
    background-attachment: fixed;
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.text-highlight {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 28px;
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 28px;
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 22, 34, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo h2 {
    font-size: 1.6rem;
    font-weight: 700;
}

.logo-part1 {
    color: #ffffff;
}

.logo-part2 {
    color: var(--primary-color);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

nav {
    margin: 0 20px;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
}

nav ul li a:hover,
nav ul li a.active,
nav ul li a.touch-active {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after,
nav ul li a.touch-active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    cursor: pointer;
}

.theme-toggle span {
    opacity: 0.5;
    transition: var(--transition);
}

.theme-toggle span.active {
    opacity: 1;
    color: var(--primary-color);
}

.download-cv a {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

.download-cv a:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

/* Home Section */
.home-section {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.home-content {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.home-text {
    flex: 1;
}

.home-text h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.home-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.home-text h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    height: 35px;
    display: flex;
    align-items: center;
}

.home-text p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
    max-width: 600px;
}

.typing-text {
    position: relative;
    color: transparent;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    margin-left: 5px;
}

.typing-text::after {
    content: "Full Stack Developer";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-color);
    animation: typing 4s steps(20) infinite, blink 0.5s step-end infinite alternate;
}

@keyframes typing {
    0%, 100% {
        width: 0;
    }
    50%, 90% {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--card-bg);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-5px);
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.home-image {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.home-image .image-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.8);
    position: relative;
    background-color: var(--primary-color);
    box-shadow: 
        0 0 30px rgba(0, 233, 255, 0.8),
        0 0 50px rgba(0, 195, 255, 0.6),
        0 -20px 40px rgba(0, 195, 255, 0.8),
        0 20px 40px rgba(157, 0, 255, 0.8),
        0 0 70px rgba(255, 0, 140, 0.4),
        0 0 90px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(0, 195, 255, 0.5);
    animation: floatAnimation 3s ease-in-out infinite, colorfulGlowAnimation 8s ease-in-out infinite;
}

.home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 1160px;
}

.stat-item {
    text-align: center;
    padding: 0 10px;
}

.stat-item h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

.stat-item span {
    color: var(--primary-color);
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image .image-container {
    width: 400px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    background-color: var(--card-bg);
    box-shadow: 0 0 20px rgba(77, 166, 255, 0.6), 0 0 30px rgba(77, 166, 255, 0.3);
    animation: floatAnimation 3s ease-in-out infinite;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: left;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.skill-category {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.skill-name {
    flex: 1;
    font-weight: 500;
}

.skill-bar {
    flex: 2;
    height: 10px;
    background-color: var(--dark-bg);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    position: relative;
    animation: skillAnimation 2s ease;
}

.skill-percentage {
    flex: 0.5;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

@keyframes skillAnimation {
    from {
        width: 0;
    }
}

/* Services Section */
.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 20px;
}

.service-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-block;
    margin-top: auto;
}

.service-btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

/* Portfolio Section */
.portfolio-section {
    position: relative;
    overflow: hidden;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.portfolio-swiper {
    padding: 40px 20px;
    overflow: visible;
}

.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    height: 300px;
    box-shadow: var(--box-shadow);
    margin: 0 auto;
    max-width: 400px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 195, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.portfolio-btn {
    background-color: var(--dark-bg);
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.portfolio-btn:hover {
    background-color: var(--text-color);
    color: var(--dark-bg);
}

.swiper-button-next.portfolio-next,
.swiper-button-prev.portfolio-prev {
    color: var(--primary-color);
    background: var(--card-bg);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    opacity: 1;
    margin: 0;
    transition: all 0.3s ease;
}

.swiper-button-next.portfolio-next:hover,
.swiper-button-prev.portfolio-prev:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.swiper-button-next.portfolio-next:after,
.swiper-button-prev.portfolio-prev:after {
    font-size: 1.2rem;
}

@media screen and (max-width: 768px) {
    .portfolio-swiper {
        padding: 30px 0 20px;
    }
    
    .portfolio-item {
        height: 250px;
    }
}

@media screen and (max-width: 480px) {
    .portfolio-item {
        height: 220px;
    }
}

/* Reviews Section */
.reviews-section {
    background-color: rgba(22, 34, 49, 0.4);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.reviews-swiper {
    padding: 40px 20px;
    overflow: visible;
}

.swiper-slide {
    height: auto;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1.05);
}

.review-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    text-align: center;
}

.review-card::before {
    content: "\201C";
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    color: rgba(0, 195, 255, 0.1);
    font-family: sans-serif;
    line-height: 1;
}

.review-card:hover {
    transform: translateY(-10px);
}

.review-rating {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.review-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
    text-align: center;
    line-height: 1.6;
}

.reviewer-info {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.reviewer-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.reviewer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.swiper-navigation-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.swiper-button-next,
.swiper-button-prev {
    position: static;
    color: var(--primary-color);
    background: var(--card-bg);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    opacity: 1;
    margin: 0;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1rem;
}

.swiper-pagination {
    position: relative;
    bottom: -10px;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
    width: 25px;
    border-radius: 5px;
}

@media screen and (max-width: 768px) {
    .reviews-swiper {
        padding: 30px 0 20px;
    }
    
    .swiper-slide-active {
        transform: none;
    }
    
    .swiper-slide {
        opacity: 1;
    }
    
    .review-card {
        padding: 20px 15px;
    }
    
    .review-text {
        font-size: 0.95rem;
    }
    
    .swiper-navigation-container {
        margin-top: 10px;
    }
}

@media screen and (max-width: 480px) {
    .review-card {
        padding: 15px;
    }
    
    .review-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .review-card::before {
        font-size: 3rem;
        top: 5px;
        left: 10px;
    }
}

/* Contact Section */
.contact-section {
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-details .email-link,
.contact-details .phone-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details .email-link:hover,
.contact-details .phone-link:hover {
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    width: 100%;
}

#contactForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: var(--dark-bg);
    border: 1px solid transparent;
    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 {
    resize: vertical;
}

.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
    display: none;
    width: 100%;
}

.form-status.success {
    display: block;
    background-color: rgba(0, 195, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.form-status.error {
    display: block;
    background-color: rgba(255, 0, 102, 0.1);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.form-note {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
}

.form-note .email-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.form-note .email-link:hover {
    text-decoration: underline;
}

.contact-form button[type="submit"] {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    text-align: center;
}

@media screen and (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info, 
    .contact-form {
        width: 90%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .contact-form {
        padding-top:12px;
      
    }
    
    .contact-form button[type="submit"] {
        width: 100%;
        max-width: 100%;
    }
    
    .contact-section .container {
        width: 95%;
    }
}

@media screen and (max-width: 480px) {
     .contact-form {
        padding-top:12px;
      
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
    }
}

@media screen and (max-width: 437px) {
    .contact-form {
        padding: 15px 12px;
        margin-right:15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
    }
       .contact-form {
        padding-top:12px;
      
    }
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 20px 0;
    text-align: center;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Improved Responsive Styles */
@media screen and (max-width: 1200px) {
    .stats-container {
        position: relative;
        bottom: auto;
        margin-top: 30px;
    }
    
    .home-content {
        margin-bottom: 20px;
    }
}

/* Tablet Specific Styles */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 15px;
    }
    
    .logo {
        margin-right: 0;
    }
    
    nav {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .theme-toggle {
        margin-right: 20px;
    }
    
    .home-section {
        padding-top: 150px;
    }
    
    .home-content {
        gap: 20px;
    }
    
    .home-image .image-container {
        width: 280px;
        height: 280px;
    }
    
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .services-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 15px;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .portfolio-swiper .swiper-slide {
        opacity: 1;
    }
    
    .portfolio-filter {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
    
    .reviews-swiper {
        padding: 30px 10px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-content {
        gap: 30px;
    }
}

@media screen and (max-width: 1024px) {
    .home-content {
        flex-direction: column-reverse;
        text-align: center;
        margin-bottom: 20px;
    }

    .home-text h3 {
        justify-content: center;
    }

    .home-image {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .cta-buttons {
        justify-content: center;
        gap: 15px;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .about-text h2 {
        text-align: center;
    }
    
    .about-text .social-icons {
        justify-content: center;
    }
    
    .stats-container {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image .image-container {
        width: 90%;
        max-width: 400px;
        height: 250px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-wrapper {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(10, 22, 34, 0.95);
        backdrop-filter: blur(10px);
        z-index: 100;
    }
    
    .nav-wrapper.active {
        max-height: 500px;
        padding: 15px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    nav {
        margin: 15px 0;
        width: 100%;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 12px 0;
        font-size: 1rem;
    }
    
    .nav-right {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        align-items: center;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .home-section {
        padding-top: 90px;
        min-height: auto;
    }
    
    header .container {
        padding: 10px 15px;
    }
    
    .download-cv {
        width: 100%;
        text-align: center;
    }
    
    .download-cv a {
        justify-content: center;
        width: 100%;
    }
    
    .services-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .portfolio-swiper {
        padding: 30px 0 20px;
    }
    
    .portfolio-filter {
        gap: 8px;
        margin-bottom: 25px;
    }
    
    .filter-btn {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    .stat-item {
        flex-basis: 45%;
    }
    
    .stats-container {
        padding: 15px 10px;
        justify-content: space-between;
    }
    
    .stat-item h2 {
        font-size: 1.8rem;
    }
    
    .stat-item p {
        font-size: 0.85rem;
    }
    
    .swiper-button-next.portfolio-next,
    .swiper-button-prev.portfolio-prev,
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 1rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info, 
    .contact-form {
        padding-top:12px;
        margin-right:14px;
      
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .skill-category {
        padding: 20px 15px;
    }
    
    .home-text h1 {
        font-size: 2.4rem;
    }
    
    .home-text h3 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .home-text h1 {
        font-size: 2rem;
    }
    
    .home-text h3 {
        
        font-size: 1.2rem;
    }
    
    .home-image .image-container {
        width: 250px;
        height: 250px;
    }
    .about-image .image-container {
        width: 90%;
        height: 250px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .stat-item {
        flex-basis: 50%;
        padding: 10px 5px;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .contact-icon {
        font-size: 25px;
        width: 50px;
        height: 50px;
    }
    
    .contact-details h3 {
        font-size: 1.1rem;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .contact-form {
        padding: 1px 15px;
        width: 90%;
        max-width: 90%;
         margin-right:14px;
    }

    v
    .contact-info {
        width: 100%;
    }
    
    .contact-section .container {
        width: 95%;
        padding: 0 10px;
    }
}

/* Fix for very small screens */
@media screen and (max-width: 437px) {
    .home-text h1 {
        font-size: 1.6rem;
    }
    
    .home-text h3 {
      
        font-size: 1rem;
    }
    
    .home-image .image-container
     {
        width: 200px;
        height: 200px;
    }
      .about-image .image-container {
        width: 90%;
        height: 230px;
    }
    

    .stat-item h2 {
        font-size: 1.1rem;
    }
    
    .stat-item p {
        font-size: 0.8rem;
    }
    
    .service-card {
        padding: 20px 10px;
    }
    .contact-form {
        padding-top:12px;
         margin-right:14px;
      
    }
    

}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes colorfulGlowAnimation {
    0% {
        box-shadow: 
            0 0 30px rgba(0, 233, 255, 0.8),
            0 0 50px rgba(0, 195, 255, 0.6),
            0 -20px 40px rgba(0, 195, 255, 0.8),
            0 20px 40px rgba(157, 0, 255, 0.8),
            0 0 70px rgba(255, 0, 140, 0.4),
            0 0 90px rgba(255, 215, 0, 0.3),
            inset 0 0 20px rgba(0, 195, 255, 0.5);
        border-color: rgba(0, 195, 255, 0.7);
    }
    20% {
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 50px rgba(255, 215, 0, 0.6),
            0 -20px 40px rgba(255, 0, 140, 0.8),
            0 20px 40px rgba(255, 215, 0, 0.8),
            inset 0 0 20px rgba(255, 215, 0, 0.5);
        border-color: rgba(255, 215, 0, 0.7);
    }
    25% {
        box-shadow: 
            0 0 30px rgba(255, 0, 140, 0.8),
            0 0 50px rgba(255, 0, 140, 0.6),
            0 -20px 40px rgba(0, 195, 255, 0.8),
            0 20px 40px rgba(255, 0, 140, 0.8),
            inset 0 0 20px rgba(255, 0, 140, 0.5);
        border-color: rgba(255, 0, 140, 0.7);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(157, 0, 255, 0.8),
            0 0 50px rgba(157, 0, 255, 0.6),
            0 -20px 40px rgba(0, 233, 255, 0.8),
            0 20px 40px rgba(157, 0, 255, 0.8),
            inset 0 0 20px rgba(157, 0, 255, 0.5);
        border-color: rgba(157, 0, 255, 0.7);
    }
    75% {
        box-shadow: 
            0 0 30px rgba(0, 255, 127, 0.8),
            0 0 50px rgba(0, 255, 127, 0.6),
            0 -20px 40px rgba(157, 0, 255, 0.8),
            0 20px 40px rgba(0, 255, 127, 0.8),
            inset 0 0 20px rgba(0, 255, 127, 0.5);
        border-color: rgba(0, 255, 127, 0.7);
    }
    85% {
        box-shadow: 
            0 0 30px rgba(255, 165, 0, 0.8),
            0 0 50px rgba(255, 165, 0, 0.6),
            0 -20px 40px rgba(0, 255, 127, 0.8),
            0 20px 40px rgba(255, 165, 0, 0.8),
            inset 0 0 20px rgba(255, 165, 0, 0.5);
        border-color: rgba(255, 165, 0, 0.7);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(0, 233, 255, 0.8),
            0 0 50px rgba(0, 195, 255, 0.6),
            0 -20px 40px rgba(0, 195, 255, 0.8),
            0 20px 40px rgba(157, 0, 255, 0.8),
            inset 0 0 20px rgba(0, 195, 255, 0.5);
        border-color: rgba(0, 195, 255, 0.7);
    }
}

.reviewer-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.3);
}

.reviewer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project Modal Styles */
.project-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.project-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    border-radius: 10px;
    background-color: transparent;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.project-modal.show .modal-content {
    transform: scale(1);
}

#modalImage {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1200;
}

.close-modal:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.8);
}

@media screen and (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
}

/* Dark Mode Styles */
body.dark-mode {
    background-image: url('images/bg-texture.png');
    background-color: #000000;
}

body.dark-mode .service-card,
body.dark-mode .skill-category,
body.dark-mode .review-card,
body.dark-mode .contact-form,
body.dark-mode header {
    background-color: #0a0f16;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .skill-bar {
    background-color: #000000;
}

body.dark-mode .portfolio-btn,
body.dark-mode .service-btn {
    background-color: var(--primary-color);
    color: #000000;
}

body.dark-mode .dark-mode span {
    color: var(--primary-color);
}

body.dark-mode .light-mode span {
    color: #555;
} 