/* Base Styles */
:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6c757d;
    --dark-color: #0e1133;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

section {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #3a5bd9;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.small-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.highlight {
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background-color: #f9f9ff;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.cta-buttons {
    margin-bottom: 30px;
}

.cta-buttons .btn {
    margin-right: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    width: 500px;
    /* max-width: 100px; */
    border-radius: 250px;
    box-shadow: var(--box-shadow);
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 500px;
    border-radius: 200px;
    box-shadow: var(--box-shadow);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-item span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Projects Section */
.projects {
    background-color: #f9f9ff;
}

.project-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    border: none;
    background-color: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.project-tags span {
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 10px;
}

.view-more {
    text-align: center;
    margin-top: 50px;
}

/* Skills Section */
.skills {
    background-color: white;
}

.skills-content {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
}

.skills-text {
    flex: 1;
}

.skills-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.skills-text p {
    margin-bottom: 20px;
}

.skills-bars {
    flex: 1;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-bar {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
}

.tech-stack h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tech-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    background-color: #f9f9ff;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info .info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-info .social-icons {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo a {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.footer p {
    margin-bottom: 20px;
}

.footer .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer .social-icons a:hover {
    background-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container,
    .about-content,
    .skills-content,
    .contact-content {
        flex-direction: column;
    }
    
    .hero-content,
    .hero-image,
    .about-image,
    .about-text,
    .skills-text,
    .skills-bars,
    .contact-info,
    .contact-form {
        flex: none;
        width: 100%;
    }
    
    .hero-image,
    .about-image {
        margin-top: 50px;
        text-align: center;
    }
    
    .hero-image img,
    .about-image img {
        max-width: 100%;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .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);
    }
    
    .personal-info {
        grid-template-columns: 1fr;
    }
    
    .project-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        gap: 15px;
        width: 100%;
        margin-top: 10px;
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cta-btn:last-child {
        margin-bottom: 0;
        margin-right: 0;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 10px;
    }
    
    .social-links a {
        margin: 0 8px;
    }
    
    .footer {
        padding: 30px 0;
    }
    .filter-container {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        max-width: none;
        width: 100%;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .portfolio-item {
        margin-bottom: 20px;
    }
    
    .testimonial-card {
        padding: 15px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        margin-bottom: 20px;
    }
    .contact-section {
        padding: 30px 15px;
    }
    
    .contact-info {
        margin-bottom: 20px;
    }
    
    .contact-form {
        width: 100%;
    }
    
    .contact-form .form-group {
        margin-bottom: 15px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        padding: 15px 0;
    }
    
    .about-image {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .skill-item {
        margin-bottom: 15px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 90%;
        padding: 15px;
    }
}

/* Dark Mode Styles */
/* Dark Mode Styles */
body.dark-mode {
    --primary-dark: #1A1A2E;       /* Dark Purple */
    --accent-color: #00FFFF;       /* Electric Blue */
    --text-light: #FFFFFF;         /* Pure White */
    --secondary-color: #B0B0B0;    /* Light Gray for secondary text */
    --card-bg: #16213E;            /* Slightly lighter dark purple */
    --border-color: #2A3A5F;       /* Border color */
    
    background-color: var(--primary-dark);
    color: var(--text-light);
}

/* General Elements */
body.dark-mode a,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode p {
    color: var(--text-light);
}

body.dark-mode .highlight {
    color: var(--accent-color);
}

/* Navigation */
body.dark-mode .navbar {
    background-color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
    color: var(--accent-color);
}

body.dark-mode .hamburger .bar {
    background-color: var(--text-light);
}

/* Hero Section */
body.dark-mode .hero {
    background-color: var(--primary-dark);
}

body.dark-mode .hero-content h2 {
    color: var(--secondary-color);
}

body.dark-mode .social-icons a {
    background-color: var(--card-bg);
    color: var(--text-light);
}

body.dark-mode .social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

/* About Section */
body.dark-mode .about {
    background-color: var(--card-bg);
}

body.dark-mode .info-item span {
    color: var(--accent-color);
}

/* Projects Section */
body.dark-mode .projects {
    background-color: var(--primary-dark);
}

body.dark-mode .project-card {
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .project-info p {
    color: var(--secondary-color);
}

body.dark-mode .project-tags span {
    background-color: rgba(0, 255, 255, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

/* Skills Section */
body.dark-mode .skills {
    background-color: var(--card-bg);
}

body.dark-mode .skill-bar {
    background-color: rgba(0, 0, 0, 0.3);
}

body.dark-mode .skill-level {
    background-color: var(--accent-color);
}

body.dark-mode .tech-icon i {
    color: var(--accent-color);
}

body.dark-mode .tech-icon p {
    color: var(--text-light);
}

/* Contact Section */
body.dark-mode .contact {
    background-color: var(--primary-dark);
}

body.dark-mode .contact-info,
body.dark-mode .contact-form {
   /* background-color: var(--card-bg);*/
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    border-color: var(--border-color);
}

body.dark-mode .contact-info .info-item i {
    color: var(--accent-color);
}

body.dark-mode .contact-info .social-icons a {
    background-color: rgba(0, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid var(--accent-color);
}

body.dark-mode .contact-info .social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

/* Footer */
body.dark-mode .footer {
    background-color: var(--card-bg);
}

body.dark-mode .footer .social-icons a {
    background-color: rgba(0, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid var(--accent-color);
}

body.dark-mode .footer .social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

/* Buttons */
body.dark-mode .primary-btn {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

body.dark-mode .primary-btn:hover {
    background-color: #00E5E5; /* Slightly darker electric blue */
    color: var(--primary-dark);
}

body.dark-mode .secondary-btn {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

body.dark-mode .secondary-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

/* Filter Buttons */
body.dark-mode .filter-btn {
    background-color: rgba(0, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid var(--accent-color);
}

body.dark-mode .filter-btn.active,
body.dark-mode .filter-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

/* Section Titles */
body.dark-mode .section-title::after {
    background-color: var(--accent-color);
}

/* Text Selection */
body.dark-mode ::selection {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

/* Scrollbar */
body.dark-mode ::-webkit-scrollbar {
    width: 10px;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #00E5E5;
}

/* Animation Highlights */
body.dark-mode .slide-in-left,
body.dark-mode .slide-in-bottom,
body.dark-mode .reveal {
    color: var(--text-light);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

/* Animation Classes */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-bottom {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromBottom {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-in-left {
    animation: slideInFromLeft 0.8s ease-out;
}

.slide-in-bottom {
    animation: slideInFromBottom 0.8s ease-out;
}
/* Testimonials Section */
.testimonials {
    background-color: white;
    padding: 100px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: #f9f9ff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.client-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid var(--primary-color);
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.client-title {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.testimonial-content {
    position: relative;
}

.rating {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.7;
    color: var(--dark-color);
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
}

/* Dark Mode Testimonials */
body.dark-mode .testimonials {
    background-color: var(--card-bg);
}

body.dark-mode .testimonial-card {
    background-color: var(--primary-dark);
    border: 1px solid var(--border-color);
}

body.dark-mode .client-info h3,
body.dark-mode .testimonial-text {
    color: var(--text-light);
}

body.dark-mode .client-title {
    color: var(--secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 20px;
    }
}