/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    font-family: "Andika", sans-serif;
    overflow-x: hidden;
}
/* =========================
   HEADER
========================= */
header {
    display: flex;
    width: 100%;
    position: fixed;
    z-index: 999;
    justify-content: space-between;
    align-items: center;
    background-color: #222831;
    padding: 15px 50px;
}
.logo {
    text-decoration: none;
    color: yellow;
    transition: 0.4s;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.8em;
    padding: 5px;
    border: 2px solid black;
    border-radius: 0 20px 0 20px;
    background-color: black;
}
.logo:hover {
    transform: scale(1.1);
}
.navigation a {
    text-decoration: none;
    color: white;
    padding: 20px;
    transition: 0.4s;
    font-size: 1.1em;
    font-weight: 500;
}
.navigation a:hover {
    color: yellow;
    margin-left: 20px;
}
/* =========================
   SECTIONS
========================= */
section {
    padding: 100px 200px;
}
/* =========================
   HERO
========================= */
.main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url("https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.creativefabrica.com%2Fwp-content%2Fuploads%2F2023%2F05%2F11%2FModern-colourful-abstract-background-Graphics-69439498-1.jpg&f=1&nofb=1");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.main h2 {
    color: white;
    font-size: 1.4em;
    font-weight: 500;
}
.main h2 span {
    font-size: 1.9em;
    font-weight: 700;
    color: yellow;
    display: inline-block;
    margin-top: 20px;
}
.main h3 {
    color: white;
    font-size: 1.4em;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 30px;
}
/* =========================
   MAIN BUTTON
========================= */
.main-btn {
    color: black;
    padding: 16px;
    border-radius: 20px;
    text-decoration: none;
    background-color: yellow;
    letter-spacing: 1px;
    transition: 0.4s ease;
    font-size: 1.1em;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 30px;
}
.main-btn:hover {
    transform: scale(1.1);
    background-color: white;
}
/* =========================
   SOCIAL ICONS
========================= */
.social-icons a {
    display: inline-block;
    font-size: 1.7em;
    color: white;
    padding-left: 3px;
    transition: 0.3s;
}
.social-icons a:hover {
    color: yellow;
    transform: scale(1.2);
}
/* =========================
   TITLES
========================= */
.title {
    display: flex;
    justify-content: center;
    font-size: 1.9em;
    font-weight: 500;
    color: blue;
    margin-bottom: 20px;
}
/* =========================
   SLIDER
========================= */
.slider {
    position: relative;
    width: 100%;
}
.slider .content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 30px;
    width: 100%;
    min-height: 350px;
    padding: 40px 70px;
    scrollbar-width: none;
    scroll-behavior: smooth;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}
.slider .content::-webkit-scrollbar {
    display: none;
}
/* =========================
   SERVICE CARDS
========================= */
.cards {
    overflow: hidden;
}
.slider .card {
    flex: 0 0 24em;
    min-height: 250px;
    background-color: white;
    box-shadow: 0 5px 25px rgba(1, 1, 1, 15%);
    border-radius: 10px;
    padding: 30px;
    transition: 0.4s ease;
    cursor: pointer;
}
.card:hover {
    transform: scale(1.05);
}
.icon {
    font-size: 7em;
    color: blue;
    text-align: center;
}
.info {
    text-align: center;
}
.info h3 {
    font-size: 1.9em;
    color: blue;
    margin: 10px;
}
/* =========================
   PROJECTS
========================= */
.projects {
    background-color: #222831;
    overflow: hidden;
}
.projects .title {
    color: yellow;
}
.slider .project-card {
    flex: 0 0 27em;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid white;
    border-radius: 10px;
    background-color: white;
    transition: 0.4s ease;
    cursor: pointer;
}
.project-card:hover {
    transform: scale(1.05);
}
.project-card:hover .project-img img {
    opacity: 0.9;
}
.project-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.project-info {
    padding: 1em;
}
.project-category {
    color: black;
    font-size: 1.3em;
    margin-bottom: 10px;
}
.project-title {
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
}
.more-details {
    text-decoration: none;
    color: blue;
}
.more-details:hover {
    color: aqua;
}
/* =========================
   SCROLL BUTTONS
========================= */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background-color: #222831;
    color: yellow;
    font-size: 1.4em;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s ease;
}
.scroll-btn:hover {
    background-color: yellow;
    color: #222831;
    transform: translateY(-50%) scale(1.1);
}
.scroll-btn.left {
    left: 5px;
}
.scroll-btn.right {
    right: 5px;
}
.projects .scroll-btn {
    background-color: yellow;
    color: #222831;
}
.projects .scroll-btn:hover {
    background-color: white;
}
/* =========================
   SCROLL HINT
========================= */
.scroll-hint {
    text-align: center;
    margin-top: 5px;
    font-size: 1em;
    color: #777;
    animation: scrollHint 1.5s infinite ease-in-out;
}
.projects-hint {
    color: #aaa;
}
.scroll-hint i {
    margin-right: 5px;
}
@keyframes scrollHint {
    0% { transform: translateX(0); }
    50% { transform: translateX(8px); }
    100% { transform: translateX(0); }
}
/* =========================
   CONTACT
========================= */
.contact {
    min-height: 600px;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contact-text {
    margin: 10px 0 30px;
    font-size: 1.1em;
    text-align: center;
}
.contact-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}
.contact-card {
    flex: 1 1 280px;
    max-width: 350px;
    min-height: 200px;
    background-color: white;
    box-shadow: 0 5px 25px rgba(1, 1, 1, 15%);
    border-radius: 10px;
    padding: 30px;
    transition: 0.4s ease;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
}
.contact-card:hover {
    transform: scale(1.05);
}
.contact-card .icon {
    font-size: 5em;
}
.contact-card .info p {
    color: #333;
    margin: 10px 0;
    word-break: break-word;
}
/* =========================
   FOOTER
========================= */
footer {
    background-color: #1a1f26;
    color: #ccc;
    position: relative;
}
footer::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, yellow, #f0a500, yellow);
    width: 100%;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding: 60px 100px;
    max-width: 1300px;
    margin: 0 auto;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-brand .logo {
    align-self: flex-start;
}
.footer-tagline {
    color: #999;
    font-size: 0.95em;
    line-height: 1.6;
}
.footer-heading {
    color: yellow;
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    text-decoration: none;
    color: #bbb;
    transition: 0.3s;
    font-size: 0.95em;
    position: relative;
    width: fit-content;
}
.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: yellow;
    transition: 0.3s;
}
.footer-links a:hover {
    color: yellow;
    padding-left: 5px;
}
.footer-links a:hover::after {
    width: 100%;
}
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2a2f38;
    color: #ccc;
    font-size: 1.1em;
    text-decoration: none;
    transition: 0.3s;
}
.footer-social a:hover {
    transform: translateY(-3px);
}
.footer-social a[aria-label="LinkedIn"]:hover {
    background-color: #0a66c2;
    color: white;
}
.footer-social a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}
.footer-social a[aria-label="GitHub"]:hover {
    background-color: #333;
    color: white;
}
.footer-social a[aria-label="X"]:hover {
    background-color: #000;
    color: white;
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-contact a {
    text-decoration: none;
    color: #bbb;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}
.footer-contact a i {
    width: 20px;
    color: yellow;
    text-align: center;
}
.footer-contact a:hover {
    color: yellow;
}
.footer-bottom {
    border-top: 1px solid #2a2f38;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 100px;
    max-width: 1300px;
    margin: 0 auto;
    color: #777;
    font-size: 0.9em;
}
.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2a2f38;
    color: yellow;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1em;
}
.back-to-top:hover {
    background-color: yellow;
    color: #1a1f26;
    transform: translateY(-3px);
}
/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    header {
        padding: 15px 30px;
    }
    section {
        padding: 90px 50px;
    }
    .footer-content {
        padding: 50px 40px;
    }
    .footer-bottom {
        padding: 24px 40px;
    }
}
@media (max-width: 768px) {
    header {
        padding: 12px 20px;
    }
    .logo {
        font-size: 1.4em;
    }
    .navigation a {
        padding: 8px;
        font-size: 0.95em;
    }
    section {
        padding: 80px 20px;
    }
    .main {
        background-attachment: scroll;
    }
    .main h2 {
        font-size: 1.2em;
    }
    .main h2 span {
        font-size: 1.7em;
    }
    .slider .content {
        padding: 40px 50px;
        gap: 15px;
    }
    .slider .card {
        flex: 0 0 18em;
    }
    .slider .project-card {
        flex: 0 0 20em;
    }
    .scroll-btn {
        width: 42px;
        height: 42px;
        font-size: 1em;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 30px;
        text-align: center;
    }
    .footer-col {
        align-items: center;
    }
    .footer-brand .logo {
        align-self: center;
    }
    .footer-links a {
        width: auto;
    }
    .footer-contact {
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 15px;
        text-align: center;
        padding: 24px 20px;
    }
}
@media (max-width: 480px) {
    header {
        padding: 10px 12px;
    }
    .logo {
        font-size: 1.2em;
    }
    .navigation a {
        padding: 6px;
        font-size: 0.85em;
    }
    section {
        padding: 70px 16px;
    }
    .title {
        font-size: 1.6em;
    }
    .main h2 {
        font-size: 1.1em;
    }
    .main h2 span {
        font-size: 1.5em;
    }
    .main h3 {
        font-size: 1.1em;
    }
    .main-btn {
        font-size: 1em;
        padding: 14px;
    }
    .slider .content {
        padding: 30px 45px;
        gap: 12px;
    }
    .slider .card {
        flex: 0 0 16em;
        min-height: 220px;
        padding: 20px;
    }
    .slider .project-card {
        flex: 0 0 17em;
        min-height: 260px;
    }
    .icon {
        font-size: 5em;
    }
    .info h3 {
        font-size: 1.5em;
    }
    .scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9em;
    }
    .scroll-btn.left {
        left: 2px;
    }
    .scroll-btn.right {
        right: 2px;
    }
    .contact-card {
        flex: 1 1 100%;
        max-width: none;
    }
    .contact-card .icon {
        font-size: 4em;
    }
    .footer-content {
        padding: 40px 20px;
        gap: 30px;
    }
}