/* ===== MOBILE FIRST BASE STYLES ===== */
/* These styles apply by default and are overridden by larger screen media queries */

/* Base mobile styles (applied by default) */
:root {
    --section-padding: 50px 0;
    --container-padding: 0 10px;
}

/* Navbar mobile styles */
.navbar {
    padding: 10px 0;
}

.navbar-brand {
    font-size: 1.3rem;
}

.nav-link {
    font-size: 0.9rem;
    padding: 8px 12px !important;
}

.lang-toggle {
    font-size: 0.85rem;
    padding: 6px 12px;
}

/* Hero Section mobile styles */
.hero {
    padding: 80px 0 50px;
    min-height: auto;
}

.hero-title {
    font-size: 1.6rem !important;
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding: 0 10px;
}

.hero-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.hero-buttons .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
}

.profile-image {
    width: 180px !important;
    height: 180px !important;
    margin: 20px auto 30px;
}

.social-links {
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

/* Section Titles mobile styles */
.section-title {
    font-size: 1.6rem !important;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 0.85rem;
    margin-bottom: 30px;
}

/* About Section mobile styles */
.about-content {
    flex-direction: column;
    gap: 30px;
}

.about-text {
    padding: 20px;
}

.about-text h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.about-stats {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
}

.stat-item {
    padding: 15px;
}

.stat-item h4 {
    font-size: 1.8rem;
}

.stat-item p {
    font-size: 0.85rem;
}

.expertise-grid {
    grid-template-columns: 1fr;
    gap: 15px;
}

.expertise-item {
    padding: 20px;
}

.expertise-item h5 {
    font-size: 1rem;
}

.expertise-item p {
    font-size: 0.85rem;
}

/* Skills Section mobile styles */
.skills-grid {
    grid-template-columns: 1fr;
    gap: 15px;
}

.skill-category {
    padding: 20px 15px;
}

.skill-category h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.skill-list {
    gap: 8px;
}

.skill-item {
    padding: 10px 15px;
    font-size: 0.85rem;
}

.skill-item i {
    font-size: 1rem;
}

/* Software Skills Progress Grid mobile styles */
.skills-progress-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
}

.software-skills-full {
    padding: 20px;
}

.software-skills-full .category-header h4 {
    font-size: 1.4rem;
}

/* Progress Bars mobile styles */
.skill-progress-item {
    padding: 12px;
    margin-bottom: 12px;
}

.skill-progress-item .skill-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.skill-progress-item .skill-info span:first-child {
    font-size: 0.85rem;
}

.skill-progress-item .skill-level {
    font-size: 0.75rem;
    padding: 2px 8px;
}

.skill-progress-item .skill-bar {
    height: 8px;
}

/* Projects Section mobile styles */
.projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.project-card {
    margin-bottom: 15px;
}

.project-image {
    height: 200px;
}

.project-content {
    padding: 20px;
}

.project-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.project-title {
    font-size: 1.1rem;
}

.project-stats {
    flex-wrap: wrap;
    gap: 8px;
}

.project-stat {
    font-size: 0.75rem;
    padding: 4px 10px;
}

.project-description {
    font-size: 0.85rem;
    line-height: 1.5;
}

.project-features {
    padding-left: 15px;
}

.project-features li {
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.project-tags {
    gap: 6px;
}

.project-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
}

.project-footer {
    flex-direction: column;
    gap: 10px;
}

.project-progress {
    font-size: 0.85rem;
}

/* GitHub Stats mobile styles */
.github-stats-card {
    margin-bottom: 20px;
}

.github-header {
    padding: 15px;
    text-align: center;
}

.github-header h4 {
    font-size: 1.1rem;
}

.github-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.github-stat {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.github-stat h5 {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.github-stat .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.github-link {
    padding: 15px;
    text-align: center;
}

.github-link .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
}

/* Contact Section mobile styles */
.contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-info {
    padding: 20px;
}

.contact-info h4 {
    font-size: 1.2rem;
}

.contact-info p {
    font-size: 0.85rem;
}

.contact-item {
    padding: 15px;
}

.contact-item h5 {
    font-size: 0.95rem;
}

.contact-item p {
    font-size: 0.85rem;
}

.contact-form {
    padding: 20px;
}

.form-group label {
    font-size: 0.9rem;
}

.form-control {
    font-size: 0.9rem;
    padding: 10px 15px;
}

/* Footer mobile styles */
.footer {
    padding: 30px 0 20px;
}

.footer p {
    font-size: 0.85rem;
}

/* Hide particles on mobile by default */
#particles {
    display: none !important;
}

/* Navigation mobile styles */
.navbar-collapse {
    background: rgba(26, 26, 46, 0.98);
    border-radius: 12px;
    margin-top: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.navbar-nav {
    gap: 5px;
}

.navbar-nav .nav-link {
    padding: 12px 15px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background: rgba(108, 92, 231, 0.2);
    transform: translateX(5px);
}

.language-toggle {
    margin-top: 10px;
    text-align: center;
}

.language-toggle .btn {
    width: 100%;
    justify-content: center;
}

/* ===== TABLET AND DESKTOP OVERRIDES ===== */

/* Tablet Portrait (576px+) */
@media (min-width: 576px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.2rem !important;
    }
    
    .profile-image {
        width: 220px !important;
        height: 220px !important;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .github-content {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .github-stat {
        flex: 1;
        margin: 0 10px;
    }
}

/* Tablet Landscape (768px+) */
@media (min-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.4rem !important;
    }
    
    .profile-image {
        width: 250px !important;
        height: 250px !important;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        width: auto;
    }
    
    .hero-buttons .btn {
        width: auto;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .skills-progress-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr 1.5fr;
    }
    
    .navbar-collapse {
        background: none;
        border: none;
        margin-top: 0;
        padding: 0;
        backdrop-filter: none;
    }
    
    .navbar-nav {
        flex-direction: row;
    }
    
    .navbar-nav .nav-link:hover {
        transform: none;
    }
    
    .language-toggle {
        margin-top: 0;
        text-align: left;
    }
    
    .language-toggle .btn {
        width: auto;
    }
    
    #particles {
        display: block !important;
    }
}

/* Desktop (992px+) */
@media (min-width: 992px) {
    :root {
        --section-padding: 100px 0;
    }
    
    .hero-title {
        font-size: 3rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.6rem !important;
    }
    
    .profile-image {
        width: 300px !important;
        height: 300px !important;
    }
    
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.8rem !important;
    }
    
    .profile-image {
        width: 350px !important;
        height: 350px !important;
    }
    
    .skills-progress-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Extra Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}
