:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --light-color: #ecf0f1;
    
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --black: #000;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Theme variables */
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --section-bg: #f8f9fa;
    --border-color: #eaeaea;
}

.dark-theme {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #f0f0f0;
    --section-bg: #1a1a1a;
    --border-color: #333333;
    --text-light: #b0b0b0;
    --dark-color: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

section {
    padding: 80px 0;
    background-color: var(--section-bg);
}

/* ===== Header Styles ===== */
header {
    background-color: var(--card-bg);
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
    background-color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 130px 0;
    position: relative;
    overflow: hidden;
    max-width: 1700px;
    margin: 0 auto;
    background-color: var(--light-color);
    padding-top: 80px; /* Added top padding */
}

.hero-content {
    flex: 1;
    padding-right: 40px;
    max-width: 50%; /* Added max-width constraint */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.social-icons {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: var(--card-bg);
    border-radius: 50%;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    color: var(--text-primary);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 500px;
    height: 500px;
    animation: bounce 3s ease-in-out infinite;
}

.hero-image img {
    border-radius: 50%;
    height: 100%;
    width: 100%;
    object-fit:  800px;
    border: 8px solid var(--primary-color);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-25px);
    }
}

/* ===== Typing Animation ===== */
.typing-container {
    display: inline-block;
    position: relative;
}

.typing-text {
    color: var(--primary-color);
    font-weight: 600;
}

.cursor {
    display: inline-block;
    width: 3px;
    margin-left: 4px;
    background-color: var(--primary-color);
    animation: blink 1s infinite;
    height: 1.2em; /* Added height */
    vertical-align: middle; /* Added vertical alignment */
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}


/* ===== About Section ===== */
.about {
    padding: 120px 40px 80px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 50%;
    width: 100%;
    height: auto;
    max-width: 450px;
    aspect-ratio: 1/1;
    object-fit: cover;
    box-shadow: var(--box-shadow);
    border: 5px solid var(--text-light);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
}

.info-item span {
    font-weight: 600;
    margin-right: 10px;
    color: var(--text-primary);
    min-width: 80px;
}

.info-item p {
    margin: 0;
    color: var(--text-light);
}

/* ===== Skills Section ===== */
s/* ===== Skills Section ===== */
.skills {
    padding: 80px 40px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: center;
    font-size: 1.5rem;
}

.skill-item {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-item p {
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-bar {
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Add delay to each skill item */
.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }
.skill-item:nth-child(6) { animation-delay: 0.6s; }

/* ===== Projects Section ===== */
 .filter-buttons {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 40px;
        }
        
        .filter-btn {
            padding: 10px 25px;
            background: #f0f0f0;
            border: none;
            border-radius: 30px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            font-size: 1rem;
            outline: none;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .filter-btn:hover {
            background: #3a36e0;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(58, 54, 224, 0.3);
        }
        
        .filter-btn.active {
            background: #3a36e0;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(58, 54, 224, 0.3);
        }
        
        /* Projects section */
        .projects-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
        }
        
        .project-card {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: all 0.4s ease;
            background: white;
            opacity: 1;
            transform: translateY(0);
            display: block;
        }
        
        .project-card.hidden {
            display: none;
        }
        
        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }
        
        .project-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            display: block;
        }
        
        .project-info {
            padding: 25px;
        }
        
        .project-info h3 {
            font-size: 1.4rem;
            margin-bottom: 10px;
            color: #2c3e50;
        }
        
        .project-info p {
            color: #666;
            margin-bottom: 15px;
            font-size: 0.95rem;
        }
        
        .project-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
        }
        
        .project-tech span {
            background: #eef2ff;
            color: #3a36e0;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }
        
        .project-links {
            display: flex;
            gap: 15px;
        }
        
        .project-links a {
            display: flex;
            align-items: center;
            gap: 5px;
            text-decoration: none;
            color: #3a36e0;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 8px 15px;
            border-radius: 5px;
        }
        
        .project-links a:hover {
            background: #f0f0ff;
        }
        
        .project-links a i {
            font-size: 0.9rem;
        }

/* View All Projects Button */
.view-all-container {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}
        /* Animation for project filtering */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .project-card.animate-in {
            animation: fadeIn 0.5s ease forwards;
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .projects-container {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            }
            
            .filter-buttons {
                gap: 10px;
            }
            
            .filter-btn {
                padding: 8px 16px;
                font-size: 0.9rem;
            }
        }
        
        @media (max-width: 480px) {
            .filter-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .filter-btn {
                width: 80%;
                max-width: 250px;
            }
        }
.projects {
    padding: 80px 40px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    background-color: var(--border-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.project-links {
    display: flex;
    gap: 25px;
}

.project-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 80px 40px;
    background-color: var(--light-color);
}

.testimonial-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.testimonial-card {
    min-width: 100%;
    background: var(--card-bg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: rgba(52, 152, 219, 0.1);
    z-index: 1;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.client-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-details h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.client-details p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    font-style: normal;
}

.rating {
    margin-top: 5px;
    color: #FFD700;
}

.rating i {
    font-size: 0.9rem;
    margin-right: 2px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.3);
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* ===== Contact Section ===== */
.contact {
    padding: 80px 40px;
}

.contact-container {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.8rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background-color: var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.info-item p {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.contact-form {
    flex: 1;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===== Footer ===== */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 25px 0;
    font-size: 1.1rem;
}

/* Add to your CSS */
.btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none !important;
}

.contact-form .btn {
    transition: all 0.5s ease;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
    .hero-image-container {
        width: 450px;
        height: 450px;
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding:120px 40px 10px ;
        min-height: auto;
    }
    
    .hero-content {
        padding: 0 0 40px;
        max-width: 100%;
    }
    
    .hero-image {
        margin-top: 20px;
    }
    
    .hero-image-container {
        width: 400px;
        height: 400px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 50px;
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--card-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        padding-top: 20px;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 25px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-image-container {
        width: 350px;
        height: 350px;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    nav {
        padding: 20px;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-image-container {
        width: 300px;
        height: 300px;
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .quote-icon {
        font-size: 3rem;
        top: 15px;
        right: 20px;
    }
}
/* ===== Responsive Adjustments ===== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding:120px 40px 10px ; /* Adjusted padding */
        min-height: auto; /* Changed min-height */
    }
    
    .hero-content {
        padding: 0 0 40px; /* Adjusted padding */
        max-width: 100%; /* Full width on mobile */
    }
}

@media (max-width: 768px) {
    .hero-image-container {
        width: 350px;
        height: 350px; /* Reduced size */
    }
}

@media (max-width: 576px) {
    .hero-image-container {
        width: 300px;
        height: 300px; /* Further reduced size */
    }
}

