/* ==========================================================================
   CodingHero Landing Page - Responsive Styles
   ========================================================================== */

/* Tablet Landscape - 992px and down */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
        --section-padding-small: 60px;
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.375rem; }

    .hero-section {
        padding: 140px 0 80px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        margin-top: 3rem;
    }

    .about-image {
        margin-bottom: 2rem;
    }

    .cta-card {
        padding: 3rem 2rem;
        text-align: center;
    }

    .cta-card .btn-lg {
        width: 100%;
        justify-content: center;
        margin-top: 1.5rem;
    }
}

/* Tablet Portrait - 768px and down */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --section-padding-small: 40px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.25rem; }

    .section-description {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    /* Navigation */
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 8px;
        box-shadow: var(--shadow-lg);
    }

    .navbar.navbar .nav-link {
        padding: 0.75rem 1rem;
        justify-content: flex-start;
        color: var(--text-secondary);
        margin: 0;
    }

    .navbar.navbar .nav-link:hover,
    .navbar.navbar .nav-link.active {
        color: var(--primary-color);
        background: rgba(37, 99, 235, 0.1);
    }

    .navbar.navbar .nav-link i {
        font-size: 1.125rem;
        color: var(--primary-color);
        opacity: 0.7;
    }

    .navbar.navbar .nav-link:hover i,
    .navbar.navbar .nav-link.active i {
        opacity: 1;
    }

    .navbar-nav .btn {
        margin: 0.5rem 1rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-badge {
        font-size: 0.8125rem;
        padding: 0.375rem 0.875rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-description p {
        font-size: 1rem;
    }

    .hero-list li {
        font-size: 0.9375rem;
    }

    .code-window {
        font-size: 0.75rem;
    }

    .window-body {
        padding: 1rem;
    }

    /* About Section */
    .profile-avatar-box {
        margin-bottom: 0.5rem;
    }

    .about-guarantees {
        margin-top: 3rem;
    }

    .guarantee-card {
        padding: 1.5rem;
    }

    .guarantee-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    /* Skills Section */
    .skill-card-header {
        padding: 1.25rem;
    }

    .skill-card-header i {
        font-size: 1.75rem;
    }

    .skill-card-header h3 {
        font-size: 1.125rem;
    }

    .skill-card-body {
        padding: 1.25rem;
    }

    .skill-item-new {
        padding: 0.875rem 0;
    }

    /* Realisations Section */
    .project-card {
        margin-bottom: 1rem;
    }

    .project-image {
        height: 200px;
    }

    .project-overlay i {
        font-size: 2.5rem;
    }

    .project-content {
        padding: 1.25rem;
    }

    /* Metrics */
    .metric-card {
        padding: 1.5rem;
    }

    .metric-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .metric-number {
        font-size: 2.5rem;
    }

    /* Awards */
    .awards-container {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }

    .awards-title {
        font-size: 1.5rem;
    }

    .award-card {
        padding: 1.5rem;
    }

    .award-medal {
        width: 100%;
        height: auto;
    }

    /* Contact */
    .contact-cta {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .contact-description {
        font-size: 1rem;
    }

    .benefit-item {
        font-size: 0.9375rem;
    }
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }

    .contact-method {
        margin-bottom: 1rem;
    }

    .method-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0;
    }

    .footer-seo-text {
        font-size: 0.875rem;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .col-lg-8,
    .footer-bottom .col-lg-4 {
        text-align: center !important;
    }

    .footer-bottom .btn {
        margin-top: 1rem;
    }

    .scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}

/* Mobile - 576px and down */
@media (max-width: 576px) {
    :root {
        --section-padding: 50px;
        --section-padding-small: 30px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.125rem; }
    h4 { font-size: 1rem; }

    body {
        font-size: 15px;
    }

    /* Navigation */
    .navbar {
        padding: 1rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .brand-icon {
        font-size: 1.5rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 100px 0 50px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .hero-description p {
        font-size: 0.9375rem;
    }

    .hero-list li {
        font-size: 0.875rem;
        gap: 0.625rem;
    }

    .hero-list li i {
        font-size: 1.125rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        width: 100%;
        padding: 1rem;
        background: var(--bg-light);
        border-radius: 12px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .hero-cta .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .code-window {
        margin-top: 2rem;
    }

    .window-body {
        font-size: 0.7rem;
        padding: 0.875rem;
    }

    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Section Headers */
    .section-label {
        font-size: 0.8125rem;
    }

    .section-description {
        font-size: 0.9375rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    /* About Section */
    .profile-avatar-box {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .profile-avatar-box .badge {
        font-size: 0.5rem;
        padding: 0.25rem 0.5rem;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .bg-light .d-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-guarantees {
        margin-top: 2.5rem;
    }

    .guarantee-card {
        padding: 1.25rem;
    }

    .guarantee-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .guarantee-card h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .guarantee-card p {
        font-size: 0.875rem;
    }

    /* Social Proof Section */
    .metric-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .metric-icon i {
        font-size: 2rem;
    }

    .metric-number {
        font-size: 2rem;
    }

    .awards-container {
        padding: 2rem 1.5rem;
    }

    .awards-title {
        font-size: 1.25rem;
    }

    .medal-rank-bg {
        font-size: 60px;
        top: -10px;
        right: -10px;
    }

    .award-card {
        padding: 1.5rem !important;
    }

    .award-medal i {
        font-size: 2.5rem;
    }

    .award-medal span {
        font-size: 0.875rem;
    }

    .award-card h4 {
        font-size: 1rem;
    }

    .award-card p {
        font-size: 0.8rem;
    }

    /* Skills Section */
    .skill-card-header {
        padding: 1rem;
        gap: 0.75rem;
    }

    .skill-card-header i {
        font-size: 1.5rem;
    }

    .skill-card-header h3 {
        font-size: 1rem;
    }

    .skill-card-body {
        padding: 1rem;
    }

    .skill-item-new {
        padding: 0.75rem 0;
    }

    .skill-name {
        font-size: 0.9375rem;
    }

    .skill-desc {
        font-size: 0.8125rem;
    }

    /* Realisations Section */
    .project-image {
        height: 180px;
    }

    .project-overlay i {
        font-size: 2rem;
    }

    .project-content {
        padding: 1rem;
    }

    .project-content h3 {
        font-size: 1.125rem;
    }

    .project-content p {
        font-size: 0.875rem;
    }

    .project-tags li {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }

    /* Metrics */
    .metric-card {
        padding: 1.25rem;
    }

    .metric-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .metric-number {
        font-size: 2rem;
    }

    .metric-label {
        font-size: 0.9375rem;
    }

    .metric-sublabel {
        font-size: 0.8125rem;
    }

    /* Awards */
    .awards-container {
        padding: 1.5rem 1rem;
    }

    .awards-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .award-card {
        padding: 1.25rem;
    }

    .award-medal {
        width: 100%;
        height: auto;
    }

    .award-medal i {
        font-size: 2.5rem;
    }

    .award-medal span {
        font-size: 0.875rem;
    }

    .medal-rank {
        width: 32px;
        height: 32px;
        font-size: 0.8125rem;
    }

    .award-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .award-card p {
        font-size: 0.875rem;
    }

    /* Contact */
    .contact-info {
        margin-bottom: 2rem;
    }

    .contact-cta {
        text-align: center;
    }

    .contact-description {
        font-size: 0.9375rem;
    }

    .benefit-item {
        font-size: 0.875rem;
        justify-content: center;
    }

    .contact-form-wrapper {
        padding: 1.5rem 1.25rem;
    }

    .form-control {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }

    .form-info {
        padding: 0.875rem;
    }

    .form-info small {
        font-size: 0.8125rem;
    }

    .contact-method {
        gap: 0.75rem;
    }

    .method-content h4 {
        font-size: 1rem;
    }

    .method-content p {
        font-size: 0.875rem;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0;
        text-align: center;
    }

    .footer .btn {
        width: 100%;
    }

    .footer-copyright,
    .footer-tagline {
        font-size: 0.8125rem;
    }

    /* Scroll to Top */
    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Shapes */
    .shape-1 {
        width: 400px;
        height: 400px;
        top: -200px;
        right: -150px;
    }

    .shape-2 {
        width: 300px;
        height: 300px;
        bottom: -150px;
        left: -100px;
    }
}

/* Mobile Small - 400px and down */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 1.375rem;
    }

    .metric-number {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 1.375rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-top,
    .hero-shapes,
    .cta-section {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    .hero-section {
        padding: 20px 0;
    }

    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .code-window {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
    }

    .btn-primary {
        border: 2px solid #000000;
    }

    .skill-card,
    .metric-card,
    .guarantee-card {
        border-width: 2px;
        border-color: #000000;
    }
}
