/* Responsive fixes for Ajay portfolio
   Link this file after css/style.css so these overrides load last. */

   *,
   *::before,
   *::after {
       box-sizing: border-box;
   }
   
   html,
   body {
       width: 100%;
       max-width: 100%;
       overflow-x: hidden;
   }
   
   img {
       max-width: 100%;
       height: auto;
   }
   
   .container,
   .container-fluid {
       padding-left: 15px;
       padding-right: 15px;
   }
   
   .navbar {
       width: 100%;
   }
   
   .navbar .navbar-brand {
       line-height: 1;
       white-space: nowrap;
   }
   
   .navbar-light .navbar-toggler {
       border-color: rgba(0, 0, 0, .15);
   }
   
   .hero {
       min-height: 500px;
       height: auto;
       display: flex;
       align-items: center;
       padding: 120px 0 80px;
   }
   
   .hero .row {
       width: 100%;
   }
   
   .hero .hero-content {
       min-height: 320px;
       padding-left: 75px;
   }
   
   .hero .hero-text h1 {
       overflow-wrap: anywhere;
   }
   
   .hero .hero-text .typed-cursor {
       display: inline;
       color: #ffffff;
       font-size: 35px;
       font-weight: 500;
   }
   
   .about {
       margin: 45px 0;
   }
   
   .about .col-lg-6 {
       padding-left: 15px;
       padding-right: 15px;
   }
   
   .about .about-img {
       height: auto;
       text-align: center;
       margin-bottom: 30px;
   }
   
   .about .about-img img {
       width: min(100%, 430px);
       height: auto !important;
       object-fit: cover;
       border-radius: 8px;
   }
   
   .about .about-content {
       padding: 0 30px;
   }
   
   .service,
   .experience,
   .portfolio,
   .contact,
   .footer {
       overflow: hidden;
   }
   
   .service .service-item {
       height: calc(100% - 30px);
   }
   
   #portfolio-filter {
       flex-wrap: wrap;
       gap: 10px;
       padding-left: 0;
       list-style: none;
   }
   
   #portfolio-filter li {
       margin: 0;
       text-align: center;
   }
   
   .portfolio-img {
       position: relative;
       overflow: hidden;
   }
   
   .portfolio-img img {
       width: 100%;
       aspect-ratio: 4 / 3;
       object-fit: cover;
   }
   
   .portfolio-overlay {
       padding: 20px;
       text-align: center;
   }
   
   .portfolio-overlay h3 {
       font-size: 20px;
       line-height: 1.3;
   }
   
   .portfolio-overlay .btn,
   .view-btn {
       max-width: 90%;
       white-space: normal;
       font-size: 14px;
       line-height: 1.4;
   }
   
   .contact .contact-form {
       padding-right: 45px;
   }
   
   .footer .footer-menu {
       flex-wrap: wrap;
       gap: 10px 0;
   }
   
   .footer .copyright .col-md-6:last-child p,
   .footer .copyright p {
       text-align: center;
   }
   
   @media (max-width: 1199.98px) {
       .navbar .navbar-brand {
           font-size: 38px;
       }
   
       .hero .hero-text h1 {
           font-size: 52px;
       }
   
       .section-header h2 {
           font-size: 38px;
       }
   }
   
   @media (max-width: 991.98px) {
       .navbar {
           position: sticky;
           top: 0;
           padding: 12px 15px;
           box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
       }
   
       .navbar .navbar-brand {
           font-size: 32px;
       }
   
       .navbar .navbar-nav {
           padding-top: 10px;
       }
   
       .navbar a.nav-link {
           padding: 10px 0;
       }
   
       .hero {
           min-height: 440px;
           padding: 80px 0 60px;
           margin-bottom: 30px;
       }
   
       .hero .hero-content {
           min-height: 280px;
           padding: 0 15px;
           align-items: center;
           text-align: center;
       }
   
       .hero .hero-text h1 {
           font-size: 44px;
           letter-spacing: 1px;
       }
   
       .hero .hero-text .typed-cursor {
           font-size: 26px;
       }
   
       .about .about-content {
           padding: 0 15px;
       }
   
       .contact .container-fluid {
           background: none;
       }
   
       .contact .contact-form {
           padding: 60px 30px;
       }
   }
   
   @media (max-width: 767.98px) {
       body {
           font-size: 15px;
       }
   
       .btn {
           padding: 10px 18px;
           font-size: 13px;
           letter-spacing: .5px;
       }
   
       .section-header {
           margin-bottom: 30px;
           text-align: center !important;
       }
   
       .section-header p {
           margin-left: 0;
           margin-right: 0;
       }
   
       .section-header h2 {
           font-size: 30px;
           line-height: 1.25;
       }
   
       .hero {
           min-height: 390px;
           padding: 65px 0 50px;
       }
   
       .hero .hero-content {
           min-height: auto;
       }
   
       .hero .hero-text p {
           font-size: 18px;
           margin-bottom: 8px;
       }
   
       .hero .hero-text h1 {
           font-size: 36px;
           margin-bottom: 10px;
       }
   
       .hero .hero-text h2,
       .hero .hero-text .typed-cursor {
           font-size: 21px;
           line-height: 1.35;
       }
   
       .hero .hero-btn .btn {
           margin-top: 25px;
       }
   
       .about {
           margin: 30px 0;
       }
   
       .about .about-img img {
           width: min(100%, 360px);
       }
   
       .service .service-item {
           display: block;
           text-align: center;
           padding: 25px 20px;
       }
   
       .service .service-icon {
           margin: 0 auto 18px;
       }
   
       #portfolio-filter {
           justify-content: center;
       }
   
       #portfolio-filter li {
           flex: 1 1 calc(50% - 10px);
           padding: 9px 12px;
           font-size: 14px;
       }
   
       .portfolio-overlay {
           opacity: 1;
           background: rgba(0, 0, 0, .55);
       }
   
       .contact {
           margin: 30px 0;
       }
   
       .contact .contact-form {
           padding: 45px 15px;
       }
   
       .footer .container-fluid {
           padding-top: 45px;
       }
   
       .footer .footer-menu {
           display: block;
       }
   
       .footer .footer-menu p {
           border-right: 0;
           padding: 0;
           line-height: 1.4;
           word-break: break-word;
       }
   }
   
   @media (max-width: 575.98px) {
       .container,
       .container-fluid {
           padding-left: 12px;
           padding-right: 12px;
       }
   
       .navbar .navbar-brand {
           font-size: 26px;
           letter-spacing: 1px;
       }
   
       .hero {
           min-height: 360px;
           padding: 55px 0 45px;
       }
   
       .hero .hero-text h1 {
           font-size: 30px;
           letter-spacing: 0;
       }
   
       .hero .hero-text h2,
       .hero .hero-text .typed-cursor {
           font-size: 18px;
       }
   
       .section-header h2 {
           font-size: 26px;
       }
   
       .about .about-text p,
       .about .skill-name p {
           font-size: 14px;
       }
   
       #portfolio-filter li {
           flex-basis: 100%;
       }
   
       .portfolio-overlay h3 {
           font-size: 17px;
       }
   
       .footer .footer-social a i {
           margin-right: 10px;
       }
   }
   
/* Premium visual refresh */
:root {
    --premium-ink: #111827;
    --premium-muted: #6b7280;
    --premium-red: #e31b3c;
    --premium-red-dark: #b91632;
    --premium-line: #eceff3;
    --premium-soft: #f7f8fb;
}

body {
    background: #ffffff;
    color: var(--premium-muted);
}

.navbar,
.navbar.nav-sticky {
    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid rgba(17, 24, 39, .08);
    box-shadow: 0 12px 35px rgba(17, 24, 39, .08);
}

.navbar .navbar-brand.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--premium-ink) !important;
    line-height: 1;
    letter-spacing: 0;
}

.brand-initial {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--premium-red), var(--premium-red-dark));
    font-size: 20px;
    box-shadow: 0 10px 25px rgba(227, 27, 60, .3);
}

.brand-name {
    color: var(--premium-ink);
    font-size: 26px;
    font-weight: 800;
}

.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--premium-ink) !important;
    font-weight: 700;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--premium-red) !important;
}

.hero {
    min-height: 650px;
    padding: 115px 0 85px;
    background:
        radial-gradient(circle at 78% 24%, rgba(227, 27, 60, .28), transparent 32%),
        linear-gradient(135deg, rgba(9, 13, 28, .96), rgba(30, 41, 59, .92)),
        url(../img/hero-bg.jpg);
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent);
}

.hero .container-fluid {
    max-width: 1180px;
    padding-left: 24px;
    padding-right: 24px;
}

.hero .row {
    align-items: center;
}

.hero .hero-content {
    padding-left: 0;
    min-height: auto;
}

.hero .hero-text .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: #ffe7eb;
    background: rgba(255,255,255,.08);
    font-size: 14px;
    letter-spacing: .5px;
}

.hero .hero-text h1 {
    max-width: 680px;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 64px;
    line-height: 1.05;
    letter-spacing: 0;
}

.hero .hero-text h2,
.hero .hero-text .typed-cursor {
    color: #ffffff;
    font-size: 32px;
    line-height: 1.25;
}

.hero-summary {
    max-width: 560px;
    margin: 20px 0 0;
    color: #d7dce6 !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.8;
}

.hero .hero-btn {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero .hero-btn .btn {
    border-radius: 999px;
    color: #ffffff;
    background: var(--premium-red);
    border-color: var(--premium-red);
    box-shadow: 0 16px 32px rgba(227, 27, 60, .28);
}

.hero .hero-btn .btn:hover {
    color: #ffffff;
    background: var(--premium-red-dark);
    border-color: var(--premium-red-dark);
}

.hero .hero-btn .btn-outline {
    color: #ffffff;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.3);
    box-shadow: none;
}

.hero-showcase {
    position: relative;
    max-width: 430px;
    margin-left: auto;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 28px;
    background: rgba(255,255,255,.1);
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    backdrop-filter: blur(18px);
}

.hero-card-main {
    padding: 26px;
    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
}

.hero-card-label {
    display: inline-block;
    margin-bottom: 20px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff0f3;
    background: rgba(227, 27, 60, .25);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-card-main h3 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 30px;
}

.hero-card-main p {
    color: #dbe2ef;
    margin: 0;
    line-height: 1.7;
}

.hero-metric-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0;
}

.hero-metric {
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
}

.hero-metric strong {
    display: block;
    color: var(--premium-red);
    font-size: 30px;
    line-height: 1;
}

.hero-metric span {
    display: block;
    color: var(--premium-muted);
    margin-top: 6px;
    font-weight: 700;
}

.hero-preview-list {
    display: grid;
    gap: 10px;
}

.hero-preview-list span {
    padding: 12px 14px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.14);
}

.section-header p {
    color: var(--premium-red);
}

.section-header h2 {
    color: var(--premium-ink);
    letter-spacing: -.5px;
}

.portfolio {
    background: linear-gradient(180deg, #ffffff 0%, var(--premium-soft) 100%);
    padding: 78px 0 !important;
}

.portfolio-planner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: -15px 0 34px;
}

.portfolio-planner div {
    padding: 20px;
    border: 1px solid var(--premium-line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(17, 24, 39, .07);
}

.portfolio-planner span {
    color: var(--premium-red);
    font-weight: 900;
}

.portfolio-planner strong {
    display: block;
    margin: 8px 0;
    color: var(--premium-ink);
}

.portfolio-planner p {
    margin: 0;
    color: var(--premium-muted);
    line-height: 1.6;
}

#portfolio-filter {
    gap: 12px;
}

#portfolio-filter li {
    border: 1px solid var(--premium-line) !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: var(--premium-ink) !important;
    box-shadow: 0 12px 30px rgba(17, 24, 39, .06) !important;
}

#portfolio-filter li:hover,
#portfolio-filter li.filter-active {
    color: #ffffff !important;
    background: var(--premium-red) !important;
    border-color: var(--premium-red) !important;
}

.portfolio-wrap {
    border-radius: 22px !important;
    background: #ffffff;
    box-shadow: 0 22px 55px rgba(17, 24, 39, .12);
    transform: translateY(0);
}

.portfolio-wrap:hover {
    transform: translateY(-8px);
}

.portfolio-img img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.portfolio-overlay {
    justify-content: flex-end !important;
    align-items: flex-start !important;
    padding: 24px !important;
    text-align: left !important;
    background: linear-gradient(180deg, rgba(9,13,28,.05), rgba(9,13,28,.9)) !important;
}

.portfolio-overlay h3 {
    margin-bottom: 14px !important;
    color: #ffffff;
    font-size: 21px !important;
    line-height: 1.25;
}

.view-btn {
    padding: 10px 16px !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    background: var(--premium-red) !important;
    border-color: var(--premium-red) !important;
    font-size: 13px !important;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.footer {
    background: var(--premium-ink) !important;
}

.back-to-top {
    border-radius: 999px;
}

@media (max-width: 991.98px) {
    .hero {
        min-height: auto;
        padding: 95px 0 70px;
    }

    .hero .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero .hero-text h1 {
        font-size: 46px;
    }

    .hero-summary {
        margin-left: auto;
        margin-right: auto;
    }

    .hero .hero-btn {
        justify-content: center;
    }

    .portfolio-planner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .brand-initial {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .brand-name {
        font-size: 22px;
    }

    .hero .hero-text h1 {
        font-size: 34px;
    }

    .hero .hero-text h2,
    .hero .hero-text .typed-cursor {
        font-size: 20px;
        min-height: 28px;
    }

    .hero-summary {
        font-size: 15px !important;
    }
}