/* CSS Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #2563eb;  
    --secondary-color: #3b82f6;
    --text-color: #1e293b;
    --background-color: #f8fafc;
    --light-bg: #f1f5f9;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --accent-color: #4338ca;
    --transition: all 0.3s ease;
}

body.dark-mode {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --text-color: #e2e8f0;
    --background-color: #0f172a;
    --light-bg: #1e293b;
    --card-bg: #1e293b;
    --border-color: #334155;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
}

section {
    padding: 80px 0;
}

/* Utility Classes */
.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 4px;
    display: inline-block;
    transition: var(--transition);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    position: relative;
    padding-bottom: 12px;
}

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

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    padding: 8px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

.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,
.nav-links a.active {
    color: var(--primary-color);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Theme Toggle */
.theme-toggle {
    margin-left: 30px;
    width: 50px;
    height: 25px;
    background-color: var(--light-bg);
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

body.dark-mode .theme-toggle::before {
    left: 27px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 54px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.3s;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.6s;
}

.hero .cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.9s;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: floating 10s infinite;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-img img {
    display: block;
    transition: transform 0.5s ease;
}

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

.about-text {
    flex: 1;
}

.about-text h3 {
    margin-bottom: 20px;
    font-size: 28px;
}

.about-text p {
    margin-bottom: 25px;
}

.skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.skill-item {
    text-align: center;
}

.skill-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.skill-progress {
    position: relative;
    height: 60px;
    width: 60px;
    margin: 0 auto 10px;
}

.skill-circle {
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 8;
    stroke: var(--border-color);
    transform: rotate(-90deg);
    transform-origin: center;
    border-radius: 50%;
}

.skill-circle-fill {
    stroke: var(--primary-color);
    transition: stroke-dashoffset 1.5s ease;
}

.skill-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
}

/* Projects Section */

.projects-grid{
    /* display: flex;
    justify-content: center;
    align-items: center;
 */ animation: scroll-left 15s linear infinite;
    gap: 30px;
    scroll-behavior: smooth;
}
/* @keyframes scroll-left {
  0% {
    transform: translateX(0%);
  } 
  
  100%{
    transform: translateX(-115%);
  } 
}*/
.project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.project-card:active{
    cursor: grab;
}
.project-image {
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

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

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

.project-info {
    padding: 20px;
    display: block;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.project-info p {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-links a {
    padding: 8px 15px;
    font-size: 12px;
    border-radius: 4px;
}

.view-link{
    background-color: var(--primary-color);
    color: white;
} 
/* .swiper-button-prev,
.swiper-button-next,
.swiper-pagination{
    display: none;
} */
.card-container{
    max-width: 1100px;
    margin: 0 60px 35px;
    padding: 20px 10px;
    overflow: hidden;
}
.card-container .swiper-pagination-bullet{
    height: 13px;
    width: 13px;
    opacity: 0.5 ;
    background: #2564eba9;
}
.card-container .swiper-pagination-bullet:focus{
    
    opacity: 1;
    
}

/* Contact Section */
.contact-section {
    background-color: var(--light-bg);
}

.contact-container {
    display: flex;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-info p {
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10PX;
    padding: 10px 15px;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: var(--transition);
}
 
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--light-bg);
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: 0;
    font-size: 14px;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(20px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
     
    .skills {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 250px;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    @keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    
    100%{
        transform: translateX(-580%);
    }
    }
    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
        
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 18px;
    }

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