html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: black;
    height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    z-index: 1;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    animation: fadeIn 1.5s forwards;
}

.logo {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    background: linear-gradient(90deg,#7ad7ff,#ffffff,#ffcbf8);
    -webkit-background-clip: text;
    color: transparent;
    transition: 0.4s ease;
}

.logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    letter-spacing: 1px;
    padding-bottom: 4px;
    transition: 0.35s ease;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg,#7ad7ff,#ffffff,#ffcbf8);
    transition: 0.4s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    transform: translateY(-2px);
    color: white;
}

.content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    backdrop-filter: blur(3px);
    opacity: 0;
    animation: fadeIn 2s forwards;
}

h1 {
    font-size: 64px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0 0 10px;
    background: linear-gradient(90deg, #7ad7ff, #ffffff, #ffcbf8);
    -webkit-background-clip: text;
    color: transparent;
    animation: pulseText 3s infinite alternate;
}

h1:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(122, 215, 255, 0.7), 0 0 30px rgba(255, 203, 248, 0.6);
}

p {
    font-size: 20px;
    max-width: 600px;
    opacity: 0.85;
    margin-bottom: 40px;
    animation: fadeInText 2s forwards 0.5s;
}

.btns {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btns a {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    color: white;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.35s ease;
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

.btns a::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, #7ad7ff, #ffffff, #ffcbf8, #7ad7ff);
    background-size: 400% 400%;
    z-index: 0;
    filter: blur(10px);
    opacity: 0;
    transition: 0.5s;
}

.btns a:hover::before {
    opacity: 0.5;
    animation: gradientMove 4s linear infinite;
}

.btns a:hover {
    transform: scale(1.08) rotate(-1deg);
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 0 25px rgba(255,255,255,0.35), 0 0 40px rgba(122,215,255,0.25);
}

.btns a span {
    position: relative;
    z-index: 1;
}

footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
    z-index: 5;
    text-shadow: 0 0 5px rgba(255,255,255,0.2);
    pointer-events: none;
}
h1 {
    animation: floatText 4s ease-in-out infinite;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin-top: 40px;
}

.project-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    backdrop-filter: blur(6px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(122,215,255,0.4), 0 0 30px rgba(255,203,248,0.3);
}

.project-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-card h2 {
    font-size: 22px;
    margin: 15px 0 10px;
    background: linear-gradient(90deg, #7ad7ff, #ffffff, #ffcbf8);
    -webkit-background-clip: text;
    color: transparent;
}

.project-card p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    padding: 0 15px 15px;
}

.project-card a {
    display: inline-block;
    margin-bottom: 15px;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    transition: all 0.35s ease;
}

.project-card a:hover {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 0 15px rgba(122,215,255,0.3);
    transform: scale(1.05);
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 5;
    position: relative;
}

.project-card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-card:hover {
    transform: scale(1.02);
}

.project-details {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60%;
    max-width: 800px;
    background: rgba(0,0,0,0.9);
    padding: 30px;
    border-radius: 15px;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    color: white;
    z-index: 20;
}

.project-details.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
.projects-grid.dimmed, .projects-grid.dimmed .project-card { transition: opacity 420ms ease, transform 420ms ease; }
.projects-grid.dimmed { pointer-events: none; opacity: 0.08; transform: scale(0.99); }
.project-details {
  display: none;
  position: fixed;
  z-index: 120;
  background: linear-gradient(180deg, rgba(8,10,14,0.98), rgba(6,8,12,0.99));
  color: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 8px 20px rgba(0,0,0,0.5);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  backdrop-filter: blur(6px) saturate(1.05);
}
.project-details .pd-inner { display: flex; gap: 20px; height: 100%; box-sizing: border-box; padding: 18px; }
.project-details .pd-left { flex: 0 0 44%; display:flex; align-items:center; justify-content:center; }
.project-details .pd-hero {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-shadow: inset 0 -30px 60px rgba(0,0,0,0.35);
}
.project-card .details-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    color: white;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    backdrop-filter: blur(4px);
}

.project-card .details-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, #7ad7ff, #ffffff, #ffcbf8, #7ad7ff);
    background-size: 400% 400%;
    z-index: 0;
    filter: blur(10px);
    opacity: 0;
    transition: 0.5s;
}

.project-card .details-btn:hover::before {
    opacity: 0.5;
    animation: gradientMove 4s linear infinite;
}



.project-card .details-btn span {
    position: relative;
    z-index: 1;
}
.project-card {
    position: relative;
    transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms ease, opacity 260ms ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(20,40,60,0.45);
}


.project-card .details-btn {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    text-align: center;
}


.budget-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    background: linear-gradient(90deg, rgba(122,215,255,0.12), rgba(255,203,248,0.06));
    color: #fff;
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.progress-wrap {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 55px; 
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 -2px 6px rgba(0,0,0,0.4);
}
.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg,#7ad7ff,#ffcbf8);
    border-radius: 6px;
    transition: width 520ms cubic-bezier(.2,.8,.2,1);
}
.progress-label {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    min-width: 36px;
    text-align: right;
}
.project-img {
    transition: transform 420ms cubic-bezier(.2,.8,.2,1);
    will-change: transform;
}
.project-card:hover .project-img {
    transform-origin: center center;
    transform: scale(1.06);
}


.project-details .pd-right { flex: 1 1 auto; overflow:auto; padding-right: 10px; }
.project-details h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: .6px; }
.project-details .pd-lead { color: rgba(255,255,255,0.9); margin-bottom: 12px; }
.project-details .pd-meta { margin-bottom: 14px; color: rgba(255,255,255,0.85); }
.project-details h3 { margin: 12px 0 8px; font-size: 16px; }
.project-details ol, .project-details ul { margin: 8px 0 14px 20px; color: rgba(255,255,255,0.9); }
.project-details .pd-actions { display:flex; gap:12px; margin-top:12px; align-items:center; }
.project-details .pd-close { position:absolute; right:12px; top:12px; background:transparent; border:none; color:#fff; font-size:20px; cursor:pointer; }
.project-details .pd-close:hover { transform: scale(1.05); }
.project-details .pd-close-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.project-details .pd-more {
  margin-left: auto;
  padding: 10px 14px;
  background: linear-gradient(90deg,#7ad7ff,#ffcbf8);
  color: #08202a;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.no-scroll { overflow: hidden; }


@keyframes floatText {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}


@keyframes pulseText {
    0% { transform: scale(1); text-shadow: 0 0 5px rgba(255,255,255,0.2); }
    50% { transform: scale(1.02); text-shadow: 0 0 15px rgba(255,255,255,0.6); }
    100% { transform: scale(1); text-shadow: 0 0 5px rgba(255,255,255,0.2); }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
