:root {
    --primary-color: #6c63ff;
    --secondary-color: #ff6584;
    --dark-color: #2f2e41;
    --light-color: #f9f9f9;
    --gray-color: #e5e5e5;
    --text-dark: #333;
    --text-light: #777;
    --bg-color: #ffffff;
    --card-bg: #f3f3f3;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dark-mode {
    --primary-color: #7d76ff;
    --secondary-color: #ff7d96;
    --dark-color: #f9f9f9;
    --light-color: #2f2e41;
    --gray-color: #444;
    --text-dark: #f9f9f9;
    --text-light: #ccc;
    --bg-color: #181829;
    --card-bg: #16213e;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    transition: all 0.3s ease;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #5a52e0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title span {
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    padding: 15px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-brand span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.theme-toggle i {
    color: white;
    font-size: 1.2rem;
    position: absolute;
    transition: all 0.3s ease;
    opacity: 0;
}

.theme-toggle i.fa-moon {
    opacity: 1;
}

.dark-mode .theme-toggle i.fa-moon {
    opacity: 0;
}

.dark-mode .theme-toggle i.fa-sun {
    opacity: 1;
}

.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.shape {
    position: absolute;
    border-radius: 20px;
    z-index: 1;
}

.shape-1 {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    top: -15px;
    left: -15px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background-color: var(--secondary-color);
    bottom: -50px;
    right: -50px;
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    top: -30px;
    right: -30px;
    animation: float 5s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
}

.scroll-down a {
    margin-top: 5px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Work Section */
.work {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.work-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: 2px solid var(--gray-color);
    color: var(--text-light);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-category {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.project-link {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.project-link i {
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--secondary-color);
}

.project-link:hover i {
    transform: translateX(5px);
}

.project-links {
    display: flex;
    gap: 70px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* About Section */
.about {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-content {
    flex: 1;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Skills Section */
.skills {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-container {
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-item p {
    margin-bottom: 10px;
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: var(--gray-color);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease;
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-info {
    flex: 1;
    margin-bottom: 20px;
}

.contact-box {
    padding: 30px;
    border-radius: 20px;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); */
    border: 3px solid var(--gray-color);
    color: var(--text-light);
    width: 100%;
    max-width: fit-content;
    box-sizing: border-box;
}

.info-item {
    display: flex;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px;
    gap: 15px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.info-item p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 60px;
    height: 60px;
    background-color: var(--card-bg);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    text-align: center;
    flex-direction: column;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a i {
    font-size: 25px;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-color);
    border-radius: 10px;
    background-color: transparent;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    background-color: var(--card-bg);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about {
        flex-direction: column;
    }
    
    .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(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: all 0.5s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin-left: 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-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .image-container {
        width: 300px;
        height: 300px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}