/* Reset & Base */
* { box-sizing: border-box; }
html, body { 
    height: 100%; 
    width: 100%;
    margin: 0;
    padding: 0;
}
:root {
    --sky-blue: #0ea5e9;
    --cyan: #06b6d4;
    --green: #10b981;
    --purple: #10e117;
    --text-main: #0d1117;
    --text-subtle: #465264;
    --text-muted: #5d6a7d;
    --surface: #ffffff;
    --surface-alt: #f5f8fc;
    --border-color: #d9e2ec;
    --focus: #1d6fff;
    --radius-lg: 14px;
    --radius-md: 10px;
    --shadow-sm: 0 2px 4px rgba(15,35,80,0.06), 0 1px 2px rgba(15,35,80,0.06);
    --shadow-md: 0 4px 14px -2px rgba(15,35,80,0.12), 0 2px 6px -1px rgba(15,35,80,0.08);
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--surface);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

/* Hamburger */
.hamburger {
    position: absolute;
    top: 2.2rem;
    right: 2.2rem;
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    z-index: 10;
    transition: opacity .2s;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-main);
    margin: 5px 0;
    border-radius: 2px;
    transition: all .3s cubic-bezier(.4,.0,.2,1);
}
.hamburger:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Popup Menu */
.popup-menu {
    position: fixed;
    top: 0;
    right: -370px;
    width: 320px;
    height: 100dvh;
    background: #fff;
    box-shadow: -2px 0 32px -8px rgba(0,71,171,0.10), var(--shadow-md);
    border-top-left-radius: 32px;
    border-bottom-left-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.2rem 1.2rem 1.2rem 1.2rem;
    transition: right .38s cubic-bezier(.4,.0,.2,1), opacity .2s;
    opacity: 0;
    z-index: 99;
    pointer-events: none;
}
.popup-menu.open {
    right: 0;
    opacity: 1;
    pointer-events: auto;
}
.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1.2rem;
}
.popup-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.popup-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--surface-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: background .2s, color .2s;
    box-shadow: var(--shadow-sm);
}
.popup-close:hover {
    background: #ffe5e5;
    color: #e63956;
}
.popup-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,71,171,0.08);
}
.popup-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--sky-blue);
    letter-spacing: 0.2px;
}
.popup-cards {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    margin-top: 0.5rem;
}
.popup-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--surface-alt);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 0.7rem 1rem;
    font-size: 0.98rem;
    color: var(--text-main);
    text-decoration: none;
    transition: background .2s, box-shadow .2s, transform .2s;
    cursor: pointer;
    border: 1px solid var(--border-color);
}
.popup-card:hover {
    background: #eaf3ff;
    box-shadow: 0 4px 16px -4px rgba(0,71,171,0.10);
    transform: scale(1.04);
    color: var(--sky-blue);
}
.popup-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: #f3f8ff;
    color: var(--sky-blue);
    box-shadow: 0 1px 4px rgba(0,71,171,0.08);
}
.popup-icon.whatsapp {
    background: #e6fff2;
    color: #25d366;
}
.popup-icon.facebook {
    background: #eaf3ff;
    color: #1877f3;
}

.popup-icon.x {
    background: #ffffff;
    color: #000000;
}
.popup-icon.instagram {
    background: #fff0f6;
    color: #e1306c;
}
.popup-icon.message {
    background: #f3f8ff;
    color: var(--sky-blue);
}

/* Popup Footer & Profile Circle Button */
.popup-footer {
    margin-top: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-circle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, var(--sky-blue), var(--cyan));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px -2px rgba(0,71,171,0.25), var(--shadow-md);
    position: relative;
}

.profile-circle-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(0,71,171,0.35), var(--shadow-md);
    background: linear-gradient(145deg, var(--purple), var(--sky-blue));
}

.profile-circle-btn:active {
    transform: scale(1.05);
    box-shadow: 0 4px 12px -2px rgba(0,71,171,0.25);
}

.profile-circle-btn:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

/* Profile Popup */
.profile-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.profile-popup.open {
    opacity: 1;
    visibility: visible;
}

.profile-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.profile-popup.open .profile-content {
    transform: scale(1);
}

.profile-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1rem 0;
}

.profile-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--surface-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: background 0.2s, color 0.2s;
    box-shadow: var(--shadow-sm);
}

.profile-close:hover {
    background: #ffe5e5;
    color: #e63956;
}

.profile-info {
    padding: 0 2rem 2rem;
    text-align: center;
}

.profile-photo {
    margin-bottom: 1.5rem;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 71, 171, 0.15);
    border: 4px solid #fff;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 1rem;
}

.profile-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    text-align: left;
}

/* Hide scroll on popup */
.popup-menu::-webkit-scrollbar { display: none; }

@media (max-width: 600px) {
    .popup-menu {
        width: 98vw;
        border-top-left-radius: 18px;
        border-bottom-left-radius: 18px;
        padding: 1.2rem 0.5rem 0.5rem 0.5rem;
    }
    .hamburger {
        top: 1.1rem;
        right: 1.1rem;
        width: 38px;
        height: 38px;
    }
    .profile-content {
        width: 95%;
        max-width: 90vw;
        margin: 0 auto;
        position: relative;
    }
    .profile-info {
        padding: 0 1.5rem 1.5rem;
    }
    .profile-img {
        width: 100px;
        height: 100px;
    }
    .profile-name {
        font-size: 1.3rem;
    }
    .profile-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .profile-popup {
        padding: 1rem;
        align-items: center;
        justify-content: center;
    }
    .profile-content {
        width: calc(100vw - 2rem);
        max-width: none;
        margin: 0;
        min-height: auto;
    }
    .profile-info {
        padding: 0 1rem 1rem;
    }
}

/* Reset & Base */
* { box-sizing: border-box; }
html, body { 
    height: 100%; 
    width: 100%;
    margin: 0;
    padding: 0;
}
:root {
    --sky-blue: #0ea5e9;
    --cyan: #06b6d4;
    --green: #10b981;
    --purple: #10e117;
    --text-main: #0d1117;
    --text-subtle: #465264;
    --text-muted: #5d6a7d;
    --surface: #ffffff;
    --surface-alt: #f5f8fc;
    --border-color: #d9e2ec;
    --focus: #1d6fff;
    --radius-lg: 14px;
    --radius-md: 10px;
    --shadow-sm: 0 2px 4px rgba(15,35,80,0.06), 0 1px 2px rgba(15,35,80,0.06);
    --shadow-md: 0 4px 14px -2px rgba(15,35,80,0.12), 0 2px 6px -1px rgba(15,35,80,0.08);
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--surface);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

/* Hero Layout */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: clamp(1.5rem, 3vw, 3rem) 1.25rem 2rem;
    text-align: center;
    isolation: isolate;
}

/* Decorative gradient / subtle shape */
.decor-layer {
    position: absolute;
    inset: 0;
    background: #ffffff;
    z-index: -2;
}
/* Branding */
.branding { animation: fadeIn 1s ease-out; }
.logo { width: clamp(110px, 15vw, 170px); height: auto; border-radius: 50px; display: block; margin: 0 auto 1.75rem; }

/* Content */
.content { max-width: 820px; margin-inline: auto; }
.title { font-size: clamp(2.2rem, 5vw, 3.35rem); letter-spacing: 0.5px; margin: 0 0 0.65rem; font-weight: 600; color: var(--text-main); }
.subtitle { font-size: clamp(1.05rem, 2.2vw, 1.32rem); font-weight: 500; margin: 0 0 1.4rem; color: var(--text-subtle); }
.description { font-size: clamp(0.98rem, 1.55vw, 1.08rem); line-height: 1.58; margin: 0 0 2.2rem; color: var(--text-muted); font-weight: 400; }

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
    width: 100%;
}

.service-item {
    background:white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.service-item:hover {
    background: #eaf3ff;
    border-color: var(--sky-blue);
    box-shadow: 0 8px 24px -4px rgba(0,71,171,0.15);
    transform: translateY(-2px);
}

.service-icon {
    background: linear-gradient(145deg, var(--sky-blue), var(--cyan));
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px -2px rgba(0,71,171,0.25);
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 0.8rem;
}

.service-link {
    font-size: 0.85rem;
    color: var(--sky-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.service-link:hover {
    color: var(--purple);
}

/* Actions */
.actions { display: flex; gap: clamp(0.9rem, 2vw, 1.5rem); justify-content: center; flex-wrap: wrap; }
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.35px;
    text-decoration: none;
    padding: 0.95rem 1.9rem;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: background .35s cubic-bezier(.4,.0,.2,1), transform .5s cubic-bezier(.19,1,.22,1), box-shadow .4s ease, color .35s;
    will-change: transform;
    border: 1px solid transparent;
}
.btn.primary {
    background: linear-gradient(145deg,var(--cyan),var(--sky-blue));
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn.primary:hover {
    background: linear-gradient(145deg,var(--purple),var(--sky-blue));
}
.btn.outline {
    background: var(--surface);
    color: var(--sky-blue);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}
.btn.outline:hover {
    border-color: var(--sky-blue);
    background: linear-gradient(145deg,#ffffff,#ffffff 80%);
    box-shadow: 0 6px 18px -4px rgba(0,87,220,0.25), var(--shadow-sm);
}
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.985); box-shadow: var(--shadow-sm); }

/* Footer */
.site-footer { 
    position: relative; 
    margin-top: 2rem; 
    padding: 1rem; 
    width: 100%; 
    text-align: center; 
    font-size: 0.7rem; 
    letter-spacing: 0.5px; 
    color: var(--text-muted); 
    font-weight: 400; 
    opacity: 0.9; 
}
.site-footer span { color: #e63956; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes subtleIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 1s ease forwards; }
.fade-in-delayed { animation: subtleIn 1.1s ease .15s forwards; opacity: 0; }
.fade-in-late { animation: subtleIn 1.2s ease .25s forwards; opacity: 0; }

/* Accessibility helper */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* Responsive Tweaks */
@media (max-width: 820px) {
    .subtitle { margin-bottom: 1.25rem; }
    .description { margin-bottom: 1.9rem; }
    .services {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin: 2rem 0;
    }
}
@media (max-width: 560px) {
    .actions { flex-direction: column; }
    .btn { width: 100%; }
    .site-footer { font-size: 0.62rem; }
    .hamburger { top: 1.2rem; right: 1.2rem; }
    .hero { padding: 1rem 1rem 1.5rem; }
    .popup-menu { width: calc(100vw - 20px); right: -100vw; }
    .popup-menu.open { right: 10px; }
    .services {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    .service-item {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    .service-icon {
        align-self: center;
    }
}
/* Mobile specific fixes */
@media (max-width: 480px) {
    .hero { 
        padding: 0.8rem 0.8rem 1.2rem; 
        height: 100vh;
        height: 100dvh;
        min-height: -webkit-fill-available;
    }
    body { min-height: -webkit-fill-available; }
    .hamburger { top: 1rem; right: 1rem; }
}
@media (max-height: 620px) {
    .logo { margin-bottom: 0.85rem; }
    .description { margin-bottom: 1.3rem; }
    .site-footer { bottom: .45rem; }
}
