/*
 * Portfolio - Responsive Stylesheet
 * Author: Rajesh Sharma
 * Description: Mobile-first responsive design
 */

/* ==========================================
   EXTRA LARGE DEVICES (1400px and up)
========================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* ==========================================
   LARGE DEVICES (992px to 1199px)
========================================== */
@media (max-width: 1199px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

/* ==========================================
   MEDIUM DEVICES (768px to 991px) - Tablets
========================================== */
@media (max-width: 991px) {
    /* Typography */
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Spacing */
    section {
        padding: 60px 0;
    }
    
    /* Navigation */
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .navbar-nav .btn-primary {
        margin-top: 1rem;
        width: auto;
        display: inline-block;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 80px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .stat-box {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 120px 0 80px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 30px;
    }
    
    .timeline-marker {
        left: -37px;
    }
    
    /* Project Detail */
    .project-image-wrapper {
        margin-bottom: 2rem;
    }
    
    /* About Section */
    .about-image {
        margin-bottom: 2rem;
    }
    
    /* Contact */
    .contact-form-wrapper {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    /* Footer */
    .footer .col-md-6,
    .footer .col-lg-4,
    .footer .col-lg-2 {
        margin-bottom: 2rem;
    }
}

/* ==========================================
   SMALL DEVICES (576px to 767px) - Large Phones
========================================== */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }
    
    body {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Spacing */
    section {
        padding: 50px 0;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand i {
        font-size: 1.5rem;
    }
    
    .brand-name {
        display: inline-block;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .hero-greeting {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        min-height: 50px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        margin: 2rem 0;
    }
    
    .stat-box {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.875rem 1.5rem;
    }
    
    .scroll-down {
        display: none;
    }
    
    /* Page Header */
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .lead {
        font-size: 1.1rem;
    }
    
    /* Cards */
    .skill-card {
        padding: 1.5rem 1rem;
    }
    
    .skill-icon {
        font-size: 2.5rem;
    }
    
    /* Project Cards */
    .project-image {
        height: 200px;
    }
    
    .project-content {
        padding: 1.25rem;
    }
    
    .project-content h4 {
        font-size: 1.125rem;
    }
    
    /* Skills */
    .skill-header h5 {
        font-size: 1rem;
    }
    
    .skill-percentage {
        font-size: 1rem;
    }
    
    .progress {
        height: 10px;
    }
    
    /* Technology Categories */
    .tech-category {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .tech-category h5 {
        font-size: 1.1rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 2rem;
    }
    
    .service-icon-large {
        width: 60px;
        height: 60px;
    }
    
    .service-icon-large i {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    /* Process Steps */
    .process-step {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* About */
    .experience-badge {
        bottom: 10px;
        right: 10px;
        padding: 1rem;
    }
    
    .experience-badge h3 {
        font-size: 2rem;
    }
    
    .experience-badge p {
        font-size: 0.8rem;
    }
    
    .about-info li {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 8px;
    }
    
    .timeline-marker {
        left: -33px;
        width: 12px;
        height: 12px;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content h4 {
        font-size: 1.125rem;
    }
    
    .timeline-list li {
        font-size: 0.9rem;
    }
    
    /* Education */
    .education-card {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .edu-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .edu-icon i {
        font-size: 1.25rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-img {
        width: 50px;
        height: 50px;
    }
    
    /* Contact */
    .contact-info-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .contact-info-icon {
        margin: 0 auto 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .social-links-large {
        justify-content: center;
    }
    
    /* Project Stats */
    .stat-item {
        margin-bottom: 2rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    /* CTA Section */
    .cta-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-section .lead {
        font-size: 1rem;
    }
    
    .cta-section .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer h5,
    .footer h6 {
        font-size: 1.125rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-contact li {
        font-size: 0.9rem;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* ==========================================
   EXTRA SMALL DEVICES (up to 575px) - Small Phones
========================================== */
@media (max-width: 575px) {
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.375rem; }
    h4 { font-size: 1.125rem; }
    
    body {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Spacing */
    section {
        padding: 40px 0;
    }
    
    /* Container Padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .brand-name {
        display: none;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        min-height: 45px;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .stat-box {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .hero-buttons .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 90px 0 50px;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
    
    /* Cards */
    .skill-card {
        padding: 1.25rem 0.75rem;
    }
    
    .skill-icon {
        font-size: 2rem;
    }
    
    .skill-card h5 {
        font-size: 0.9rem;
    }
    
    /* Project Cards */
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-category {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .project-content h4 {
        font-size: 1rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
    }
    
    .tech-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Project Detail */
    .project-number {
        font-size: 0.9rem;
    }
    
    .project-meta {
        font-size: 0.85rem;
    }
    
    .project-description h5 {
        font-size: 1.1rem;
    }
    
    .tech-stack {
        gap: 0.5rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.125rem;
    }
    
    .service-features {
        font-size: 0.9rem;
    }
    
    /* Process Steps */
    .process-step {
        padding: 1.25rem;
    }
    
    .process-step h4 {
        font-size: 1rem;
    }
    
    .process-step p {
        font-size: 0.9rem;
    }
    
    /* Timeline */
    .timeline-content {
        padding: 1.25rem;
    }
    
    .timeline-content h4 {
        font-size: 1rem;
    }
    
    .timeline-list li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
        padding-left: 1.25rem;
    }
    
    /* Education */
    .edu-icon {
        width: 45px;
        height: 45px;
    }
    
    .edu-content h4 {
        font-size: 1rem;
    }
    
    .edu-content h5 {
        font-size: 0.95rem;
    }
    
    .edu-content p {
        font-size: 0.85rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem 1rem;
    }
    
    .quote-icon {
        font-size: 2.5rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .author-img {
        width: 45px;
        height: 45px;
    }
    
    .author-info h5 {
        font-size: 1rem;
    }
    
    .author-info p {
        font-size: 0.85rem;
    }
    
    /* Contact */
    .contact-form-wrapper {
        padding: 1.25rem;
    }
    
    .contact-form-wrapper h3 {
        font-size: 1.375rem;
    }
    
    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Soft Skills */
    .soft-skill-card {
        padding: 1.5rem 1rem;
    }
    
    .soft-skill-icon {
        width: 60px;
        height: 60px;
    }
    
    .soft-skill-icon i {
        font-size: 1.5rem;
    }
    
    /* Package Cards */
    .package-card {
        padding: 2rem 1.5rem;
    }
    
    .package-icon {
        font-size: 2.5rem;
    }
    
    /* Benefit Cards */
    .benefit-card {
        padding: 1.5rem 1rem;
    }
    
    .benefit-card i {
        font-size: 2.5rem;
    }
    
    /* Feature Box */
    .feature-box {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section .lead {
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer h5,
    .footer h6 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer p,
    .footer-links a,
    .footer-contact li {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer .text-md-start,
    .footer .text-md-end {
        text-align: center !important;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 15px;
        right: 15px;
    }
    
    /* Accordion */
    .accordion-button {
        font-size: 0.95rem;
        padding: 0.875rem 1rem;
    }
    
    .accordion-body {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    /* Error Page */
    .error-code {
        font-size: 80px;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .error-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* ==========================================
   LANDSCAPE ORIENTATION
========================================== */
@media (max-width: 991px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
}

/* ==========================================
   PRINT STYLES
========================================== */
@media print {
    .navbar,
    .back-to-top,
    .social-links,
    .social-links-large,
    footer,
    .cta-section,
    .hero-buttons,
    .btn,
    .map-container {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    h1 { font-size: 20pt; }
    h2 { font-size: 18pt; }
    h3 { font-size: 16pt; }
    h4 { font-size: 14pt; }
    
    section {
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
}

/* ==========================================
   HIGH CONTRAST MODE
========================================== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0056b3;
        --text-dark: #000000;
        --border-color: #000000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* ==========================================
   DARK MODE SUPPORT (Optional)
========================================== */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}
