html {
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}

body {
  color: #fff;
  overflow-x: hidden;
}

/* ===== Animated Background ===== */
.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, #1e90ff55, transparent 40%),
    radial-gradient(circle at 80% 30%, #00bfff55, transparent 40%),
    radial-gradient(circle at 50% 80%, #1e90ff55, transparent 40%),
    linear-gradient(120deg, #020617, #020b2f);
  animation: moveBg 1s infinite alternate;
  z-index: -1;
}

@keyframes moveBg {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}

/* Fullscreen overlay */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0D1B5A; /* dark blue background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Simple spinning loader */
.loader {
  border: 6px solid rgba(255,255,255,0.2);
  border-top: 6px solid #00d4ff; /* accent color */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 5s linear infinite;
}

/* Spin animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* NAV */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.04);
  z-index: 10;
}

/* Hamburger */
.menu-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  z-index: 1001;
  cursor: pointer;
}

/* Sidebar (HIDDEN BY DEFAULT) */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100vh;
  background: rgba(13, 27, 90, 0.85);
  backdrop-filter: blur(10px);
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;

  transform: translateX(100%); /* THIS hides it */
  transition: transform 0.3s ease;
  z-index: 1000;
}

.sidebar a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

/* Active states */
.sidebar.active {
  transform: translateX(0);
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Hide on desktop */
@media (min-width: 768px) {
  .menu-btn,
  .sidebar,
  .overlay {
    display: none;
  }
}


.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  height: 34px;
  width: auto;
}



.brand-name {
  font-size: 0.9rem;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.85;
}

.nav-menu {
  display: none;
  font-size: 1.6rem;
}

/* HERO */
.hero {
  min-height: 100vh;
  padding: 7rem 2rem 3rem;
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  max-width: 520px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  letter-spacing: 2px;
  opacity: 0.7;
}

.hero-title {
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.cursor {
  display: inline-block;
  margin-left: 4px;
  animation: blink 1s infinite;
  color: #4fc3f7; /* keep your blue */
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 460px;
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 1.2rem;
}

.btn {
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.btn.primary {
  background: #6ea8ff;
  color: #020617;
}

.btn.ghost {
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
}

/* IMAGE */
.hero-image img {
  width: 230px;
}

/* MOBILE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }

  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .hero-actions {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }

  .hero-image {
    order: -1;
  }
}


.about {
  padding: 5rem 2rem;
}

.about-container {
  max-width: 900px;
  margin: auto;
}

.about h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.about-intro {
  max-width: 650px;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.point {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.point i {
  font-size: 1.4rem;
  color: #6ea8ff;
  margin-top: 0.2rem;
}

/* Mobile */
@media (max-width: 768px) {
  .about-points {
    grid-template-columns: 1fr;
  }
}

.skills {
  padding: 5rem 2rem;
}

.skills-container {
  max-width: 1100px;
  margin: auto;
}

.skills h2 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skill-card {
  padding: 2rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
}

.skill-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1.4rem;
  font-weight: 500;
}

.skill-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.skill-icons div {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.9;
}

.skill-icons i {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
  color: #6ea8ff;
}

/* Mobile */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-icons {
    grid-template-columns: repeat(2, 1fr);
  }
}

.projects {
  padding: 5rem 2rem;
}

.projects-container {
  max-width: 1200px;
  margin: auto;
}

.projects h2 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.project-card {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
}

.project-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.project-content {
  padding: 1.6rem;
}

.project-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.project-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 1.2rem;
}

.project-content a {
  font-size: 0.9rem;
  color: #6ea8ff;
  text-decoration: none;
}

.project-content a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card img {
      width: 100%;
  }
}

.contact {
  padding: 5rem 2rem;
}

.contact-container {
  max-width: 700px;
  margin: auto;
}

.contact h2 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.contact-intro {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.contact-form {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  padding: 2.5rem;
  border-radius: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.4rem;
}

.form-group label {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  opacity: 0.8;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.08);
  border: none;
  outline: none;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

.btn-primary {
  margin-top: 1rem;
  background: #6ea8ff;
  color: #0b1c2d;
  border: none;
  padding: 0.9rem 1.5rem;
  font-size: 0.9rem;
  border-radius: 30px;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
}

.form-group select {
  color: #fff;
}

.form-group select option {
  color: #e6dcdc;
  background: #010a1d;
}


/* Mobile */
@media (max-width: 768px) {
  .contact-form {
    padding: 2rem 1.6rem;
  }
}

.brand-statement {
  padding: 4.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.04);
}

.brand-wrap {
  max-width: 700px;
  margin: auto;
}

.brand-logo {
  height: 180px;
  width: auto;
  margin-bottom: 1.2rem;
}

.brand-wrap h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.brand-wrap p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
}

.social-icons a:hover {
    color: #00d4ff;
    transform: scale(1.2);
  }

  .glass-panel {
    display:flex;
     justify-content:center;
      gap:40px; 
      padding:40px;
       border-radius:20px; 
       background: rgba(255,255,255,0.05); 
       backdrop-filter: blur(12px); 
       box-shadow: 0 8px 30px rgba(0,0,0,0.3);
        transition:0.3s;
  }

  .socials {
     padding: 100px 0; 
     text-align:center;
      color:white; 
      position:relative;
  }

  .glass-panel a {
    color :#6ea8ff;
    width: 50px;
  }

  .site-footer {
   background: rgba(11, 22, 88, 0.514); 
       backdrop-filter: blur(12px); 
       box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #cfd8dc;
  padding: 4rem 1.5rem 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.footer-logo {
  width: 48px;
}

.footer-links h4,
.footer-social h4 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #62c4ee;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #4fc3f7;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  font-size: 1.4rem;
  color: #cfd8dc;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  color: #4fc3f7;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Style for the Portfolio Images to show they are clickable */
.project-card img, .portfolio-image {
    cursor: pointer;
    transition: 0.3s;
}

.project-card img:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* The Modal (background) */
.custom-modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
    margin: auto;
    display: block;
    width: 50%;
    height: 90%;
    max-width: 900px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #bbb;
}

/* Responsive for Mobile */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}