/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet */
@media (max-width: 1024px) {
    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .circle-1 { width: 350px; height: 350px; }
    .circle-2 { width: 250px; height: 250px; }
    .circle-3 { width: 150px; height: 150px; }
    
    /* About */
    .about-container {
        grid-template-columns: 350px 1fr;
        gap: 4rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Navigation */
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #2c3e50;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem 0;
        gap: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a {
        display: block;
        padding: 0.5rem 1rem;
    }
    
    /* Hero */
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-role-wrapper {
        font-size: 1.4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .role-text-container {
        height: 50px;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .circle-1 { width: 280px; height: 280px; }
    .circle-2 { width: 200px; height: 200px; }
    .circle-3 { width: 120px; height: 120px; }
    
    .code-snippet {
        max-width: 100%;
    }
    
    /* About */
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-section {
        position: relative;
        top: 0;
    }
    
    .image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-text p {
        font-size: 1rem;
        text-align: left;
    }
    
    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    /* Experience */
    .experience-timeline::before {
        left: 20px;
    }
    
    .experience-header {
        flex-direction: column;
        padding: 2rem 1.5rem;
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .experience-title-section h3 {
        font-size: 1.3rem;
    }
    
    .company-name {
        font-size: 1.1rem;
    }
    
    .experience-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .experience-content {
        padding: 2rem 1.5rem;
    }
    
    .responsibilities li {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Education */
    .education-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .education-content h3 {
        font-size: 1.2rem;
        min-height: auto;
    }
    
    .degree-icon {
        font-size: 3rem;
    }
    
    .education-header {
        padding: 2rem 1.5rem;
    }
    
    .education-content {
        padding: 1.5rem;
    }
    
    .field-of-study {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Certifications */
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-card {
        padding: 2rem 1.5rem;
    }
    
    .cert-card h3 {
        font-size: 1.05rem;
        min-height: auto;
    }
    
    .cert-icon {
        font-size: 3rem;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-image-section {
        padding: 2.5rem 1.5rem;
    }
    
    .project-icon {
        width: 80px;
        height: 80px;
        line-height: 80px;
        font-size: 3rem;
    }
    
    .project-body {
        padding: 1.5rem;
    }
    
    .project-header-info h3 {
        font-size: 1.2rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    /* Sections */
    section {
        padding: 60px 20px;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    /* Hero */
    .hero-name {
        font-size: 2rem;
    }
    
    .wave-emoji {
        font-size: 2rem;
    }
    
    .greeting-text {
        font-size: 1.1rem;
    }
    
    .hero-role-wrapper {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-divider {
        width: 100px;
        height: 2px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
    
    .code-body {
        font-size: 0.85rem;
        padding: 1rem;
    }
    
    /* About */
    .about {
        padding: 50px 15px;
    }
    
    .about h2 {
        font-size: 1.8rem;
    }
    
    .image-wrapper {
        max-width: 100%;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
    
    /* Experience */
    .experience h2 {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .experience-title-section h3 {
        font-size: 1.2rem;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .responsibilities h5,
    .tech-used h5 {
        font-size: 1rem;
    }
    
    .responsibilities li span:last-child {
        font-size: 0.9rem;
    }
    
    /* Education */
    .degree-level {
        font-size: 1.1rem;
    }
    
    .education-content h3 {
        font-size: 1.1rem;
    }
    
    .education-highlights {
        padding: 1rem;
    }
    
    /* Projects */
    .projects h2 {
        font-size: 1.8rem;
    }
    
    .projects .section-subtitle {
        font-size: 0.95rem;
    }
    
    .project-icon {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 2.5rem;
    }
    
    .project-header-info h3 {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .project-highlights h4 {
        font-size: 0.95rem;
    }
    
    .project-highlights li {
        font-size: 0.85rem;
    }
    
    /* Footer */
    footer {
        padding: 1.5rem 0;
    }
    
    footer p {
        font-size: 0.85rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 20px 40px;
    }
    
    .hero-visual {
        display: none;
    }
}
