* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
    --bg-gradient: linear-gradient(135deg, #ff3a3a 0%, #ffe6ec 100%);
    --card-bg: rgba(255, 255, 255, 0.98);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --radius: clamp(16px, 4vw, 32px);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(10px, 3vh, 40px) 0;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

.profile-container {
    background: var(--card-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    width: 85%;
    max-width: 1200px;
    min-height: calc(100vh - clamp(40px, 8vh, 120px));
    height: auto;
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: row;
    overflow: visible;
    position: relative;
    transition: var(--transition);
    margin: 0 auto;
}

.left-panel {
    width: 38%;
    padding: clamp(30px, 5vw, 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    height: calc(100vh - clamp(20px, 6vh, 80px));
    text-align: center;
}

.right-panel {
    width: 62%;
    padding: clamp(30px, 5vw, 60px);
    overflow-y: visible;
}

.header-actions {
    position: absolute;
    top: clamp(16px, 3vw, 32px);
    left: clamp(16px, 3vw, 32px);
    right: clamp(16px, 3vw, 32px);
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.hero-logo-container {
    margin-bottom: clamp(30px, 6vh, 64px);
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-logo {
    width: clamp(200px, 20vw, 320px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
    transition: var(--transition);
}

.profile-name-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.profile-image-small {
    width: clamp(36px, 3.5vw, 44px);
    height: clamp(36px, 3.5vw, 44px);
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    transform: scale(1.1);
}

h1 {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}

.subtitle {
    color: var(--text-muted);
    font-size: clamp(12px, 1.2vw, 14px);
    margin-bottom: 24px;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: clamp(12px, 2vw, 20px);
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icon {
    font-size: clamp(16px, 1.6vw, 20px);
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-icon:hover {
    color: #007aff;
}

.icon-btn-light:hover {
    background: #e5e5e7;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 900px;
    max-height: 95vh;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    position: relative;
}

#resumeModal .modal-content {
    padding: 20px;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Contact Modal Styles */
.modal-contact {
    max-width: 500px;
}

.contact-profile {
    text-align: center;
    margin-bottom: 24px;
}

.contact-profile h4 {
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-role {
    font-size: clamp(13px, 1.3vw, 15px);
    color: var(--text-muted);
}

.contact-info-card {
    background: #f7f7f8;
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 18px;
    color: var(--text-main);
    width: 20px;
    margin-top: 4px;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    word-break: break-all;
}

.info-text span {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.info-text label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 8px;
}

.info-text label:first-child {
    margin-top: 0;
}

.save-btn {
    padding: 14px 40px;
    font-size: 15px;
    width: auto;
}

/* Layout Grid Styles */
.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(12px, 2vw, 24px);
    margin-top: 32px;
}

.link-item {
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    padding: 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(255, 58, 58, 0.08);
    transition: var(--transition);
    border: 2px solid #ff3a3a;
    border-left: 5px solid #ff3a3a;
    position: relative;
    overflow: hidden;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff3a3a, #ff6b6b);
}

.link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 58, 58, 0.2);
    background: linear-gradient(135deg, #fff0f0 0%, #ffe6e6 100%);
    border-color: #ff6b6b;
}

.link-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-title {
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 600;
}

.link-subtitle {
    font-size: clamp(11px, 1.1vw, 13px);
    color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
    .left-panel {
        width: 45%;
    }

    .right-panel {
        width: 55%;
    }
}

@media (max-width: 900px) {
    body {
        padding: 0;
    }

    .profile-container {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        margin: 0;
        border: none;
    }

    .left-panel {
        width: 100%;
        padding: 100px 24px 40px 24px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        position: relative;
        height: auto;
    }

    .right-panel {
        width: 100%;
        padding: 40px 24px;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero-logo {
        width: 260px;
    }
}

@media (max-width: 480px) {
    .left-panel {
        padding: 80px 16px 32px 16px;
    }

    .right-panel {
        padding: 32px 16px;
    }

    .hero-logo {
        width: 200px;
    }

    .portfolio-image {
        height: 180px;
    }

    /* Make red theme more subtle on mobile */
    .link-item {
        background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
        border-width: 1px;
        border-left-width: 3px;
        box-shadow: 0 2px 8px rgba(255, 58, 58, 0.05);
    }

    .link-item::before {
        height: 2px;
    }

    .link-item:hover {
        box-shadow: 0 6px 15px rgba(255, 58, 58, 0.15);
        background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
    }
}

.section-title {
    width: 100%;
    font-size: clamp(11px, 1.1vw, 13px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-muted);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 2.5vw, 32px);
    margin-bottom: clamp(30px, 5vh, 48px);
}

.portfolio-card {
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    width: 100%;
    height: clamp(160px, 15vh, 220px);
    object-fit: cover;
    display: block;
}

.portfolio-info {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-name {
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 600;
}

.menu-dot {
    color: var(--text-muted);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-container>* {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal Headers & Controls */
.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 600;
    margin-bottom: 2px;
}

#resumeModal .modal-header {
    margin-bottom: 12px;
    position: relative;
}

.document-preview {
    width: 100%;
    background: #f5f5f7;
    border-radius: 12px;
    height: 70vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0;
    flex: 1;
    padding: 20px 0;
}

.document-preview::-webkit-scrollbar {
    width: 8px;
}

.document-preview::-webkit-scrollbar-track {
    background: #f5f5f7;
    border-radius: 10px;
}

.document-preview::-webkit-scrollbar-thumb {
    background: #ff3a3a;
    border-radius: 10px;
}

.document-preview::-webkit-scrollbar-thumb:hover {
    background: #ff5959;
}

.page-indicator {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #ff3a3a;
    z-index: 10;
}

.document-container {
    width: 90%;
    max-width: 600px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border-radius: 8px;
    overflow: hidden;
    min-height: fit-content;
}

.resume-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.custom-scrollbar {
    display: none;
}

.scrollbar-thumb {
    display: none;
}

.modal-description {
    font-size: clamp(14px, 1.4vw, 15px);
    line-height: 1.6;
    color: #444;
    text-align: center;
    margin-bottom: clamp(24px, 4vh, 32px);
}

#resumeModal .modal-description {
    display: none;
}

.modal-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

#resumeModal .modal-footer {
    position: absolute;
    top: 16px;
    right: 16px;
    width: auto;
    border: none;
    margin-top: 0;
    padding-top: 0;
    gap: 8px;
}

#resumeModal .view-btn {
    display: none;
}

.view-btn {
    background: black;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.view-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.footer-actions {
    display: flex;
    gap: 12px;
}

.icon-btn-light {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f5f7;
    border: 1px solid #e5e5e7;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

/* Full Screen Viewer Styles */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
}

.viewer-header {
    position: absolute;
    top: clamp(20px, 4vw, 40px);
    left: clamp(20px, 4vw, 40px);
    right: clamp(20px, 4vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2100;
}

.download-btn {
    background: #ff3a3a;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 58, 58, 0.3);
}

.download-btn:hover {
    background: #ff5959;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 58, 58, 0.4);
}

.close-viewer-btn {
    width: clamp(44px, 5vw, 60px);
    height: clamp(44px, 5vw, 60px);
    border-radius: 50%;
    background: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2100;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.close-viewer-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background: #f5f5f5;
}

.viewer-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 100px 40px 40px 40px;
}

.full-resume-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}