* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
}
html {
    scroll-behavior: smooth;
}
section[id] {
    scroll-margin-top: 70px; 
}
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), 
    rgba(0, 0, 0, 0.7)), url('../images/fokir.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    color: white;
}

nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 8%;
    align-items: center;
}

.logo a{
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    color: #ff305b; 
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
}
nav ul li a:hover{
    color: #ff305b;
}
.active { 
    color: #ff305b;
 }

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hhero {
    font-size: 24px;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 70px;
    color: #ff305b;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 20px;
    border-right: 2px solid white;
    padding-right: 5px;
}


.typing-container {
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.dynamic-text::after {
    content: "";
    animation-iteration-count: infinite;
    border-right: 3px solid white; 
}

/* @keyframes typing {
    0%, 5% { content: ""; }
    25%, 40% { content: "Developer"; }
    
    45%, 50% { content: ""; }
    70%, 90% { content: "Designer"; }
    
    95%, 100% { content: ""; }
} */

.dynamic-text::after {
    animation: typing 6s steps(20) infinite, blink 0.5s step-end infinite;
}

/* @keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: white; }
} */

.about-section {
    padding: 100px 0;
    display: flex;
    justify-content: center;
}


.menu-icon {
    display: none; 
    font-size: 30px;
    cursor: pointer;
}




.container2 {
    display: flex;
    max-width: 1170px; 
    width: 100%;
    align-items: flex-start;
    gap: 100px; 
}

.about-image {
    position: relative;
    padding-left: 30px;
    padding-top: 35px;
}

.about-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 300px; 
    height: 400px; 
    border: 8px solid #333;
    border-radius: 4px;
    z-index: 0;
}

.image-box {
    position: relative;
    width: 300px;
    height: 400px;
    border-radius: 4px;
    overflow: hidden; 
    z-index: 1;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.social-overlay {
    position: absolute;
    bottom: -100%; 
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: bottom 0.4s ease-in-out; 
}

.image-box:hover .social-overlay {
    bottom: 0; 
}

.icons-wrapper {
    display: flex;
    gap: 20px;
}

.icons-wrapper a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.2s;
}

.icons-wrapper a:hover {
    color: #ff2d55 ;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.about-content h2 span {
    color: #ff2d55;
    padding-left: 15px;
}

.about-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #ddd; 
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 25px; 
    margin-bottom: 40px;
}

.info-grid p {
    border: none;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    color: #333;
}

.buttons {
    display: flex;
    gap: 15px;
}

.btn {
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-pink {
    background-color: #ff2d55;
}

.btn-pink:hover {
    background-color: #ff2d11;
}

.container3 {
    width: 100%;
    height: 500px;
    background-color:#eee ;
}

.section-title {
    font-size: 35px;
    font-weight: bold;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    top: 45px;
}


.underline {
    width: 120px;
    height: 1.8px;
    background-color: #ff305b;
    margin: auto;
    margin-bottom: 10px;
}
.underline2 {
    width: 60px;
    height: 1.5px;
    background-color: #ff305b;
     margin: auto;
    margin-bottom: 10px;
}

.services-grid {
    position: relative;
    top: 40px;
    display: flex;
    justify-content:center;
    gap: 20px;
    text-align: center;
}

.service-card {
    background: transparent;
    padding: 40px 20px;
    flex: 1; 
    transition: 0.3s; 
}

.service-card:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    
}

.iconBox i {
    color: #ff305b; 
    font-size: 30px; 
    margin-bottom: 20px;
    display: inline-block;
}
.service-card:hover i {
    transform: scale(1.1); 
    transition: 0.3s;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

.portfolio {
    padding: 30px 0;
    text-align: center;
    background-color: #fff;
}

.sectionTitle {
    font-size: 36px;
    font-weight: bold;
    margin: 10px;
}

.filter-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 50px;
}

.filter-menu li {
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
    text-transform: uppercase;
}

.filter-menu li.active, .filter-menu li:hover {
    color: #ff305b;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, auto); 
    margin: 15px;  
    max-width: 1100px;
    margin: auto;
}

.portfolio-item {
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.portfolio-item img {
    width: 85%;
    display: block;
    transition: 0.5s;
  
}


.portfolio-item {
    position: relative;
    overflow: hidden;
}


.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    opacity: 0; 
    transition: all 0.5s ease; 
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1; 
}

.counters {
    background-color: #f1f1f1; 
    padding: 80px 0;
}
.counters .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}
.counter-item i {
    color: #ff305b;
    font-size: 30px;
    margin-bottom: 15px;
}
.counter-item h3 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.feedback-card {
    background-color: #f1f1f1;
    width: 600px;
    margin: 50px auto;
    display: flex;
    padding: 40px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.feedback-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background-color: #ff305b;
    clip-path: polygon(0 0, 100% 0, 0 100%); 
    z-index: 1;
}

.client-image {
    position: relative;
    z-index: 2; 
    margin-right: 30px;
}

.client-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.feedback-content {
    text-align: left;
}

.feedback-content h3 { margin-bottom: 5px; }

.location { color: #777; font-size: 14px; }

.stars i { color: #f1c40f; font-size: 14px; margin-top: 10px; }


.dots-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #ff305b; 
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background-color: #ff305b; 
}


.container4 {
    position: relative;
    top: 60px;
    width: 100%;
    height: 600px;
    background-color:#eee ;
}
.blog-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
   
}

.blog-card {
    background: #fff;
    flex: 1;
    max-width: 300px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
}

.blog-img {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.blog-content {
    padding: 25px 20px;
}

.blog-content .date {
    color: #777;
    font-size: 14px;
}

.blog-content h3 {
    margin: 10px 0;
    font-size: 18px;
}

.blog-content h3 a {
    text-decoration: none;
    color: #222;
    transition: 0.3s;
}

.blog-content h3 a:hover {
    color: #ff305b; 
}

.blog-content p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    text-decoration: none;
    color: #222;
    font-weight: bold;
    font-size: 13px;
    transition: 0.3s;
}

.read-more:hover {
    color: #ff305b;
}

.contact-section {
    padding: 80px 0;
    text-align: center;
}

.contact-form {
    max-width: 750px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.input-group {
    display: flex;
    gap: 20px;
}

.field {
    flex: 1;
}


input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6; 
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: #ff305b; 
}


.footer {
    background-color: #222;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: #fff;
    margin: 0 10px;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    color: #ff305b;
}

.footer p {
    font-size: 14px;
    color: #aaa;
}

.highlight a {
    color: #ff305b;
    text-decoration: none;
}

@media screen and (max-width: 992px) {
    
    /* Navbar & Navigation */
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        position: relative;
    }

    .menu-icon {
        display: block !important;
        color: #ff305b;
        font-size: 24px;
        cursor: pointer;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 20px 0;
        z-index: 1000;
    }

    nav ul.show {
        display: flex !important;
    }

    nav ul li {
        margin: 15px 0;
        text-align: center;
    }

    nav ul li a {
        font-size: 18px;
        display: block;
        width: 100%;
    }

    /* Hero Section */
    .hero-content {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 35px !important;
        margin: 10px 0;
    }

    /* About Section */
    .container2 {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
        padding: 0 20px;
    }

    .about-image {
        padding: 0;
    }

    .info-grid {
        grid-template-columns: 1fr;
        text-align: left;
        display: inline-block;
    }

    .buttons {
        justify-content: center;
    }

    /* Services Section */
    .container3 {
        height: auto !important;
        padding: 60px 20px !important;
    }

    .services-grid {
        position: static !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        top: 0;
    }

    .service-card {
        width: 100%;
        margin-bottom: 20px;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    /* Portfolio Section */
    .portfolio {
        padding: 40px 10px !important;
    }

    .filter-menu {
        flex-wrap: wrap;
        margin: 20px 0 !important;
        gap: 15px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr !important; 
        gap: 20px;
        padding: 0 10px;
    }

    .portfolio-item, .portfolio-item img, .portfolio-overlay {
        width: 100% !important;
    }

    /* Counters Section */
    .counters .container {
        flex-direction: column;
        gap: 40px;
    }

    /* Blog Section */
    .container4 {
        height: auto !important;
        position: static !important;
        padding: 60px 20px !important;
    }

    .blog-grid {
        position: static !important;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .blog-card {
        max-width: 100% !important;
        width: 100%;
    }

    .blog-img iframe {
        width: 100%;
        height: 200px;
    }

    /* Contact Section */
    .contact-section {
        padding-top: 50px !important;
    }

    .input-group {
        flex-direction: column;
    }
}

/* --- 2. الشاشات الصغيرة جداً (Mobile) --- */
@media screen and (max-width: 600px) {
    .section-title, .sectionTitle {
        font-size: 28px !important;
        top: 0 !important;
        margin-bottom: 30px !important;
    }
    
    .underline, .underline2 {
        margin-bottom: 20px !important;
    }

    .feedback-card {
        width: 95%;
        flex-direction: column;
        text-align: center;
    }

    .client-image {
        margin: 0 auto 20px;
    }
}