/* ############# */
/* Preloader */
/* ############# */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    margin-bottom: 1.5rem;
    animation: preloaderPulse 1s ease-in-out infinite;
}

.preloader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ############# */
/* Global */
/* ############# */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  list-style: none;
  outline: none;
  border: none;
  text-decoration: none;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

:root {
    --primary: #DC3545;
    --primary-dark: #C82333;
    --primary-light: #E8606D;
    --primary-soft: #FEF2F2;
    --dark: #1A1A1A;
    --dark-2: #2D2D2D;
    --text: #2D3436;
    --text-light: #636E72;
    --text-muted: #B2BEC3;
    --bg: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-card: #FFFFFF;
    --border: #E5E7EB;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

img {
    width: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    box-shadow: 0 8px 25px rgba(255,255,255,0.15);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
    box-shadow: var(--shadow-md);
}

section {
    padding: 6rem 0;
}

/* ############# */
/* Navigation */
/* ############# */

header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 80px;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.active {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.logo {
    display: flex;
    align-items: center;
    color: var(--dark);
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    gap: 8px;
}

.logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
}

.logo span {
    color: var(--primary);
}

.navigation {
    display: flex;
    gap: 5px;
}

.navigation a {
    padding: 8px 18px;
    color: var(--text);
    transition: all 0.3s ease;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
}

.navigation a:hover,
.navigation a.active {
    background: var(--primary);
    color: #fff;
}

header .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

#burger-menu {
    cursor: pointer;
    font-size: 2rem;
    color: var(--primary);
    display: none;
    transition: color 0.2s;
}

#burger-menu:hover {
    color: var(--primary-dark);
}

/* ############# */
/* Hero / Home */
/* ############# */

.home {
    margin-top: 6rem;
    background: linear-gradient(rgba(26, 26, 26, 0.75), rgba(26, 26, 26, 0.85)), url('./images/hero-bg.jpg') no-repeat center / cover;
    border-radius: 3rem;
    color: var(--bg);
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.home-img {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    margin-right: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.home-content {
    padding-left: 35px;
}

.home h1 {
    font-size: clamp(30px, 5vw, 45px);
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
}

.home-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ############# */
/* À propos */
/* ############# */

.about {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 20px;
}

.about-img-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content span {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--dark);
    margin: 0.5rem 0 1.5rem;
    line-height: 1.3;
}

.about-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-content strong {
    color: var(--dark);
    font-weight: 700;
}

.about-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1.5rem 0;
}

.tech-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-light);
    color: var(--text);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    letter-spacing: 0;
    text-transform: none;
}

.about-content .btn {
    margin-top: 0.5rem;
}

/* ############# */
/* Stats / Chiffres clés */
/* ############# */

.stats {
    background: var(--dark);
    padding: 4rem 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    color: #fff;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    display: inline;
}

.stat-item span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.3rem;
}

/* ############# */
/* Services */
/* ############# */

#services {
    background: var(--bg-light);
    padding: 6rem 0;
}

.services-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.services-heading span {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
}

.services-heading h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin: 0.5rem 0;
}

.services-heading p {
    color: var(--text-light);
    font-size: 1rem;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.services .box {
    padding: 0;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    overflow: hidden;
}

.services .box::before {
    display: none;
}

.services .box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.services .box:hover::before {
    opacity: 1;
}

.services .box .bx {
    font-size: 4rem;
    width: 100%;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0;
    background: var(--dark);
    color: rgba(220, 53, 69, 0.3);
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.services .box h3 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    padding: 1.2rem 1.2rem 0;
}

.services .box p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    padding: 0 1.2rem 1.5rem;
}

.services .box:hover .bx {
    color: rgba(220, 53, 69, 0.6);
    background: var(--dark);
}

/* ############# */
/* Portfolio */
/* ############# */

.portfolio {
    padding: 6rem 20px;
}

.heading {
    text-align: center;
    margin-bottom: 3rem;
}

.heading span {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
}

.heading h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin: 0.5rem 0;
}

.heading p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 20px;
}

.portfolio-card {
    background: var(--bg-card);
    padding: 12px;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.portfolio-card-img {
    border-radius: 0.7rem;
    height: 200px;
    overflow: hidden;
}

.portfolio-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-card-img img {
    transform: scale(1.05);
}

.portfolio-card-img .bx {
    font-size: 4rem;
    color: rgba(220, 53, 69, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: var(--dark);
}

.portfolio-card h5 {
    font-size: 1rem;
    font-weight: 600;
    text-align: right;
    margin-top: 8px;
}

.portfolio-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
    background: var(--primary-soft);
    padding: 3px 10px;
    border-radius: 50px;
}

.portfolio-card .content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 1rem;
}

.portfolio-card .text h4 {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 600;
}

.portfolio-card .text p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.portfolio-techs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.portfolio-techs small {
    padding: 3px 8px;
    background: var(--bg-light);
    color: var(--text-light);
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 500;
}

/* ############# */
/* Testimonials */
/* ############# */

.testimonials {
    padding: 5rem 20px;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}

.testimonial-stars .bx {
    color: #F59E0B;
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ############# */
/* Newsletter */
/* ############# */

.newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 1rem;
    text-align: center;
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
}

.newsletter h2 {
    font-size: 1.8rem;
    color: #fff;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.newsletter form {
    background: var(--bg);
    padding: 6px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
}

.newsletter .btn {
    cursor: pointer;
}

.newsletter input {
    font-size: 0.9rem;
    width: 300px;
    padding: 10px 20px;
    color: var(--text);
}

.newsletter input::placeholder {
    color: var(--text-light);
}

/* ############# */
/* Contact */
/* ############# */

.contact {
    padding: 6rem 20px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.contact-item:hover {
    box-shadow: var(--shadow);
}

.contact-item .bx {
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius);
}

.contact-item h4 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: 'Inter', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--dark);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    align-self: flex-start;
}

/* ############# */
/* Footer */
/* ############# */

footer {
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    padding: 4rem 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 0.8rem;
    line-height: 1.6;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

footer h2 {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
}

footer h2 span {
    color: var(--primary);
}

.footer-box {
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
}

footer h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--primary);
}

.social {
    display: flex;
    gap: 8px;
    margin-top: 0.5rem;
}

.social a {
    display: flex;
}

.social .bx {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social .bx:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.copy {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: var(--dark);
}

/* ############# */
/* Login et signup */
/* ############# */

.login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    align-items: center;
    gap: 3rem;
}

.login-container {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}

.login-container h2 {
    font-size: 2rem;
    color: var(--dark);
}

.login-container p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.login-container form {
    display: flex;
    flex-direction: column;
}

.login-container form span {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 500;
}

.login-container form input {
    border: 2px solid var(--border);
    padding: 12px 16px;
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.login-container form input:focus {
    border-color: var(--dark);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.login-container .mdp {
    color: var(--primary);
    text-decoration: underline;
    text-align: right;
    font-size: 0.85rem;
}

.login-container .mdp:hover {
    color: var(--primary-dark);
}

.login-container form button {
    cursor: pointer;
    margin-bottom: 1rem;
}

.login-container .btn {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.login-img-wrapper {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.login-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-img-wrapper .bx {
    font-size: 10rem;
    color: rgba(220, 53, 69, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: var(--dark);
}

/* ############# */
/* Scroll to top */
/* ############# */

#scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

#scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ############# */
/* WhatsApp Float */
/* ############# */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    z-index: 900;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #fff;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6); }
}

/* ############# */
/* Toast Notification */
/* ############# */

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: var(--dark);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 90%;
}

.toast.success {
    background: #059669;
}

.toast.error {
    background: var(--primary);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ############# */
/* Breakpoints */
/* ############# */

@media screen and (max-width: 1080px) {
    .container {
        margin-right: 0.5rem;
    }

    section {
        padding: 4rem 0.5rem 3rem;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        padding: 0 10px;
    }

    .testimonials-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media screen and (max-width: 880px) {
    .home-content {
        padding-left: 15px;
    }

    .about {
        margin-top: 2rem;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-techs {
        justify-content: center;
    }

    .about-content .btn {
        margin: 0 auto;
    }

    .about-img-wrapper {
        height: 300px;
    }

    .services {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .portfolio-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .newsletter input {
        width: 200px;
    }

    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .login {
        padding: 0 1rem;
        grid-template-columns: 0.6fr 1fr;
    }
}

@media screen and (max-width: 780px) {
    header {
        padding: 10px 20px;
    }

    #burger-menu {
        display: block;
    }

    .navigation {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 280px;
        min-height: 100vh;
        transition: right 0.2s ease-in-out;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
        border-left: 1px solid var(--primary);
        flex-direction: column;
        padding: 0 1rem;
        background: var(--bg);
    }

    .navigation a {
        display: block;
        margin: 1rem 0;
        border-radius: var(--radius);
    }

    .navigation.active {
        right: 0;
    }

    header .btn {
        display: none;
    }

    .home {
        height: auto;
        min-height: 380px;
        padding: 3rem 0;
    }

    .home-content {
        padding: 0 20px;
    }

    .home h1 {
        font-size: clamp(24px, 7vw, 36px);
    }

    .home-desc {
        font-size: 0.9rem;
    }

    .home-img {
        display: none;
    }

    section {
        padding: 4rem 0;
    }

    .heading h2,
    .services-heading h2 {
        font-size: 1.6rem;
    }

    .about-content h2 {
        font-size: 1.5rem;
    }

    .about-img-wrapper {
        height: 250px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

    .login-img-wrapper {
        order: 1;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social {
        justify-content: center;
    }
}

@media screen and (max-width: 664px) {
    .login {
        padding: 5rem 1rem;
        grid-template-columns: 0.8fr 1fr;
    }

    .login-container h2 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 554px) {
    .home {
        min-height: 320px;
        border-radius: 1.5rem;
        margin-top: 5rem;
    }

    .home-content {
        padding: 0 15px;
    }

    .login {
        grid-template-columns: 1fr;
        justify-content: center;
        padding: 5rem 1.5rem;
    }

    .login-img,
    .login-img-wrapper {
        display: none;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .services .box .bx {
        height: 120px;
        font-size: 3rem;
    }

    .portfolio-container {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .portfolio-card-img {
        height: 180px;
    }

    .newsletter {
        padding: 3rem 1.5rem;
        border-radius: var(--radius);
    }

    .newsletter h2 {
        font-size: 1.3rem;
    }

    .newsletter form {
        flex-direction: column;
        border-radius: var(--radius);
        padding: 10px;
        width: 100%;
    }

    .newsletter input {
        width: 100%;
        text-align: center;
    }

    .newsletter .btn {
        width: 100%;
        text-align: center;
    }

    .contact-form .btn {
        width: 100%;
        text-align: center;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.88rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.88rem;
    }

    /* Bigger touch targets mobile */
    .contact-form input,
    .contact-form textarea,
    .login-container form input {
        padding: 16px 18px;
        font-size: 16px; /* prevent iOS zoom */
    }

    #scroll-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.7rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

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

    .stat-item p {
        font-size: 0.78rem;
    }

    .footer-container {
        padding: 3rem 15px;
    }

    footer h2 {
        font-size: 1.2rem;
    }

    .copy {
        padding: 1rem;
        font-size: 0.72rem;
    }
}
