/* Base Responsive Styles */
@media screen and (max-width: 1400px) {
    .projects-grid,
    .skills-container,
    .certifications-grid {
        max-width: 100%;
        padding: 0 5%;
    }
}

/* Large Desktops */
@media screen and (max-width: 1200px) {
    .contact-container {
        max-width: 100%;
        padding: 0 5%;
    }

    .about-content {
        max-width: 100%;
        padding: 0 5%;
    }
}

/* Tablets and smaller desktops */
@media screen and (max-width: 1024px) {
    section {
        padding: 5rem 5%;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .navbar {
        padding: 1rem 5%;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr 1.5fr;
        gap: 3rem;
    }
}

/* Tablets */
@media screen and (max-width: 768px) {
    section {
        padding: 4rem 5%;
    }

    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--background);
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
        box-shadow: var(--shadow);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    /* Hero Section */
    .hero {
        padding: 6rem 5% 4rem;
    }

    .hero-content {
        padding: 0;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    /* About Section */
    .about-content {
        gap: 3rem;
    }

    .about-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .education, .experience {
        padding: 2rem;
    }

    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card {
        padding: 2rem;
    }

    /* Skills Section */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-category {
        padding: 2rem;
    }

    /* Certifications Section */
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .certification-card, .achievement-card {
        padding: 2rem;
    }

    /* Contact Section */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        order: 2;
        padding: 2rem;
    }

    #contact-form {
        order: 1;
        padding: 2rem;
    }

    .contact-item {
        gap: 1rem;
    }
}

/* Mobile devices */
@media screen and (max-width: 480px) {
    section {
        padding: 3rem 5%;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 5rem 5% 3rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .tagline {
        font-size: 1.25rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .about-text {
        font-size: 1rem;
        padding: 0;
    }

    .education, .experience {
        padding: 1.5rem;
    }

    .education-item, .experience-item {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .skills-category {
        padding: 1.5rem;
    }

    .certification-card, .achievement-card {
        padding: 1.5rem;
    }

    .contact-info, #contact-form {
        padding: 1.5rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-links a {
        font-size: 1.5rem;
    }
}

/* Small mobile devices */
@media screen and (max-width: 320px) {
    section {
        padding: 2.5rem 5%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .education, .experience,
    .project-card,
    .skills-category,
    .certification-card, .achievement-card,
    .contact-info, #contact-form {
        padding: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .hamburger, .cta-button, .social-links, #contact-form {
        display: none;
    }

    body {
        color: black;
        background: white;
    }

    section {
        page-break-inside: avoid;
        padding: 2rem 0;
        margin: 0;
    }

    .project-card, .skills-category, .certification-card, .achievement-card {
        box-shadow: none;
        border: 1px solid #ddd;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    a {
        text-decoration: none;
        color: black;
    }

    .contact-info {
        display: block;
        padding: 0;
        box-shadow: none;
        background: none;
    }

    .contact-item {
        margin-bottom: 1rem;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .about-content,
    .projects-grid,
    .skills-container,
    .certifications-grid,
    .contact-container {
        max-width: 100%;
        padding: 0;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #3b82f6;
        --secondary-color: #60a5fa;
        --text-color: #f3f4f6;
        --light-text: #d1d5db;
        --background: #111827;
        --section-bg: #1f2937;
        --card-bg: #1f2937;
        --border-color: #374151;
    }

    .hero {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }

    .hero::before {
        background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.2), transparent 70%);
    }

    .skill-item {
        background: #374151;
    }

    .skill-item:hover {
        background: var(--primary-color);
    }

    #contact-form input,
    #contact-form textarea {
        background: #374151;
        border-color: #4b5563;
        color: var(--text-color);
    }

    #contact-form input::placeholder,
    #contact-form textarea::placeholder {
        color: var(--light-text);
    }

    @media print {
        body {
            color: black;
            background: white;
        }

        .project-card, .skills-category, .certification-card, .achievement-card {
            border-color: #ddd;
        }
    }
} 