@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: "Inter", sans-serif;
}

body {
    width: 100%;
    height: 100%;
    font-family: "Inter", sans-serif;
    background-color: #F1F1F1;
}

.main {
    position: relative;
    min-height: 100vh;
    background-repeat: no-repeat;
    overflow: hidden;

}


.main-img {
    position: absolute;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 720px) {
    .main {
        overflow-x: hidden;
    }

    .main-img {
        height: 100vh;
    }
}

/* ===== Glass Background Navbar ===== */
.glass-bg {
    background: rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}


/* ===== Navbar ===== */
.navbar {
    position: fixed;
    width: 100%;
    height: 84px;
    padding: 0 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.nav-logo {
    width: 177px;
    height: 37px;
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-links {
    width: 486px;
    height: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 400;
    padding: 8px 16px;
    line-height: 1.5;
    border: 2px solid transparent;
}

.nav-links a:hover {
    border-color: white;

}

.nav-links a:nth-child(4) {
    background: #267BFF;
    color: white;
    border: none;
}



/* ===== Hamburger Icon ===== */
.nav-icon {
    width: 24px;
    height: 24px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    cursor: pointer;
}

.nav-icon span {
    display: flex;
    width: 100%;
    height: 3px;
    background-color: #111827;
    border-radius: 3px;
    transition: 0.4s ease;
    margin-bottom: 5px;
}

/* ==== Cross animation ==== */
.nav-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-icon.active span:nth-child(2) {
    opacity: 0;
}

.nav-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    position: fixed;
    top: 46px;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.5s ease, transform 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    max-height: 300px;
    transform: translateY(0);
}

.mobile-menu a {
    padding: 14px;
    color: #000;
    border-radius: 8px;
}


@media (max-width: 1024px) {

    .navbar {
        height: 56px;
        padding: 0 30px;
    }

    .nav-logo {
        width: 115px;
        height: 24px;
    }

    .nav-links {
        display: none;
    }

    .nav-icon {
        display: block;
    }
}

/*  ==================== nav-bar end here   ====================  */
/* PORTFOLIO SECTION */
.portfolio-section {
    padding: 0 100px 60px 100px;
    border-bottom: 2px solid #F3F4F6;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 40px;
}

.portfolio-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.portfolio-header p {
    font-size: 1.125rem;
    color: #4B5563;
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.portfolio-overlay p {
    font-size: 0.875rem;
    color: #F3F4F6;
}

@media(max-width:720px) {
    .portfolio-section {
        padding: 100px 16px 32px 16px;
    }

    .portfolio-header h1 {
        font-size: 2.25rem;
    }

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

/*  ================= FOOTER-SECTION =================  */
.footer {
    position: relative;
    background-color: #F9FAFB;
    padding: 32px 100px;
    font-family: Inter, sans-serif;
    color: #667085;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 24px;
}

/* Brand */
.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo span {
    font-size: 22px;
    font-weight: 700;
    color: #101828;
}

.footer-description {
    margin-top: 24px;
    max-width: 292px;
    line-height: 1.6;
}

/* Columns */
.footer-title {
    font-size: 24px;
    font-weight: 600;
    color: #101828;
    margin-bottom: 24px;
}

.footer-list,
.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.footer-contact {
    margin-bottom: 24px;
}

/* Footer links animation */
.footer-list li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667085;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    margin-left: 5px;
}

/* Add >> before link */
.footer-list li a::before {
    margin-top: 2px;
    content: "˃˃";
    font-size: 22px;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: #106EFF;
}

/* Hover animation */
.footer-list li a:hover {
    color: #101828;
    transform: translateX(4px);
}

/* Reveal arrow on hover */
.footer-list li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Social */
.footer-socials {
    display: flex;
    gap: 50px;
    /* better spacing than space-between */
}

.footer-socials a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #667085;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-socials a i {
    font-size: 28px;
    /* FIX: proper font-size */
    line-height: 1;
}

/* Hover effect */
.footer-socials a:hover {
    transform: translateY(-2px) scale(1.15);
    /* FIX: scale inside transform */
    color: #106EFF;
    /* icon color via currentColor */
}

/* Bottom */
.footer-bottom {
    margin-top: 24px;
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6B7280;
}

/* Responsive */
@media (max-width: 720px) {
    .footer {
        padding: 32px 16px;
    }

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

    .footer-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .footer-bottom {
        margin-top: 24px;
        padding: 8px;
        display: flex;
        gap: 8px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

/* Optional: Motion safe */
@media (prefers-reduced-motion: reduce) {

    .footer-list li a,
    .footer-socials a {
        transition: none;
    }
}

/* ====================  Footer content end   ====================  */

/* ================= TOP INTRO BANNER ================= */
.top-intro-banner {
    position: relative;
    margin: 120px 100px 0 100px;
    width: calc(100% - 200px);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
}

.top-intro-banner h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.top-intro-banner p {
    font-size: 1.25rem;
    color: #374151;
    max-width: 750px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .top-intro-banner {
        margin: 80px 20px 0 20px;
        width: calc(100% - 40px);
        padding: 40px 20px;
        border-radius: 24px;
        min-height: 220px;
    }

    .top-intro-banner h1 {
        font-size: 2.8rem;
    }
}