/* ===================================
   RESPONSIVE STYLES - COMPLETE
   Mobile-Optimized Portfolio
   =================================== */

/* ===================================
   Tablet (max-width: 1024px)
   =================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .greeting,
    .hero-buttons,
    .social-links {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .interests-grid,
    .research-interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   Mobile (max-width: 768px)
   =================================== */
@media (max-width: 768px) {
    /* ===== Typography ===== */
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    /* ===== Navigation ===== */
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem;
        justify-content: flex-start;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    /* ===== Logo Mobile ===== */
    .logo {
        gap: 0.4rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-icon i {
        font-size: 1rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem !important;
        letter-spacing: 1px !important;
    }
    
    /* ===== Hero Section ===== */
    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text {
        order: 2;
        text-align: center;
    }
    
    .hero-image {
        order: 1;
        max-width: 270px;
        margin: 0 auto;
    }
    
    .greeting {
        font-size: 1rem;
        justify-content: center;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
/* ===================================
   Floating Cards Mobile - WIDER FOR FULL TEXT
   =================================== */
@media (max-width: 768px) {
    .floating-card {
        width: auto;
        min-width: 110px;
        max-width: 140px;
        height: 32px;
        padding: 0 0.6rem;
        font-size: 0.68rem;
        gap: 0.35rem;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        overflow: visible;
    }
    
    .floating-card i {
        font-size: 0.85rem;
        flex-shrink: 0;
        margin-right: 0.3rem;
    }
    
    .floating-card span {
        white-space: nowrap;
    }
    
    /* Show full text on mobile */
    .card-text-full {
        display: inline !important;
    }
    
    .card-text-short {
        display: none !important;
    }
    
    /* Position cards with more spacing */
    .card-1 {
        top: 0%;
        right: -10px;
        left: auto;
    }
    
    .card-2 {
        top: 45%;
        left: -10px;
        right: auto;
    }
    
    .card-3 {
        top: 60%;
        right: -10px;
        left: auto;
    }
    
    .card-4 {
        top: 15%;
        left: -10px;
        right: auto;
    }
    
    .card-5 {
        top: 30%;
        right: -10px;
        left: auto;
    }
    
    .card-6 {
        top: 75%;
        left: -10px;
        right: auto;
    }
    
    .hero-image {
        max-width: 280px;
    }
    
    .image-container {
        padding: 1.5rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .floating-card {
        min-width: 100px;
        max-width: 130px;
        height: 30px;
        font-size: 0.65rem;
        padding: 0 0.5rem;
    }
    
    .floating-card i {
        font-size: 0.8rem;
    }
    
    .hero-image {
        max-width: 250px;
    }
    
    /* Bring cards slightly closer */
    .card-1 { right: -8px; }
    .card-2 { left: -8px; }
    .card-3 { right: -8px; }
    .card-4 { left: -8px; }
    .card-5 { right: -8px; }
    .card-6 { left: -8px; }
}

@media (max-width: 360px) {
    .floating-card {
        min-width: 95px;
        max-width: 120px;
        font-size: 0.62rem;
    }
    
    .hero-image {
        max-width: 220px;
    }
}

    
    /* ===== Sections ===== */
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    /* ===== About Section ===== */
    .about-text .lead {
        font-size: 1.1rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        margin-top: 2rem;
    }
    
    .stat-card {
        padding: 1.75rem 1rem;
        min-height: 140px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .stat-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 1rem;
    }
    
    .stat-icon i {
        font-size: 1.6rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
        font-weight: 800;
        line-height: 1;
        margin-bottom: 0.75rem;
        color: var(--primary-color);
    }
    
    .stat-label {
        font-size: 0.9rem;
        text-align: center;
        line-height: 1.3;
    }
    
    .quick-facts {
        gap: 1rem;
    }
    
    .fact-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* ===== Expertise Grid ===== */
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .expertise-card {
        padding: 2rem 1.5rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon i {
        font-size: 1.8rem;
    }
    
    .expertise-card h3 {
        font-size: 1.25rem;
    }
    
    .expertise-card p {
        font-size: 0.95rem;
    }
    
    /* ===== Timeline ===== */
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
        left: 0;
    }
    
    .timeline-marker i {
        font-size: 1.1rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
    
    .timeline-description {
        font-size: 0.95rem;
    }
    
    .timeline-tags {
        gap: 0.4rem;
    }
    
    .timeline-tags span {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .timeline-achievements {
        font-size: 0.9rem;
    }
    
    /* ===== Skills Page ===== */
    .skill-level-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    /* ===== Contact Section ===== */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .info-card {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
    }
    
    .info-icon i {
        font-size: 1.2rem;
    }
    
    /* ===== Projects Page ===== */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .publication-actions,
    .project-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .project-link,
    .btn-small {
        width: 100%;
        justify-content: center;
    }
    
    .publication-details {
        padding: 1.25rem;
    }
    
    /* ===== Research Interests ===== */
    .interests-grid,
    .research-interests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .interest-card {
        padding: 2rem 1.5rem;
    }
    
    .interest-icon {
        width: 65px;
        height: 65px;
    }
    
    .interest-icon i {
        font-size: 2rem;
    }
    
    .interest-card h3 {
        font-size: 1.25rem;
    }
    
    .interest-card p {
        font-size: 0.95rem;
    }
    
    /* ===== CTA Section ===== */
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    /* ===== Footer ===== */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* ===== Back to Top ===== */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* ===================================
   Small Mobile (max-width: 480px)
   =================================== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        min-height: 120px;
    }
    
    .expertise-card {
        padding: 1.75rem 1.25rem;
    }
    
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .floating-card {
        font-size: 0.68rem;
        padding: 0.35rem 0.6rem;
    }
    
    .floating-card i {
        font-size: 0.85rem;
    }
    
    .hero-image {
        max-width: 240px;
    }
    
    .card-1 { right: -3px; }
    .card-2 { left: -3px; }
    .card-3 { right: -3px; }
    .card-4 { left: -3px; }
    .card-5 { right: -3px; }
    .card-6 { left: -3px; }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .logo-subtitle {
        font-size: 0.65rem !important;
    }
}

/* ===================================
   Desktop - Show Full Card Text
   =================================== */
@media (min-width: 769px) {
    .card-text-full {
        display: inline;
    }
    
    .card-text-short {
        display: none;
    }
}

/* ===================================
   Landscape Mobile
   =================================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 0 2rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .nav-menu {
        padding-top: 5rem;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .navbar,
    .hamburger,
    .back-to-top,
    .scroll-indicator,
    .contact-form-wrapper,
    .floating-card {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}
