/* Responsive Styles for Keerthika's Portfolio */

/* Large Screens (Desktops) */
@media screen and (max-width: 1200px) {
    .skill-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .certifications-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Medium Screens (Tablets) */
@media screen and (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-details {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .skill-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card {
        flex-direction: column;
    }
    
    .project-image {
        min-height: 200px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* Small Screens (Mobile Landscape) */
@media screen and (max-width: 768px) {
    .navbar .container {
        position: relative;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: -1;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        z-index: 1;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .skill-grid {
        grid-template-columns: 1fr;
    }
    
    .education-card, .certification-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .education-details, .certification-details {
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Extra Small Screens (Mobile Portrait) */
@media screen and (max-width: 480px) {
    .hero {
        height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .project-details {
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
}
