/* Modern Portfolio - style.css
   Theme: Blueish Dark, interactive, premium
   Notes: This file pairs with the provided index.html. Replace image URLs in
   .hero-img, .project-img, .about-img with your own hosted images.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root{
  --bg: #071025; /* deepest blue */
  --card: rgba(255,255,255,0.03);
  --muted: rgba(255,255,255,0.6);
  --accent: #2ad0ff; /* bright cyan */
  --accent-2: #6ea8ff; /* softer blue */
  --glass: rgba(255,255,255,0.04);
  --glass-2: rgba(255,255,255,0.02);
  --radius: 16px;
  --max-width: 1200px;
}

*{box-sizing: border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(42,208,255,0.06), transparent 6%),
              radial-gradient(800px 400px at 90% 90%, rgba(110,168,255,0.04), transparent 8%),
              var(--bg);
  color: #e6eef8;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
}

.container{
  width:calc(100% - 40px);
  max-width:var(--max-width);
  margin:0 auto;
}

/* ======= Navbar ======= */
header{position:fixed;left:0;right:0;top:16px;z-index:60;}
.navbar{
  width: 100%;
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 20px;border-radius:14px;background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 30px rgba(2,8,23,0.6);
  margin:0 auto; width:calc(100% - 40px); max-width:var(--max-width);
}
h4{
  margin: 10px;
}
.logo{font-weight:800;letter-spacing:0.3px;color:var(--accent);display: flex;}
.logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.15));
  transition: transform 0.3s ease;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%; 
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links{display:flex;gap:18px;list-style:none;align-items:center}
.nav-links a{color:var(--muted);text-decoration:none;padding:8px 12px;border-radius:10px;transition:all .25s ease;font-weight:600}
.nav-links a:hover{color:white;background:linear-gradient(90deg, rgba(42,208,255,0.06), rgba(110,168,255,0.04));transform:translateY(-3px)}
.hamburger{display:none;font-size:20px;color:var(--muted);padding:8px}

/* ======= Hero ======= */
.hero{
  min-height:100vh;display:grid;align-items:center;gap:40px;grid-template-columns:1fr 420px;padding:120px 20px 80px;
}
.hero-content h1{font-size:48px;line-height:1.02;margin-bottom:12px}
.hero-content p{color:var(--muted);font-size:18px;margin-bottom:22px}
.cta-buttons{display:flex;gap:12px}
.btn{background:linear-gradient(90deg,var(--accent),var(--accent-2));padding:12px 18px;border-radius:12px;color:#021126;font-weight:700;border:none;cursor:pointer;box-shadow:0 8px 30px rgba(42,208,255,0.12);text-decoration:none}
.btn-outline{padding:12px 18px;border-radius:12px;color:var(--accent);background:transparent;border:1px solid rgba(110,168,255,0.12);font-weight:700;text-decoration:none}


/* Image container */
.hero-img {
  flex: 1;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  border:1px,solid, #021126;
  border-radius: 40px;
}

/* Make the image fully visible */


/* Hover animation (optional but premium) */
.hero-img img:hover {
  transform: scale(1.04);
}
.hero-frame {
  width: 100%;
  height: 100%;
  max-width: 550px;
  max-height: 550px;

  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;               /* <-- frame corner rounding */
  border: 2px solid rgba(100, 200, 255, 0.35); /* subtle border */
  box-shadow: 
      0 0 25px rgba(42, 200, 255, 0.25),
      inset 0 0 18px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;                   /* keeps image rounded */
  transition: transform .4s ease, box-shadow .4s ease;
}
.hero-frame:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
      0 0 45px rgba(42, 200, 255, 0.45),
      0 0 120px rgba(42, 200, 255, 0.15);
}

/* Image inside frame */
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;     
  object-position: center 15%;  /* <-- fills the frame perfectly */
  /* <-- crops from the center */
  border-radius: 18px;
  transition: transform .4s ease;
}


/* Small zoom on hover */
.hero-frame:hover img {
  transform: scale(1.05);
}

/* small visual flourish under hero */
.hero .sparkline{height:2px;width:100%;background:linear-gradient(90deg,var(--accent),transparent);} 

/* ======= Sections common styling ======= */
section{padding:80px 20px}
section h2{text-align:center;font-size:28px;margin-bottom:28px}

/* ======= Services ======= */
.services .service-container{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;align-items:stretch;max-width:var(--max-width);margin:0 auto}
.service-card{background:var(--card);padding:22px;border-radius:14px;box-shadow:0 10px 30px rgba(2,8,23,0.5);transition:transform .35s cubic-bezier(.2,.9,.28,1), box-shadow .35s;position:relative;overflow:hidden}
.service-card h3{margin-bottom:8px}
.service-card p{color:var(--muted);font-size:14px}
.service-card::after{content:'';position:absolute;right:-40px;top:-30px;width:120px;height:120px;background:linear-gradient(135deg,var(--accent),transparent);opacity:0.08;transform:rotate(20deg)}
.service-card:hover{transform:translateY(-12px);box-shadow:0 24px 60px rgba(2,10,30,0.7)}

/* animated icons effect */
.service-card .icon{width:56px;height:56px;border-radius:12px;background:linear-gradient(90deg,var(--accent),var(--accent-2));display:flex;align-items:center;justify-content:center;font-weight:800;margin-bottom:14px;}

/* ======= Projects ======= */
.projects .project-container{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;max-width:var(--max-width);margin:0 auto}
.project-card{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));border-radius:14px;padding:14px;transition:transform .5s ease, box-shadow .5s;position:relative;overflow:hidden}
.project-card:hover{transform:translateY(-18px) rotate(-0.6deg);box-shadow:0 30px 80px rgba(2,8,23,0.7)}
.project-img{height:180px;border-radius:10px;background-size:cover;background-position:center;box-shadow:inset 0 0 140px rgba(0,0,0,0.25);margin-bottom:14px}
.project-card h3{font-size:18px}
.project-card p{color:var(--muted);font-size:13px}

/* subtle glass highlight */
.project-card::before{content:'';position:absolute;left:0;top:0;width:100%;height:100%;background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0));pointer-events:none}

/* floating tech badges */
.tech-badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.tech-badges span{background:var(--glass);padding:6px 10px;border-radius:999px;font-size:12px;color:var(--muted)}

/* ======= About ======= */
.about .about-content{display:grid;grid-template-columns:1fr 360px;gap:26px;align-items:center;max-width:var(--max-width);margin:0 auto}
.about-img{height:260px;border-radius:14px;background-size:cover;background-position:center;background:linear-gradient(135deg, rgba(110,168,255,0.06), rgba(42,208,255,0.03));box-shadow:0 20px 50px rgba(2,8,23,0.6);}

/* ======= Contact ======= */
.contact-form{max-width:820px;margin:0 auto;display:grid;gap:12px}
.contact-form input,.contact-form textarea{background:var(--glass-2);border:1px solid rgba(255,255,255,0.03);padding:14px;border-radius:12px;color:inherit;font-size:15px}
.contact-form textarea{min-height:140px;resize:vertical}
.contact-form button{justify-self:start}

/* ======= Footer ======= */
footer{
  padding:28px 20px;
  text-align:center;
  color:var(--muted);
  border-top:1px solid rgba(255,255,255,0.02)
  }

/* ======= Small screens ======= */
@media (max-width:980px){
  .hero{grid-template-columns:1fr 320px;padding:110px 18px}
  .services .service-container{grid-template-columns:repeat(2,1fr)}
  .projects .project-container{grid-template-columns:repeat(2,1fr)}
  .about .about-content{grid-template-columns:1fr 300px}
}

@media (max-width:720px){
  .navbar{padding:8px 14px}
  .nav-links{display:none}
  .hamburger{display:block}
  .hero{grid-template-columns:1fr;padding:120px 18px 60px}
  .hero-content h1{font-size:36px}
  .hero-img{height:260px}
  .services .service-container{grid-template-columns:1fr}
  .projects .project-container{grid-template-columns:1fr}
  .about .about-content{grid-template-columns:1fr}
}

/* ======= Micro interactions and reveal on scroll (simple CSS-driven) ======= */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .7s ease, transform .7s ease}
.reveal.show{opacity:1;transform:none}

/* cool gradient underline animation for headings */
section h2{position:relative;display:inline-block;padding-bottom:8px}
section h2::after{content:'';position:absolute;left:0;bottom:0;height:4px;width:40%;background:linear-gradient(90deg,var(--accent),var(--accent-2));border-radius:6px;transform:scaleX(0);transform-origin:left;transition:transform .5s ease}
section h2:hover::after{transform:scaleX(1)}

/* keyboard-focus friendly */
:focus{outline:2px solid rgba(42,208,255,0.14);outline-offset:2px}

/* ======= Utility helpers ======= */
.text-muted{color:var(--muted)}
.flex{display:flex;align-items:center}
.center{text-align:center}

/* ======= Interactive cursor-follow glow (optional, small JS hook) ======= */
.cursor-glow{position:fixed;pointer-events:none;z-index:70;width:200px;height:200px;border-radius:50%;mix-blend-mode:screen;filter:blur(28px);transform:translate(-50%,-50%);transition:opacity .2s linear;opacity:0}

/* ======= Accessibility tweaks ======= */
@media (prefers-reduced-motion: reduce){
  *{animation:none !important;transition:none !important}
}
/* Fancy button: color-shift + lift + animated icon */

.intro-frame {
  width: 100%;
  height: 100%;
  max-width: 550px;
  max-height: 550px;

  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;               /* <-- frame corner rounding */
  border: 2px solid rgba(100, 200, 255, 0.35); /* subtle border */
  box-shadow: 
      0 0 25px rgba(42, 200, 255, 0.25),
      inset 0 0 18px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;                   /* keeps image rounded */
  transition: transform .4s ease, box-shadow .4s ease;
}
.intro-frame:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
      0 0 45px rgba(42, 200, 255, 0.45),
      0 0 120px rgba(42, 200, 255, 0.15);
}

/* Image inside frame */
.intro-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;     
   /* <-- fills the frame perfectly */
  /* <-- crops from the center */
  border-radius: 18px;
  transition: transform .4s ease;
}


/* Small zoom on hover */
.into-frame:hover img {
  transform: scale(1.05);
}
/* Primary vivid style for .fancy-btn when you want accent-filled look */
.fancy-btn--primary {
  color: #021126;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 48px rgba(42,208,255,0.12), 0 6px 18px rgba(2,8,23,0.45);
  border: none;
}

/* Icon container */
.fancy-btn .btn-icon {
  display:inline-flex;
  width:28px;
  height:28px;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background: rgba(255,255,255,0.06);
  transition: transform 360ms cubic-bezier(.2,.9,.3,1), background 260ms ease, box-shadow 260ms ease;
  box-shadow: inset 0 -8px 20px rgba(2,8,23,0.14);
  transform: translateX(0) translateY(0);
  will-change: transform;
}


#skill{
  color: #2ad0ff;
  font-weight: 500;
}
#work{
  color: rgb(91, 247, 200);
  font-weight: 500;
}

a{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  color: #021126;
  text-decoration: none;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 280ms cubic-bezier(.2,.9,.3,1), box-shadow 280ms ease, filter 220ms linear;
  will-change: transform, box-shadow;
  /* base background - subtle gradient so hover is a nicer shift */
  background: linear-gradient(90deg, rgba(22, 123, 151, 0.14), rgba(46, 123, 240, 0.09));
  border: 1px solid rgba(110,168,255,0.12);
  box-shadow: 0 10px 26px rgba(2,8,23,0.35);
  outline: none;
}
a:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 36px 100px rgba(42,208,255,0.18), 0 12px 42px rgba(2,8,23,0.6);
}

/* Icon animation on hover — slide slightly right + rotate a little and glow */
a:hover .btn-icon {
  transform: translateX(6px) translateY(-2px) rotate(6deg) scale(1.02);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(110,168,255,0.06));
  box-shadow: 0 8px 28px rgba(42,208,255,0.12), 0 2px 8px rgba(2,8,23,0.5);
}

/* extra micro bounce when clicking (active) */
a:active {
  transform: translateY(-4px) scale(.995);
  transition-duration: 140ms;
}
a:active .btn-icon {
  transform: translateX(2px) translateY(0) rotate(0deg) scale(.95);
}

/* Icon motion keyframe for subtle continuous life (optional) */
@keyframes icon-wiggle {
  0% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(1px) rotate(1deg); }
  100% { transform: translateX(0) rotate(0deg); }
}
a .btn-icon svg { transition: transform 280ms ease; }

/* Focus styles for accessibility */
a:focus {
  outline: 3px solid rgba(42,208,255,0.12);
  outline-offset: 4px;
}

/* Small screens: reduce lift to avoid layout issues */
@media (max-width:720px) {
  a { transform-origin: center; }
  a:hover { transform: translateY(-6px) scale(1.01); }
}
.abt{
  padding-left: 60px;
}
/* ======= End ======= */
/* About page small layout helpers (add to your main stylesheet) */

/* grid: left text, right image (frame grows to image natural size) */
.about-grid {
  display: grid;
  grid-template-columns: 1fr auto; /* right column auto-sized to image natural width */
  gap: 36px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 0;
}

/* Left column */
.about-left { max-width: 680px; }
.about-title { font-size: 26px; margin-bottom: 10px; }
.about-lead { color: var(--muted); margin-bottom: 14px; }

/* Tag styles (re-usable from your theme) */
.skill-tags, .tool-tags {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}
.tag {
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: rgba(255,255,255,0.03);
  padding:8px 10px;
  border-radius:999px;
  font-size:13px;
  color:var(--muted);
  border:1px solid rgba(255,255,255,0.02);
  box-shadow: 0 6px 18px rgba(2,8,23,0.35);
}
.tag img { width:18px; height:18px; object-fit:contain; }

/* Right column: frame adapts to image natural size */
.about-right { display:flex; align-items:center; justify-content:center; }
.about-frame {
  width: 100%;
  height: 100%;
  max-width: 550px;
  max-height: 700px;
  display:inline-block;             /* frame size determined by inner image */
  padding:12px;
  border-radius:18px;
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(110,168,255,0.08);
  box-shadow: 0 20px 60px rgba(2,8,23,0.5), inset 0 6px 18px rgba(255,255,255,0.02);
  overflow:hidden;
  transition: transform .36s ease, box-shadow .36s ease;
}
.about-frame:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 30px 90px rgba(42,200,255,0.12); }

/* image allowed to be its natural size — frame will adapt.
   but for mobile/small screens limit to viewport width to avoid overflow */
.about-frame img {
 
    width: 100%;
    height: 100%;
    object-fit: cover;     
    object-position: center 15%;  /* <-- fills the frame perfectly */
    /* <-- crops from the center */
    border-radius: 18px;
    transition: transform .4s ease;
}

/* Footer small */
.about-footer { text-align:center; margin:42px 0 80px; color:var(--muted); }
.about-footer .social-icons { margin-top:10px; display:flex;justify-content:center;gap:12px; }
.about-footer .social-icons img { width:28px; height:28px; object-fit:contain; filter: invert(1) hue-rotate(190deg) saturate(0.6); }

.about-header {
  text-align: center;
  padding: 100px 0 40px;
}

.about-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 5%;
  gap: 50px;
}

.about-left {
  flex: 1;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.7;
}

.about-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-frame {
  padding: 12px;
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: 0 0 25px rgba(0, 140, 255, 0.4);
}

.about-frame img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 40px;
}

.skill-tags, .tool-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 30px auto;
  max-width: 900px;
}

.tag {
  background: rgba(255,255,255,0.08);
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.95rem;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform .3s ease;
}

.tag img {
  width: 22px;
  height: 22px;
}

.tag:hover {
  transform: translateY(-5px);
}

.about-footer {
  text-align: center;
  margin-top: 70px;
  padding: 40px 0;
}

.social-icon img {
  width: 30px;
  filter: invert(1);
}
.bout.img{
  height:260px;}
