/* Comprehensive Responsive Design for All Devices */

/* ===== BASE RESPONSIVE BREAKPOINTS ===== */
/* 
- Mobile Small: 320px - 480px
- Mobile Large: 481px - 768px  
- Tablet: 769px - 1024px
- Desktop Small: 1025px - 1200px
- Desktop Large: 1201px - 1440px
- Desktop XL: 1441px+
*/

/* ===== MOBILE SMALL (320px - 480px) ===== */
@media (max-width: 480px) {

    /* Navigation */
    .navbar {
        padding: 0.5rem 1rem;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
    }

    .nav-container {
        height: 60px;
        padding: 0 1rem;
    }

    .nav-logo .logo-text {
        font-size: 1.2rem;
    }

    .nav-menu {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }

    /* Home Section */
    .home-section {
        padding: 70px 1rem 2rem;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .hero-text {
        order: 2;
        width: 100%;
        padding: 0 0.5rem;
    }

    .hero-image {
        order: 1;
        width: 100%;
        max-width: 220px;
        margin: 0 auto 1rem auto;
        flex-shrink: 0;
    }

    /* Title and Typography */
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.2rem;
    }

    .name-text {
        font-size: 1.6rem;
        display: block;
        margin-bottom: 0.1rem;
    }

    .typing-container {
        font-size: 0.9rem;
        justify-content: center;
        flex-wrap: wrap;
        margin: 0.5rem 0;
        min-height: 1.5rem;
    }

    .typing-text {
        font-size: 0.9rem;
        min-height: 1.2rem;
        display: block;
        text-align: center;
    }

    /* Description */
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 1rem 0;
        padding: 0 0.5rem;
        text-align: center;
        max-width: 100%;
    }

    /* Badges */
    .badge-container {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        margin: 0.3rem 0;
    }

    .animated-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        border-radius: 15px;
    }

    /* Buttons */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        margin: 1rem 0;
        justify-content: center;
    }

    .enhanced-btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
        justify-content: center;
    }

    /* Profile Image */
    .profile-placeholder {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .image-container {
        width: 180px;
        height: 180px;
    }

    .image-border {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
    }

    .border-corner {
        width: 15px;
        height: 15px;
    }

    /* Tech Orbit - Hide on small screens */
    .tech-orbit {
        display: none;
    }

    /* Floating Elements */
    .floating-element {
        font-size: 1.2rem;
        opacity: 0.4;
    }

    .code-element {
        top: 5%;
        left: 2%;
    }

    .security-element {
        top: 5%;
        right: 2%;
    }

    .energy-element {
        bottom: 50%;
        left: 1%;
    }

    .terminal-element {
        bottom: 50%;
        right: 1%;
    }

    .bug-element {
        bottom: 5%;
        right: 2%;
    }

    .shield-element {
        bottom: 5%;
        left: 2%;
    }

    /* Social Links */
    .hero-social {
        margin: 0;
    }

    .social-links {
        gap: 1rem;
        justify-content: center;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    /* Status Bar */
    .status-bar {
        position: relative;
        flex-direction: column;
        gap: 0.3rem;
        padding: 0.6rem 1rem;
        font-size: 0.7rem;
        margin-top: 1.5rem;
        border-radius: 15px;
    }

    /* Background Effects */
    .cyber-grid {
        background-size: 30px 30px;
    }

    .bg-shapes .shape {
        display: none;
    }

    /* Binary Rain */
    .binary-digit {
        font-size: 12px;
    }
}

/* ===== MOBILE LARGE (481px - 768px) ===== */
@media (min-width: 481px) and (max-width: 768px) {

    /* Navigation */
    .navbar {
        padding: 0.75rem 1.5rem;
        height: 70px;
    }

    .nav-logo .logo-text {
        font-size: 1.4rem;
    }

    /* Home Section */
    .home-section {
        padding: 0 1.5rem 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 0;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        max-width: 320px;
        margin: 0 auto;
    }

    /* Typography */
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.3rem;
    }

    .name-text {
        font-size: 2rem;
        margin-bottom: 0.1rem;
    }

    .typing-container {
        font-size: 1rem;
        justify-content: center;
        margin-bottom: 0.2rem;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin: 0.3rem 0;
        max-width: 600px;
    }

    /* Badges */
    .badge-container {
        gap: 0.8rem;
        justify-content: center;
        margin: 0.3rem 0;
    }

    .animated-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        margin: 0;
    }

    .enhanced-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Profile Image */
    .profile-placeholder {
        width: 250px;
        height: 250px;
    }

    /* Tech Orbit - Smaller version */
    .tech-orbit {
        transform: translate(-50%, -50%) scale(0.7);
    }

    /* Floating Elements */
    .floating-element {
        font-size: 1.5rem;
        opacity: 0.6;
    }

    .code-element {
        top: 8%;
        left: 5%;
    }

    .security-element {
        top: 8%;
        right: 5%;
    }

    .energy-element {
        bottom: 45%;
        left: 3%;
    }

    .terminal-element {
        bottom: 45%;
        right: 3%;
    }

    .bug-element {
        bottom: 8%;
        right: 8%;
    }

    .shield-element {
        bottom: 8%;
        left: 8%;
    }

    /* Social Links */
    .social-links {
        gap: 1.2rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Status Bar */
    .status-bar {
        flex-direction: row;
        gap: 1.5rem;
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
        margin-top: 2rem;
    }
}

/* ===== TABLET (769px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Navigation */
    .navbar {
        padding: 1rem 2rem;
        height: 80px;
    }

    .nav-menu {
        display: flex;
        gap: 2rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .hamburger {
        display: none;
    }

    /* Home Section */
    .home-section {
        padding: 5.5rem 2rem 0.5rem;
    }

    .hero-content {
        flex-direction: row;
        align-items: center;
        gap: 1.2rem;
        max-width: 1000px;
        margin: 0 auto;
    }

    .hero-text {
        flex: 1;
        text-align: left;
    }

    .hero-image {
        flex: 0 0 350px;
    }

    /* Typography */
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.3rem;
    }

    .name-text {
        font-size: 2.3rem;
        margin-bottom: 0.1rem;
    }

    .typing-container {
        font-size: 1.1rem;
        justify-content: flex-start;
        margin-bottom: 0.2rem;
    }

    .hero-description {
        font-size: 1.1rem;
        line-height: 1.7;
        margin: 0.3rem 0;
    }

    /* Badges */
    .badge-container {
        gap: 1rem;
        justify-content: flex-start;
        flex-wrap: wrap;
        margin: 0.3rem 0;
    }

    .animated-badge {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
        justify-content: flex-start;
        margin: 0;
    }

    .enhanced-btn {
        padding: 1.1rem 2.2rem;
        font-size: 1rem;
    }

    /* Profile Image */
    .profile-placeholder {
        width: 280px;
        height: 280px;
    }

    /* Tech Orbit */
    .tech-orbit {
        transform: translate(-50%, -50%) scale(0.8);
    }

    /* Floating Elements */
    .floating-element {
        font-size: 2rem;
        opacity: 0.7;
    }

    .code-element {
        top: 15%;
        left: 8%;
    }

    .security-element {
        top: 12%;
        right: 12%;
    }

    .energy-element {
        bottom: 35%;
        left: 5%;
    }

    .terminal-element {
        top: 65%;
        right: 8%;
    }

    .bug-element {
        bottom: 18%;
        right: 15%;
    }

    .shield-element {
        top: 45%;
        left: 3%;
    }

    /* Social Links */
    .hero-social {
        text-align: left;
        margin: 2.5rem 0;
    }

    .social-links {
        gap: 1.5rem;
        justify-content: flex-start;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* Status Bar */
    .status-bar {
        gap: 2rem;
        padding: 1rem 2rem;
        font-size: 0.9rem;
        bottom: 2rem;
    }
}

/* ===== DESKTOP SMALL (1025px - 1200px) ===== */
@media (min-width: 1025px) and (max-width: 1200px) {

    /* Navigation */
    .navbar {
        padding: 1rem 3rem;
        height: 85px;
    }

    .nav-menu {
        gap: 2.5rem;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    /* Home Section */
    .home-section {
        padding: 0 3rem 0;
    }

    .hero-content {
        max-width: 1100px;
        margin: 0 auto;
        gap: 1.5rem;
    }

    .hero-text {
        flex: 1;
    }

    .hero-image {
        flex: 0 0 400px;
    }

    /* Typography */
    .hero-title {
        font-size: 3rem;
        margin-bottom: 0.3rem;
    }

    .name-text {
        font-size: 2.8rem;
        margin-bottom: 0.1rem;
    }

    .typing-container {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }

    .hero-description {
        font-size: 1.2rem;
        line-height: 1.8;
        margin: 0.4rem 0;
    }

    /* Badges */
    .badge-container {
        gap: 1.2rem;
        margin: 0.4rem 0;
    }

    .animated-badge {
        font-size: 1rem;
        padding: 0.7rem 1.4rem;
    }

    /* Buttons */
    .hero-buttons {
        gap: 1rem;
        margin: 0;
    }

    .enhanced-btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }

    /* Profile Image */
    .profile-placeholder {
        width: 320px;
        height: 320px;
    }

    /* Tech Orbit */
    .tech-orbit {
        transform: translate(-50%, -50%) scale(0.9);
    }

    /* Floating Elements */
    .floating-element {
        font-size: 2.2rem;
        opacity: 0.8;
    }

    .code-element {
        top: 18%;
        left: 10%;
    }

    .security-element {
        top: 15%;
        right: 15%;
    }

    .energy-element {
        bottom: 32%;
        left: 6%;
    }

    .terminal-element {
        top: 68%;
        right: 10%;
    }

    .bug-element {
        bottom: 20%;
        right: 18%;
    }

    .shield-element {
        top: 48%;
        left: 4%;
    }

    /* Social Links */
    .social-links {
        gap: 1.8rem;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    /* Status Bar */
    .status-bar {
        gap: 2.5rem;
        padding: 1.2rem 2.5rem;
        font-size: 1rem;
    }
}

/* ===== DESKTOP LARGE (1201px+) ===== */
@media (min-width: 1201px) {

    /* Navigation */
    .navbar {
        padding: 1.2rem 4rem;
        height: 90px;
    }

    .nav-menu {
        gap: 3rem;
    }

    /* Home Section */
    .home-section {
        padding: 0 4rem 0;
    }

    .hero-content {
        max-width: 1200px;
        gap: 2rem;
    }

    .hero-image {
        flex: 0 0 450px;
    }

    /* Typography */
    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 0.5rem;
    }

    .name-text {
        font-size: 3.2rem;
        margin-bottom: 0.1rem;
    }

    .typing-container {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }

    .hero-description {
        font-size: 1.3rem;
        line-height: 1.9;
        margin: 3rem 0;
    }

    /* Badges */
    .badge-container {
        gap: 1.5rem;
        margin: 3rem 0;
    }

    .animated-badge {
        font-size: 1.1rem;
        padding: 0.8rem 1.6rem;
    }

    /* Buttons */
    .hero-buttons {
        gap: 1rem;
        margin: 0;
    }

    .enhanced-btn {
        padding: 1.3rem 2.8rem;
        font-size: 1.2rem;
    }

    /* Profile Image */
    .profile-placeholder {
        width: 350px;
        height: 350px;
    }

    /* Tech Orbit */
    .tech-orbit {
        transform: translate(-50%, -50%) scale(1);
    }

    /* Floating Elements */
    .floating-element {
        font-size: 2.5rem;
        opacity: 0.8;
    }

    .code-element {
        top: 20%;
        left: 12%;
    }

    .security-element {
        top: 18%;
        right: 18%;
    }

    .energy-element {
        bottom: 30%;
        left: 8%;
    }

    .terminal-element {
        top: 70%;
        right: 12%;
    }

    .bug-element {
        bottom: 22%;
        right: 20%;
    }

    .shield-element {
        top: 50%;
        left: 5%;
    }

    /* Social Links */
    .social-links {
        gap: 2rem;
    }

    .social-link {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    /* Status Bar */
    .status-bar {
        gap: 3rem;
        padding: 1.3rem 3rem;
        font-size: 1.1rem;
    }
}

/* Removed XL and Ultra-wide breakpoints - using desktop large as max */

/* ===== LANDSCAPE ORIENTATION FIXES ===== */
@media (max-height: 600px) and (orientation: landscape) {
    .home-section {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin: 1rem 0;
    }

    .badge-container {
        margin: 1rem 0;
    }

    .hero-buttons {
        margin: 0;
    }

    .profile-placeholder {
        width: 180px;
        height: 180px;
    }

    .status-bar {
        position: relative;
        margin-top: 1rem;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {

    .floating-element,
    .tech-orbit,
    .cyber-grid,
    .glitch-overlay,
    .scan-lines {
        animation: none !important;
    }

    .animated-badge,
    .enhanced-btn {
        transition: none !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {

    .animated-badge,
    .enhanced-btn,
    .social-link {
        border-width: 3px;
    }

    .floating-element {
        opacity: 1;
        font-weight: bold;
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .floating-elements-bg,
    .binary-rain,
    .particles-container,
    .cyber-grid,
    .glitch-overlay,
    .scan-lines,
    .bg-shapes,
    .tech-orbit {
        display: none !important;
    }

    .home-section {
        padding: 2rem;
        background: white !important;
        color: black !important;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== RESPONSIVE DESIGN FOR OTHER SECTIONS ===== */

/* ===== RESEARCH SECTION RESPONSIVE ===== */
@media (max-width: 480px) {
    .research-papers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .research-paper-card {
        margin: 0 0.5rem;
    }

    .paper-header {
        padding: 1rem 1.5rem 0.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .paper-number {
        font-size: 1.2rem;
    }

    .paper-content {
        padding: 0 1.5rem 1rem;
    }

    .paper-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .paper-authors {
        font-size: 0.8rem;
        text-align: center;
    }

    .paper-affiliations {
        font-size: 0.7rem;
        text-align: center;
    }

    .paper-abstract {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .paper-keywords {
        justify-content: center;
    }

    .keyword {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .paper-actions {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem 1.5rem;
    }

    .action-btn {
        font-size: 0.8rem;
        padding: 0.7rem 1rem;
    }

    .research-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 2rem 0;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .stat-card .stat-number {
        font-size: 1.5rem;
    }

    .stat-card .stat-label {
        font-size: 0.8rem;
    }

    .areas-title {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    .areas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .area-card {
        padding: 1.5rem;
    }

    .area-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .area-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .area-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .research-papers-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2.5rem 0;
    }

    .paper-header {
        padding: 1.2rem 1.8rem 0.8rem;
    }

    .paper-content {
        padding: 0 1.8rem 1.2rem;
    }

    .paper-title {
        font-size: 1.15rem;
    }

    .paper-actions {
        padding: 1.2rem 1.8rem;
    }

    .research-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin: 3rem 0;
    }

    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .research-papers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .research-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1025px) {
    .research-papers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .research-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .areas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* ===== ABOUT SECTION RESPONSIVE ===== */
@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 2rem 0;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .about-timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        margin-bottom: 2rem;
    }

    .timeline-year {
        font-size: 0.8rem;
    }

    .timeline-title {
        font-size: 1rem;
    }

    .timeline-description {
        font-size: 0.9rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .timeline-item {
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 769px) {
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* ===== PROJECTS SECTION RESPONSIVE ===== */
@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-image {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .project-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .project-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .project-tech {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .tech-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .project-card {
        padding: 2rem;
    }

    .project-image {
        font-size: 2.5rem;
    }

    .tech-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1025px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

/* ===== SKILLS SECTION RESPONSIVE ===== */
@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .skill-category-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .skill-item {
        margin-bottom: 1rem;
    }

    .skill-name {
        font-size: 0.9rem;
    }

    .skill-level {
        font-size: 0.7rem;
    }

    .skill-progress {
        height: 6px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-category-title {
        font-size: 1.1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1025px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1201px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

/* ===== CONTACT SECTION RESPONSIVE ===== */
@media (max-width: 480px) {
    .contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-input,
    .form-textarea {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .form-textarea {
        min-height: 100px;
    }

    .contact-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .contact-item {
        margin-bottom: 1rem;
    }

    .contact-icon {
        font-size: 1rem;
    }

    .contact-text {
        font-size: 0.9rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .contact-form {
        padding: 2rem;
    }

    .contact-info {
        padding: 2rem;
    }
}

@media (min-width: 769px) {
    .contact-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* ===== NAVIGATION RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .home-section {
        padding-top: 70px !important;
    }
    
    .mobile-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        right: auto;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 255, 65, 0.3);
        padding: 2rem 0;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        left: 0;
    }

    .mobile-menu ul {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 2rem;
    }

    .mobile-menu a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 255, 65, 0.1);
        display: block;
        transition: all 0.3s ease;
    }
    
    .mobile-menu a:hover {
        color: #00ff41;
        padding-left: 1rem;
    }

    .theme-toggle {
        transform: scale(0.8);
    }
    
    .hamburger {
        display: flex !important;
    }
    
    .nav-menu {
        display: none !important;
    }
}

/* ===== LOADER RESPONSIVE ===== */
@media (max-width: 480px) {
    .hacking-loader {
        padding: 2rem 1rem;
    }

    .loader-logo {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .loader-subtitle {
        font-size: 0.8rem;
        margin-bottom: 2rem;
    }

    .boot-sequence {
        height: 200px;
        font-size: 0.7rem;
        padding: 1rem;
    }

    .system-status {
        font-size: 0.8rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .loader-logo {
        font-size: 2.5rem;
    }

    .loader-subtitle {
        font-size: 0.9rem;
    }

    .boot-sequence {
        height: 250px;
        font-size: 0.8rem;
    }
}

/* ===== CHATBOT RESPONSIVE ===== */
@media (max-width: 480px) {
    .chatbot-window {
        width: 90vw;
        height: 70vh;
        bottom: 1rem;
        right: 1rem;
    }

    .chatbot-header {
        padding: 0.8rem;
    }

    .chatbot-title {
        font-size: 0.9rem;
    }

    .chatbot-messages {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .chatbot-input-container {
        padding: 0.8rem;
    }

    .chatbot-input {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .chatbot-send {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1.2rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .chatbot-window {
        width: 400px;
        height: 500px;
    }

    .chatbot-toggle {
        width: 55px;
        height: 55px;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS FOR MOBILE ===== */
@media (max-width: 768px) {

    /* Reduce animation complexity on mobile */
    .binary-digit {
        animation-duration: 4s;
    }

    .particle {
        animation-duration: 8s;
    }

    /* Simplify background effects */
    .cyber-grid {
        opacity: 0.3;
    }

    .glitch-overlay {
        display: none;
    }

    .scan-lines {
        opacity: 0.5;
    }

    /* Reduce floating elements complexity */
    .floating-element::before {
        display: none;
    }

    .element-trail {
        display: none;
    }
}

/* ===== CONTAINER AND SECTION RESPONSIVE ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
        max-width: 100%;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
        max-width: 1000px;
    }

    .section {
        padding: 5rem 0;
    }
}

@media (min-width: 1025px) {
    .container {
        padding: 0 3rem;
        max-width: 1200px;
    }

    .section {
        padding: 6rem 0;
    }
}

@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }

    .section {
        padding: 8rem 0;
    }
}

/* ===== UTILITY CLASSES FOR RESPONSIVE ===== */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }
}

.hide-desktop {
    display: none;
}

.show-desktop {
    display: block;
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }

    .show-desktop {
        display: block !important;
    }
}

/* ===== RESPONSIVE IMAGES ===== */
img {
    max-width: 100%;
    height: auto;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 1025px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 1441px) {
    html {
        font-size: 17px;
    }
}

/* ===== RESPONSIVE SPACING UTILITIES ===== */
@media (max-width: 480px) {
    .mb-mobile-1 {
        margin-bottom: 0.5rem;
    }

    .mb-mobile-2 {
        margin-bottom: 1rem;
    }

    .mb-mobile-3 {
        margin-bottom: 1.5rem;
    }

    .mb-mobile-4 {
        margin-bottom: 2rem;
    }

    .mt-mobile-1 {
        margin-top: 0.5rem;
    }

    .mt-mobile-2 {
        margin-top: 1rem;
    }

    .mt-mobile-3 {
        margin-top: 1.5rem;
    }

    .mt-mobile-4 {
        margin-top: 2rem;
    }

    .p-mobile-1 {
        padding: 0.5rem;
    }

    .p-mobile-2 {
        padding: 1rem;
    }

    .p-mobile-3 {
        padding: 1.5rem;
    }

    .p-mobile-4 {
        padding: 2rem;
    }
}