:root {
    --primary-color: #5D5CDE;
    --bg-color: #121212;
    --card-bg: #1E1E1E;
    --text-color: #FFFFFF;
    --text-secondary: #AAAAAA;
    --border-color: #333333;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
}

.container {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Navigation */
.nav-link {
    position: relative;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Card styles */
.card {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Text colors */
.text-primary {
    color: var(--primary-color);
}

/* Skills bar */
.skill-bar {
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Project grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Contact form */
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(93, 92, 222, 0.3);
}

/* Swiper for project details */
.swiper-container {
    width: 100%;
    padding-bottom: 50px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 300px;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
} 
/* Ensure all sections are visible */
section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix for project grid */
.project-grid {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix for skill bars animation */
.skill-progress {
    transition: width 1.5s ease-out;
}
/* Add these styles to the end of your style.css file */

/* Fix for mobile menu */
.mobile-menu {
    display: block;
    transition: all 0.3s ease;
}

.mobile-menu.hidden {
    display: none;
}

/* Fix for skill bars initialization */
.skill-progress {
    width: 0; /* Start at 0 width */
    transition: width 1.5s ease-out;
}

/* Ensure main content is visible */
main {
    display: block !important;
    visibility: visible !important;
}

/* Fix for featured projects section */
#projects {
    display: block !important;
    padding: 4rem 0 !important;
}

/* Fix for hero section spacing on mobile */
@media (max-width: 767px) {
    .pt-32 {
        padding-top: 6rem !important;
    }
    
    .pb-16 {
        padding-bottom: 3rem !important;
    }
    
    /* Adjust project grid for mobile */
    .project-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Additional responsive fixes */
@media (min-width: 768px) and (max-width: 1023px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Fix for potential content overflow */
body {
    overflow-x: hidden;
}

.container {
    overflow-x: hidden;
}

/* Ensure images load and display properly */
img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix for skill sections spacing */
#skills {
    padding: 4rem 0 !important;
}

/* Fix for call to action section */
.bg-gradient-to-r {
    background: linear-gradient(to right, var(--primary-color), #7c4dff) !important;
    display: block !important;
}