/* Responsive CSS */
/* Large Devices (Desktops, 1200px and down) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Medium Devices (Tablets, 992px and down) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-img,
    .about-text {
        width: 100%;
        text-align: center;
    }
    
    .about-img img {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .timeline-item {
        text-align: left;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Small Devices (Landscape phones, 768px and down) */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
    }
    
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .certificate-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btns .btn {
        width: 80%;
        max-width: 250px;
    }
}

/* Extra Small Devices (Portrait phones, 576px and down) */
@media (max-width: 576px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .logo a {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1rem;
    }
    
    .hero p {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .certificate-gallery {
        grid-template-columns: 1fr;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-links .btn {
        width: 100%;
    }
    
    .footer-content {
        padding: 0 15px;
    }
}

/* Extra Extra Small Devices (Small phones, 400px and down) */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .project-info {
        padding: 1rem;
    }
    
    .certificate-info {
        padding: 1rem;
    }
}

/* Responsive — Certificate Section */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .certificate-gallery {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .certificate-item img {
        height: 180px;
    }

    .certificate-info h3 {
        font-size: 1.1rem;
    }

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

/* Mobile Landscape & Small Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .certificate-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.2rem;
    }

    .certificate-item img {
        height: 160px;
    }

    .certificate-info {
        padding: 1.2rem;
    }

    .certificate-info h3 {
        font-size: 1rem;
    }
}

/* Mobile Portrait (max-width: 576px) */
@media (max-width: 576px) {
    .certificate-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .certificate-item img {
        height: auto;
    }

    .certificate-info {
        padding: 1rem;
    }

    .certificate-info h3 {
        font-size: 1rem;
    }

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