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

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

html{
  scroll-behavior:smooth;
}

:root{

  --bg:#060816;
  --card:#0d1122;
  --border:rgba(255,255,255,.08);

  --text:#ffffff;
  --text-soft:#a2a2a2;

  --accent:#7583ff;
  --accent-2:#9ba6ff;

  --radius:30px;
}

body{
  font-family:'Inter',sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
  position:relative;
}

img{
  max-width:100%;
  display:block;
}

a{
  text-decoration:none;
  color:inherit;
}

button{
  font-family:'Inter',sans-serif;
}

::selection{
  background:rgba(117,131,255,.35);
  color:white;
}


/* ================================================= */
/* BACKGROUND */
/* ================================================= */

.background-glow{

  position:fixed;

  width:900px;
  height:900px;

  top:-300px;
  right:-250px;

  border-radius:50%;

  background:
  radial-gradient(
    circle,
    rgba(117,131,255,.20),
    transparent 70%
  );

  pointer-events:none;

  z-index:-1;
}


body::before{

  content:"";

  position:fixed;
  inset:0;

  background-image:
  linear-gradient(
    rgba(255,255,255,.03) 1px,
    transparent 1px
  ),
  linear-gradient(
    90deg,
    rgba(255,255,255,.03) 1px,
    transparent 1px
  );

  background-size:70px 70px;

  opacity:.25;

  z-index:-2;
}


/* ================================================= */
/* NAVBAR */
/* ================================================= */

.navbar{

  position:sticky;
  top:0;

  width:100%;

  padding:26px 8%;

  display:flex;
  justify-content:space-between;
  align-items:center;

  backdrop-filter:blur(18px);

  background:
  rgba(6,8,22,.72);

  border-bottom:
  1px solid rgba(255,255,255,.05);

  z-index:1000;
}

/* Hide/show navbar on scroll (suavizado) */
.navbar {
  transition: transform .95s cubic-bezier(.22,.9,.28,1), opacity .75s ease, background .2s ease, border-color .2s ease;
  will-change: transform, opacity;
}

.navbar.nav-hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.logo{

  font-family:
  'Playfair Display',
  serif;

  font-size:2rem;

  letter-spacing:.5px;
}

nav{

  display:flex;
  gap:38px;
}

nav a{

  position:relative;

  color:#b8b8b8;

  transition:.3s ease;
}

nav a:hover{
  color:white;
}

nav a::after{

  content:"";

  position:absolute;

  left:0;
  bottom:-8px;

  width:0;
  height:1px;

  background:var(--accent);

  transition:.3s ease;
}

nav a:hover::after,
nav a.active::after{

  width:100%;
}


/* ================================================= */
/* HERO */
/* ================================================= */

.hero{

  min-height:100vh;

  padding:0 8%;

  display:grid;
  grid-template-columns:1fr 1fr;

  align-items:center;

  gap:90px;
}

.small-text{

  color:var(--accent);

  text-transform:uppercase;

  letter-spacing:3px;

  font-size:.75rem;

  margin-bottom:22px;
}

.hero h1{

  font-family:
  'Playfair Display',
  serif;

  font-size:5rem;

  line-height:1.05;

  margin-bottom:28px;
}

.description{

  color:var(--text-soft);

  max-width:650px;

  line-height:1.9;

  margin-bottom:40px;
}

.hero-buttons{

  display:flex;
  gap:16px;
}
/* ================================================= */
/* BUTTONS */
/* ================================================= */

.primary-btn,
.secondary-btn{

  border:none;

  cursor:pointer;

  border-radius:999px;

  padding:15px 28px;

  font-size:.95rem;

  transition:.35s ease;
}

.primary-btn{

  background:
  linear-gradient(
    135deg,
    var(--accent),
    var(--accent-2)
  );

  color:white;

  box-shadow:
  0 15px 40px
  rgba(117,131,255,.30);
}

.primary-btn:hover{

  transform:translateY(-4px);

  box-shadow:
  0 20px 55px
  rgba(117,131,255,.45);
}

.secondary-btn{

  background:
  rgba(255,255,255,.03);

  border:
  1px solid rgba(255,255,255,.08);

  color:white;
}

.secondary-btn:hover{

  background:
  rgba(255,255,255,.06);

  transform:translateY(-2px);
}


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

.hero-card{

  min-height:650px;

  padding:35px;

  border-radius:36px;

  position:relative;

  overflow:hidden;

  backdrop-filter:blur(20px);

  border:
  1px solid rgba(255,255,255,.08);

  background:
  rgba(255,255,255,.03);
}

.hero-card::before{

  content:"";

  position:absolute;

  width:450px;
  height:450px;

  top:-220px;
  right:-220px;

  border-radius:50%;

  background:
  radial-gradient(
    circle,
    rgba(117,131,255,.15),
    transparent 70%
  );
}

.card-top{

  display:flex;
  gap:10px;
}

.card-top span{

  width:12px;
  height:12px;

  border-radius:50%;

  background:
  rgba(255,255,255,.18);
}


/* ================================================= */
/* INTERACTIVE CIRCLE */
/* ================================================= */

.interactive-circle{

  width:290px;
  height:290px;

  margin:70px auto;

  border-radius:50%;

  position:relative;

  display:flex;
  align-items:center;
  justify-content:center;

  text-align:center;

  background:
  radial-gradient(
    circle,
    rgba(145,156,255,.95),
    rgba(71,83,180,.18)
  );

  box-shadow:
  0 0 80px rgba(117,131,255,.35),
  0 0 180px rgba(117,131,255,.12);

  animation:
  float 6s ease-in-out infinite;
}

.interactive-circle::before{

  content:"";

  position:absolute;

  inset:-28px;

  border-radius:50%;

  border:
  1px solid rgba(255,255,255,.08);
}

.interactive-circle::after{

  content:"";

  position:absolute;

  inset:-55px;

  border-radius:50%;

  border:
  1px solid rgba(255,255,255,.04);
}

.circle-content span{

  display:block;

  font-size:.75rem;

  letter-spacing:3px;

  color:#d7d7d7;

  margin-bottom:10px;
}

.circle-content h3{

  font-size:2rem;

  margin-bottom:8px;
}

.circle-content p{

  color:#e4e4e4;

  font-size:.95rem;
}


/* ================================================= */
/* STATS */
/* ================================================= */

.stats{

  display:flex;

  justify-content:space-between;

  gap:20px;

  margin-top:40px;
}

.stats div{

  flex:1;
}

.stats h3{

  font-size:1.4rem;

  margin-bottom:8px;
}

.stats p{

  color:#9a9a9a;

  font-size:.9rem;

  line-height:1.5;
}


/* ================================================= */
/* FLOAT ANIMATION */
/* ================================================= */

@keyframes float{

  0%{
    transform:translateY(0);
  }

  50%{
    transform:translateY(-18px);
  }

  100%{
    transform:translateY(0);
  }
}
/* ================================================= */
/* SECTIONS */
/* ================================================= */

.about,
.projects,
.contact{

  padding:140px 8%;
}

.section-title{

  margin-bottom:70px;
}

.section-title span{

  color:var(--accent);

  text-transform:uppercase;

  letter-spacing:2px;

  font-size:.75rem;
}

.section-title h2{

  margin-top:12px;

  font-size:3.2rem;

  font-family:
  'Playfair Display',
  serif;
}


/* ================================================= */
/* ABOUT */
/* ================================================= */

.about-grid{

  display:grid;

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

  gap:30px;
}

.about-card{

  padding:35px;

  border-radius:30px;

  background:
  rgba(255,255,255,.03);

  border:
  1px solid rgba(255,255,255,.08);

  backdrop-filter:blur(20px);

  transition:.35s ease;
}

.about-card:hover{

  transform:
  translateY(-8px);

  border-color:
  rgba(117,131,255,.35);
}

.about-card h3{

  font-size:1.3rem;

  margin-bottom:15px;
}

.about-card p{

  color:var(--text-soft);

  line-height:1.9;
}


/* ================================================= */
/* PROJECTS */
/* ================================================= */

.project-grid{

  display:grid;

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

  gap:30px;
}

.project-card{

  position:relative;

  overflow:hidden;

  padding:35px;

  border-radius:30px;

  background:
  rgba(255,255,255,.03);

  border:
  1px solid rgba(0, 0, 0, 0.08);

  backdrop-filter:blur(20px);

  transition:.35s ease;
}

.project-card:hover{

  transform:
  translateY(-8px);
}

.project-card.light{

  background:
  linear-gradient(
    135deg,
    #ffffff,
    #726f68
  );

  color:#111;

  border:
  1px solid rgba(0, 0, 0, 0.08);
}

.project-card.light h3{
  /* Título Luxury: dorado */
  color:#030303;
}

.project-card.light p{
  color:#494848;
}

.project-card.light .project-toggle{

  /* Botón 'Ver proyecto' en versión Luxury: degradado dorado */
  background: linear-gradient(135deg, #ad9d69, #c9b286);
  color:#000000;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 24px rgba(212,175,55,.12);
}

.project-card.light .project-toggle:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
}

.project-card.light .project-glow{

  background:
  radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8),
    transparent 70%
  );
}

.project-card h3{

  font-size:1.4rem;

  margin-bottom:15px;
}

.project-card p{

  color:var(--text-soft);

  line-height:1.8;

  margin-bottom:25px;
}

.project-card button{

  border:none;

  cursor:pointer;

  border-radius:999px;

  padding:12px 22px;

  color:rgb(255, 255, 255);

  background:
  linear-gradient(
    135deg,
    var(--accent),
    var(--accent-2)
  );
}

.project-glow{

  position:absolute;

  width:240px;
  height:240px;

  top:-100px;
  right:-100px;

  border-radius:50%;

  background:
  radial-gradient(
    circle,
    rgba(58, 67, 150, 0.2),
    transparent 70%
  );
  transition: transform .45s ease, box-shadow .45s ease, opacity .45s ease;
  transform-origin: center;
}

/* Themed glows per project */
.project-card.theme-dashboard .project-glow{
  background: radial-gradient(circle, rgba(89,108,255,0.28), transparent 70%);
  box-shadow: 0 28px 90px rgba(89,108,255,0.10);
}

.project-card.theme-luxury .project-glow{
  background: radial-gradient(circle, rgba(212,175,55,0.30), transparent 70%);
  box-shadow: 0 28px 90px rgba(212,175,55,0.10);
}

.project-card.theme-motion .project-glow{
  background: radial-gradient(circle, rgba(124,136,255,0.28), transparent 70%);
  box-shadow: 0 28px 90px rgba(124,136,255,0.10);
}

.project-card:hover .project-glow{
  transform: scale(1.08);
  opacity:1;
}

/* Glowing outline for `Ver proyecto` buttons per theme */
.project-toggle{
  position:relative;
  z-index:2;
  transition: box-shadow .35s ease, transform .25s ease;
}

.project-card.theme-dashboard .project-toggle{
  box-shadow: 0 8px 30px rgba(89,108,255,0.18), 0 0 18px rgba(89,108,255,0.10) inset;
}
.project-card.theme-dashboard .project-toggle:hover{
  box-shadow: 0 18px 60px rgba(89,108,255,0.28), 0 0 30px rgba(89,108,255,0.16) inset;
  transform: translateY(-3px);
}

.project-card.theme-luxury .project-toggle{
  box-shadow: 0 8px 30px rgba(212,175,55,0.18), 0 0 18px rgba(212,175,55,0.08) inset;
}
.project-card.theme-luxury .project-toggle:hover{
  box-shadow: 0 18px 60px rgba(212,175,55,0.26), 0 0 30px rgba(212,175,55,0.14) inset;
  transform: translateY(-3px);
}

.project-card.theme-motion .project-toggle{
  box-shadow: 0 8px 30px rgba(124,136,255,0.18), 0 0 18px rgba(124,136,255,0.10) inset;
}
.project-card.theme-motion .project-toggle:hover{
  box-shadow: 0 18px 60px rgba(124,136,255,0.28), 0 0 30px rgba(124,136,255,0.16) inset;
  transform: translateY(-3px);
}


/* ================================================= */
/* PROJECT PREVIEW */
/* ================================================= */

.project-preview{

  max-height:0;

  overflow:hidden;

  transition:
  max-height .6s ease;

  margin-top:25px;
}

.project-preview.active{

  max-height:700px;
}


/* ================================================= */
/* DASHBOARD DEMO */
/* ================================================= */

.dashboard-demo{

  padding:20px;

  border-radius:20px;

  background:#0b1020;
}

.metric-card{

  display:flex;

  justify-content:space-between;

  margin-bottom:12px;

  padding:12px 16px;

  border-radius:14px;

  background:
  rgba(255,255,255,.04);
}

.metric-card span{

  color:#aaaaaa;
}

.metric-card strong{

  color:white;
}

.chart{

  margin-top:20px;

  height:160px;

  display:flex;

  align-items:flex-end;

  gap:12px;
}

.bar{

  flex:1;

  border-radius:12px 12px 0 0;

  background:
  linear-gradient(
    to top,
    #596cff,
    #93a0ff
  );

  animation:
  bars 3s ease-in-out infinite;
}

.bar-1{height:40%;}
.bar-2{height:70%;}
.bar-3{height:55%;}
.bar-4{height:90%;}
.bar-5{height:65%;}

@keyframes bars{

  0%,100%{
    opacity:.7;
  }

  50%{
    opacity:1;
  }
}


/* ================================================= */
/* LUXURY DEMO */
/* ================================================= */

.luxury-demo{

  position:relative;
  text-align:center;

  padding:20px;
}

.luxury-image{

  background: linear-gradient(135deg, #D4AF37, #B8872A);
  color:#0b0b0b;
  height:190px;
  border-radius:24px;

  background:
  linear-gradient(
    145deg,
    #1d1d1d 0%,
    #2f2f2f 35%,
    #444444 100%
  );

  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 26px 90px rgba(0,0,0,.45),
    inset 0 0 40px rgba(255,255,255,.05);
  overflow:hidden;
  margin-bottom:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  transform-style: preserve-3d;
  animation: luxuryFloat 6s ease-in-out infinite;
}

.luxury-image::before{
  content: "";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.08), transparent 20%),
    radial-gradient(circle at 80% 35%, rgba(255,255,255,.06), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 45%);
  pointer-events:none;
}

.luxury-image::after{
  content: "";
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 45%);
  opacity:.4;
  transform: translateX(-120%) skewX(-25deg);
  animation: luxuryShine 5s linear infinite;
}

/* Bring the shine above the logo and use blend mode so it brightens the logo as it passes */
.luxury-image::after{
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.75;
}

.luxury-image-logo{
  position:relative;
  z-index:2;
  width:auto;
  max-width:160px;
  height:auto;
  display:block;
  filter:
    drop-shadow(0 16px 35px rgba(0,0,0,.4))
    drop-shadow(0 0 18px rgba(255,255,255,.08));
  opacity:.98;
  transition: transform .35s ease, filter .35s ease;
}

.luxury-image-logo:hover{
  transform: scale(1.02);
}

@keyframes luxuryShine{
  0%{
    transform: translateX(-120%) skewX(-25deg);
  }

  100%{
    transform: translateX(120%) skewX(-25deg);
  }
}
.luxury-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:1500;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  justify-content:center;
  align-items:center;
  padding:30px;
}

.luxury-overlay.open{
  display:flex;
}

.luxury-overlay-card{
  position:relative;
  max-width:640px;
  width:100%;
  padding:28px 32px;
  overflow:hidden;

  /* thinner illuminated border */
  border: 1px solid rgba(255,255,255,0.06);

  /* refined projection and subtle gold/blue glow on the edges only */
  box-shadow:
    0 28px 80px rgba(0,0,0,0.6),
    0 10px 30px rgba(0,0,0,0.35);
}

/* subtle glowing border using pseudo-element (edges only) */
.luxury-overlay-card::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    0 0 30px 6px rgba(212,175,55,0.18),
    0 0 60px 14px rgba(117,131,255,0.06);
  opacity: .95;
}

/* when overlay open, prevent body scrolling to avoid double scrollbars */
body.overlay-open{
  overflow:hidden;
}

.luxury-demo h4{
  font-family:
    'Playfair Display',
    serif;

  font-size:1.6rem;

  margin-bottom:10px;
}

.luxury-demo p{

  color:#b4b4b4;

  margin-bottom:20px;
}

.luxury-btn{

  border:none;

  cursor:pointer;

  padding:12px 22px;

  border-radius:999px;

  /* Dorado: fondo degradado y texto oscuro para contraste */
  background: linear-gradient(135deg, #D4AF37, #B8872A);
  color:#0b0b0b;
}

/* Make the Luxury "Descubrir más" button match the luxury theme (gold glow) */
.project-card.theme-luxury .luxury-btn{
  background: linear-gradient(135deg, #ad9d69, #c9b286) !important;
  color: #000000;
  box-shadow: 0 8px 30px rgba(212,175,55,0.18) !important, 0 0 18px rgba(212,175,55,0.10) inset !important;
  transition: box-shadow .35s ease, transform .25s ease;
}

.project-card.theme-luxury .luxury-btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 60px rgba(212,175,55,0.26), 0 0 30px rgba(212,175,55,0.14) inset;
}

.luxury-overlay{
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}

/* Make overlay content scrollable on small screens */
.luxury-overlay{
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

.luxury-overlay-card{
  max-height: calc(100vh - 80px);
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(10,12,24,.98);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}

.luxury-overlay-close{
  position:absolute;
  top:18px;
  right:18px;
  width:auto;
  height:auto;
  padding:0;
  border:none;
  background:transparent;
  color:white;
  font-size:1.6rem;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.luxury-overlay-close:hover{
  opacity:.8;
}

.luxury-overlay-card h4{
  margin-bottom:18px;
  font-family:'Playfair Display', serif;
  font-size:2rem;
  color:white;
}

.luxury-overlay-card p,
.luxury-overlay-card li{
  color:white;
  line-height:1.8;
}

.luxury-overlay-card ul{
  list-style:none;
  padding:0;
  margin:18px 0 0;
  display:grid;
  gap:10px;
}

.luxury-overlay-card li{
  padding:14px 16px;
  border-radius:18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}


/* ================================================= */
/* MOTION DEMO */
/* ================================================= */

.motion-demo{

  position:relative;

  height:250px;

  overflow:hidden;

  border-radius:20px;

  background:#0b1020;
}

.blob{

  position:absolute;

  border-radius:50%;

  filter:blur(20px);
}

.blob-1{

  width:120px;
  height:120px;

  background:#5d6fff;

  left:20px;
  top:30px;

  animation:
  blob1 8s infinite ease-in-out;
}

.blob-2{

  width:150px;
  height:150px;

  background:#7c88ff;

  right:20px;
  top:40px;

  animation:
  blob2 7s infinite ease-in-out;
}

.blob-3{

  width:100px;
  height:100px;

  background:#aab3ff;

  bottom:20px;
  left:50%;

  transform:translateX(-50%);

  animation:
  blob3 9s infinite ease-in-out;
}

.motion-center{

  position:absolute;

  inset:0;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:1.3rem;

  font-weight:600;

  z-index:5;
}

@keyframes blob1{

  50%{
    transform:
    translate(40px,20px);
  }
}

@keyframes blob2{

  50%{
    transform:
    translate(-40px,25px);
  }
}

@keyframes blob3{

  50%{
    transform:
    translate(-50%, -20px);
  }
}
/* ================================================= */
/* CONTACT */
/* ================================================= */

.contact-box{

  display:flex;
  justify-content:space-between;
  align-items:center;

  gap:60px;

  padding:60px;

  border-radius:32px;

  position:relative;
  overflow:hidden;

  background:
  rgba(255,255,255,.03);

  border:
  1px solid rgba(255,255,255,.08);

  backdrop-filter:blur(20px);
}

.contact-box::before{

  content:"";

  position:absolute;

  width:400px;
  height:400px;

  right:-180px;
  top:-180px;

  border-radius:50%;

  background:
  radial-gradient(
    circle,
    rgba(117,131,255,.18),
    transparent 70%
  );

  pointer-events:none;
}

.contact-box h3{

  font-size:2.2rem;

  margin-bottom:18px;

  font-family:
  'Playfair Display',
  serif;
}

.contact-box p{

  max-width:650px;

  color:var(--text-soft);

  line-height:1.9;
}

.contact-links{

  display:flex;
  flex-direction:column;

  gap:18px;
}

.contact-links a{

  color:white;

  transition:.3s ease;
}

.contact-links a:hover{

  color:var(--accent);

  transform:
  translateX(6px);
}


/* ================================================= */
/* FINAL CTA */
/* ================================================= */

.final-cta{

  padding:
  140px 8%;

  text-align:center;
}

.final-cta span{

  display:inline-block;

  color:var(--accent);

  text-transform:uppercase;

  letter-spacing:2px;

  font-size:.75rem;

  margin-bottom:18px;
}

.final-cta h2{

  font-size:4rem;

  max-width:900px;

  margin:auto;

  line-height:1.1;

  font-family:
  'Playfair Display',
  serif;
}

.final-cta p{

  margin-top:24px;

  max-width:700px;

  margin-left:auto;
  margin-right:auto;

  color:var(--text-soft);

  line-height:1.9;
}


/* ================================================= */
/* FOOTER */
/* ================================================= */

.footer{

  padding:
  90px 8% 40px;

  border-top:
  1px solid rgba(255,255,255,.06);
}

.footer-grid{

  display:grid;

  grid-template-columns:
  2fr 1fr 1fr 1fr;

  gap:50px;
}

.footer-brand{

  max-width:420px;
}

.footer-logo{

  font-family:
  'Playfair Display',
  serif;

  font-size:2rem;

  margin-bottom:18px;
}

.footer-description{

  color:var(--text-soft);

  line-height:1.8;
}

.footer-column{

  display:flex;
  flex-direction:column;

  gap:14px;
}

.footer-column h4{

  font-size:.85rem;

  text-transform:uppercase;

  letter-spacing:1px;

  margin-bottom:10px;

  color:white;
}

.footer-column a,
.footer-column span{

  color:#9f9f9f;

  transition:.3s ease;
}

.footer-column a:hover{

  color:white;
}


/* ================================================= */
/* FOOTER DIVIDER */
/* ================================================= */

.footer-divider{

  width:100%;
  height:1px;

  margin:
  50px 0 30px;

  background:
  rgba(255,255,255,.06);
}


/* ================================================= */
/* FOOTER BOTTOM */
/* ================================================= */

.footer-bottom{

  display:flex;

  justify-content:space-between;

  align-items:center;

  flex-wrap:wrap;

  gap:20px;
}

.footer-bottom p{

  color:#bdbdbd;
}

.footer-bottom span{

  color:#777;

  font-size:.9rem;
}


/* ================================================= */
/* SCROLL REVEAL */
/* ================================================= */

.hidden-element{

  opacity:0;

  transform:
  translateY(40px);

  transition:
  opacity .8s ease,
  transform .8s ease;
}

.show-element{

  opacity:1;

  transform:
  translateY(0);
}


/* ================================================= */
/* RESPONSIVE */
/* ================================================= */

@media (max-width:1200px){

  .hero{

    grid-template-columns:1fr;

    padding-top:120px;
  }

  .hero-card{

    max-width:700px;

    margin:auto;
  }

  .about-grid{

    grid-template-columns:1fr 1fr;
  }

  .project-grid{

    grid-template-columns:1fr;
  }

  .footer-grid{

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

@media (max-width:768px){

  nav{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:14px;
    width:100%;
    margin-top:12px;
  }

  .hero h1{
    font-size:3rem;
  }

  .section-title h2{
    font-size:2.4rem;
  }

  .final-cta h2{
    font-size:2.8rem;
  }

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

  .contact-box{

    flex-direction:column;

    align-items:flex-start;

    padding:40px 30px;
  }

  .stats{

    flex-direction:column;

    gap:25px;
  }

  .interactive-circle{

    width:220px;
    height:220px;
  }

  .footer-grid{

    grid-template-columns:1fr;
  }

  .footer-bottom{

    flex-direction:column;

    align-items:flex-start;
  }
}


/* ================================================= */
/* EXTRA POLISH */
/* ================================================= */

.project-card,
.about-card,
.contact-box,
.hero-card{

  box-shadow:
  0 10px 40px rgba(0,0,0,.25);
}

.project-card:hover,
.about-card:hover{

  box-shadow:
  0 20px 60px rgba(117,131,255,.12);
}

/* ================================================= */
/* EMAIL POPUP */
/* ================================================= */

.email-popup{

  display:none;

  margin-top:12px;

  padding:16px;

  border-radius:16px;

  background:
  rgba(255,255,255,.04);

  border:
  1px solid rgba(255,255,255,.08);

  backdrop-filter:blur(20px);
}

.email-popup.active{
  display:block;
}

.email-popup p{

  margin-bottom:12px;

  color:white;

  word-break:break-word;
}

.email-popup button{

  border:none;

  cursor:pointer;

  padding:10px 18px;

  border-radius:999px;

  background:
  linear-gradient(
    135deg,
    #7583ff,
    #9ba6ff
  );

  color:white;
}