
/* =========================================
   AM Digital Studio
   terms.css - Part 1
   Reset + Global + Navbar
========================================= */

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


/* Reset */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}


html{

    scroll-behavior:smooth;

}


body{

    font-family:'Poppins',sans-serif;
    background:#ffffff;
    color:#111111;
    line-height:1.7;
    overflow-x:hidden;

}


/* Root */

:root{

    --primary:#1677ff;
    --primary-dark:#005fe0;

    --text:#111111;
    --text-light:#666666;

    --white:#ffffff;

    --border:#ececec;

    --shadow:0 10px 30px rgba(0,0,0,.08);

    --shadow-hover:0 20px 45px rgba(0,0,0,.12);

    --radius:18px;

}


/* Selection */

::selection{

    background:var(--primary);
    color:#fff;

}


/* Scrollbar */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#f5f5f5;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);
    border-radius:100px;

}


/* Container */

.container{

    width:min(92%,1200px);
    margin:auto;

}


/* Links */

a{

    text-decoration:none;
    color:inherit;
    transition:.3s;

}


/* List */

ul{

    list-style:none;

}


/* ===========================
        Header
=========================== */

header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    background:#fff;

    z-index:9999;

}


/* Navbar */

.navbar{

    width:min(94%,1250px);

    height:85px;

    margin:auto;

    display:flex;

    justify-content:space-between;

    align-items:center;

}


/* Sticky */

.navbar.sticky{

    box-shadow:0 8px 25px rgba(0,0,0,.08);

}


/* Logo */

.logo a{

    font-size:1.8rem;

    font-weight:800;

    color:var(--primary);

}


/* Navigation */

.nav-links{

    display:flex;

    gap:40px;

}

.nav-links li{

    position:relative;

}

.nav-links a{

    font-weight:600;

    color:#222;

}

.nav-links a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:3px;

    background:var(--primary);

    transition:.3s;

}

.nav-links a:hover{

    color:var(--primary);

}

.nav-links a:hover::after{

    width:100%;

}


/* Mobile Menu */

.menu-toggle{

    display:none;

    flex-direction:column;

    cursor:pointer;

}

.menu-toggle span{

    width:28px;

    height:3px;

    background:#111;

    margin:3px;

    border-radius:20px;

}


/* Body */

body{

    padding-top:85px;

}
/* =========================================
   terms.css - Part 2
   Hero & Terms Section
========================================= */


/* ===========================
   Hero Section
=========================== */

.terms-hero{

    padding:140px 0 80px;

    background:#ffffff;

    text-align:center;

}

.terms-hero h1{

    font-size:clamp(2.8rem,6vw,4.5rem);

    font-weight:800;

    color:#111111;

    margin-bottom:20px;

}

.terms-hero p{

    max-width:760px;

    margin:auto;

    color:#666666;

    font-size:1.1rem;

    line-height:1.8;

}


/* ===========================
   Terms Section
=========================== */

.terms-section{

    padding:80px 0 120px;

    background:#f8f9fc;

}


/* ===========================
   Terms Card
=========================== */

.terms-card{

    background:#ffffff;

    border-radius:20px;

    padding:35px;

    margin-bottom:30px;

    border:1px solid #ececec;

    box-shadow:0 10px 25px rgba(0,0,0,.06);

    transition:.35s ease;

}

.terms-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 45px rgba(0,0,0,.12);

}


/* Heading */

.terms-card h2{

    font-size:1.6rem;

    color:var(--primary);

    margin-bottom:15px;

    font-weight:700;

}


/* Paragraph */

.terms-card p{

    color:#555555;

    font-size:1rem;

    line-height:1.9;

}


/* ===========================
   Responsive
=========================== */

@media(max-width:768px){

    .terms-hero{

        padding:120px 0 60px;

    }

    .terms-hero h1{

        font-size:2.5rem;

    }

    .terms-card{

        padding:25px;

    }

    .terms-card h2{

        font-size:1.3rem;

    }

}
/* =========================================
   terms.css - Part 3
   Card Design & Animations
========================================= */


/* ===========================
   Terms Cards
=========================== */

.terms-card{

    position:relative;

    overflow:hidden;

}


/* Top Border Animation */

.terms-card::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:0;

    height:5px;

    background:linear-gradient(90deg,#1677ff,#4aa3ff);

    transition:.4s ease;

}

.terms-card:hover::before{

    width:100%;

}


/* Left Border */

.terms-card::after{

    content:"";

    position:absolute;

    left:0;
    top:0;

    width:5px;

    height:100%;

    background:#1677ff;

    opacity:0;

    transition:.35s;

}

.terms-card:hover::after{

    opacity:1;

}


/* Headings */

.terms-card h2{

    display:flex;

    align-items:center;

    gap:12px;

}


/* Heading Icon */

.terms-card h2::before{

    content:"✓";

    width:34px;

    height:34px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

    background:#1677ff;

    color:#fff;

    font-size:15px;

    font-weight:bold;

}


/* Paragraph */

.terms-card p{

    padding-left:46px;

}


/* Fade Animation */

.terms-card{

    opacity:0;

    transform:translateY(35px);

    animation:fadeUp .7s ease forwards;

}

.terms-card:nth-child(1){

    animation-delay:.1s;

}

.terms-card:nth-child(2){

    animation-delay:.2s;

}

.terms-card:nth-child(3){

    animation-delay:.3s;

}

.terms-card:nth-child(4){

    animation-delay:.4s;

}

.terms-card:nth-child(5){

    animation-delay:.5s;

}

.terms-card:nth-child(6){

    animation-delay:.6s;

}

.terms-card:nth-child(7){

    animation-delay:.7s;

}


/* Animation */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(35px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}
/* =========================================
   terms.css - Part 4
   Footer
========================================= */


/* ===========================
   Footer
=========================== */

footer{

    background:#111111;

    color:#ffffff;

    padding:80px 0 30px;

}


/* Grid */

.footer-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));

    gap:45px;

}


/* Footer Box */

.footer-box h3{

    font-size:1.5rem;

    margin-bottom:18px;

    color:#ffffff;

}

.footer-box p{

    color:#cfcfcf;

    line-height:1.9;

    margin-bottom:12px;

}


/* Footer Links */

.footer-box a{

    display:block;

    color:#d6d6d6;

    margin:10px 0;

    transition:.3s ease;

}

.footer-box a:hover{

    color:var(--primary);

    padding-left:8px;

}


/* ===========================
   Social Icons
=========================== */

.social-text{

    color:#cfcfcf;

    margin-bottom:20px;

}

.social-icons{

    display:flex;

    flex-wrap:wrap;

    gap:14px;

}

.social-icons a{

    width:50px;

    height:50px;

    border-radius:50%;

    background:#1d1d1d;

    color:#ffffff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:20px;

    transition:.35s ease;

}

.social-icons a:hover{

    background:var(--primary);

    transform:translateY(-6px);

    box-shadow:0 10px 25px rgba(22,119,255,.35);

}


/* Divider */

footer hr{

    margin:50px 0 30px;

    border:none;

    height:1px;

    background:#2b2b2b;

}


/* Copyright */

.copyright{

    text-align:center;

    color:#bdbdbd;

    font-size:.95rem;

    line-height:1.9;

}
/* =========================================
   terms.css - Part 5
   Responsive Design
========================================= */


/* ===========================
   Tablet
=========================== */

@media (max-width: 992px){

    .navbar{

        width:92%;

    }

    .nav-links{

        gap:25px;

    }

    .terms-hero h1{

        font-size:3rem;

    }

    .terms-card{

        padding:30px;

    }

}


/* ===========================
   Mobile Navigation
=========================== */

@media (max-width: 768px){

    .menu-toggle{

        display:flex;

    }

    .nav-links{

        position:absolute;

        top:85px;

        left:0;

        width:100%;

        background:#ffffff;

        display:flex;

        flex-direction:column;

        align-items:center;

        gap:25px;

        padding:30px 0;

        transform:translateY(-150%);

        opacity:0;

        transition:.35s ease;

        box-shadow:0 10px 25px rgba(0,0,0,.08);

    }

    .nav-links.active{

        transform:translateY(0);

        opacity:1;

    }

    .terms-hero{

        padding:120px 0 70px;

    }

    .terms-hero h1{

        font-size:2.4rem;

    }

    .terms-hero p{

        font-size:1rem;

    }

    .terms-card{

        padding:24px;

    }

    .terms-card h2{

        font-size:1.3rem;

    }

}


/* ===========================
   Small Mobile
=========================== */

@media (max-width: 480px){

    .logo a{

        font-size:1.5rem;

    }

    .terms-hero h1{

        font-size:2rem;

    }

    .terms-card{

        padding:20px;

    }

    .terms-card p{

        padding-left:0;

    }

    .terms-card h2{

        flex-direction:column;

        align-items:flex-start;

        gap:10px;

    }

    .footer-grid{

        grid-template-columns:1fr;

        text-align:center;

    }

    .social-icons{

        justify-content:center;

    }

}
/* =========================================
   terms.css - Part 6
   Final Effects
========================================= */


/* ===========================
   Progress Bar
=========================== */

.progress-bar{

    position:fixed;

    top:0;

    left:0;

    width:0;

    height:4px;

    background:linear-gradient(90deg,#1677ff,#4aa3ff);

    z-index:99999;

    transition:width .2s linear;

}


/* ===========================
   Back To Top Button
=========================== */

.back-to-top{

    position:fixed;

    right:25px;

    bottom:25px;

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:#1677ff;

    color:#ffffff;

    font-size:22px;

    cursor:pointer;

    opacity:0;

    visibility:hidden;

    transform:translateY(20px);

    transition:.35s ease;

    box-shadow:0 10px 25px rgba(22,119,255,.35);

    z-index:999;

}

.back-to-top.show-top{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.back-to-top:hover{

    background:#005fe0;

    transform:translateY(-5px);

}


/* ===========================
   Fade Loaded
=========================== */

body{

    opacity:0;

    transition:opacity .5s ease;

}

body.page-loaded{

    opacity:1;

}


/* ===========================
   Utility Classes
=========================== */

.text-center{

    text-align:center;

}

.hidden{

    display:none !important;

}

.mt-20{

    margin-top:20px;

}

.mt-40{

    margin-top:40px;

}

.mb-20{

    margin-bottom:20px;

}

.mb-40{

    margin-bottom:40px;

}


/* ===========================
   Prevent Image Drag
=========================== */

img{

    user-select:none;

    -webkit-user-drag:none;

}


/* ===========================
   Smooth Buttons
=========================== */

button,
a{

    transition:all .3s ease;

}

/* =========================================
   SOCIAL ICONS — SINGLE ROW
========================================= */

.social-icons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;

    gap: 16px;

    width: 100%;
    max-width: 100%;

    box-sizing: border-box;
}


.social-icons a {
    width: 58px;
    height: 58px;

    min-width: 58px;
    min-height: 58px;

    flex: 0 0 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    box-sizing: border-box;

    text-decoration: none;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .social-icons {
        gap: 9px;
    }

    .social-icons a {
        width: 46px;
        height: 46px;

        min-width: 46px;
        min-height: 46px;

        flex: 0 0 46px;
    }

}
/* =========================================
   MOBILE NAVBAR — FINAL
========================================= */

@media (max-width: 768px) {

    /* Navbar */
    .navbar {
        width: 94%;
        height: 72px;
        position: relative;
    }


    /* Logo */
    .logo {
        flex: 1;
        min-width: 0;
    }

    .logo a {
        display: block;

        font-size: 1.45rem;
        font-weight: 800;

        white-space: nowrap;

        line-height: 1;
        color: var(--primary);

        letter-spacing: -0.5px;
    }


    /* Hamburger */
    .menu-toggle {
        display: flex;

        width: 44px;
        height: 44px;

        align-items: center;
        justify-content: center;

        flex-direction: column;

        margin-left: 12px;

        cursor: pointer;

        border-radius: 10px;

        transition: .3s;
    }


    .menu-toggle:hover {
        background: #f1f6ff;
    }


    .menu-toggle span {
        display: block;

        width: 27px;
        height: 3px;

        margin: 3px 0;

        background: #111;

        border-radius: 20px;

        transition: .3s;
    }


    /* Hamburger animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }


    /* Mobile Navigation */
    .nav-links {
        position: absolute;

        top: 72px;
        left: 0;
        right: 0;

        display: flex;

        flex-direction: column;

        gap: 0;

        background: #ffffff;

        padding: 10px 0;

        border-radius: 0 0 18px 18px;

        box-shadow: 0 15px 35px rgba(0,0,0,.10);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity .3s ease,
            transform .3s ease,
            visibility .3s ease;

        z-index: 9998;
    }


    /* Open menu */
    .nav-links.active {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    /* Menu items */
    .nav-links li {
        width: 100%;
    }


    .nav-links a {
        display: block;

        width: 100%;

        padding: 15px 22px;

        color: #222;

        font-size: 1rem;

        font-weight: 600;

        border-bottom: 1px solid #f0f0f0;
    }


    .nav-links li:last-child a {
        border-bottom: none;
    }


    .nav-links a:hover {
        color: var(--primary);

        background: #f5f9ff;
    }


    /* Remove desktop underline on mobile */
    .nav-links a::after {
        display: none;
    }

}
/* ===========================
   End of File
=========================== */
