:root{
    --primary:#8B0000;
    --dark:#1A1A1A;
    --dark2:#2d2d2d;
    --light:#f5f5f5;
    --white:#ffffff;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:var(--light);
    color:#333;
    overflow-x:hidden;
}

/* HEADER */

.navbar{
    position:fixed;
    top:0;
    width:100%;
    background:rgba(26,26,26,.95);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 6%;
    z-index:1000;
    box-shadow:0 3px 10px rgba(0,0,0,.2);
}

.logo img{
    height:60px;
}

.nav-menu{
    display:flex;
    list-style:none;
}

.nav-menu li{
    margin-left:30px;
}

.nav-menu a{
    color:white;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
}

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

/* HAMBURGER */

.hamburger{
    display:none;
    flex-direction:column;
    cursor:pointer;
}

.hamburger span{
    width:28px;
    height:3px;
    background:white;
    margin:4px 0;
    transition:.4s;
}

.hamburger.active span:nth-child(1){
    transform:rotate(45deg) translate(5px,5px);
}

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

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

/* HERO */

.hero{
    min-height:100vh;
    background:
    linear-gradient(rgba(0,0,0,.7),rgba(0,0,0,.7)),
    url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1920');
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:120px 5%;
}

.hero-content{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    max-width:1300px;
}

.hero-left{
    flex:1;
    color:white;
}

.hero-left h1{
    font-size:4rem;
    margin-bottom:10px;
}

.hero-left h2{
    color:#ddd;
    margin-bottom:20px;
}

.hero-left p{
    line-height:1.8;
    font-size:1.1rem;
}

.hero-right{
    flex:1;
    text-align:center;
}

.hero-right img{
    width:350px;
    height:350px;
    border-radius:50%;
    object-fit:cover;
    border:6px solid var(--primary);
    box-shadow:0 0 30px rgba(0,0,0,.5);
}

.btn{
    display:inline-block;
    background:var(--primary);
    color:white;
    text-decoration:none;
    padding:14px 35px;
    border-radius:5px;
    margin-top:25px;
    transition:.3s;
}

.btn:hover{
    transform:translateY(-3px);
}

/* SECTIONS */

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

section{
    padding:90px 0;
}

h2{
    text-align:center;
    color:var(--primary);
    margin-bottom:40px;
    font-size:2.5rem;
}

/* STATS */

.stats{
    background:var(--primary);
    color:white;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    text-align:center;
}

.stat{
    padding:40px 20px;
}

.stat h3{
    font-size:3rem;
}

/* ABOUT */

#about p{
    font-size:1.1rem;
    line-height:2;
    text-align:center;
}

/* SERVICES */

.service-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.service-card{
    background:white;
    padding:30px;
    text-align:center;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transition:.3s;
}

.service-card:hover{
    transform:translateY(-8px);
}

/* PORTFOLIO */

.portfolio{
    background:#f0f0f0;
}

.portfolio-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.project-card{
    background:white;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.1);
}

.project-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.project-card h3{
    padding:15px;
}

.project-card p{
    padding:0 15px 20px;
}

/* TESTIMONIALS */

.testimonials{
    background:var(--dark);
    color:white;
}

.testimonial{
    display:none;
    text-align:center;
    font-size:1.3rem;
    max-width:800px;
    margin:auto;
    line-height:2;
}

.testimonial.active{
    display:block;
}

/* CONTACT */

#contact{
    background:#fafafa;
}

form{
    max-width:700px;
    margin:auto;
}

input,
textarea{
    width:100%;
    padding:15px;
    margin-bottom:15px;
    border:1px solid #ccc;
    border-radius:5px;
}

textarea{
    height:180px;
}

button{
    background:var(--primary);
    color:white;
    border:none;
    padding:15px 35px;
    cursor:pointer;
    border-radius:5px;
}

#contact p{
    text-align:center;
    margin-top:20px;
}

/* FOOTER */

footer{
    background:var(--dark);
    color:white;
    text-align:center;
    padding:25px;
}

/* MOBILE */

@media(max-width:768px){

.hero-content{
    flex-direction:column-reverse;
    text-align:center;
}

.hero-left h1{
    font-size:2.7rem;
}

.hero-right img{
    width:250px;
    height:250px;
    margin-bottom:30px;
}

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

.hamburger{
    display:flex;
}

.nav-menu{
    position:absolute;
    top:90px;
    left:-100%;
    width:100%;
    background:var(--dark);
    flex-direction:column;
    text-align:center;
    transition:.4s;
}

.nav-menu.active{
    left:0;
}

.nav-menu li{
    margin:20px 0;
}
}