/* ==================================================
   HOME PAGE STYLES
   Sections: Hero, Services, Portfolio, Process,
   Trust, Final CTA, Footer, and Dark Theme support.
================================================== */

/* ==================================================
   HERO SECTION
================================================== */

.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.hero-bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
}

.circle-1 {
    width: 350px;
    height: 350px;
    background: #2563eb;
    top: -120px;
    left: -120px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: #14b8a6;
    right: -80px;
    bottom: -120px;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    margin-bottom: 24px;
    border-radius: 50px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
}

.hero-title {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-family: var(--heading-font);
    font-size: 4rem;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-title span {
    display: block;
    color: var(--primary-color);
}

.typing-text {
    margin-bottom: 32px;
    color: var(--text-light);
    font-size: 1.5rem;
}

#typing {
    color: var(--accent-color);
    font-weight: 700;
}

.hero-description {
    max-width: 600px;
    margin-bottom: 40px;
    color: var(--text-light);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.35s ease;
}

.btn:hover {
    transform: translateY(-4px);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 50px;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 0.95rem;
}

.trust-badges i {
    color: #22c55e;
}

.hero-stats {
    display: flex;
    gap: 25px;
}

.stat-card {
    min-width: 140px;
    padding: 22px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

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

.stat-card h3 {
    color: var(--primary-color);
    font-size: 2rem;
}

.stat-card p {
    color: var(--text-light);
}

.hero-image-area {
    position: relative;
    display: flex;
    justify-content: center;
    transform: translateY(30px);
}

.profile-card {
    width: 360px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(15px);
}

.profile-card img {
    display: block;
    width: 100%;
}

.profile-info {
    padding: 25px;
    text-align: center;
}

.profile-info h3 {
    margin-bottom: 10px;
}

.profile-info p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.profile-info span {
    color: #22c55e;
    font-weight: 600;
}

.tech-icon {
    position: absolute;
    padding: 12px 18px;
    border-radius: 50px;
    background: lightblue;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    animation: float 5s ease-in-out infinite;
}

.html {
    top: 30px;
    left: -10px;
}

.css {
    top: 90px;
    right: -20px;
}

.js {
    bottom: 120px;
    left: -20px;
}

.php {
    right: -10px;
    bottom: 30px;
}

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes bounce {
    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -10px);
    }
}

/* ==================================================
   ENTRANCE ANIMATIONS
================================================== */

.fade-up,
.fade-right {
    opacity: 0;
    transition: 1s ease;
}

.fade-up {
    transform: translateY(40px);
}

.fade-right {
    transform: translateX(50px);
}

.show {
    opacity: 1;
    transform: translate(0);
}

/* ==================================================
   SHARED HOMEPAGE SECTION HEADING
================================================== */

.section-heading {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 16px;
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: 20px;
    color: #0f172a;
    font-size: 2.7rem;
    line-height: 1.2;
}

.section-heading h2 span {
    color: #2563eb;
}

.section-heading p {
    color: #64748b;
    line-height: 1.8;
}

/* ==================================================
   SERVICES SECTION
================================================== */

.services-section {
    padding: 100px 0;
    background: #f8fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 38px 32px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card:hover {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    transform: translateY(-10px);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 28px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 1.55rem;
}

.service-number {
    position: absolute;
    top: 32px;
    right: 30px;
    color: rgba(15, 23, 42, 0.12);
    font-size: 1.15rem;
    font-weight: 800;
}

.service-card h3 {
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 1.35rem;
}

.service-card > p {
    margin-bottom: 26px;
    color: #64748b;
    line-height: 1.75;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.service-tags span {
    padding: 7px 11px;
    border-radius: 50px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    color: #2563eb;
    font-weight: 700;
    transition: gap 0.3s ease, color 0.3s ease;
}

.service-link:hover {
    gap: 15px;
    color: #0f172a;
}

.services-cta,
.process-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 55px;
    padding: 28px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.services-cta p,
.process-cta p {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
}

/* ==================================================
   FEATURED PORTFOLIO SECTION
================================================== */

.featured-portfolio-section {
    padding: 100px 0;
    background: #ffffff;
}

.portfolio-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 55px;
}

.portfolio-heading {
    max-width: 700px;
    margin: 0;
    text-align: left;
}

.portfolio-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #2563eb;
    color: #2563eb;
    font-weight: 700;
    transition: gap 0.3s ease, color 0.3s ease;
}

.portfolio-view-all:hover {
    gap: 15px;
    color: #0f172a;
}

.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.featured-project-card {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.featured-project-card:hover {
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    height: 235px;
    overflow: hidden;
    background: #e2e8f0;
}

.project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.65);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.featured-project-card:hover .project-overlay {
    opacity: 1;
}

.featured-project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-preview-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    color: #2563eb;
    font-size: 1.1rem;
    transform: translateY(12px);
    transition: transform 0.35s ease, background-color 0.3s ease, color 0.3s ease;
}

.featured-project-card:hover .project-preview-link {
    transform: translateY(0);
}

.project-preview-link:hover {
    background: #2563eb;
    color: #ffffff;
}

.project-content {
    padding: 28px;
}

.project-category {
    display: inline-block;
    margin-bottom: 12px;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-content h3 {
    margin-bottom: 14px;
    color: #0f172a;
    font-size: 1.3rem;
}

.project-content p {
    margin-bottom: 22px;
    color: #64748b;
    line-height: 1.75;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.project-tags span {
    padding: 7px 10px;
    border-radius: 50px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
}

.portfolio-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 55px;
    padding: 28px;
    border-radius: 16px;
    background: #f8fafc;
}

.portfolio-bottom-cta p {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
}

/* ==================================================
   PROCESS SECTION
================================================== */

.process-section {
    padding: 100px 0;
    background: #f8fafc;
}

.process-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-grid::before {
    position: absolute;
    top: 48px;
    right: 12%;
    left: 12%;
    z-index: 0;
    height: 2px;
    background: rgba(37, 99, 235, 0.18);
    content: "";
}

.process-card {
    position: relative;
    z-index: 1;
    padding: 34px 24px 30px;
    text-align: center;
}

.process-number {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(15, 23, 42, 0.12);
    font-size: 0.95rem;
    font-weight: 800;
}

.process-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 24px;
    border: 8px solid #f8fafc;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 1.55rem;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
    transition: transform 0.35s ease, background-color 0.35s ease;
}

.process-card:hover .process-icon {
    background: #0f172a;
    transform: translateY(-8px) rotate(4deg);
}

.process-card h3 {
    margin-bottom: 14px;
    color: #0f172a;
    font-size: 1.12rem;
}

.process-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.75;
}

/* ==================================================
   TRUST SECTION
================================================== */

.trust-section {
    padding: 100px 0;
    background: #ffffff;
}

.trust-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 70px;
}

.trust-intro .section-label {
    margin-bottom: 16px;
}

.trust-intro h2 {
    margin-bottom: 22px;
    color: #0f172a;
    font-size: 2.7rem;
    line-height: 1.2;
}

.trust-intro h2 span {
    color: #2563eb;
}

.trust-intro p {
    max-width: 540px;
    margin-bottom: 32px;
    color: #64748b;
    line-height: 1.8;
}

.trust-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.trust-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-height: 100%;
    padding: 24px 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #f8fafc;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.trust-card:hover {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-6px);
}

.trust-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    font-size: 1.05rem;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.trust-card:hover .trust-icon {
    background: #2563eb;
    color: #ffffff;
    transform: rotate(-6deg) scale(1.08);
}

.trust-card h3 {
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 1rem;
}

.trust-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ==================================================
   FINAL CONTACT CTA
================================================== */

.final-cta-section {
    padding: 100px 0;
    background: #0f172a;
}

.final-cta-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.final-cta-label {
    display: inline-block;
    margin-bottom: 18px;
    color: #93c5fd;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.final-cta-content h2 {
    margin-bottom: 22px;
    color: #ffffff;
    font-size: 3rem;
    line-height: 1.18;
}

.final-cta-content h2 span {
    display: block;
    color: #60a5fa;
}

.final-cta-content > p {
    max-width: 680px;
    margin: 0 auto 34px;
    color: #cbd5e1;
    line-height: 1.8;
}

.final-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.final-cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 190px;
    padding: 15px 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.final-cta-buttons .btn:hover {
    transform: translateY(-4px);
}

.final-whatsapp-btn {
    background: #25d366;
    color: #ffffff;
}

.final-whatsapp-btn:hover {
    background: #1fb657;
    color: #ffffff;
}

.final-email-btn {
    border-color: rgba(255, 255, 255, 0.35) !important;
    background: transparent;
    color: #ffffff;
}

.final-email-btn:hover {
    border-color: #ffffff !important;
    background: #ffffff;
    color: #0f172a;
}

.final-cta-note {
    margin-top: 24px !important;
    margin-bottom: 0 !important;
    color: #94a3b8 !important;
    font-size: 0.9rem;
}

/* ==================================================
   FOOTER
================================================== */

.site-footer {
    padding: 80px 0 28px;
    background: #0b1120;
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
    gap: 45px;
    padding-bottom: 55px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
}

.footer-logo span {
    color: #60a5fa;
}

.footer-brand p {
    max-width: 330px;
    margin: 0;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    color: #cbd5e1;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.footer-social-links a:hover {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-4px);
}

.footer-links h3,
.footer-contact h3 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 1rem;
}

.footer-links ul {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
    color: #94a3b8;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    padding-left: 5px;
    color: #60a5fa;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-contact a:hover {
    color: #60a5fa;
}

.footer-contact a i {
    width: 18px;
    color: #60a5fa;
}

.footer-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
    color: #94a3b8;
    font-size: 0.88rem;
}

.footer-availability i {
    color: #22c55e;
    font-size: 0.55rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.footer-bottom p {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
}

.footer-bottom i {
    margin: 0 3px;
    color: #ef4444;
}

/* ==================================================
   DARK THEME SUPPORT
   All homepage cards and text are given readable
   colors when body has the dark-theme class.
================================================== */

body.dark-theme .hero {
    background: #0f172a;
}

body.dark-theme .hero-title,
body.dark-theme .hero-content h1 {
    color: #f8fafc;
}

body.dark-theme .hero-title span,
body.dark-theme .hero-content h1 span {
    color: #60a5fa;
}

body.dark-theme .typing-text,
body.dark-theme .hero-description,
body.dark-theme .scroll-indicator {
    color: #cbd5e1;
}

body.dark-theme .availability-badge,
body.dark-theme .stat-card,
body.dark-theme .profile-card {
    border-color: rgba(148, 163, 184, 0.25);
    background: #1e293b;
    box-shadow: none;
}

body.dark-theme .availability-badge,
body.dark-theme .availability-badge span,
body.dark-theme .stat-card p,
body.dark-theme .profile-info p {
    color: #cbd5e1;
}

body.dark-theme .profile-info h3,
body.dark-theme .trust-badges span {
    color: #f8fafc;
}

body.dark-theme .tech-icon {
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #1e293b;
    color: #f8fafc;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

body.dark-theme .tech-icon.html {
    color: #fb923c;
}

body.dark-theme .tech-icon.css {
    color: #60a5fa;
}

body.dark-theme .tech-icon.js {
    color: #facc15;
}

body.dark-theme .tech-icon.php {
    color: #a5b4fc;
}

body.dark-theme .services-section,
body.dark-theme .process-section {
    background: #0f172a;
}

body.dark-theme .featured-portfolio-section,
body.dark-theme .trust-section {
    background: #111c30;
}

body.dark-theme .section-heading h2,
body.dark-theme .trust-intro h2,
body.dark-theme .service-card h3,
body.dark-theme .project-content h3,
body.dark-theme .process-card h3,
body.dark-theme .trust-card h3 {
    color: #f8fafc;
}

body.dark-theme .section-heading p,
body.dark-theme .trust-intro p,
body.dark-theme .service-card > p,
body.dark-theme .project-content p,
body.dark-theme .process-card p,
body.dark-theme .trust-card p {
    color: #cbd5e1;
}

body.dark-theme .service-card,
body.dark-theme .featured-project-card,
body.dark-theme .trust-card,
body.dark-theme .process-card {
    border-color: rgba(148, 163, 184, 0.2);
    background: #1e293b;
    box-shadow: none;
}

body.dark-theme .service-tags span,
body.dark-theme .project-tags span {
    background: #334155;
    color: #dbeafe;
}

body.dark-theme .service-number,
body.dark-theme .process-number {
    color: rgba(226, 232, 240, 0.2);
}

body.dark-theme .portfolio-bottom-cta {
    background: #1e293b;
}

body.dark-theme .services-cta,
body.dark-theme .process-cta {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #1e293b;
    box-shadow: none;
}

body.dark-theme .services-cta p,
body.dark-theme .portfolio-bottom-cta p,
body.dark-theme .process-cta p {
    color: #f8fafc;
}

body.dark-theme .portfolio-view-all:hover,
body.dark-theme .service-link:hover {
    color: #f8fafc;
}

body.dark-theme .project-image {
    background: #334155;
}

body.dark-theme .process-icon {
    border-color: #0f172a;
}

body.dark-theme .site-footer {
    background: #020617;
}

/* ==================================================
   RESPONSIVE STYLES
================================================== */

@media (max-width: 992px) {
    .services-grid,
    .featured-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card:last-child,
    .featured-project-card:last-child {
        grid-column: span 2;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }

    .process-grid::before {
        display: none;
    }

    .process-card {
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    }

    .trust-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .trust-intro {
        max-width: 700px;
        margin: 0 auto;
        text-align: center;
    }

    .trust-intro p {
        margin-right: auto;
        margin-left: auto;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 28px;
    }

    .footer-brand {
        grid-column: span 3;
    }

    .footer-brand p {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 80px 0 110px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 45px;
        text-align: center;
    }

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

    .hero-title {
        font-size: 2.7rem;
    }

    .hero-description {
        margin-bottom: 25px;
    }

    .hero-buttons,
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .trust-badges {
        justify-content: center;
        margin-bottom: 20px;
    }

    .hero-image-area {
        transform: none;
    }

    .profile-card {
        width: min(100%, 360px);
    }

    .tech-icon {
        padding: 9px 13px;
        font-size: 0.85rem;
    }

    .html {
        top: 20px;
        left: 0;
    }

    .css {
        top: 65px;
        right: 0;
    }

    .js {
        bottom: 95px;
        left: 0;
    }

    .php {
        right: 0;
        bottom: 20px;
    }

    .scroll-indicator {
        bottom: 22px;
    }

    .services-section,
    .featured-portfolio-section,
    .process-section,
    .trust-section,
    .final-cta-section {
        padding: 75px 0;
    }

    .section-heading {
        margin-bottom: 45px;
    }

    .section-heading h2,
    .trust-intro h2 {
        font-size: 2.1rem;
    }

    .services-grid,
    .featured-projects-grid,
    .process-grid,
    .trust-points {
        grid-template-columns: 1fr;
    }

    .service-card:last-child,
    .featured-project-card:last-child {
        grid-column: auto;
    }

    .service-card {
        padding: 32px 26px;
    }

    .services-cta,
    .portfolio-bottom-cta,
    .process-cta {
        flex-direction: column;
        text-align: center;
    }

    .portfolio-heading-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 45px;
    }

    .portfolio-heading {
        text-align: center;
    }

    .project-image {
        height: 250px;
    }

    .process-card {
        display: grid;
        grid-template-columns: 64px 1fr;
        column-gap: 18px;
        padding: 24px;
        text-align: left;
    }

    .process-icon {
        grid-row: span 2;
        width: 64px;
        height: 64px;
        margin: 0;
        border-width: 6px;
        font-size: 1.25rem;
    }

    .process-card h3 {
        align-self: end;
        margin-bottom: 8px;
    }

    .process-card p {
        align-self: start;
    }

    .process-number {
        top: 14px;
        right: 16px;
    }

    .trust-card {
        padding: 22px 20px;
    }

    .final-cta-content h2 {
        font-size: 2.2rem;
    }

    .final-cta-buttons {
        flex-direction: column;
    }

    .final-cta-buttons .btn {
        width: 100%;
        max-width: 320px;
    }

    .site-footer {
        padding: 65px 0 24px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 38px 24px;
        padding-bottom: 45px;
    }

    .footer-brand,
    .footer-contact {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .typing-text {
        font-size: 1.2rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 14px;
    }

    .stat-card {
        min-width: 125px;
        padding: 18px;
    }

    .section-heading h2,
    .trust-intro h2 {
        font-size: 1.85rem;
    }

    .services-cta,
    .portfolio-bottom-cta,
    .process-cta {
        padding: 24px 18px;
    }

    .project-image {
        height: 220px;
    }

    .project-content {
        padding: 24px;
    }

    .process-card {
        grid-template-columns: 56px 1fr;
        column-gap: 14px;
        padding: 20px;
    }

    .process-icon {
        width: 56px;
        height: 56px;
        font-size: 1.1rem;
    }

    .trust-card {
        gap: 13px;
        padding: 20px 18px;
    }

    .trust-icon {
        width: 42px;
        height: 42px;
    }

    .final-cta-content h2 {
        font-size: 1.9rem;
    }

    .final-cta-buttons .btn {
        min-width: 0;
        padding: 14px 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand,
    .footer-contact {
        grid-column: auto;
    }

    .footer-bottom {
        text-align: left;
    }
}

/* ==================================================
HERO MOBILE IMPROVEMENTS
- Keeps statistics cards in one row on mobile.
- Uses clear technology-label colours in both themes.
- Reduces profile card size on mobile so labels remain visible.
================================================== */

/* ==================================================
FLOATING TECHNOLOGY LABEL COLOURS
These colours are used in both light and dark themes.
================================================== */

.tech-icon.html {
    background-color: rgba(228, 77, 38, 0.16);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.35);
}

.tech-icon.css {
    background-color: rgba(21, 114, 182, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.35);
}

.tech-icon.js {
    background-color: rgba(250, 204, 21, 0.14);
    color: #ca8a04;
    border: 1px solid rgba(202, 138, 4, 0.35);
}

.tech-icon.php {
    background-color: rgba(119, 123, 180, 0.20);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.35);
}

/* Each label floats with a slightly different movement. */
.tech-icon.html {
    animation: float-html 5s ease-in-out infinite;
}

.tech-icon.css {
    animation: float-css 5.5s ease-in-out infinite;
}

.tech-icon.js {
    animation: float-js 4.8s ease-in-out infinite;
}

.tech-icon.php {
    animation: float-php 5.2s ease-in-out infinite;
}

@keyframes float-html {
    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-14px) rotate(2deg);
    }
}

@keyframes float-css {
    0%,
    100% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-18px) rotate(-2deg);
    }
}

@keyframes float-js {
    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-12px) rotate(2deg);
    }
}

@keyframes float-php {
    0%,
    100% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-16px) rotate(-2deg);
    }
}

/* ==================================================
   MOBILE HERO LAYOUT
================================================== */

@media (max-width: 768px) {
    /* Keep all three statistic cards in one row. */
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
    }

    .stat-card {
        min-width: 0;
        padding: 14px 8px;
        border-radius: 12px;
        text-align: center;
    }

    .stat-card h3 {
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .stat-card p {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    /* Make the profile card slightly smaller on mobile. */
    .profile-card {
        width: min(82vw, 300px);
        border-radius: 24px;
    }

    /* Keep labels outside the profile card edges. */
    .tech-icon {
        z-index: 3;
        padding: 8px 11px;
        font-size: 0.72rem;
    }

    .html {
        top: 15px;
        left: -8px;
    }

    .css {
        top: 58px;
        right: -8px;
    }

    .js {
        bottom: 82px;
        left: -8px;
    }

    .php {
        right: -8px;
        bottom: 15px;
    }
}

/* Extra-small phones */
@media (max-width: 380px) {
    .hero-stats {
        gap: 7px;
    }

    .stat-card {
        padding: 12px 5px;
    }

    .stat-card h3 {
        font-size: 1.15rem;
    }

    .stat-card p {
        font-size: 0.65rem;
    }

    .profile-card {
        width: min(78vw, 280px);
    }

    .tech-icon {
        padding: 7px 9px;
        font-size: 0.68rem;
    }
}