/* ============================================================
   ADGURU PORTFOLIO — style.css
   ============================================================ */

/* ─── 1. ROOT VARIABLES ─────────────────────────────────── */
:root {
  --accent:          #F2572D;
  --accent-hover:    #d94920;
  --dark:            #0D2137;
  --body-bg:         #F0EEEA;
  --light-bg:        #EBEBEB;
  --white:           #ffffff;
  --text-secondary:  #6B7A8E;
  --border:          rgba(13,33,55,.1);
  --radius-md:       14px;
  --radius-lg:       20px;
  --font:            'Figtree', sans-serif;
  --container:       1240px;
  --shadow-sm:       0 2px 12px rgba(0,0,0,.07);
  --shadow-md:       0 8px 32px rgba(0,0,0,.13);
}

/* ─── 2. RESET / BASE ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:   var(--body-bg);
  font-family:  var(--font);
  color:        var(--dark);
  overflow-x:   hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ─── 3. CONTAINER ───────────────────────────────────────── */
.ag-container {
  max-width: var(--container);
  margin:    0 auto;
  padding:   0 24px;
}

/* ─── 4. BUTTONS ─────────────────────────────────────────── */
.ag-btn-primary {
  display:          inline-block;
  background-color: #f04b21;
  color:            #fff;
  font-family:      var(--font);
  font-size:        16px;
  font-weight:      600;
  line-height:      28px;
  text-transform:   capitalize;
  border:           1px solid #f04b21;
  border-radius:    4px;
  padding:          11px 31px;
  cursor:           pointer;
  transition:       background 0.22s, transform 0.18s, box-shadow 0.22s;
}
.ag-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242,87,45,.35);
}

.ag-btn-outline {
  display:       inline-block;
  border:        1.5px solid var(--dark);
  border-radius: 8px;
  padding:       10px 22px;
  font-weight:   600;
  font-size:     .87rem;
  font-family:   var(--font);
  cursor:        pointer;
  transition:    background 0.2s, color 0.2s, transform 0.18s;
  white-space:   nowrap;
}
.ag-btn-outline:hover {
  background: var(--dark);
  color:      #fff;
  transform:  translateY(-2px);
}

.ag-btn-sm-outline {
  display:       inline-block;
  border:        1.5px solid var(--border);
  border-radius: 8px;
  padding:       9px 16px;
  font-size:     .82rem;
  font-weight:   600;
  font-family:   var(--font);
  color:         var(--dark);
  cursor:        pointer;
  transition:    border-color 0.2s, background 0.2s, color 0.2s, transform 0.18s;
  white-space:   nowrap;
}
.ag-btn-sm-outline:hover {
  border-color: var(--accent);
  color:        var(--accent);
  transform:    translateY(-1px);
}

.ag-btn-outline-dark {
  display:       inline-block;
  border:        1.5px solid var(--dark);
  border-radius: 8px;
  padding:       12px 32px;
  font-size:     .95rem;
  font-weight:   600;
  font-family:   var(--font);
  color:         var(--dark);
  cursor:        pointer;
  transition:    background 0.2s, color 0.2s, transform 0.18s;
  background:    transparent;
}
.ag-btn-outline-dark:hover {
  background: var(--dark);
  color:      #fff;
  transform:  translateY(-2px);
}

/* ─── 5. EYEBROW / SECTION HEADS ─────────────────────────── */
.ag-eyebrow {
  display:        inline-block;
  font-size:      .78rem;
  font-weight:    700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color:          var(--accent);
  margin-bottom:  10px;
}
.ag-eyebrow--light { color: rgba(242,87,45,.85); }

.ag-eyebrow-sm {
  display:        inline-block;
  font-size:      .72rem;
  font-weight:    700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color:          var(--accent);
  margin-bottom:  8px;
}

.ag-section-head {
  text-align:    center;
  margin-bottom: 56px;
}
.ag-section-head h2 {
  font-size:     clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight:   800;
  line-height:   1.2;
  margin-bottom: 12px;
  color:         var(--dark);
}
.ag-section-head p {
  font-size:  1rem;
  color:      var(--text-secondary);
  max-width:  560px;
  margin:     0 auto;
  line-height: 1.7;
}
.ag-section-head--light h2 { color: #fff; }

/* ─── 6. HEADER ──────────────────────────────────────────── */
.ag-header {
  position:      fixed;
  top:           0; left: 0; right: 0;
  background:    var(--body-bg);
  z-index:       1000;
  height:        76px;
  border-bottom: 1px solid var(--border);
  transition:    box-shadow 0.3s;
}
.ag-header.scrolled {
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
}

.ag-header__inner {
  display:         flex;
  align-items:     center;
  height:          100%;
  gap:             16px;
}

.ag-logo {
  font-size:   1.5rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}
.logo-ad   { color: #0D2137; }
.logo-guru { color: #F2572D; }

.ag-nav {
  display:     flex;
  gap:         4px;
  margin-left: auto;
  align-items: center;
}
.ag-nav a {
  font-size:     .9rem;
  font-weight:   500;
  padding:       8px 12px;
  border-radius: 6px;
  transition:    background 0.18s, color 0.18s;
  color:         var(--dark);
}
.ag-nav a:hover {
  background: rgba(13,33,55,.07);
  color:      var(--accent);
}

/* ─── 7. HERO ────────────────────────────────────────────── */
.ag-hero {
  padding-top:    92px;
  padding-bottom: 0;
  display:        flex;
  align-items:    center;
  background:     var(--body-bg);
  overflow:       hidden;
}

.ag-hero__grid {
  display:               grid;
  grid-template-columns: 1fr 1fr 180px;
  gap:                   24px;
  align-items:           center;
  width:                 100%;
}

/* Left */
.ag-hero__kicker {
  font-size:      32px;
  font-weight:    700;
  line-height:    44px;
  letter-spacing: -0.025em;
  color:          #032737;
  margin-bottom:  4px;
}
.ag-hero__title {
  font-family:    'Figtree', sans-serif;
  font-size:      96px;
  font-weight:    700;
  line-height:    100px;
  letter-spacing: -0.025em;
  color:          #032737;
  margin-bottom:  16px;
}
.ag-hero__desc {
  margin-bottom: 24px;
  padding:       0 4% 0 0;
  font-size:     18px;
  font-weight:   400;
  line-height:   28px;
  color:         #2c3d44;
}

.ag-hero__rated {
  display:     flex;
  align-items: center;
  gap:         16px;
  margin-top:  80px;
}
.ag-rated__icons {
  display: flex;
  gap:     8px;
}
.ag-icon-bubble {
  width:           42px;
  height:          42px;
  border-radius:   50%;
  display:         flex;
  justify-content: center;
  align-items:     center;
  background:      #fff;
  box-shadow:      var(--shadow-sm);
  flex-shrink:     0;
  transition:      transform 0.2s, box-shadow 0.2s;
}
.ag-icon-bubble:hover {
  transform:  translateY(-3px);
  box-shadow: var(--shadow-md);
}
.ag-rated__text {
  display:        flex;
  flex-direction: column;
  line-height:    1.3;
}
.ag-rated__text strong { font-size: .95rem; color: #032737; }
.ag-rated__text span   { font-size: .8rem;  color: var(--text-secondary); }

/* Center */
.ag-hero__center {
  position:        relative;
  display:         flex;
  align-items:     flex-end;
  justify-content: center;
  min-height:      520px;
}
.ag-hero__bg-splash {
  position:  absolute;
  top:       50%;
  left:      50%;
  transform: translate(-50%, -55%);
  width:     90%;
  z-index:   0;
  pointer-events: none;
}
.ag-hero__portrait {
  position:   relative;
  z-index:    2;
  max-height: 560px;
  object-fit: contain;
  animation:  heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* Floating social bubbles */
.ag-float-bubble {
  position:        absolute;
  width:           58px;
  height:          58px;
  border-radius:   50%;
  background:      #fff;
  box-shadow:      var(--shadow-md);
  display:         flex;
  justify-content: center;
  align-items:     center;
  z-index:         5;
  animation:       floatBubble 3.5s ease-in-out infinite;
}
.ag-float-bubble--1 { top: 18%; left: 8%;  animation-delay: 0s;    }
.ag-float-bubble--2 { top: 35%; right: 6%; animation-delay: 1.1s;  }
.ag-float-bubble--3 { top: 65%; left: 5%;  animation-delay: 2.2s;  }

@keyframes floatBubble {
  0%, 100% { transform: translateY(0)     rotate(0deg); }
  33%       { transform: translateY(-10px) rotate(4deg); }
  66%       { transform: translateY(5px)   rotate(-3deg); }
}

/* Right stats */
.ag-hero__stats {
  display:        flex;
  flex-direction: column;
  gap:            20px;
}

.ag-stat {
  position:      relative;
  border-radius: var(--radius-md);
  padding:       20px 24px;
  filter:        drop-shadow(0 2px 12px rgba(0,0,0,.07));
  z-index:       1;
  min-width:     150px;
}
.ag-stat::before {
  content:      "";
  position:     absolute;
  inset:        0;
  background:   #fff;
  border-radius: var(--radius-md);
  clip-path:    polygon(0 61%, 100% 0, 100% 100%, 0% 100%);
  z-index:      -1;
}
/* Second stat has flipped clip */
.ag-stat--second::before {
  clip-path: polygon(0 0, 100% 39%, 100% 100%, 0% 100%);
}

.ag-stat__num {
  color:          #032737;
  font-size:      48px;
  font-weight:    700;
  line-height:    56px;
  letter-spacing: -0.025em;
  margin-bottom:  4px;
}
.ag-stat__sub {
  font-size:   .8rem;
  font-weight: 500;
  line-height: 1.4;
  color:       var(--text-secondary);
}

/* ─── 8. ABOUT ───────────────────────────────────────────── */
.ag-about {
  padding:    80px 0;
  background: var(--dark);
  color:      #fff;
  position:   relative;
  overflow:   hidden;
}

.ag-about::before {
  content:       "";
  position:      absolute;
  inset:         0;
  opacity:       0.4;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 1440 320' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'><path fill='rgba(255,255,255,0.04)' d='M0,160L60,154.7C120,149,240,139,360,154.7C480,171,600,213,720,213.3C840,213,960,171,1080,149.3C1200,128,1320,128,1380,128L1440,128L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z'/></svg>");
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index:       0;
}

.ag-about__head {
  position:      relative;
  z-index:       1;
  padding-bottom: 48px;
}
.ag-about__title {
  font-size:   clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  max-width:   700px;
  line-height: 1.25;
}
.ag-about__float-fb {
  position:        absolute;
  top:             0;
  right:           0;
  width:           52px;
  height:          52px;
  border-radius:   50%;
  background:      rgba(255,255,255,.1);
  display:         flex;
  justify-content: center;
  align-items:     center;
  animation:       floatBubble 4s ease-in-out infinite;
  backdrop-filter: blur(4px);
}

.ag-about__grid {
  display:               grid;
  grid-template-columns: 280px 1fr;
  gap:                   0 80px;
  position:              relative;
  z-index:               1;
}

.ag-about__stats { position: relative; }
.ag-about__stat  { margin-bottom: 4px; }
.ag-about__stat-num {
  font-size:     2.8rem;
  font-weight:   900;
  margin-bottom: 6px;
  line-height:   1;
  color:         #fff;
}
.ag-about__stat-label {
  font-size:      .82rem;
  font-weight:    500;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.6);
  letter-spacing: .06em;
}
.ag-about__sep {
  height:     1px;
  background: rgba(255,255,255,0.12);
  margin:     24px 0;
  border:     none;
}
.ag-about__float-email {
  width:           44px;
  height:          44px;
  border-radius:   50%;
  background:      rgba(255,255,255,.1);
  display:         flex;
  justify-content: center;
  align-items:     center;
  margin-top:      32px;
  animation:       floatBubble 3.8s ease-in-out 0.5s infinite;
  backdrop-filter: blur(4px);
}

.ag-about__content p {
  font-size:     .95rem;
  color:         rgba(255,255,255,.72);
  line-height:   1.8;
  margin-bottom: 20px;
}
.ag-about__content .ag-btn-primary { margin-top: 8px; }

/* ─── 9. GIGS ────────────────────────────────────────────── */
.ag-gigs {
  background: var(--body-bg);
  padding:    100px 0;
}

.ag-gigs__grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   24px;
}

.ag-gig-card {
  background:    #fff;
  border-radius: var(--radius-lg);
  overflow:      hidden;
  box-shadow:    var(--shadow-sm);
  transition:    transform 0.3s, box-shadow 0.3s;
}
.ag-gig-card:hover {
  transform:  translateY(-6px);
  box-shadow: var(--shadow-md);
}

.ag-gig-card__img {
  height:      240px;
  position:    relative;
  overflow:    hidden;
  display:     flex;
  align-items: flex-end;
}
.ag-gig-card__badge {
  position:      absolute;
  top:           16px;
  left:          16px;
  padding:       8px 14px;
  background:    var(--accent);
  color:         #fff;
  border-radius: 50px;
  font-size:     .72rem;
  font-weight:   700;
  letter-spacing: .04em;
  z-index:       2;
}
.ag-gig-card__icons-tr {
  position: absolute;
  top:      16px;
  right:    16px;
  display:  flex;
  gap:      6px;
  z-index:  2;
}
.ag-gig-card__label {
  position:    absolute;
  bottom:      16px;
  left:        16px;
  font-size:   .78rem;
  font-weight: 700;
  color:       rgba(255,255,255,.85);
  z-index:     2;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ag-gig-card__person {
  position:        absolute;
  bottom:          0;
  right:           0;
  height:          100%;
  object-fit:      contain;
  object-position: bottom right;
  opacity:         0.9;
  z-index:         1;
  max-width:       60%;
  transition:      transform 0.4s;
}
.ag-gig-card:hover .ag-gig-card__person { transform: scale(1.04); }

.ag-gig-card__body { padding: 20px; }
.ag-gig-card__body h3 {
  font-size:     .9rem;
  font-weight:   700;
  color:         #0D2137;
  line-height:   1.4;
  margin-bottom: 8px;
}
.ag-gig-card__body p {
  font-size:     .84rem;
  color:         var(--text-secondary);
  line-height:   1.6;
  margin-bottom: 16px;
}
.ag-gig-card__footer {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  gap:             8px;
}
.ag-gig-card__delivery {
  display:     flex;
  align-items: center;
  gap:         5px;
  font-size:   .8rem;
  color:       var(--text-secondary);
  font-weight: 500;
}

/* ─── 10. PORTFOLIO ──────────────────────────────────────── */
.ag-portfolio {
  background: var(--light-bg);
  padding:    100px 0;
}

.ag-portfolio__grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   24px;
}

.ag-portfolio-card {
  background:    #fff;
  border-radius: var(--radius-lg);
  overflow:      hidden;
  box-shadow:    var(--shadow-sm);
  transition:    transform 0.3s, box-shadow 0.3s;
}
.ag-portfolio-card:hover {
  transform:  translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ag-portfolio-card__img {
  height:   280px;
  overflow: hidden;
}
.ag-portfolio-card__img img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ag-portfolio-card:hover .ag-portfolio-card__img img {
  transform: scale(1.04);
}
.ag-portfolio-card__body {
  padding: 24px;
}
.ag-portfolio-card__body h3 {
  font-size:     1.05rem;
  font-weight:   700;
  color:         var(--dark);
  margin-bottom: 8px;
  line-height:   1.35;
}
.ag-portfolio-card__body p {
  font-size:  .88rem;
  color:      var(--text-secondary);
  line-height: 1.6;
}

/* ─── 11. SKILLS ─────────────────────────────────────────── */
.ag-skills {
  background: var(--light-bg);
  padding:    100px 0;
  border-top: 1px solid var(--border);
}

.ag-skills__grid {
  display:               grid;
  grid-template-columns: repeat(5, 1fr);
  gap:                   20px;
}

.ag-skill-card {
  background:      #fff;
  border-radius:   var(--radius-lg);
  padding:         32px 20px;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  text-align:      center;
  gap:             16px;
  box-shadow:      var(--shadow-sm);
  transition:      transform 0.28s, box-shadow 0.28s;
}
.ag-skill-card:hover {
  transform:  translateY(-6px);
  box-shadow: var(--shadow-md);
}
.ag-skill-card__icon {
  width:           72px;
  height:          72px;
  background:      var(--body-bg);
  border-radius:   50%;
  display:         flex;
  justify-content: center;
  align-items:     center;
  flex-shrink:     0;
}
.ag-skill-card__pct {
  font-size:   1.5rem;
  font-weight: 900;
  color:       #0D2137;
  line-height: 1;
}
.ag-skill-card__name {
  font-size:   .88rem;
  font-weight: 600;
  color:       var(--text-secondary);
}

/* ─── 12. TESTIMONIALS ───────────────────────────────────── */
.ag-testi {
  background: #0D2137;
  color:      #fff;
  padding:    100px 0;
  overflow:   hidden;
}

.ag-testi__faces {
  display:         flex;
  justify-content: center;
  align-items:     center;
  gap:             12px;
  margin-bottom:   32px;
}
.ag-testi__face {
  width:         48px;
  height:        48px;
  border-radius: 50%;
  opacity:       0.45;
  object-fit:    cover;
  border:        2px solid transparent;
  cursor:        pointer;
  transition:    all 0.35s ease;
  flex-shrink:   0;
}
.ag-testi__face--active {
  width:        64px;
  height:       64px;
  border-color: var(--accent);
  opacity:      1;
}
.ag-testi__face:hover:not(.ag-testi__face--active) {
  opacity:   0.75;
  transform: scale(1.08);
}

.ag-testi__swiper { overflow: hidden; }

.ag-testi-slide {
  background:    #fff;
  border-radius: var(--radius-lg);
  padding:       40px 48px;
  max-width:     860px;
  margin:        0 auto 32px;
  text-align:    center;
}
.ag-testi-slide__stars {
  color:         var(--accent);
  font-size:     1.3rem;
  margin-bottom: 16px;
  letter-spacing: 3px;
}
.ag-testi-slide p {
  font-size:     28px;
  font-style:    normal;
  line-height:   1.8;
  color:         #0D2137;
  margin-bottom: 24px;
}
.ag-testi-slide footer {
  display:        flex;
  flex-direction: column;
  gap:            4px;
}
.ag-testi-slide footer strong {
  font-size:   24px;
  font-weight: 400;
  color:       #032737;
}
.ag-testi-slide footer span {
  font-size: .82rem;
  color:     var(--text-secondary);
}

.swiper-pagination-bullet { background: rgba(255,255,255,.4); }
.swiper-pagination-bullet-active { background: var(--accent); }

/* ─── 13. BLOG ───────────────────────────────────────────── */
.ag-blog {
  background: var(--body-bg);
  padding:    100px 0;
}

.ag-blog__grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   24px;
}

.ag-blog-card {
  background:    #fff;
  border-radius: var(--radius-lg);
  overflow:      hidden;
  box-shadow:    var(--shadow-sm);
  transition:    transform 0.3s, box-shadow 0.3s;
}
.ag-blog-card:hover {
  transform:  translateY(-5px);
  box-shadow: var(--shadow-md);
}
.ag-blog-card__img {
  height:   220px;
  overflow: hidden;
}
.ag-blog-card__img img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ag-blog-card:hover .ag-blog-card__img img { transform: scale(1.04); }

.ag-blog-card__body { padding: 24px; }
.ag-blog-card__body h3 {
  font-size:         .97rem;
  font-weight:       700;
  color:             var(--dark);
  line-height:       1.4;
  margin-bottom:     10px;
  display:           -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:          hidden;
}
.ag-blog-card__excerpt {
  font-size:          .84rem;
  color:              var(--text-secondary);
  line-height:        1.6;
  display:            -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:           hidden;
}

.ag-blog-card__meta {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  font-size:       .78rem;
  color:           var(--text-secondary);
}
.ag-blog-tag {
  background:    rgba(242,87,45,.1);
  color:         var(--accent);
  padding:       4px 10px;
  border-radius: 50px;
  font-weight:   600;
  font-size:     .72rem;
}

.ag-blog__more {
  display:         flex;
  justify-content: center;
  margin-top:      48px;
}

/* ─── 14. CTA ────────────────────────────────────────────── */
.ag-cta {
  padding: 80px 0;
  background: var(--body-bg);
}

.ag-cta__block {
  background:    #0D2137;
  border-radius: 24px;
  padding:       60px 64px;
  overflow:      hidden;
}

.ag-cta__grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   48px;
  align-items:           center;
}

.ag-cta__left h2 {
  font-size:     clamp(2rem, 4vw, 2.5rem);
  font-weight:   800;
  line-height:   1.25;
  margin-bottom: 24px;
  color:         #fff;
}
.ag-cta__left p {
  color:         rgba(255,255,255,0.72);
  line-height:   1.7;
  margin-bottom: 32px;
  font-size:     .95rem;
}

/* Orbit */
.ag-cta__right {
  display:         flex;
  justify-content: center;
  align-items:     center;
  min-height:      280px;
}

.ag-orbit {
  position: relative;
  width:    280px;
  height:   280px;
}
.ag-orbit__ring {
  position:      absolute;
  top:           50%;
  left:          50%;
  transform:     translate(-50%, -50%);
  width:         250px;
  height:        250px;
  border:        1px dashed rgba(255,255,255,.2);
  border-radius: 50%;
  animation:     orbitSpin 16s linear infinite;
}
@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.ag-orbit__center {
  position:  absolute;
  top:       50%;
  left:      50%;
  transform: translate(-50%, -50%);
  z-index:   2;
}

.ag-orbit__bubble {
  --r: 125px; /* ring radius */
  position:        absolute;
  top:             50%;
  left:            50%;
  width:           44px;
  height:          44px;
  border-radius:   50%;
  background:      rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  display:         flex;
  justify-content: center;
  align-items:     center;
  /* Place on ring circumference */
  transform: translate(-50%, -50%)
             rotate(var(--deg))
             translateY(calc(-1 * var(--r)))
             rotate(calc(-1 * var(--deg)));
  /* Counter-spin to stay upright */
  animation: counterSpin 16s linear infinite;
  z-index: 3;
}
@keyframes counterSpin {
  from { transform: translate(-50%, -50%) rotate(var(--deg)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--deg))); }
  to   { transform: translate(-50%, -50%) rotate(calc(var(--deg) + 360deg)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * (var(--deg) + 360deg))); }
}

/* ─── 15. FOOTER ─────────────────────────────────────────── */
.ag-footer {
  padding:    80px 0 0;
  background: var(--body-bg);
}

.ag-footer__grid {
  display:               grid;
  grid-template-columns: 360px 200px 1fr;
  gap:                   40px;
}

/* Col 1 */
.ag-footer__brand .ag-logo {
  display:  inline-block;
  font-size: 1.5rem;
}
.ag-footer__brand p {
  font-size:   .95rem;
  line-height: 1.8;
  color:       #2c3d44;
  margin-top:  24px;
}
.ag-footer__socials {
  display:    flex;
  gap:        10px;
  margin-top: 24px;
  flex-wrap:  wrap;
}
.ag-social-btn {
  width:           40px;
  height:          40px;
  border-radius:   50%;
  background:      #fff;
  box-shadow:      var(--shadow-sm);
  display:         flex;
  justify-content: center;
  align-items:     center;
  transition:      transform 0.2s, box-shadow 0.2s;
}
.ag-social-btn:hover {
  transform:  translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Col 2 */
.ag-footer__links h4 {
  font-size:     .95rem;
  font-weight:   700;
  color:         var(--dark);
  margin-bottom: 20px;
}
.ag-footer ul li a {
  display:     block;
  padding:     6px 0;
  color:       #2c3d44;
  font-weight: 500;
  font-size:   .95rem;
  transition:  color 0.18s;
}
.ag-footer ul li a:hover { color: var(--accent); }

/* Col 3 */
.ag-footer__subscribe h4 {
  font-size:     .95rem;
  font-weight:   700;
  color:         var(--dark);
  margin-bottom: 12px;
}
.ag-footer__subscribe p {
  font-size:     .88rem;
  color:         var(--text-secondary);
  line-height:   1.6;
  margin-bottom: 20px;
}
.ag-subscribe-form__wrap {
  background:    #fff;
  border-radius: 8px;
  padding:       4px;
  display:       flex;
  gap:           4px;
  box-shadow:    var(--shadow-sm);
}
.ag-subscribe-form__wrap input {
  flex:        1;
  border:      none;
  outline:     none;
  padding:     10px 16px;
  background:  transparent;
  font-family: var(--font);
  font-size:   .9rem;
  color:       var(--dark);
}
.ag-subscribe-form__wrap .ag-btn-primary {
  font-size: .85rem;
  padding:   10px 18px;
  border-radius: 6px;
  line-height: 1;
}

/* Bottom bar */
.ag-footer__bottom {
  border-top:      1px solid var(--border);
  margin-top:      60px;
  padding:         32px 0 40px;
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  font-size:       .88rem;
  color:           #2c3d44;
  flex-wrap:       wrap;
  gap:             12px;
}
.ag-footer__bottom-links {
  display: flex;
  gap:     24px;
}
.ag-footer__bottom-links a {
  color:      #2c3d44;
  font-weight: 500;
  transition: color 0.18s;
}
.ag-footer__bottom-links a:hover { color: var(--accent); }

/* ─── 16. RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1080px) {
  .ag-hero__grid { grid-template-columns: 1fr 1fr; }
  .ag-hero__stats { display: none; }

  .ag-skills__grid { grid-template-columns: repeat(3, 1fr); }

  .ag-footer__grid { grid-template-columns: 1fr 1fr; }
  .ag-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .ag-nav, .ag-btn-outline { display: none; }

  .ag-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ag-hero__title { font-size: 64px; line-height: 1; }
  .ag-hero__kicker { font-size: 22px; }
  .ag-hero__desc { padding: 0; font-size: 16px; }
  .ag-hero__rated { justify-content: center; }
  .ag-hero__center { min-height: 360px; }

  .ag-about__grid { grid-template-columns: 1fr; gap: 40px; }

  .ag-gigs__grid { grid-template-columns: 1fr; }

  .ag-portfolio__grid { grid-template-columns: 1fr; }

  .ag-skills__grid { grid-template-columns: repeat(2, 1fr); }

  .ag-blog__grid { grid-template-columns: 1fr; }

  .ag-cta__block { padding: 40px 28px; }
  .ag-cta__grid { grid-template-columns: 1fr; }
  .ag-cta__right { display: none; }

  .ag-footer__grid { grid-template-columns: 1fr; }

  .ag-testi-slide { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .ag-hero__title  { font-size: 48px; }
  .ag-section-head { margin-bottom: 36px; }
  .ag-skills__grid { grid-template-columns: 1fr 1fr; }
}
