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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Text Justification */
p, li, span, .project-details {
    text-align: justify;
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    font-weight: 700;
}

h1 {
    letter-spacing: 1px;
    font-weight: 800;
}

h2 {
    letter-spacing: 0.8px;
    font-weight: 700;
}

h3 {
    font-weight: 600;
}

/* Button Styles */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #2c3e50;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo h2 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-logo span {
    font-family: 'Montserrat', sans-serif;
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #3498db;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 100px 20px 50px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out;
}

.hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.9;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.4s both;
    text-align: center;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.stat p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.8s both;
    flex-wrap: wrap;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: #3498db;
    margin: 0 auto;
}

/* About Section */
.about {
    background-color: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #555;
    text-align: justify;
}

.qualifications, .education {
    margin-bottom: 2rem;
}

.qualifications h3, .education h3 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.qualifications ul, .education ul {
    list-style: none;
}

.qualifications li, .education li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    color: #555;
    text-align: justify;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

.qualifications i, .education i {
    color: #3498db;
    margin-right: 0.8rem;
    width: 20px;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info-item i {
    color: #3498db;
    margin-right: 1rem;
    width: 20px;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.info-item span, .info-item a {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    text-decoration: none;
    flex: 1;
    font-weight: 400;
    word-break: break-word;
}

.info-item a {
    color: #3498db;
}

.info-item a:hover {
    text-decoration: underline;
}

/* Experience Section */
.experience {
    background-color: #f8f9fa;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3498db;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) {
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 2;
    letter-spacing: 0.3px;
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.timeline-content h3 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.timeline-content h4 {
    font-family: 'Montserrat', sans-serif;
    color: #3498db;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.timeline-content p {
    font-family: 'Open Sans', sans-serif;
    color: #666;
    line-height: 1.6;
    text-align: justify;
    font-weight: 400;
}

/* Projects Section */
.projects {
    background-color: #f8f9fa;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.filter-btn:hover, .filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

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

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-overlay p {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    text-align: center;
}

.project-details {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.7;
    text-align: center;
}

/* Skills Section */
.skills {
    background-color: white;
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skills-category {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.skills-category h3 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

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

.skill-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.skill-item span {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #555;
    text-align: center;
}

/* Contact Section */
.contact {
    background-color: #34495e;
    color: white;
}

.contact .section-header h2 {
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background: #2c3e50;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-info h3,
.contact-info h4 {
    font-family: 'Montserrat', sans-serif;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-info p {
    color: white;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-right: 1.5rem;
    width: 30px;
    flex-shrink: 0;
}

.contact-item div {
    flex: 1;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.contact-item p, .contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: #3498db;
    text-decoration: underline;
}

.contact-form {
    background: #2c3e50;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-form h3 {
    font-family: 'Montserrat', sans-serif;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #34495e;
    border: 1px solid #555;
    border-radius: 5px;
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bdc3c7;
}

.contact-form .btn-primary {
    width: 100%;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
    text-align: justify;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-section p i {
    margin-right: 10px;
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.7;
    margin: 0;
}

/* Back to Top Button */
#back-to-top-btn {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#back-to-top-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Lightbox/Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding-top: 60px;
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoom {
    from {
        transform: scale(0.1)
    }
    to {
        transform: scale(1)
    }
}

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

/* Projects Filtering */
.project-card.hidden {
    display: none;
}

/* TABLET STYLES */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

/* MOBILE STYLES */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Navigation Mobile */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        backdrop-filter: blur(10px);
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-logo h2 {
        font-size: 1.3rem;
    }

    .nav-logo span {
        font-size: 0.8rem;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: 100vh;
        padding: 120px 15px 50px;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
        margin-bottom: 1rem;
    }

    .hero h2 {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
        margin-bottom: 2rem;
        justify-content: space-around;
    }

    .stat h3 {
        font-size: 2rem;
    }

    .stat p {
        font-size: 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 15px 30px;
    }

    /* Section padding mobile */
    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: justify;
    }

    .qualifications h3, .education h3 {
        font-size: 1.1rem;
    }

    .info-card {
        padding: 1.5rem;
        margin-top: 1rem;
    }

    /* Timeline Mobile - Simplified */
    .timeline::before {
        left: 20px;
        width: 2px;
    }

    .timeline-item {
        margin-bottom: 2.5rem;
        text-align: left;
    }

    .timeline-date {
        position: static;
        transform: none;
        display: inline-block;
        margin-bottom: 1rem;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px;
        margin-top: 0;
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .timeline-content h4 {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Projects Mobile */
    .project-filters {
        gap: 0.5rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    .filter-btn {
        padding: 0.7rem 1rem;
        font-size: 0.75rem;
        border-radius: 20px;
        white-space: nowrap;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image {
        height: 220px;
    }

    /* Make project overlay always visible on mobile */
    .project-overlay {
        position: static;
        transform: none;
        background: rgba(44, 62, 80, 0.95);
        padding: 1.2rem;
    }

    .project-overlay h3 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .project-overlay p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .project-details {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    /* Skills Mobile */
    .skills-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-category {
        padding: 1.5rem;
    }

    .skills-category h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .skill-items {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.8rem;
    }

    .skill-item {
        padding: 0.8rem 0.5rem;
    }

    .skill-item i {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }

    .skill-item span {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    /* Contact Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .contact-item {
        margin-bottom: 1.2rem;
        align-items: center;
    }

    .contact-item i {
        font-size: 1.3rem;
        width: 25px;
        margin-right: 1rem;
    }

    .contact-item h4 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .contact-item p,
    .contact-item a {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px;
        font-size: 1rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 2rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.85rem;
        text-align: center;
    }

    .footer-section ul {
        text-align: center;
    }

    /* Back to top mobile */
    #back-to-top-btn {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 1rem;
        bottom: 15px;
        right: 15px;
    }

    /* Modal mobile */
    .modal-content {
        width: 95%;
        margin-top: 20px;
    }

    .close-btn {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
}

/* SMALL MOBILE DEVICES */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .nav-logo h2 {
        font-size: 1.1rem;
    }

    .nav-logo span {
        font-size: 0.7rem;
    }

    .hero {
        padding: 100px 10px 40px;
    }

    .hero h1 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }

    .hero h2 {
        font-size: 1rem;
        letter-spacing: 0.3px;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .stat h3 {
        font-size: 1.8rem;
    }

    .stat p {
        font-size: 0.75rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .filter-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.7rem;
        margin: 0.2rem;
    }

    .project-overlay h3 {
        font-size: 0.9rem;
    }

    .project-overlay p {
        font-size: 0.8rem;
    }

    .project-details {
        font-size: 0.7rem;
    }

    .timeline-content {
        margin-left: 30px;
        padding: 1.2rem;
    }

    .timeline-content h3 {
        font-size: 0.9rem;
    }

    .timeline-content h4 {
        font-size: 0.8rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.2rem;
    }

    .skill-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .skill-item {
        padding: 0.6rem 0.3rem;
    }

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

    .skill-item span {
        font-size: 0.75rem;
    }

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

    .qualifications li,
    .education li {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* EXTRA SMALL DEVICES */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero h2 {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-btn {
        font-size: 0.65rem;
        padding: 0.5rem 0.6rem;
    }

    .skill-items {
        grid-template-columns: 1fr;
    }
}