/* ==========================================================================
   Zihad Hasan - Portfolio Stylesheet
   Modern, Fully Responsive & High-Performance Pure CSS
   ========================================================================== */

/* === Google Fonts Import === */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Noto+Sans+Bengali:wght@400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* === Local Font Fallback for Bengali === */
@font-face {
    font-family: 'SolaimanLipi';
    src: url('../fonts/SolaimanLipi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* === CSS Custom Properties (Design Tokens) === */
:root {
    /* Brand Colors */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-border: #bfdbfe;
    --primary-glow: rgba(37, 99, 235, 0.16);

    /* Neutral Colors */
    --text-main: #0f172a;
    --text-muted: #334155;
    --text-subtle: #64748b;
    --text-light: #94a3b8;
    
    --bg-page: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.92);
    
    --border-subtle: #e2e8f0;
    --border-hover: #cbd5e1;
    --border-dark: #334155;

    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-text: #f8fafc;

    /* Typography */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
    --font-bangla: 'Noto Sans Bengali', 'SolaimanLipi', sans-serif;

    /* Layout & Spacing */
    --header-height: 72px;
    --container-max: 1180px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 16px 32px -4px rgba(37, 99, 235, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Global Reset & Base Setup === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    width: 100%;
}

/* === Container === */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

/* === Typography Utilities === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

p {
    margin-bottom: 1.25rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover, a:focus-visible {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.bangla-text {
    font-family: var(--font-bangla);
    font-weight: 600;
}

/* === Section Badges & Header Utilities === */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem auto;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background-color: var(--primary-light);
    border: 1px solid var(--primary-border);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.85rem;
}

h2.section-title {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-subtle);
    line-height: 1.6;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1.5px solid transparent;
    white-space: nowrap;
    line-height: 1.4;
    min-height: 44px;
}

.btn-icon {
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover, .btn-primary:focus-visible {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover .btn-icon {
    transform: translateX(3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--border-subtle);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
    background-color: var(--bg-alt);
    border-color: var(--border-hover);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 0.95rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    min-height: 38px;
}

/* === Main Header & Navigation === */
#main-header {
    background-color: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: box-shadow var(--transition-normal);
}

#main-header.sticky-header {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

#logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    transition: color var(--transition-fast);
}

#logo:hover .logo-text, #logo:focus-visible .logo-text {
    color: var(--primary);
}

/* Desktop Navigation */
#main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link:focus-visible {
    color: var(--primary);
    background-color: var(--primary-light);
}

.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 600;
}

/* Mobile Menu Toggle Button */
#mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    width: 42px;
    height: 42px;
    padding: 9px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

#mobile-menu-toggle:hover {
    background-color: var(--bg-alt);
    border-color: var(--border-hover);
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-normal);
    transform-origin: center;
}

#mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* === Hero Section === */
#hero {
    background: radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.05), transparent 45%),
                radial-gradient(circle at 15% 80%, rgba(14, 165, 233, 0.04), transparent 45%),
                var(--bg-page);
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 5vw, 4rem);
}

.hero-text {
    flex: 1 1 58%;
    max-width: 650px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.95rem;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: #166534;
    margin-bottom: 1.25rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

#hero h1 {
    font-size: clamp(2.3rem, 5.5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 0.65rem;
}

#hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

#hero .tagline {
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    letter-spacing: -0.015em;
}

#hero .intro-text {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-image {
    flex: 1 1 42%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    padding: 10px;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 105%;
    background: linear-gradient(135deg, var(--primary-glow), rgba(14, 165, 233, 0.2));
    border-radius: 50%;
    filter: blur(24px);
    z-index: 0;
}

#hero-profile-pic {
    position: relative;
    z-index: 1;
    width: clamp(200px, 28vw, 300px);
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.15), 0 0 0 1px var(--border-subtle);
    background-color: var(--bg-alt);
}

/* === Content Sections === */
.content-section {
    padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.content-section.alt-bg {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

/* === About Section === */
.about-content {
    max-width: 820px;
    margin: 0 auto 3rem auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Focus Areas Grid */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.focus-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.focus-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-border);
    box-shadow: var(--shadow-hover);
}

.focus-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.focus-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.015em;
}

.focus-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* === Projects Grid Section === */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-border);
    box-shadow: var(--shadow-hover);
}

.card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header {
    margin-bottom: 0.75rem;
}

.platform-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.card-content h3 a {
    color: var(--text-main);
    transition: color var(--transition-fast);
}

.card-content h3 a:hover, .card-content h3 a:focus-visible {
    color: var(--primary);
}

.card-content .description {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
    flex-grow: 1;
}

.card-content .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.card-content .tags span {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text-muted);
    background-color: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    letter-spacing: -0.01em;
}

.card-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-subtle);
}

.card-footer-links .btn {
    flex: 1 1 0;
    min-width: 110px;
}

/* === Contact & Connect Section === */
.contact-card {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: clamp(2rem, 5vw, 3.5rem);
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.contact-card .section-header {
    margin-bottom: 2rem;
}

.contact-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

.contact-actions {
    margin-bottom: 2.5rem;
}

.contact-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-mono);
    font-size: clamp(0.88rem, 2.5vw, 1.05rem);
    font-weight: 600;
    color: var(--primary);
    background-color: var(--primary-light);
    border: 1.5px solid var(--primary-border);
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    max-width: 100%;
    word-break: break-word;
}

.contact-email-btn:hover, .contact-email-btn:focus-visible {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

/* Social Links Grid */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-normal);
    text-align: left;
}

.social-item:hover, .social-item:focus-visible {
    border-color: var(--primary-border);
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-alt);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.social-item:hover .social-icon-box {
    background-color: var(--primary-light);
    color: var(--primary);
}

.social-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.social-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

.social-handle {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-subtle);
}

/* === Footer Section === */
#main-footer {
    background-color: var(--dark-bg);
    color: var(--dark-text);
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-dark);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copy {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.footer-sub {
    font-size: 0.82rem;
    color: var(--text-light);
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.back-to-top:hover, .back-to-top:focus-visible {
    color: #ffffff;
    border-color: var(--text-light);
    background-color: var(--dark-card);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Laptops & Desktops (1024px to 1199px) */
@media (max-width: 1199.98px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets & Small Laptops (768px to 991px) */
@media (max-width: 991.98px) {
    :root {
        --header-height: 66px;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    #hero .intro-text {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .focus-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices (<= 767px) */
@media (max-width: 767.98px) {
    html {
        font-size: 15px;
    }

    /* Mobile Header & Full-Width Drawer Navigation */
    .header-container {
        position: static;
    }

    #mobile-menu-toggle {
        display: flex;
    }

    #main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
        padding: 1rem 1.5rem 1.5rem 1.5rem;
        z-index: 999;
        flex-direction: column;
        align-items: stretch;
    }

    #main-nav.active {
        display: flex;
        animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        width: 100%;
    }

    .nav-link {
        padding: 0.85rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-md);
    }

    .nav-link.active {
        background-color: var(--primary-light);
    }

    /* Hero adjustments */
    #hero {
        padding: 2.75rem 0;
        min-height: auto;
    }

    #hero-profile-pic {
        width: clamp(170px, 45vw, 220px);
    }

    /* Section Header */
    .section-header {
        margin-bottom: 2.25rem;
    }

    /* Focus & Project Cards */
    .focus-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    /* Contact Card */
    .contact-card {
        padding: 2.25rem 1.25rem;
    }

    .social-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
}

/* Extra Small Phones (<= 479px) */
@media (max-width: 479.98px) {
    .container {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .social-links-grid {
        grid-template-columns: 1fr;
    }

    .contact-email-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
    }

    .card-footer-links {
        flex-direction: column;
    }

    .card-footer-links .btn {
        width: 100%;
        justify-content: center;
    }
}