/* =========================
   ROOT
========================= */
:root{
    --bg: #0b1220;
    --card: rgba(255,255,255,0.06);
    --border: rgba(255,255,255,0.12);
    --text: #e5e7eb;
    --muted: rgba(229,231,235,0.7);
    --primary: #38bdf8;
}

/* =========================
   RESET
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Poppins,sans-serif;
}

body{
    background: radial-gradient(circle at top, #111827, var(--bg));
    color: var(--text);
    padding-top: 80px;
}

/* =========================
   NAVBAR
========================= */
.navbar{
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 25px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-left,
.nav-right{
    display:flex;
    align-items:center;
}

.nav-left{ gap:18px; }

.navbar a{
    color: var(--primary);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.25s ease;
}

.navbar a:hover{
    color:#fff;
    background: rgba(56,189,248,0.12);
}

.navbar a.active{
    color:#fff;
    background: rgba(56,189,248,0.2);
    border-bottom: 2px solid var(--primary);
}

.admin-btn{
    background: var(--primary);
    color:#000 !important;
    padding:6px 12px;
    border-radius:8px;
    font-weight:600;
}

.admin-btn:hover{
    transform: translateY(-2px);
}

.menu-toggle{
    display:none;
    font-size:22px;
    color:#fff;
    cursor:pointer;
}

/* =========================
   HERO
========================= */
.hero{
    min-height:85vh;
    padding:90px 20px 40px;
    text-align:center;
}

.hero h1{
    font-size:52px;
    background: linear-gradient(90deg,#38bdf8,#0ea5e9);
    -webkit-background-clip:text;
    color:transparent;
}

.hero p{
    max-width:600px;
    margin:10px auto;
    color:var(--muted);
}

/* =========================
   PAGE
========================= */
.page{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:40px 20px;
    text-align:center;
}

.page-title{
    font-size:38px;
    font-weight:700;
    margin-bottom:10px;
}

.text-block{
    max-width:700px;
    margin:auto;
    color:var(--muted);
    line-height:1.7;
}

/* =========================
   BUTTON
========================= */
.btn{
    background: var(--primary);
    color:#000;
    padding:12px 22px;
    border-radius:12px;
    font-weight:600;
    text-decoration:none;
    display:inline-block;
    transition:0.3s;
    position:relative;
    overflow:hidden;
}

.btn:hover{
    transform: translateY(-2px);
    box-shadow:0 10px 25px rgba(56,189,248,0.3);
}

/* =========================
   GRID & CARDS
========================= */
.grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-top:20px;
}

.card{
    background: var(--card);
    border:1px solid var(--border);
    border-radius:16px;
    padding:15px;
    transition:0.3s;
}

.card:hover{
    transform: translateY(-8px);
    box-shadow:0 15px 40px rgba(0,0,0,0.4);
}

/* =========================
   SERVICES
========================= */
.service-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.service-card{
    background: var(--card);
    border:1px solid var(--border);
    padding:20px;
    border-radius:12px;
}

.service-card:hover{
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* =========================
   TIMELINE
========================= */
.timeline{
    display:flex;
    flex-direction:column;
    gap:15px;
    margin-top:20px;
    text-align:left;
}

.timeline-item{
    background: rgba(255,255,255,0.05);
    padding:15px;
    border-radius:10px;
    border-left:3px solid var(--primary);
}

.company{
    color:var(--primary);
}

/* =========================
   FORM
========================= */
form{
    max-width:500px;
    margin:auto;
}

input, textarea{
    width:100%;
    padding:12px;
    margin:10px 0;
    border-radius:8px;
    border:1px solid var(--border);
    background: rgba(255,255,255,0.05);
    color:#fff;
}

/* =========================
   FOOTER
========================= */
footer{
    text-align:center;
    padding:20px;
    background:#020617;
}

/* =========================
   PROJECT GRID
========================= */
.project-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
    gap:30px;
    margin-top:40px;
}

/* PROJECT CARD */
.project-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    overflow:hidden;
    transition:0.3s;
}

.project-card:hover{
    transform:translateY(-3px);
}

.project-image img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.project-content{
    padding:25px;
}

.project-title{
    font-size:24px;
    font-weight:700;
    color:#000;
    margin-bottom:15px;
}

.project-description{
    color:#444;
    line-height:1.9;
    font-size:16px;
}

/* BUTTON */
.project-btn{
    display:inline-block;
    margin-top:20px;
    padding:12px 22px;
    background:#2563eb;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    font-weight:600;
    transition:0.3s;
}

.project-btn:hover{
    background:#1d4ed8;
}

/* PAGINATION */
.pagination{
    display:flex;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
    margin-top:50px;
}

.page-btn{
    padding:10px 16px;
    border:1px solid #d1d5db;
    border-radius:8px;
    text-decoration:none;
    color:#000;
    transition:0.3s;
}

.page-btn:hover,
.page-btn.active{
    background:#2563eb;
    color:#fff;
    border-color:#2563eb;
}

/* EMPTY */
.no-project{
    text-align:center;
    padding:40px;
    color:#777;
}

/* =========================
   MODAL
========================= */
#projectModal{
    backdrop-filter:blur(3px);
}

.modal-box{
    background:#fff;
    width:90%;
    max-width:900px;
    margin:50px auto;
    border-radius:12px;
    overflow:hidden;
    position:relative;
    box-shadow:0 10px 40px rgba(0,0,0,0.15);
}

.modal-image img{
    width:100%;
    max-height:450px;
    object-fit:cover;
}

.modal-content{
    padding:35px;
}

.modal-title{
    font-size:32px;
    color:#000;
    margin-bottom:20px;
}

.modal-description{
    font-size:17px;
    line-height:2;
    color:#333;
}

.modal-close{
    position:absolute;
    top:15px;
    right:15px;
    width:40px;
    height:40px;
    border:none;
    border-radius:50%;
    background:#2563eb;
    color:#fff;
    cursor:pointer;
}

/* =========================
   MOBILE
========================= */
@media(max-width:768px){

    .menu-toggle{ display:block; }

    .grid{ grid-template-columns:1fr; }

    .service-grid{ grid-template-columns:1fr; }

    .hero h1{ font-size:34px; }

    .project-title{ font-size:20px; }

    .modal-title{ font-size:24px; }

    .modal-content{ padding:25px; }
}

/* =========================
   ANIMATION
========================= */
.reveal{
    opacity:0;
    transform:translateY(40px);
    transition:0.6s ease;
}

.reveal.active{
    opacity:1;
    transform:translateY(0);
}