/* =====================================================
   Portfolio Template - Main Stylesheet
   Responsive Circle Animation Fixed
   Fonts: Montserrat, Poppins
===================================================== */

/* 1. Variables */
:root {
    --color-bg: #fbf9f7;
    --color-card: #ffffff;
    --color-dark: #2c2520;
    --color-gold: #9f8153;
    --color-muted: #77716b;
    --color-border: rgba(44, 37, 32, 0.1);
    --color-gold-soft: rgba(159, 129, 83, 0.12);

    --shadow-soft: 0 8px 30px rgba(44, 37, 32, 0.06);
    --shadow-hover: 0 18px 40px rgba(44, 37, 32, 0.12);

    --font-heading: "Montserrat", sans-serif;
    --font-body: "Poppins", sans-serif;

    --nav-height: 68px;
    --radius: 12px;
}

@media (min-width: 992px) {
    :root {
        --nav-height: 80px;
    }
}

/* 2. Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100dvh;
    overflow-x: clip;
    background: var(--color-bg);
    color: var(--color-muted);
    font-family: var(--font-body);
    line-height: 1.7;
}

section {
    scroll-margin-top: var(--nav-height);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-gold);
    text-decoration: none;
}

a:hover {
    color: var(--color-dark);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-weight: 600;
}

p {
    font-size: 16px;
}

::selection {
    background: var(--color-gold);
    color: var(--color-bg);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 3. Shared Section Styles */
.section-padding {
    padding: 100px 0;
}

.bg-card {
    background: var(--color-card);
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 55px;
}

.section-subtitle {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--color-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 15px;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.3;
}

.section-title span,
.about-title span {
    color: var(--color-gold);
}

.section-description {
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.8;
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 80px 0;
    }

    .section-heading {
        margin-bottom: 40px;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 65px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }
}

/* 4. Navbar */
.navbar {
    --bs-navbar-brand-color: var(--color-dark);
    --bs-navbar-brand-hover-color: var(--color-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--nav-height);
    padding: 0;
    background: var(--color-bg);
    box-shadow: 0 10px 25px rgba(44, 37, 32, 0.08);
}

.navbar > .container {
    min-height: var(--nav-height);
}

.navbar-brand {
    margin: 0;
    padding: 0;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-toggler {
    margin-right: -8px;
    padding: 8px;
    border: none;
    box-shadow: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.dot-menu {
    display: grid;
    grid-template-columns: repeat(3, 8px);
    gap: 6px;
}

.dot-menu span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-dark);
    transition: background 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .dot-menu span {
    background: var(--color-gold);
}

.navbar .nav-link {
    position: relative;
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: var(--color-gold);
}

@media (max-width: 991.98px) {
    .navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-top: 1px solid var(--color-border);
        box-shadow: 0 20px 30px rgba(44, 37, 32, 0.1);
    }

    .navbar .navbar-nav {
        padding: 6px 24px 14px;
        text-align: center;
    }

    .navbar .nav-item + .nav-item {
        border-top: 1px solid var(--color-border);
    }

    .navbar .nav-link {
        padding: 14px 0;
        font-size: 15px;
    }
}

@media (min-width: 992px) {
    .navbar .navbar-nav {
        gap: 30px;
    }

    .navbar .nav-link {
        padding: 12px 0;
    }

    .navbar .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 4px;
        width: 100%;
        height: 2px;
        background: var(--color-gold);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.35s ease;
    }

    .navbar .nav-link:hover::after,
    .navbar .nav-link.active::after {
        transform: scaleX(1);
    }
}

/* 5. Hero */
.hero {
    padding: 50px 0 20px;
}

.hero-pic {
    --pic-size: 450px;

    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
}

.hero-pic::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;

    width: calc(var(--pic-size) + 20px);
    height: calc(var(--pic-size) + 20px);

    border-radius: 50%;

    background: conic-gradient(
        from 0deg,
        var(--color-gold),
        var(--color-dark),
        var(--color-gold),
        var(--color-dark),
        var(--color-gold)
    );

    animation: rotateBorder 50s linear infinite;
    pointer-events: none;
}

.profile-image {
    position: relative;
    z-index: 1;

    width: var(--pic-size);
    height: var(--pic-size);

    object-fit: cover;
    border-radius: 50%;

    transition: transform 0.4s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.hero-content {
    padding: 30px 0;
}

.hero-name {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
}

.position {
    margin-bottom: 25px;
    color: var(--color-gold);
    font-size: 20px;
}

@keyframes rotateBorder {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991.98px) {
    .hero-pic {
        --pic-size: 370px;
        min-height: 430px;
    }
}

@media (max-width: 575.98px) {
    .hero-pic {
        --pic-size: 290px;
        min-height: 340px;
    }
}

/* 6. Buttons and Social Icons */
.btn-border {
    position: relative;
    z-index: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    padding: 14px 28px;
    border: 2px solid var(--color-dark);
    border-radius: 50px;
    background: var(--color-bg);
    color: var(--color-dark);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    transition: color 0.4s ease;
}

.btn-border::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--color-dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.btn-border:hover {
    color: var(--color-bg);
}

.btn-border:hover::before {
    transform: scaleX(1);
}

.social-icons-hero {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 28px;
}

.social-link-icon,
.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-dark);
    color: var(--color-gold);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-link-icon:hover,
.footer-social a:hover {
    background: var(--color-gold);
    color: var(--color-dark);
    transform: translateY(-4px);
}

@media (max-width: 575.98px) {
    .social-link-icon,
    .footer-social a {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

/* 7. Marquee */
.developer-marquee {
    padding: 15px 0;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marqueeMove 50s linear infinite;
}

.marquee-content span {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-right: 30px;
    color: var(--color-gold);
    font-size: 50px;
    font-weight: 200;
    line-height: 1.3;
    white-space: nowrap;
    text-transform: uppercase;
}

.marquee-content i {
    color: var(--color-dark);
}

@keyframes marqueeMove {
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 575.98px) {
    .marquee-content span {
        gap: 12px;
        margin-right: 20px;
        font-size: 30px;
    }
}

/* 8. About */
.about-image-wrapper {
    position: relative;
    min-height: 520px;
    padding: 20px;
}

.about-image-main {
    width: 85%;
    height: 420px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.about-image-secondary {
    position: absolute;
    right: 0;
    bottom: 10px;
    z-index: 2;
    width: 48%;
    height: 250px;
    overflow: hidden;
    border: 8px solid var(--color-bg);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.about-image-main img,
.about-image-secondary img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-main:hover img,
.about-image-secondary:hover img {
    transform: scale(1.06);
}

.about-experience-box {
    position: absolute;
    left: 0;
    bottom: 55px;
    z-index: 3;
    padding: 22px 30px;
    background: var(--color-dark);
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
}

.about-experience-box h3 {
    margin: 0;
    color: var(--color-bg);
    font-size: 38px;
    font-weight: 700;
}

.about-experience-box p {
    margin: 0;
    color: var(--color-bg);
    font-size: 13px;
}

.about-decoration {
    position: absolute;
    top: 0;
    right: 5px;
    width: 100px;
    height: 100px;
    border: 12px solid var(--color-dark);
    border-radius: 50%;
    opacity: 0.12;
}

.about-title {
    margin-bottom: 25px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.4;
}

.about-description {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.9;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 30px 0 35px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.about-feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--color-dark);
    color: var(--color-bg);
    font-size: 20px;
    transition: all 0.3s ease;
}

.about-feature-item:hover .about-feature-icon {
    background: var(--color-gold);
    transform: translateY(-5px);
}

.about-feature-item h4 {
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: 700;
}

.about-feature-item p {
    margin: 0;
    font-size: 14px;
}

.about-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 15px 28px;
    border: 2px solid var(--color-dark);
    border-radius: 50px;
    background: var(--color-dark);
    color: var(--color-bg);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.about-btn:hover {
    background: transparent;
    color: var(--color-dark);
    transform: translateY(-4px);
}

.about-btn i {
    transition: transform 0.3s ease;
}

.about-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 991.98px) {
    .about-image-wrapper {
        max-width: 650px;
        margin: 0 auto;
    }

    .about-title {
        font-size: 30px;
    }
}

@media (max-width: 575.98px) {
    .about-image-wrapper {
        min-height: 390px;
        padding: 10px;
    }

    .about-image-main {
        width: 90%;
        height: 310px;
    }

    .about-image-secondary {
        bottom: 0;
        height: 170px;
        border-width: 5px;
    }

    .about-experience-box {
        bottom: 30px;
        padding: 15px 20px;
    }

    .about-experience-box h3 {
        font-size: 30px;
    }

    .about-decoration {
        width: 65px;
        height: 65px;
        border-width: 8px;
    }

    .about-title {
        font-size: 26px;
    }

    .about-feature-item {
        gap: 12px;
    }

    .about-feature-icon {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .about-btn {
        width: 100%;
    }
}

/* =====================================================
   9. Skills - RESPONSIVE CIRCLE ANIMATION FIX
===================================================== */

.skill-circle {
    position: relative;
    isolation: isolate;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 150px;
    height: 150px;
    margin: auto;

    border: 3px solid transparent;
    border-radius: 50%;

    background: var(--color-bg);

    color: var(--color-dark);
    font-size: 17px;
    font-weight: 700;
    text-align: center;

    box-shadow: 0 10px 25px rgba(44, 37, 32, 0.1);

    transition:
        transform 0.5s ease,
        color 0.5s ease,
        background-color 0.5s ease,
        box-shadow 0.5s ease;
}

/* Animated Gold Border */
.skill-circle::before {
    content: "";
    position: absolute;
    inset: -3px;

    z-index: -1;

    border-radius: 50%;

    background: conic-gradient(
        from 0deg,
        var(--color-bg),
        var(--color-gold),
        var(--color-bg),
        var(--color-gold),
        var(--color-bg)
    );

    transform: rotate(0deg);
    transition: transform 0.5s ease;
}

/* Inner Circle Cover */
.skill-circle::after {
    content: "";
    position: absolute;
    inset: 3px;

    z-index: -1;

    border-radius: 50%;
    background: var(--color-bg);

    transition: background 0.5s ease;
}

/* Hover Effect */
.skill-circle:hover {
    color: var(--color-bg);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(44, 37, 32, 0.18);
}

.skill-circle:hover::before {
    animation: skillCircleRotate 2s linear infinite;
}

.skill-circle:hover::after {
    background: var(--color-dark);
}

/* Circle Border Animation */
@keyframes skillCircleRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 991.98px) {
    .skill-circle {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        font-size: 17px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .skill-circle {
        width: 125px;
        height: 125px;
        border-radius: 50%;
        font-size: 15px;
    }
}

/* =====================================================
   10. Services  (top line animation + icon rotate removed)
===================================================== */

.service-card {
    position: relative;
    height: 100%;
    padding: 35px 30px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 65px;
    height: 65px;
    margin-bottom: 25px;
    border-radius: var(--radius);
    background: var(--color-gold-soft);
    color: var(--color-gold);
    font-size: 27px;
    transition: background 0.4s ease, color 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--color-gold);
    color: #fff;
}

.service-number {
    position: absolute;
    top: 35px;
    right: 30px;
    color: rgba(44, 37, 32, 0.1);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.service-card h3 {
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 700;
}

.service-card p {
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.8;
}

.service-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-gold-soft);
    color: var(--color-gold);
    transition: all 0.3s ease;
}

.service-link:hover {
    background: var(--color-dark);
    color: #fff;
    transform: translateX(5px);
}

@media (max-width: 575.98px) {
    .service-card {
        padding: 28px 24px;
    }

    .service-icon {
        width: 58px;
        height: 58px;
        font-size: 24px;
    }

    .service-card h3 {
        font-size: 18px;
    }
}

/* 11. Portfolio */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.portfolio-filter {
    padding: 10px 22px;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    background: transparent;
    color: var(--color-dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-filter:hover,
.portfolio-filter.active {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: #fff;
}

.portfolio-card {
    position: relative;
    height: 280px;
    border-radius: var(--radius);
    background: var(--color-bg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.portfolio-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;
    background: rgba(44, 37, 32, 0.9);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay,
.portfolio-card:focus-within .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    margin-bottom: 12px;
    padding: 6px 13px;
    border-radius: 30px;
    background: var(--color-gold);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.portfolio-overlay h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
}

.portfolio-overlay p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.portfolio-actions {
    display: flex;
    gap: 10px;
}

.portfolio-actions a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-dark);
    font-size: 15px;
    transition: all 0.3s ease;
}

.portfolio-actions a:hover {
    background: var(--color-gold);
    color: #fff;
    transform: translateY(-4px);
}

@media (hover: none) {
    .portfolio-overlay {
        background: rgba(44, 37, 32, 0.78);
        opacity: 1;
    }
}

/* 12. Blog */
.blog-card {
    height: 100%;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: var(--color-bg);
}

.blog-image > a {
    display: block;
    height: 100%;
}

.blog-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

.blog-category {
    position: absolute;
    left: 18px;
    bottom: 15px;
    padding: 7px 15px;
    border-radius: 30px;
    background: var(--color-gold);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.blog-meta i {
    color: var(--color-gold);
}

.blog-content h3 {
    margin-bottom: 12px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
}

.blog-content h3 a {
    color: var(--color-dark);
}

.blog-content h3 a:hover {
    color: var(--color-gold);
}

.blog-content p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    transition: gap 0.3s ease, color 0.3s ease;
}

.blog-read-more:hover {
    gap: 14px;
}

.blog-footer {
    margin-top: 45px;
}

.blog-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 28px;
    border: 1px solid var(--color-dark);
    border-radius: 5px;
    background: var(--color-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-view-all:hover {
    background: transparent;
    color: var(--color-dark);
}

@media (max-width: 575.98px) {
    .blog-content h3 {
        font-size: 18px;
    }

    .blog-footer {
        margin-top: 30px;
    }
}

/* 13. Contact */
.contact-info {
    height: 100%;
    padding: 40px 35px;
    background: var(--color-bg);
    border-radius: var(--radius);
}

.contact-info-heading {
    margin-bottom: 35px;
}

.contact-info-heading h3,
.contact-form-wrapper h3 {
    margin-bottom: 12px;
    font-size: 25px;
    font-weight: 700;
}

.contact-info-heading p,
.contact-form-description {
    font-size: 14px;
    line-height: 1.8;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

.contact-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--color-card);
    color: var(--color-gold);
    font-size: 20px;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon {
    background: var(--color-gold);
    color: #fff;
    transform: translateY(-3px);
}

.contact-info-content h4 {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 700;
}

.contact-info-content a,
.contact-info-content p {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.contact-info-content a:hover {
    color: var(--color-gold);
}

.contact-social {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--color-border);
}

.contact-social h4 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
}

.contact-social-links {
    display: flex;
    gap: 12px;
}

.contact-social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-card);
    color: var(--color-dark);
    font-size: 15px;
    transition: all 0.3s ease;
}

.contact-social-links a:hover {
    background: var(--color-dark);
    color: #fff;
    transform: translateY(-4px);
}

.contact-form-wrapper {
    height: 100%;
    padding: 40px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.contact-form-description {
    margin-bottom: 28px;
}

.contact-form .form-label {
    margin-bottom: 8px;
    color: var(--color-dark);
    font-size: 13px;
    font-weight: 600;
}

.contact-form .form-control {
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg);
    color: var(--color-dark);
    font-size: 13px;
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.contact-form .form-control:focus {
    background: var(--color-card);
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px var(--color-gold-soft);
}

.contact-submit-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 28px;
    border: 1px solid var(--color-dark);
    border-radius: 6px;
    background: var(--color-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-submit-btn:hover {
    background: transparent;
    color: var(--color-dark);
}

@media (max-width: 991.98px) {
    .contact-info,
    .contact-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 575.98px) {
    .contact-info,
    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .contact-info-heading h3,
    .contact-form-wrapper h3 {
        font-size: 21px;
    }

    .contact-submit-btn {
        width: 100%;
    }
}

/* 14. Footer */
.footer-section {
    padding: 0 0 35px;
    background: var(--color-bg);
}

.footer-divider {
    height: 1px;
    margin-bottom: 45px;
    background: var(--color-border);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-social {
    flex: 1;
    display: flex;
    gap: 15px;
}

.footer-nav {
    flex: 2;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 25px;
    list-style: none;
}

.footer-nav a {
    color: var(--color-dark);
    font-weight: 600;
}

.footer-nav a:hover {
    color: var(--color-gold);
}

.footer-copy {
    flex: 1;
    text-align: right;
    font-size: 14px;
}

@media (max-width: 991.98px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-copy {
        text-align: center;
    }
}

/* 15. Scroll to Top */
#scrollTopBtn {
    position: fixed;
    right: 40px;
    bottom: 25px;
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--color-dark);
    color: var(--color-bg);
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(44, 37, 32, 0.25);
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    background: var(--color-gold);
    transform: translateY(-3px);
}

@media (max-width: 575.98px) {
    #scrollTopBtn {
        right: 15px;
        bottom: 20px;
    }
}


/* =====================================================
   16. Safari / WebKit Compatibility
   (appended section - nothing above this line was changed)
   Covers Safari 14+ on macOS, iPhone and iPad
===================================================== */

/* Soft gold tap highlight on iOS instead of the default grey flash */
a,
button {
    -webkit-tap-highlight-color: rgba(159, 129, 83, 0.15);
}

/* Safari clips rounded corners incorrectly when a child is
   transformed (hover zoom) inside an overflow:hidden box.
   Creating a stacking context fixes it. */
.about-image-main,
.about-image-secondary,
.service-card,
.portfolio-card,
.blog-card,
.blog-image {
    isolation: isolate;
}

/* Safari 15.3 and older: no dvh unit, use vh */
@supports not (min-height: 100dvh) {
    body {
        min-height: 100vh;
    }
}

/* Safari 14.0 and older: no "inset" shorthand */
@supports not (inset: 0) {
    .hero-pic::before,
    .btn-border::before,
    .portfolio-overlay {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }

    .skill-circle::before {
        top: -3px;
        right: -3px;
        bottom: -3px;
        left: -3px;
    }

    .skill-circle::after {
        top: 3px;
        right: 3px;
        bottom: 3px;
        left: 3px;
    }
}

/* iOS Safari zooms the page when an input is smaller than 16px.
   -webkit-touch-callout is only supported by iOS browsers. */
@supports (-webkit-touch-callout: none) {
    .contact-form .form-control {
        font-size: 16px;
    }
}
