html, body{
overflow-x:hidden;
width:100%;
}
:root {

    --primary: #0a192f;
    --secondary: #112240;
    --accent: #64ffda;
    --text: #ccd6f6;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    scroll-behavior: smooth;
}

body{
background:var(--primary);
color:var(--text);
line-height:1.6;
overflow-x:hidden ;
}
*{
box-sizing:border-box;
}
section{
padding:120px 8%;
}

.container{
max-width:1200px;
margin:auto;
}

/* container */

.scroll-indicator{
position:absolute;
bottom:40px;
left:50%;
transform:translateX(-50%);
}

/* progress */

.scroll-progress {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #6ee7ff, #a855f7);
    box-shadow: 0 0 10px #a855f7;
}
#progressBar{
position:fixed;
top:0;
left:0;
height:4px;
background:#ff5722;
width:0%;
z-index:9999;
}
/* NAVBAR */
.navbar{
display:flex;
justify-content:space-between;
align-items:center;
padding:25px 60px;
position:fixed;
top:0;
width:100%;
z-index:100;
transition:0.4s;
}

.logo {
    font-size: 24px;
    color: #6ee7ff;
    transition: 0.3s;
}
.menu-toggle{
display:none;
font-size:28px;
background:none;
border:none;
cursor:pointer;
}

.close-btn {
  display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    position: relative;
    font-size: 15px;
}

/* NAVBAR ANIMATION */
.nav-links a::after {
    content: '';
    width: 0;
    height: 2px;
    background: var(--accent);
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    height:100vh;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
flex-direction:column;
background:url("../images/hero/cube.png") center/cover no-repeat;
position:relative;
}

.hero::before {
    content:"";
position:absolute;
width:100%;
height:100%;
background:rgba(0,0,0,0.45);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 90px;
    letter-spacing: 6px;
    font-weight: 800;
}

.hero p {
    margin-top: 20px;
    letter-spacing: 3px;
    
}

.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 28px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: var(--accent);
    color: var(--primary);
}

/* FEATURED SECTION */

.featured{
margin-top: 40px;
}

.featured-title{
color:#888;
font-size:14px;
letter-spacing:3px;
margin-bottom:50px;
}

.logo-slider{
max-width:900px;
margin:auto;
}

.logo-track{
display:flex;
gap:80px;
animation:scroll 20s linear infinite;
}

.logo-track img{
height:40px;
opacity:0.9;
transition:.3s;
}

.logo-track img:hover{
transform:scale(1.1);
}

/* infinite animation */

@keyframes scroll{

0%{
transform:translateY(0);
}

100%{
transform:translateY(50%);
}

}

.mouse {
    width: 28px;
    height: 45px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

 @keyframes mouseScroll {

    0% {
        opacity: 0;
        top: 8px;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        top: 25px;
    }
}

.expertise {
    background: #0a0a0f;
}

.section-title {
    text-align: center;
    font-size: 50px;
    margin-bottom: 70px;
}

/* GRID */

.expertise-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #333;
}

/* CARD */

.expertise-card {
    padding: 45px;
    border-right: 1px solid #333;
    transition: 0.3s;
}

.expertise-card:last-child {
    border-right: none;
}

.expertise-card:hover {
    background: #111;
    transform: translateY(-10px);
    transition: 0.3s;
}
.expertise-card h3{
margin-bottom:10px;
}

.expertise-card p{
color:#bbb;
}
.card-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-title i {
    font-size: 30px;
    color: #7dd3fc;
}

/* BACKGROUND CODE */

.code-bg {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.08;
    font-family: monospace;
    font-size: 14px;
    white-space: pre;
    color: #00ff88, red;
}

.work {
    background: #0b0b0f;
    color: white;
    padding: 120px 80px;
}

.work-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.work-title {
    font-size: 120px;
    font-weight: 800;
}

.work-desc {
    margin-top: 20px;
    max-width: 450px;
    line-height: 1.6;
    color: #d1d1d1;
}

/* RIGHT */

.work-right {
    position: relative;
    text-align: center;
}

/* PROJECT INFO */

.project-info {
    margin-top: 30px;
}

.featured {
    color: #aaa;
}

.view-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #8b5cf6;
    border-radius: 6px;
    color: white;
    text-decoration: none;
}

.phone {
    width: 280px;
}

.phone-wrapper {
    animation: phoneMoveRotate 4s linear infinite;
}

@keyframes phoneMoveRotate {

    0% {
        transform: translateX(80px) rotate(0deg);
    }

    /* first 1.5 sec slow */
    30% {
        transform: translateX(40px) rotate(60deg);
    }

    /* fast rotation */
    70% {
        transform: translateX(-40px) rotate(300deg);
    }

    100% {
        transform: translateX(-80px) rotate(360deg);
    }

}

.portfolio{
width:90%;
margin:auto;
}

.filter-wrapper{
display:flex;
align-items:center;
gap:15px;
margin-bottom:40px;
}

.filter-title{
color:#aaa;
font-size:14px;
}

.filters{
display:flex;
gap:20px;
list-style:none;
padding:0;
margin:0;
}

.filters li{
cursor:pointer;
color:#aaa;
font-size:14px;
}

.filters li.active{
color:#00d9ff;
}

.filters li:hover{
color:white;
}

.grid{
display:grid;
grid-template-columns:repeat(3,1fr);
grid-auto-rows: 200px;
gap:20px;
}

/* CARD */
.card{
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}
.card img{
width:100%;
height: 100%;
transition:.4s;
}

.card:hover img{
transform:scale(1.1);
}

.card h3{
margin-top:10px;
}

.card p{
font-size:14px;
color:#aaa;
cursor:pointer;
}

/* SIZES */

.small img{
grid-row:span 1;
}

.medium img{
grid-row: span 2;
}

.large{
grid-column:span 2;
grid-row:span 2;
}

.large img{
height:500px;
object-fit:cover;
}
.overlay{
position:absolute;
bottom:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.6);
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
opacity:0;
transition:.4s;
}

.card:hover .overlay{
opacity:1;
}

.overlay h3{
color:white;
margin-bottom:5px;
}

.overlay p{
color:#bbb;
margin-bottom:10px;
}

.overlay span{
background:white;
color:black;
padding:6px 12px;
border-radius:20px;
font-size:13px;
}
.experience{
max-width:900px;
margin:auto;
padding:100px 20px;
color:white;
}

.experience h2{
text-align:center;
font-size:48px;
margin-bottom:50px;
}

.exp-item{
margin-bottom:15px;
}

.exp-header{
background:#5b1aa3;
padding:18px 25px;
display:flex;
justify-content:space-between;
align-items:center;
border-radius:8px;
cursor:pointer;
}

.exp-header span{
font-weight:500;
}

.toggle{
background:none;
border:none;
color:white;
font-size:20px;
cursor:pointer;
}

.exp-content{
display:none;
padding:20px;
background:#1e1e3f;
border-radius:10px;
margin-top:10px;
}

.exp-item.active .exp-content{
max-height:500px;
padding-top: 15px;
display: block;
}
/* change + to - when open */
.exp-item.active .toggle{
transform:rotate(45deg);
}

.location{
color:#bbb;
margin-bottom:15px;
}

.skills span{
background:#2d2f8f;
padding:6px 12px;
border-radius:20px;
margin-right:8px;
font-size:12px;
}
/* CONTACT SECTION */

.contact{
display:grid;
grid-template-columns:1fr 2fr;
}


/* LEFT SIDE */

.contact-left{
background:#0b0b0b;
color:white;
padding:120px 80px;
box-sizing: border-box;
}

.contact-left h1{
font-size:48px;
margin-bottom:30px;
}

.contact-left p{
color:#bbb;
margin-bottom:40px;
}

.contact-left .email{
font-size:20px;
color:white;
text-decoration:none;
border-bottom:3px solid #8b5cf6;
display:inline-block;
margin-bottom:40px;
}

.contact-links a{
display:block;
color:#aaa;
margin-bottom:10px;
text-decoration:none;
}


/* RIGHT GRID */

.contact-right{
display:grid;
grid-template-columns:1fr 1fr;
grid-template-rows:1fr 1fr;
grid-template-areas:
"card1 card2"
"card1 card3";
}


/* CONTACT CARDS */

.contact-card{
padding:40px;
color:white;
position:relative;
}

.contact-card img{
width:60px;
height:60px;
border-radius:50%;
object-fit:cover;
position:absolute;
top:25px;
right:25px;
}


/* GRID AREAS */

.card1{
grid-area:card1;
background:linear-gradient(135deg,#a855f7,#7c3aed);
}

.card2{
grid-area:card2;
background:#1e6bd6;
}

.card3{
grid-area:card3;
background:#8b5cf6;
}


/* TEXT */

.contact-card p{
margin-top:70px;
line-height:1.6;
}

.contact-card h4{
margin-top:20px;
}

.contact-card span{
font-size:14px;
opacity:.8;
}
.card h4{
margin:0;
font-size:15px;
}

.card span{
font-size:13px;
opacity:.8;
}
#scrollTopBtn {
  position: fixed;
  right: 30px;
  bottom: 80px;
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(to right, orange, red);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100px);
  opacity: 0;
  transition: 0.4s ease;
  z-index: 999;
}

#scrollTopBtn.show {
  transform: translateY(0);
  opacity: 1;
}

#scrollTopBtn:hover {
  transform: scale(1.1);
}
.reveal{
opacity:0;
transform:translateY(50px);
transition:0.6s;
}

.reveal.active{
opacity:1;
transform:translateY(0);
}
.logo-slider{
overflow:hidden;
white-space:nowrap;
}

.logo-track{
display:inline-block;
animation:slide 20s linear infinite;
}

.logo-track img{
height:50px;
margin:0 40px;
}

@keyframes slide{
0%{transform:translateX(0);}
100%{transform:translateX(-50%);}
}
.contact-links{
display:flex;
gap:20px;
margin-top:20px;
}

.contact-links a{
font-size:22px;
color:#aaa;
transition:.3s;
}

.contact-links a:hover{
color:#00ff88;
transform:translateY(-4px);
}
