/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&family=Sora:wght@600;700;800&display=swap');


/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.12), transparent 32%),
        linear-gradient(135deg, #090d12 0%, #101821 35%, #0b1018 100%);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    color: #f3efe9;
    line-height: 1.6;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 26rem;
    height: 26rem;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    opacity: 0.38;
    animation: floatAura 15s ease-in-out infinite alternate;
}

body::before {
    top: -8rem;
    left: -5rem;
    background: rgba(251, 191, 36, 0.22);
}

body::after {
    right: -7rem;
    bottom: -10rem;
    background: rgba(34, 211, 238, 0.18);
    animation-delay: 2s;
}

@keyframes floatAura {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(30px, 20px, 0) scale(1.1); }
}

a { text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
::selection {
    background: rgba(34, 211, 238, 0.3);
    color: #fff;
}

/* ===== Utility classes ===== */
.flex { display: flex; }
.s-around { justify-content: space-around; }
.s-center { justify-content: center; }
.items-center { align-items: center; }
.t-white { color: #ffffff; }
.t-center { text-align: center; }
.p-relative { position: relative; }
.m-auto { margin: 0 auto; }
.m-b-1 { margin-bottom: 1rem; }
.my-2 { margin: 2rem 0; }
.mx-1 { margin: 0 1rem; }
.m-top { margin-top: 1rem; }
.w-80 { width: 80%; }
.sw-80 { width: 80%; }
.h-50 { min-height: 50vh; }
.f-2 { font-size: 2.2rem; font-weight: 600; }
.popinss { font-family: 'Poppins', sans-serif; }
.roboto { font-family: 'Roboto', sans-serif; }

/* ===== 3D Buttons ===== */
.btn {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #facc15);
    color: #111827;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow:
        0 6px 0 #b45309,
        0 10px 22px rgba(251, 191, 36, 0.35);
    transform: translateY(0);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.01);
    filter: brightness(1.08);
    box-shadow:
        0 9px 0 #b45309,
        0 18px 28px rgba(251, 191, 36, 0.48);
}

.btn:active {
    transform: translateY(3px);
    box-shadow:
        0 2px 0 #0e4f8f,
        0 4px 10px rgba(6, 182, 212, 0.4);
}

.btn.live {
    background: rgba(34, 211, 238, 0.08);
    border: 2px solid #22d3ee;
    color: #a5f3fc;
    display: inline-block;
    padding: 0.75rem 1.7rem;
    box-shadow:
        0 6px 0 rgba(34, 211, 238, 0.28),
        0 10px 20px rgba(34, 211, 238, 0.18);
}

.btn.live:hover {
    background: #22d3ee;
    color: #0b1018;
    transform: translateY(-3px);
}

.btn.live:active {
    transform: translateY(3px);
}

/* ===== Navbar (glassmorphism) ===== */
#navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.2rem 5%;
    background: rgba(9, 13, 22, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 10px 36px rgba(2, 6, 23, 0.4);
}

.left-nav h2 {
    background: linear-gradient(135deg, #f5d76d, #5eead4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.right-nav ul {
    display: flex;
    gap: 2rem;
}

.right-nav a {
    font-size: 0.95rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.right-nav a:hover {
    color: #facc15 !important;
    text-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
}

/* ===== Home section ===== */
#home {
    display: grid;
    grid-template-columns: minmax(300px, 650px) 340px;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    min-height: 90vh;
    padding: 3rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-left {
    flex: 1 1 450px;
}

.home-content {
    max-width: 550px;
}

.home-content h6 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 1.3rem;
    position: relative;
    padding-left: 55px;
}

.home-content h6::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.home-content h1 {
    font-family: 'Sora', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff7d6 15%, #facc15 35%, #67e8f9 68%, #a5f3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(250, 204, 21, 0.18);
}

.home-content h4 {
    color: #f6f8fa;
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    position: relative;
    display: block;
    padding-bottom: 1rem;
}

.home-content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    border-radius: 2px;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Right side - photo */
.home-right {
    flex: 0 0 340px;
    display: flex;
    justify-content: center;
}

.circle {
    width: 320px;
    height: 320px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(57, 1, 1, 0.297);
    transform: perspective(800px) rotateY(0deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.circle:hover {
    transform: perspective(800px) rotateY(8deg) rotateX(4deg) scale(1.03);
    box-shadow: 0 25px 55px rgba(75, 154, 2, 0.35);
    animation: pulseGlow 1.6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 25px 55px rgba(75, 154, 2, 0.35); }
    100% { box-shadow: 0 25px 60px rgba(34, 211, 238, 0.45), 0 0 35px rgba(59, 130, 246, 0.22); }
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    background-color: #081d49;
}

/* Responsive */
@media (max-width: 900px) {
    #home {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .home-content {
        margin: 0 auto;
    }

    .home-content h1 {
        font-size: 2.5rem;
    }

    .home-content h6 {
        padding-left: 0;
        justify-content: center;
    }

    .home-content h6::before {
        display: none;
    }

    .home-content h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .home-right {
        flex: 0 0 auto;
    }

    .circle {
        width: 220px;
        height: 220px;
        margin-top: 2rem;
    }
}

/* 3D tilting profile circle */
.circle {
    width: 300px;
    height: 450px;
    border-radius: 800%;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.25);
    transform: perspective(800px) rotateY(0deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.circle:hover {
    transform: perspective(800px) rotateY(8deg) rotateX(4deg) scale(1.03);
    box-shadow:
        -20px 25px 50px rgba(3, 217, 255, 0.4),
        0 0 0 8px rgba(37, 99, 235, 0.12);
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100%;
    display: block;

}

/* ===== About section ===== */
#about {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

#about > h1 {
    font-family: 'Sora', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 3rem;
    align-items: start;
}

.about-left img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(6, 180, 255, 0.3);
    transform: perspective(1000px) rotateY(-4deg);
    transition: transform 0.4s ease;
}

.about-left img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-right {
    padding-top: 0.5rem;
}

.about-right h1 {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 2rem;
}

.about-right h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    border-radius: 2px;
}

.about-right p {
    color: #d1d5db;
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
    margin-top: 1.5rem;
}


/* ===== Skills section ===== */
#skills {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

#skills::before {
    content: '';
    position: absolute;
    inset: 3rem 2rem 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 32px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.4);
    z-index: -1;
}

#skills > h1 {
    font-family: 'Sora', sans-serif;
    font-size: 2.8rem;
    letter-spacing: 0.04em;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff7d6 0%, #facc15 28%, #67e8f9 68%, #d1fae5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(250, 204, 21, 0.18));
}

.services-centainer {
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.skills-left {
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
}

.skills-left img {
    width: 100%;
    max-width: 380px;
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(13, 148, 136, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: perspective(1000px) rotateY(-6deg) rotateX(2deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.skills-left img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.18), 0 0 0 1px rgba(96, 165, 250, 0.16);
}

.skills-right {
    flex: 1 1 620px;
    justify-content: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    width: min(100%, 660px);
}

.skill-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.85rem 1rem;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 28px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(22px);
    animation: skillPop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--delay);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 18px 32px rgba(59, 130, 246, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@keyframes skillPop {
    to { opacity: 1; transform: translateY(0); }
}

.skill-ring {
    position: relative;
    width: 112px;
    height: 112px;
    margin-bottom: 0.9rem;
    transition: transform 0.35s ease;
}

.skill-card:hover .skill-ring {
    transform: scale(1.08) rotate(2deg);
}

.skill-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

.ring-fill {
    fill: none;
    stroke: url(#skillGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.8));
    animation: ringFill 1.7s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    animation-delay: calc(var(--delay) + 0.18s);
}

@keyframes ringFill {
    to { stroke-dashoffset: var(--offset); }
}

.skill-ring-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.skill-logo {
    width: 2.2rem;
    height: 2.2rem;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}

.skill-pct {
    font-size: 0.8rem;
    font-weight: 700;
    color: #7dd3fc;
    letter-spacing: 0.04em;
}

.skill-label {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 0.02em;
    color: #e5eefb;
}

/* ===== Projects section ===== */
#projects {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

#projects > h1 {
    font-family: 'Sora', sans-serif;
    font-size: 2.8rem;
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff7d6 0%, #facc15 28%, #67e8f9 68%, #d1fae5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.projects-container {
    flex-direction: column;
    align-items: center;
    margin: 0 auto 3rem;
    width: min(100%, 900px);
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.projects-container p {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 1rem;
}

.project-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 1rem;
    text-align: center;
}

.media-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
    align-items: start;
}

.media-grid.two-up {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.media-grid.one-up {
    grid-template-columns: minmax(260px, 600px);
    justify-content: center;
}

.media-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.project-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-width: 42px;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    color: #67e8f9;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    border: 1px solid rgba(103, 232, 249, 0.18);
}

.project-preview {
    width: 100%;
    max-width: 760px;
    min-height: 220px;
    border-radius: 20px;
    margin: 0;
    border: 1px solid rgba(96, 165, 250, 0.18);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(96, 165, 250, 0.08);
    background: #020817;
    object-fit: cover;
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.project-preview:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
    box-shadow: 0 32px 70px rgba(6, 182, 212, 0.22), 0 0 0 1px rgba(96, 165, 250, 0.12);
    border-color: rgba(103, 232, 249, 0.4);
    filter: brightness(1.04) saturate(1.08);
}

.project-image-trigger {
    cursor: pointer;
}

.image-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 9999;
}

.image-modal.open {
    opacity: 1;
    visibility: visible;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.image-modal-content {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 1000px);
    max-height: 85vh;
    padding: 0.8rem;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 35px 80px rgba(2, 6, 23, 0.6);
}

#modalImage {
    display: block;
    width: auto;
    max-width: min(90vw, 900px);
    max-height: 80vh;
    object-fit: contain;
    border-radius: 18px;
    background: #020817;
}

#modalVideo {
    display: none;
    width: min(90vw, 900px);
    max-height: 80vh;
    border-radius: 18px;
    background: #020817;
    outline: none;
}

.image-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #facc15, #67e8f9);
    color: #020817;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.4);
}

/* ===== Testimonials section (glass 3D tilt cards) ===== */
#testimonials {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

#testimonials > h1 {
    font-family: 'Sora', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff7d6 0%, #facc15 28%, #67e8f9 68%, #d1fae5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials-container {
    flex-wrap: wrap;
    gap: 2rem;
    perspective: 1200px;
    justify-content: center;
}

.testimonial-card {
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 22px;
    padding: 2rem 1.5rem;
    max-width: 320px;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateZ(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, translate 0.4s ease;
}

.testimonial-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-6deg) translateY(-8px);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 24px 50px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.testimonial-img {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid rgba(34, 211, 238, 0.9);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.testimonial-card p {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-card h3 {
    color: #7dd3fc;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.testimonial-card span {
    color: #cbd5e1;
    font-size: 0.82rem;
}

/* ===== Contact section (glass panel) ===== */
#contacts {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

#contacts > h1 {
    font-family: 'Sora', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff7d6 0%, #facc15 28%, #67e8f9 68%, #d1fae5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.Contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.from {
    width: 100%;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    padding: 2.25rem;
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.messages p {
    background: rgba(220, 38, 38, 0.12);
    border-left: 4px solid #f87171;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    color: #fecaca !important;
}

.messages p.success {
    background: rgba(14, 165, 233, 0.12);
    border-left: 4px solid #22d3ee;
    color: #a5f3fc !important;
}

.from-div { margin-bottom: 1.2rem; }

.from-div input,
.from-div textarea {
    width: 100%;
    padding: 0.95rem 1.15rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.from-div input:focus,
.from-div textarea:focus {
    outline: none;
    border-color: rgba(34, 211, 238, 0.9);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(34, 211, 238, 0.15);
    transform: translateY(-1px);
}

.from-div input::placeholder,
.from-div textarea::placeholder {
    color: #94a3b8;
}

#submit {
    width: 100%;
    font-weight: 600;
}

/* ===== Footer ===== */
#footer {
    padding: 3rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    background: rgba(15, 23, 42, 0.25);
    margin-top: 2rem;
}

#footer ul {
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.25rem;
    padding: 0;
}

#footer li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#footer a {
    color: #e2e8f0;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 24px rgba(2, 6, 23, 0.22);
    text-decoration: none;
}

#footer a:hover {
    color: #f8fafc;
    border-color: rgba(96, 165, 250, 0.42);
    box-shadow: 0 18px 30px rgba(59, 130, 246, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    text-shadow: 0 0 14px rgba(103, 232, 249, 0.35);
}

#footer p {
    color: #cbd5e1;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    margin-top: 1rem;
}

.res { flex-wrap: wrap; }

/* ===== Section heading standardization ===== */
#about > h1,
#skills > h1,
#projects > h1,
#testimonials > h1,
#contacts > h1 {
    font-family: 'Sora', sans-serif;
    letter-spacing: 0.04em;
    text-align: center;
    position: relative;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    #home {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding-top: 2rem;
    }

    .home-content {
        max-width: 100%;
    }

    .home-content h1 {
        font-size: 3rem;
    }

    .home-content h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-right h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .services-centainer {
        flex-direction: column;
        text-align: center;
    }

    .skills-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    #navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .right-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .home-content h1 {
        font-size: 2.6rem;
    }

    .home-content h6 {
        padding-left: 0;
        letter-spacing: 2px;
    }

    .home-content h6::before {
        display: none;
    }

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

    .circle {
        width: 220px;
        height: 220px;
        margin-top: 1rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .testimonial-card:hover {
        transform: translateY(-8px);
    }

    .about-left img:hover {
        transform: none;
    }

    .from {
        padding: 1.4rem;
    }

    #footer {
        padding-top: 2.5rem;
    }

    #footer ul {
        gap: 0.8rem 1.2rem;
    }
}

@media (max-width: 480px) {
    #home,
    #about,
    #skills,
    #projects,
    #testimonials,
    #contacts,
    #footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-content h1 {
        font-size: 2.2rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .btn-group {
        flex-direction: column;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-container {
        padding: 1.25rem 0.9rem;
    }
}