:root {
    --gold: #C59F59;
    --gold-gradient: linear-gradient(135deg, #C59F59 0%, #E3C985 50%, #C59F59 100%);
    --bg-color: #FAFAFA;
    --card-bg: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    --border-radius: 16px;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --font-display: 'Playfair Display', 'Bodoni Moda', Georgia, serif;
    --font-body: 'Cormorant Garamond', Georgia, serif;
}

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

html, body {
    height: 100dvh;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto; /* fit-to-screen layout, but never clip on short viewports */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    padding: 1.5dvh 3vw;
}

h1, h2, h3, h4, .logo, .greeting {
    font-family: var(--font-display);
}

.container {
    max-width: 500px;
    width: 100%;
    min-height: 97dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(10px, 1.5dvh, 20px);
    position: relative;
}

/* Resume Button (top right) */
.resume-btn {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--gold);
    border-radius: 30px;
    background: var(--card-bg);
    color: var(--gold);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: clamp(0.65rem, 1.6dvh, 0.8rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--card-shadow);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.resume-btn svg {
    width: clamp(12px, 2dvh, 15px);
    height: clamp(12px, 2dvh, 15px);
}

.resume-btn:hover {
    background: var(--gold);
    color: #fff;
}

.resume-btn:active {
    transform: scale(0.96);
}

/* Header & Logo */
.header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: clamp(15px, 2.5dvh, 25px); /* clear the absolute resume pill */
}

.logo {
    font-size: clamp(3rem, 7dvh, 4.5rem);
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1;
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold);
}

.black-text {
    color: #111;
}

.logo-subtitle {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 1dvh 0 2.5dvh;
}

.logo-subtitle .line {
    height: 1px;
    width: 45px;
    background-color: var(--gold);
}

.logo-subtitle .text {
    font-family: var(--font-display);
    font-size: clamp(0.65rem, 1.6dvh, 0.8rem);
    letter-spacing: 10px;
    color: #111;
    font-weight: 500;
}

.greeting {
    font-size: clamp(1.8rem, 4.5dvh, 2.5rem);
    font-weight: 500;
    margin-bottom: 1.5dvh;
    color: #111;
}

.intro-sub {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(0.9rem, 2.2dvh, 1.05rem);
    color: #444;
    font-style: normal;
    font-weight: 400;
    margin-bottom: 1dvh;
}

.diamond-divider {
    margin-bottom: 1dvh;
}
.diamond-divider svg {
    width: 8px;
    height: 8px;
}

.skills {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: clamp(0.55rem, 1.5dvh, 0.7rem);
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.skills .dot {
    color: var(--gold);
}

/* Shared Card Styles */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

/* Profile Card */
.profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.2dvh 15px;
}

.profile-image {
    width: clamp(50px, 8dvh, 75px);
    height: clamp(50px, 8dvh, 75px);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08); /* photo has a baked-in black ring; scale hides it */
    display: block;
}

.profile-info {
    flex: 1;
}

.name-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.name-container h3 {
    font-size: clamp(1.1rem, 2.5dvh, 1.3rem);
    font-weight: 700;
}

.verified-icon {
    width: 14px;
    height: 14px;
}

.roles {
    font-family: var(--font-display);
    font-size: clamp(0.55rem, 1.5dvh, 0.65rem);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 4px;
}

.bio {
    font-size: clamp(0.8rem, 2dvh, 0.9rem);
    color: var(--text-muted);
    line-height: 1.2;
}

/* Links Container */
.links-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(4px, 0.9dvh, 8px) clamp(6px, 1.5vw, 10px);
    width: 100%;
}

.link-card {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: clamp(5px, 1dvh, 9px) 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

.link-card:active {
    transform: scale(0.98);
}

.link-icon {
    width: clamp(24px, 4.5dvh, 32px);
    height: clamp(24px, 4.5dvh, 32px);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.link-icon svg {
    width: clamp(13px, 2.8dvh, 17px);
    height: clamp(13px, 2.8dvh, 17px);
}

/* Colors */
.linkedin-icon { background-color: #E7F0F8; color: #0A66C2; }
.github-icon { background-color: #EFEFEF; color: #181717; }
.instagram-icon { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.portfolio-icon { background-color: #EFEFEF; color: #181717; }
.website-icon { background-color: #F5EFE3; color: #C59F59; }
.whatsapp-icon { background-color: #E8F5E9; color: #25D366; }
.phone-icon { background-color: #E3F2FD; color: #1976D2; }
.email-icon { background-color: #F3E5F5; color: #9C27B0; }

.link-info {
    flex-grow: 1;
    min-width: 0;
}

.link-info h4 {
    font-size: clamp(0.9rem, 2.1dvh, 1rem);
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-info p {
    font-size: clamp(0.75rem, 1.7dvh, 0.85rem);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Footer Card */
.footer-card {
    display: flex;
    padding: 1dvh 15px;
    align-items: center;
}

.quote-section {
    flex: 1;
    position: relative;
    padding-right: 5px;
}

.quote-mark {
    position: absolute;
    top: -12px;
    left: -10px;
    font-size: 2.2rem;
    font-family: var(--font-display);
    color: var(--gold);
    opacity: 0.8;
}

.quote-text {
    font-size: clamp(0.8rem, 2dvh, 1.05rem);
    font-style: italic;
    font-weight: 500;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.quote-author {
    font-family: var(--font-display);
    font-size: clamp(0.75rem, 1.8dvh, 0.9rem);
    font-weight: 600;
    color: var(--gold);
}

.footer-divider {
    width: 1px;
    height: 3dvh;
    background-color: #EEEEEE;
    margin: 0 10px;
}

.social-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-section p {
    font-family: var(--font-display);
    font-size: clamp(0.75rem, 1.9dvh, 0.95rem);
    font-weight: 600;
    margin-bottom: 4px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    color: #333;
    width: clamp(13px, 2.6dvh, 17px);
    height: clamp(13px, 2.6dvh, 17px);
    transition: color 0.2s ease;
}

.social-icon:hover {
    color: var(--gold);
}

/* Bottom Footer */
.bottom-footer {
    display: flex;
    justify-content: space-between;
    font-size: clamp(0.65rem, 1.4dvh, 0.75rem);
    color: var(--text-muted);
    padding-top: 0.5dvh;
}

.heart {
    color: #E25555;
}

