/*==================================================
    GLOBAL STYLES
    Portfolio by Naman Sharma
==================================================*/

/*===============
    CSS VARIABLES
================*/

:root{

    --black:#f5f2ed;
    --white:#0b0b0b;
    --light:#211f1f;
    --gray:#8a8a8a;
    --border:#050505;
    --red:#a30000;
    --red-dark:#8b0d1a;

    --container:1440px;

    --radius:24px;

    --transition:.4s cubic-bezier(.22,.61,.36,1);

    --shadow:0 30px 60px #8b0d1a;

}

/*===============
    RESET
================*/

*{

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

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Inter',sans-serif;

    background:var(--white);

    color:var(--black);

    overflow-x:hidden;

    -webkit-font-smoothing:antialiased;

}

/*===============
    ACCESSIBILITY
================*/

.skip-link{

    position:absolute;

    top:-100px;

    left:20px;

    background:var(--red);

    color:#fff;

    padding:12px 24px;

    z-index:100000;

    font-weight:700;

    text-decoration:none;

    transition:top .25s ease;

    border-radius:4px;

}

.skip-link:focus{

    top:20px;

}

/*===============
    TYPOGRAPHY
================*/

h1,
h2,
h3,
h4,
h5,
h6{

    font-family:'Anton',sans-serif;

    font-weight:400;

    letter-spacing:1px;

    text-transform:uppercase;

}

h1{

    font-size:clamp(4rem,10vw,9rem);

    line-height:.9;

}

h2{

    font-size:clamp(2rem,5vw,4rem);

    line-height:1;

}

h3{

    font-size:1.6rem;

}

p{

    font-size:1rem;

    line-height:1.8;

    color:var(--gray);

}

/*===============
    LINKS
================*/

a{

    color:inherit;

    text-decoration:none;

}

li{

    list-style:none;

}

img{

    display:block;

    width:100%;

}

button{

    border:none;

    background:none;

    cursor:pointer;

    font-family:inherit;

}

/*===============
    CONTAINER
================*/

.container{

    width:min(92%,var(--container));

    margin-inline:auto;

}

/*===============
    SECTION
================*/

section{

    padding:120px 0;

    position:relative;

}

.section-title{

    display:flex;

    justify-content:space-between;

    align-items:end;

    margin-bottom:70px;

}

.section-title h2{

    position:relative;

}

.section-title h2::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-14px;

    width:90px;

    height:5px;

    background:var(--red);

}

/*===============
    BUTTONS
================*/

.primary-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    height:58px;

    padding:0 34px;

    background:var(--red);

    color: #0b0b0b;

    font-weight:700;

    letter-spacing:1px;

    transition:var(--transition);

}

.primary-btn:hover{

    background:var(--black);

    transform:translateY(-4px);

}

.secondary-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    height:58px;

    padding:0 34px;

    border:2px solid var(--black);

    transition:var(--transition);

}

.secondary-btn:hover{

    background:var(--black);

    color:var(--white);

}

.contact-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    margin-top:45px;

    background:var(--red);

    color:#0b0b0b;

    padding:20px 42px;

    font-weight:700;

    transition:var(--transition);

}

.contact-btn:hover{

    background:var(--black);

}

/*===============
    GRID
================*/

.grid-2{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:80px;

}

.grid-3{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}

.grid-4{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}

/*===============
    CARD
================*/

.card{

    background:#fff;

    border:1px solid var(--border);

    transition:var(--transition);

}

.card:hover{

    transform:translateY(-10px);

    box-shadow:var(--shadow);

}

/*===============
    PRELOADER
================*/

.preloader{

    position:fixed;

    inset:0;

    background:#000;

    display:flex;

    align-items:center;

    justify-content:center;

    z-index:99999;

}

.loader-text{

    display:flex;

    gap:10px;

}

.loader-text span{

    font-family:'Anton',sans-serif;

    font-size:5rem;

    color:#fff;

}

.preloader{

    transition:opacity .6s ease, visibility .6s ease;

}

.preloader.hide{

    opacity:0;

    visibility:hidden;

    pointer-events:none;

}

/*===============
    TEXT
================*/

.hero-tag{

    display:inline-block;

    margin-bottom:30px;

    color:var(--red);

    font-weight:700;

    letter-spacing:3px;

}

.highlight{

    color:var(--red);

}

.text-center{

    text-align:center;

}

/*===============
    SPACING
================*/

.mb-20{

    margin-bottom:20px;

}

.mb-30{

    margin-bottom:30px;

}

.mb-50{

    margin-bottom:50px;

}

.mt-50{

    margin-top:50px;

}

/*===============
    SCROLLBAR
================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#efefef;

}

::-webkit-scrollbar-thumb{

    background:var(--red);

}

::-webkit-scrollbar-thumb:hover{

    background:var(--black);

}

/*===============
    SELECTION
================*/

::selection{

    background:var(--red);

    color:#fff;

}

/*===============
    ANIMATIONS
================*/

.fade-up{

    opacity:0;

    transform:translateY(60px);

}

.fade-left{

    opacity:0;

    transform:translateX(-60px);

}

.fade-right{

    opacity:0;

    transform:translateX(60px);

}

/*===============
    UTILITIES
================*/

.border-top{

    border-top:1px solid var(--border);

}

.border-bottom{

    border-bottom:1px solid var(--border);

}

.bg-black{

    background:var(--black);

    color:#fff;

}

.bg-red{

    background:var(--red);

    color:#fff;

}

.rounded{

    border-radius:var(--radius);

}

.shadow{

    box-shadow:var(--shadow);

}