/* Responsive Design for Modern Portfolio */

/* Tablets and below (991px and down) */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-links {
        flex-direction: column;
    }

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

/* Mobile devices (767px and down) */
@media (max-width: 767.98px) {
    .navbar {
        padding: 1rem 0;
    }

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

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    .hero-section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .hero-socials {
        gap: 1rem;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .section-title::after {
        width: 80px;
    }

    .about-section {
        padding: 50px 0;
    }

    .about-content {
        font-size: 1rem;
    }

    .skills-section {
        padding: 50px 0;
    }

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

    .skill-card {
        padding: 1.5rem;
    }

    .skill-card h3 {
        font-size: 1.1rem;
    }

    .skill-card i {
        font-size: 1.2rem;
    }

    .experience-section {
        padding: 50px 0;
    }

    .experience-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        margin-left: 0;
    }

    .experience-card::before {
        left: -27px;
        top: 20px;
    }

    .experience-header h3 {
        font-size: 1.1rem;
    }

    .company {
        font-size: 1rem;
    }

    .projects-section {
        padding: 50px 0;
    }

    .projects-grid {
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-icon {
        font-size: 2.5rem;
    }

    .project-card h3 {
        font-size: 1.1rem;
    }

    .education-section {
        padding: 50px 0;
    }

    .education-timeline {
        gap: 1.5rem;
    }

    .education-card {
        padding: 1.5rem;
    }

    .education-icon {
        font-size: 2rem;
    }

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

    .contact-section {
        padding: 50px 0;
    }

    .contact-content p {
        font-size: 1rem;
    }

    .contact-links {
        gap: 1rem;
    }

    .contact-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
}

/* Very small mobile devices (479px and down) */
@media (max-width: 479.98px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.5rem;
        letter-spacing: 0px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .skill-card h3 {
        font-size: 1rem;
    }

    .skill-card p {
        font-size: 0.9rem;
    }

    .experience-card {
        padding: 1.2rem;
        margin-left: 0;
    }

    .experience-body li {
        padding-left: 20px;
        font-size: 0.9rem;
    }

    .project-card {
        padding: 1.2rem;
    }

    .project-card h3 {
        font-size: 1rem;
    }

    .tech-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .education-card {
        padding: 1.2rem;
        gap: 1rem;
    }

    .education-icon {
        font-size: 1.8rem;
    }

    .contact-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }
}
        margin-top: 20px;
        text-align: left;
        margin-right: 0;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .resume-container {
        margin: 10px auto;
        padding: 15px;
    }

    .name {
        font-size: 2rem;
    }

    .name span {
        font-size: 1.6rem;
    }

    .position {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .personal-details .row {
        display: block;
    }

    .personal-details .col-md-6 {
        width: 100%;
        margin-bottom: 10px;
    }
}