/* ==========================================================================
   Valera Perinski — Portfolio & Business Card Stylesheet
   ========================================================================== */

:root {
    --bg-page: #edf2ef;
    --bg-container: #ffffff;
    --bg-dark: #062a1f;
    --bg-dark-accent: #093c2d;
    --bg-dark-deep: #041c14;
    --bg-light-box: #f9fbf9;
    
    --primary: #0d8a5e;
    --primary-hover: #0a734e;
    --primary-light: #e8f5ef;
    --primary-mint: #8ee2be;
    
    --text-main: #13241d;
    --text-muted: #566a61;
    --text-light: #d0e4dc;
    --text-white: #ffffff;
    
    --border-color: #dfeae4;
    --border-dark: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 4px 4px rgba(13, 138, 94, 0.1);
} 

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.5;
    padding: 24px 12px;
}

/* Centered Page Container */
.site-container {
    max-width: 1040px;
    margin: 0 auto;
    background-color: var(--bg-container);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 36px rgba(4, 28, 20, 0.08);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   HEADER / BRAND BANNER
   ========================================================================== */
.brand-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-accent) 100%);
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-accent) 100%);
    background-size: 18px 18px, 100% 100%;
    color: var(--text-white);
    padding: 30px 36px 34px;
    position: relative;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
}

.avatar-wrap {
    flex-shrink: 0;
}

.avatar-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3.5px solid #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    display: block;
    object-fit: cover;
}

.brand-meta {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
    color: var(--text-white);
}

.brand-subtitle {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--primary-mint);
    margin-top: 6px;
    letter-spacing: 0.02em;
}

.brand-tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 3px;
    opacity: 0.9;
}

.header-pointer {
    position: absolute;
    bottom: -11px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 11px solid var(--bg-dark-accent);
    z-index: 5;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 40px 44px 34px;
    background-color: #ffffff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.accent-text {
    color: var(--primary);
}

.hero-divider {
    width: 44px;
    height: 3.5px;
    background-color: var(--primary);
    border-radius: 2px;
    margin: 16px 0 18px;
}

.hero-lead {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.55;
    margin-bottom: 10px;
}

.hero-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 22px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-lightbox-trigger {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.hero-img {
    max-width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: scale(1.02);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn:hover {
    border-color: inherit;
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
    background-color: var(--primary);
 color: var(--text-white);
 box-shadow: var(--shadow-hover);
 transform: translateY(-2px);
 border-color: inherit;
}

.btn-handshake-img {
    width: 22px;
    height: 18px;
    display: inline-block;
    flex: 0 0 22px;
    background-color: var(--primary);
    -webkit-mask: url('../images/icons/handshake.png') center / contain no-repeat;
    mask: url('../images/icons/handshake.png') center / contain no-repeat;
    transition: background-color 0.25s ease;
}

.btn-outline-primary {
    color: var(--primary);
    background-color: transparent;
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-outline-primary:hover .btn-handshake-img {
    background-color: var(--text-white);
}

.btn-outline-secondary {
    color: var(--primary);
    background-color: #ffffff;
    border: 2px solid var(--primary);
    padding: 10px 32px;
}

.btn-outline-secondary:hover {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Contact modal */
.contact-modal .modal-dialog {
    max-width: 560px;
}

.contact-modal .modal-content {
    border: 1px solid rgba(13, 138, 94, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 70px rgba(4, 28, 20, 0.28);
    overflow: hidden;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-modal .contact-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.contact-modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.contact-modal .modal-header {
    align-items: flex-start;
    padding: 24px 26px 18px;
    padding-right: 68px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-accent) 100%);
    border: 0;
    color: var(--text-white);
    position: relative;
}

.contact-modal .btn-close {
    position: absolute;
    top: 24px;
    right: 26px;
    margin: 0;
    filter: invert(1) grayscale(1) brightness(2);
    opacity: 0.75;
}

.contact-modal .btn-close:hover {
    opacity: 1;
}

.contact-modal-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--primary-mint);
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.contact-modal .modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.contact-modal .modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 26px 20px;
    -webkit-overflow-scrolling: touch;
}

.contact-modal-intro {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.contact-modal .form-label {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.contact-modal .form-control {
    border-color: var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 11px 12px;
}

.contact-modal .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.22rem rgba(13, 138, 94, 0.14);
}

.contact-modal textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-modal .modal-footer {
    flex-shrink: 0;
    gap: 10px;
    padding: 16px 26px 24px;
    border: 0;
}

.contact-form.is-submitted .contact-form-fields,
.contact-form.is-submitted .modal-footer {
    display: none;
}

.contact-form.is-submitted .alert {
    margin-bottom: 0;
}

.contact-cancel,
.contact-submit {
    padding: 10px 20px;
}

.contact-cancel {
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-color);
}

.contact-cancel:hover {
    color: var(--text-main);
    background: var(--bg-light-box);
    border-color: #c8d8d0;
}

.contact-submit {
    color: var(--text-white);
    background: var(--primary);
    border: 1px solid var(--primary);
}

.contact-submit:hover {
    color: var(--text-white);
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

.contact-website {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

@media (prefers-reduced-motion: reduce) {
    .contact-modal .modal-content {
        transition: none;
    }
}

/* ==========================================================================
   STATS RIBBON
   ========================================================================== */
.stats-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-accent) 100%);
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-accent) 100%);
    background-size: 18px 18px, 100% 100%;
    color: var(--text-white);
    padding: 30px 24px 22px;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    text-align: center;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-card:last-child {
    border-right: none;
}

.stat-icon-wrap {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.stat-icon-img {
    max-height: 50px;
    max-width: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-white);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #9dbdb0;
    margin-top: 6px;
    line-height: 1.25;
}

.stats-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.stats-note {
    font-size: 0.82rem;
    color: #8bb3a2;
    font-style: italic;
}

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */
.section {
    padding: 38px 44px;
}

.section-header {
    text-align: center;
    margin-bottom: 26px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-main);
}

.section-line {
    width: 36px;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 2px;
    margin: 8px auto 0;
}

/* ==========================================================================
   PLATFORMS & PROJECTS (8 Cards Grid)
   ========================================================================== */
.platforms-section {
    background-color: #ffffff;
}

.platforms-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.platform-card {
    flex: 0 0 calc((100% - 48px) / 4);
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    min-height: 200px;
    padding: 16px 14px 18px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.platform-icon-wrap {
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.platform-icon-img {
    width: 104px;
    height: 104px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.25s ease;
}

/* Optical centering: the pointed hexagon makes the group appear too high. */
.platform-card > .platform-icon-wrap,
.platform-card > .platform-info {
    transform: translateY(10px);
}

.platform-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.03em;
    line-height: 1.15;
    margin-bottom: 3px;
}

.platform-note {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.25;
}

.platform-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.platform-card:hover .platform-icon-img {
    transform: scale(1.06);
}

/* ==========================================================================
   WHAT I DO / SERVICES
   ========================================================================== */
.services-section {
    background-color: #ffffff;
    border-top: 1px solid #f0f4f2;
}

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

.service-card {
    background-color: var(--bg-light-box);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 28px 12px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.25s ease;
}

.service-icon-box {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.service-icon-img {
    max-height: 64px;
    max-width: 64px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.25s ease;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.service-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background-color: #ffffff;
}

.service-card:hover .service-icon-img {
    transform: scale(1.08);
}

/* ==========================================================================
   FEATURED PROJECTS
   ========================================================================== */
.projects-section {
    background-color: #ffffff;
    border-top: 1px solid #f0f4f2;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.project-card {
    flex: 0 0 calc((100% - 48px) / 4);
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.project-thumb-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #eef3f0;
    overflow: hidden;
    position: relative;
}

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

.project-details {
    padding: 14px 12px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.02em;
    margin-bottom: 4px;
    line-height: 1.2;
}

.project-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.project-card:hover .project-thumb {
    transform: scale(1.06);
}

.projects-action {
    text-align: center;
    margin-top: 30px;
}

.projects-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.projects-slider-arrow {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary);
    background: #fff;
}
.projects-slider-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.projects-slider-dots { display: flex; gap: 7px; }
.projects-slider-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c8d8d0; }
.projects-slider-dots button.active { background: var(--primary); }

@media (min-width: 769px) {
    .projects-grid.projects-slider { justify-content: flex-start; flex-wrap: nowrap; overflow: hidden; scroll-behavior: smooth; padding: 5px;}
    .projects-grid.projects-slider .project-card { flex: 0 0 calc((100% - 48px) / 4); }
}

/* ==========================================================================
   FOOTER & ABOUT ME
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 36px 44px 0;
}

.about-card {
    background: linear-gradient(135deg, #093c2d 0%, #05281d 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 26px 30px;
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 32px;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--primary-mint);
    margin-bottom: 8px;
}

.about-text {
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.55;
}

.highlights-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon-wrap {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon {
    width: 12px;
    height: 12px;
}

.highlight-text {
    font-size: 0.84rem;
    color: var(--text-white);
    font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
    background-color: var(--bg-dark-deep);
    margin: 0 -44px;
    padding: 26px 44px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-avatar img {
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: block;
    object-fit: cover;
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.footer-sub {
    font-size: 0.75rem;
    color: var(--primary-mint);
    margin-top: 3px;
}

.footer-col-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #8bb3a2;
    margin-bottom: 8px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-mint);
}

.footer-contact-trigger {
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.footer-icon {
    width: 14px;
    height: 14px;
    color: var(--primary-mint);
}

.social-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-badge-icon {
    width: 26px;
    height: 26px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    filter: grayscale(100%);
    opacity: 0.5;
}

.social-badge-img {
    max-width: 22px;
    max-height: 22px;
    object-fit: contain;
    display: block;
}

.social-badge-icon:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.18);
    filter: grayscale(0%);
    opacity: 1;
}

.footer-copyright {
    text-align: center;
    padding: 16px 0 20px;
    font-size: 0.78rem;
    color: #638677;
    background-color: var(--bg-dark-deep);
    margin: 0 -44px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablets / Medium Screens */
@media (max-width: 960px) {
    .brand-title {
        font-size: 2rem;
    }
    .hero-heading {
        font-size: 2.2rem;
    }
    .platforms-grid {
        gap: 12px;
    }
    .platform-card {
        flex-basis: calc((100% - 36px) / 4);
    }
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .projects-grid {
        gap: 12px;
    }
    .project-card {
        flex-basis: calc((100% - 12px) / 2);
    }
    .about-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-bottom {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: span 2;
        margin-bottom: 8px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    body {
        padding: 10px 6px;
    }
    .contact-modal .modal-dialog {
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
    }
    .contact-modal .modal-content {
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
    }
    .contact-modal .modal-footer {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
        padding: 12px 18px 18px;
    }
    .contact-modal .modal-footer > * {
        margin: 0;
    }
    .contact-modal .contact-cancel,
    .contact-modal .contact-submit {
        flex: 0 1 auto;
        min-width: 0;
        padding: 10px 14px;
        white-space: nowrap;
    }
    .contact-modal .contact-submit {
        margin-left: auto;
    }
    .brand-header {
        padding: 24px 18px 28px;
    }
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    .hero-section {
        padding: 28px 18px 24px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .hero-divider {
        margin: 14px auto 16px;
    }
    .stats-section {
        padding: 20px 14px 18px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .stat-card {
        border-right: none;
        padding: 6px;
    }
    .stat-card:last-child {
        grid-column: span 2;
    }
    .section {
        padding: 28px 18px;
    }
    .platforms-grid {
        gap: 10px;
    }
    .platform-card {
        flex-basis: calc((100% - 10px) / 2);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .service-card:last-child {
        grid-column: span 2;
    }
    .site-footer {
        padding: 26px 18px 0;
    }
    .about-card {
        padding: 20px 16px;
    }
    .footer-bottom {
        margin: 0 -18px;
        padding: 22px 18px;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 18px;
    }
    .footer-brand {
        grid-column: span 1;
        justify-content: center;
    }
    .footer-contact {
        align-items: center;
    }
    .footer-contact-trigger {
        text-align: center;
    }
    .social-badges {
        justify-content: center;
    }
    .footer-copyright {
        margin: 0 -18px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 1.75rem;
    }
    .hero-heading {
        font-size: 1.85rem;
    }
    .platforms-grid {
        gap: 10px;
    }
    .platform-card {
        min-height: 184px;
        padding: 14px 8px 16px;
    }
    .platform-icon-wrap {
        width: 90px;
        height: 90px;
        flex-basis: 90px;
    }
    .platform-icon-img {
        width: 90px;
        height: 90px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card:last-child {
        grid-column: span 1;
    }
    .projects-grid {
        gap: 10px;
    }
    .project-card {
        flex-basis: 100%;
    }
}
