/* Custom Styles */

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes skillProgress {
    from { width: 0; }
}

/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #f9fafb;
    color: #1F2937;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark body {
    background-color: #111827;
    color: #F9FAFB;
}

/* Section Background Colors - Light Mode */
section {
    transition: background-color 0.3s ease, color 0.3s ease;
}

section:nth-child(odd) {
    background-color: #f9fafb;
    color: #1F2937;
}

section:nth-child(even) {
    background-color: #f3f4f6;
    color: #1F2937;
}

/* Hero Section - Light Mode */
#hero {
    background-color: #eef2ff;
    color: #1F2937;
}

/* About Section - Light Mode */
#about {
    background-color: #f3f4f6;
    color: #1F2937;
}

/* Projects Section - Light Mode */
#projects {
    background-color: #f9fafb;
    color: #1F2937;
}

/* Skills Section - Light Mode */
#skills {
    background-color: #eef2ff;
    color: #1F2937;
}

/* Resume Section - Light Mode */
#resume {
    background-color: #f3f4f6;
    color: #1F2937;
}

/* Contact Section - Light Mode */
#contact {
    background-color: #f9fafb;
    color: #1F2937;
}

/* Section Background Colors - Dark Mode */
.dark section:nth-child(odd) {
    background-color: #111827;
    color: #F9FAFB;
}

.dark section:nth-child(even) {
    background-color: #1f2937;
    color: #F9FAFB;
}

/* Hero Section - Dark Mode */
.dark #hero {
    background-color: #0f172a;
    color: #F9FAFB;
}

/* About Section - Dark Mode */
.dark #about {
    background-color: #1f2937;
    color: #F9FAFB;
}

/* Projects Section - Dark Mode */
.dark #projects {
    background-color: #111827;
    color: #F9FAFB;
}

/* Skills Section - Dark Mode */
.dark #skills {
    background-color: #0f172a;
    color: #F9FAFB;
}

/* Resume Section - Dark Mode */
.dark #resume {
    background-color: #1f2937;
    color: #F9FAFB;
}

/* Contact Section - Dark Mode */
.dark #contact {
    background-color: #111827;
    color: #F9FAFB;
}

/* Navigation */
.nav-link {
    position: relative;
    color: #4B5563;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dark .nav-link {
    color: #D1D5DB;
}

/* Navigation Background - Light Mode */
nav {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

/* Navigation Background - Dark Mode */
.dark nav {
    background-color: rgba(17, 24, 39, 0.9) !important;
}

.nav-link:hover {
    color: #4F46E5;
}

.dark .nav-link:hover {
    color: #818CF8;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #4F46E5;
    transition: width 0.3s ease;
}

.dark .nav-link::after {
    background-color: #818CF8;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    color: #4B5563;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dark .mobile-nav-link {
    color: #D1D5DB;
}

.mobile-nav-link:hover {
    color: #4F46E5;
}

.dark .mobile-nav-link:hover {
    color: #818CF8;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #4F46E5;
    color: white;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    background-color: #4338CA;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: #4F46E5;
    font-weight: 600;
    border: 2px solid #4F46E5;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-align: center;
}

.dark .btn-secondary {
    color: #818CF8;
    border-color: #818CF8;
}

.btn-secondary:hover {
    background-color: #4F46E5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark .btn-secondary:hover {
    background-color: #818CF8;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.dark .section-title {
    color: #F9FAFB;
}

.section-line {
    width: 80px;
    height: 4px;
    background-color: #4F46E5;
    margin: 0 auto;
    border-radius: 2px;
}

.dark .section-line {
    background-color: #818CF8;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
}

.scroll-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.active {
    opacity: 1;
    transform: translateY(0);
}

/* Project Styles */
.project-filter-btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    background-color: transparent;
    color: #4B5563;
}

.dark .project-filter-btn {
    color: #D1D5DB;
}

.project-filter-btn.active, .project-filter-btn:hover {
    background-color: #4F46E5;
    color: white;
}

.dark .project-filter-btn.active, .dark .project-filter-btn:hover {
    background-color: #818CF8;
}

/* Skills Styles */
.skill-progress {
    animation: skillProgress 1.5s ease-out forwards;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background-color: #ffffff;
    color: #1F2937;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.dark .skill-card {
    background-color: #1F2937;
    color: #F9FAFB;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Card Backgrounds - Light Mode */
.card {
    background-color: #ffffff;
    color: #1F2937;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Card Backgrounds - Dark Mode */
.dark .card {
    background-color: #1f2937;
    color: #F9FAFB;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.skill-icon {
    margin-bottom: 1rem;
}

.skill-name {
    font-weight: 600;
    color: #4B5563;
}

.dark .skill-name {
    color: #D1D5DB;
}

.tool-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: white;
    color: #4B5563;
    font-weight: 500;
    border-radius: 9999px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.dark .tool-badge {
    background-color: #1F2937;
    color: #D1D5DB;
}

.tool-badge:hover {
    background-color: #4F46E5;
    color: white;
    transform: translateY(-2px);
}

.dark .tool-badge:hover {
    background-color: #818CF8;
}

/* Resume Styles */
.resume-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1rem;
    border-left: 2px solid #E5E7EB;
}

.dark .resume-item {
    border-left-color: #374151;
}

.resume-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #4F46E5;
    left: -9px;
    top: 0;
}

.dark .resume-item::before {
    background-color: #818CF8;
}

.resume-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #EEF2FF;
    color: #4F46E5;
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.dark .resume-date {
    background-color: #312E81;
    color: #A5B4FC;
}

.resume-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.25rem;
}

.dark .resume-title {
    color: #F9FAFB;
}

.resume-location {
    font-size: 1rem;
    color: #4B5563;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.dark .resume-location {
    color: #9CA3AF;
}

.resume-description {
    color: #6B7280;
    font-size: 0.95rem;
}

.dark .resume-description {
    color: #D1D5DB;
}

/* Contact Styles */
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #EEF2FF;
    color: #4F46E5;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.dark .contact-icon {
    background-color: #312E81;
    color: #A5B4FC;
}

.contact-icon i {
    font-size: 1.25rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #EEF2FF;
    color: #4F46E5;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dark .social-icon {
    background-color: #312E81;
    color: #A5B4FC;
}

.social-icon:hover {
    background-color: #4F46E5;
    color: white;
    transform: translateY(-3px);
}

.dark .social-icon:hover {
    background-color: #818CF8;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4B5563;
}

.dark .form-label {
    color: #D1D5DB;
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    background-color: white;
    color: #1F2937;
    transition: all 0.3s ease;
}

.dark .form-input {
    background-color: #1F2937;
    border-color: #374151;
    color: #F9FAFB;
}

.form-input:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.dark .form-input:focus {
    border-color: #818CF8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.form-input::placeholder {
    color: #9CA3AF;
}

.dark .form-input::placeholder {
    color: #6B7280;
}

/* Footer Styles */
.footer-link {
    color: #D1D5DB;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #818CF8;
}

/* Back to Top Button */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Completely Redesigned Skills Section */

/* Skills Card Base Styles */
.skills-card {
    background: rgba(30, 30, 46, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Skills Section - Complete Override for Background */
#skills {
    background: linear-gradient(135deg, #f3f4f6, #eef2ff) !important;
}

.dark #skills {
    background: linear-gradient(135deg, #0f172a, #1e1b4b) !important;
}

.skills-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4F46E5, #A78BFA);
    z-index: 1;
}

.skills-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.4);
}

.skills-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4F46E5, #A78BFA);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

/* Technical Skills - Clean List Design */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(79, 70, 229, 0.2);
    transform: translateY(-5px);
}

.skill-name {
    font-weight: 500;
    font-size: 1rem;
    color: #E5E7EB;
}

/* Design Skills - Bubble Design */
.design-skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.design-skill-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.design-skill-bubble:hover {
    background: rgba(79, 70, 229, 0.2);
    transform: translateY(-5px);
}

.bubble-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #A78BFA);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.design-skill-bubble:hover .bubble-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.6);
}

/* AI Section - Enhanced Modern Design */
.ai-skills-container {
    margin-top: 2rem;
}

.ai-card {
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.8), rgba(20, 20, 36, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(79, 70, 229, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.ai-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.ai-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.4);
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ai-skill {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ai-skill-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4F46E5, #6366F1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.ai-skill-name {
    font-size: 1rem;
    font-weight: 500;
    color: #E5E7EB;
}

.ai-skill:hover {
    background: rgba(79, 70, 229, 0.15);
    transform: translateX(5px);
}

/* Tools - Modern Cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tool-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-item i {
    font-size: 1.25rem;
    color: #A78BFA;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.tool-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

.tool-item:hover {
    background: rgba(79, 70, 229, 0.2);
    transform: translateY(-5px);
}

.tool-item:hover i {
    color: #fff;
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .design-skills-grid, .tools-grid, .ai-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .design-skills-grid, .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ai-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .design-skills-grid, .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-item {
        width: 100%;
    }
}

/* Heading Colors - Light Mode */
h1, h2, h3, h4, h5, h6 {
    color: #111827;
}

/* Heading Colors - Dark Mode */
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
    color: #F9FAFB;
}

/* Text Colors - Light Mode */
.text-primary {
    color: #1F2937;
}

.text-secondary {
    color: #4B5563;
}

.text-tertiary {
    color: #6B7280;
}

/* Text Colors - Dark Mode */
.dark .text-primary {
    color: #F9FAFB;
}

.dark .text-secondary {
    color: #E5E7EB;
}

.dark .text-tertiary {
    color: #D1D5DB;
}

/* Accent Colors - Consistent in both modes */
.text-accent {
    color: #4F46E5;
}

.dark .text-accent {
    color: #818CF8;
}

/* Hero Section - Light Mode */
#hero {
    background-color: #eef2ff;
    color: #1f2937;
}

/* Hero Section - Dark Mode */
.dark #hero {
    background: linear-gradient(135deg, #0f172a, #1e1b4b) !important;
    color: #3e2f7c;
}

.dark #hero h1,
.dark #hero h2,
.dark #hero p {
    color: rgb(0, 0, 0);
}

.dark #hero .text-indigo-600 {
    color: #5f31e9 !important;
}

.dark #hero .btn-primary {
    background-color: #7c3aed;
}

.dark #hero .btn-primary:hover {
    background-color: #6d28d9;
}

.dark #hero .btn-secondary {
    color: #a78bfa;
    border-color: #a78bfa;
}

.dark #hero .btn-secondary:hover {
    background-color: #7c3aed;
    color: white;
}

.dark #hero .fa-chevron-down {
    color: #a78bfa;
}

.dark #hero .fa-chevron-down:hover {
    color: #8b5cf6;
}

.dark #hero .border-white {
    border-color: #312e81 !important;
}