/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Mode Variables - More vibrant colors */
    --primary-color: #6C63FF;
    --secondary-color: #FF6584;
    --accent-color: #36D1DC;
    --accent-color-2: #FF9A3D;
    --accent-color-3: #9D50BB;
    --text-color: #333344;
    --text-light: #666677;
    --bg-color: #F8F9FF;
    --nav-bg: rgba(248, 249, 255, 0.95);
    --card-bg: #FFFFFF;
    --border-color: #E6E9FF;
    --shadow: 0 10px 30px rgba(108, 99, 255, 0.1);
    --gradient: linear-gradient(135deg, #6C63FF 0%, #36D1DC 100%);
    --gradient-2: linear-gradient(135deg, #FF6584 0%, #FF9A3D 100%);
    --gradient-3: linear-gradient(135deg, #9D50BB 0%, #6C63FF 100%);
    
    /* Animation Variables */
    --transition-speed: 0.4s;
}

/* Dark Mode Variables */
.dark-mode {
    --primary-color: #8A84FF;
    --secondary-color: #FF7B95;
    --accent-color: #4CD7E0;
    --accent-color-2: #FFB366;
    --accent-color-3: #B56BD6;
    --text-color: #F0F0FF;
    --text-light: #A0A0CC;
    --bg-color: #121225;
    --nav-bg: rgba(18, 18, 37, 0.95);
    --card-bg: #1E1E3A;
    --border-color: #2A2A4A;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --gradient: linear-gradient(135deg, #8A84FF 0%, #4CD7E0 100%);
    --gradient-2: linear-gradient(135deg, #FF7B95 0%, #FFB366 100%);
    --gradient-3: linear-gradient(135deg, #B56BD6 0%, #8A84FF 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(108, 99, 255, 0.15);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

/* Logo Styles */
.nav-logo {
    flex: 1;
}

.logo-text {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text-color);
    letter-spacing: 0.5px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-accent {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    margin-left: 5px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 2;
    gap: 3rem;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    transition: color var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.link-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-2);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-link:hover .link-underline,
.nav-link.active .link-underline {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.toggle-checkbox {
    display: none;
}

.toggle-label {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 34px;
    background: var(--gradient-3);
    border-radius: 34px;
    cursor: pointer;
    transition: all var(--transition-speed);
    overflow: hidden;
}

.toggle-checkbox:checked + .toggle-label {
    background: var(--gradient-2);
}

.toggle-ball {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    transition: transform var(--transition-speed) cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.toggle-checkbox:checked + .toggle-label .toggle-ball {
    transform: translateX(36px);
}

.sun-icon, .moon-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: white;
    z-index: 1;
    transition: all var(--transition-speed);
}

.sun-icon {
    left: 8px;
    opacity: 1;
}

.moon-icon {
    right: 8px;
    opacity: 0.5;
}

.toggle-checkbox:checked + .toggle-label .sun-icon {
    opacity: 0.5;
}

.toggle-checkbox:checked + .toggle-label .moon-icon {
    opacity: 1;
}

.toggle-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    transition: color var(--transition-speed);
}

/* Main Content */
.content {
    margin-top: 80px;
}

.page-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
    padding: 5rem 2rem;
    min-height: 100vh;
}

.page-section.active-section {
    display: block;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section - FIXED FOR YOUR PICTURE */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    min-height: calc(100vh - 80px);
}

.hero-text {
    flex: 1;
}

.greeting {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.wave {
    animation: wave 2s infinite;
    display: inline-block;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-20deg); }
    75% { transform: rotate(20deg); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(108, 99, 255, 0.2);
    z-index: -1;
}

.typewriter-container {
    height: 60px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-light);
}

.typewriter-text {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed);
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(108, 99, 255, 0.1);
    transform: translateY(-3px);
}

/* Hero Image Section - FIXED FOR YOUR PROFILE PICTURE */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.profile-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.profile-frame {
    position: absolute;
    width: 350px;
    height: 350px;
    top: 25px;
    left: 25px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
    z-index: 2;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.profile-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient);
    filter: blur(30px);
    opacity: 0.3;
    z-index: 1;
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 0.4; transform: scale(1.1); }
}

.profile-badge {
    position: absolute;
    bottom: 30px;
    right: 0;
    background: var(--gradient-2);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow);
    z-index: 3;
    animation: float 4s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Section Titles */
.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.title-accent {
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* About Section */
.about-content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    margin-top: 3rem;
}

.about-text {
    flex: 2;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.detail {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed);
}

.detail:hover {
    transform: translateY(-5px);
}

.detail h4 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.detail-sub {
    font-size: 0.9rem;
    color: var(--text-light);
}

.colorful-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tag {
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.tag-1 { background: linear-gradient(135deg, #6C63FF, #36D1DC); color: white; }
.tag-2 { background: linear-gradient(135deg, #FF6584, #FF9A3D); color: white; }
.tag-3 { background: linear-gradient(135deg, #9D50BB, #6C63FF); color: white; }
.tag-4 { background: linear-gradient(135deg, #36D1DC, #6C63FF); color: white; }
.tag-5 { background: linear-gradient(135deg, #FF9A3D, #FF6584); color: white; }

.about-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed);
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.skill-item span:first-child {
    flex: 1;
    font-weight: 500;
}

.skill-bar {
    flex: 2;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
    transition: width 1.5s ease;
}

.skill-percent {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 45px;
    text-align: right;
}

/* Projects Section - FIXED FOR YOUR PROJECT IMAGES */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(108, 99, 255, 0.2);
}

.project-img {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.project-tech {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.5s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.project-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.project-link.github {
    background: #333;
}

.project-link.github:hover {
    background: #444;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    background: var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.github-link {
    text-align: center;
    margin-top: 4rem;
}

.github-link .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-text h4 {
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.contact-text p, .contact-text a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.contact-text a:hover {
    color: var(--primary-color);
}

.contact-form {
    flex: 1;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

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

/* Footer */
.footer {
    padding: 3rem 2rem;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo p {
    color: var(--text-light);
    margin-top: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all var(--transition-speed);
    text-decoration: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .nav-links {
        gap: 2rem;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-logo, .theme-toggle {
        width: 100%;
        text-align: center;
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .image-container {
        width: 300px;
        height: 300px;
    }
    
    .profile-frame {
        width: 250px;
        height: 250px;
        top: 25px;
        left: 25px;
    }
    
    .about-details {
        grid-template-columns: 1fr;
    }
}