:root {
    --bg-dark: #1a1a1a;
    --paper-bg: #f4f4f4;
    --text-main: #111;
    --text-muted: #555;
    --yellow: #ffff00;
    --green-badge: #98fb98;
    --red-text: #cc3333;
    --border-color: #222;
    --blue-progress: #3b82f6;
    
    /* Software Colors */
    --ae-bg: #00005b; --ae-text: #e6e6ff;
    --pr-bg: #2a0a52; --pr-text: #e6c8ff;
    --ps-bg: #001e36; --ps-text: #31a8ff;
    --ai-bg: #330000; --ai-text: #ff9a00;
    --xd-bg: #470137; --xd-text: #ff61c6;
    --dn-bg: #00331f; --dn-text: #33ff99;
    --maya-bg: #004d66; --maya-text: #b3e6ff;
    --figma-bg: #222222;
}

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

body {
    background-color: var(--bg-dark);
    /* Noise texture for background */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Resume Container */
.resume-wrapper {
    max-width: 900px;
    width: 100%;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

.resume-paper {
    background-color: var(--paper-bg);
    /* subtle grid texture for paper */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 20px 20px, 20px 20px, auto;
    padding: 50px;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.05);
}

/* Header Section */
.header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

/* ID Card Component */
.id-card-wrapper {
    position: relative;
    width: 65%;
    z-index: 10;
}

.paper-clip {
    position: absolute;
    top: -40px;
    left: 40px;
    z-index: 20;
    transform: rotate(-10deg);
}

.id-card {
    background-color: #e3e3e3;
    border: 2px solid var(--border-color);
    display: flex;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    position: relative;
}

.id-left {
    width: 35%;
    padding: 20px;
    border-right: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.profile-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
}

.profile-bg-yellow {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background-color: #e5cd21;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    transform: rotate(5deg);
}

.profile-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(5% 5%, 95% 0%, 100% 90%, 0% 100%);
}

.id-right {
    width: 65%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.name {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 15px;
}

.info-grid {
    border: 2px solid var(--border-color);
    border-radius: 5px;
    margin-top: auto;
    font-size: 0.8rem;
}

.info-row {
    display: flex;
}

.border-bottom {
    border-bottom: 2px solid var(--border-color);
}

.border-right {
    border-right: 2px solid var(--border-color);
}

.info-cell {
    flex: 1;
    padding: 5px 8px;
}

.info-cell strong {
    background-color: #ccc;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 5px;
}

.contacts-row {
    display: flex;
}

.contacts-list {
    flex: 1;
    padding: 8px;
    border-right: 2px solid var(--border-color);
}

.contact-item {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

/* Emulate Behance link style with a border around it */
.contact-item:last-child {
    border: 1px solid var(--text-main);
    padding: 2px 5px;
    display: inline-flex;
}

.qr-section {
    width: 80px;
    display: flex;
    padding: 5px;
    align-items: center;
    justify-content: center;
}

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.7rem;
    color: var(--red-text);
    margin-right: 5px;
}

.qr-placeholder {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.lang-row {
    padding: 5px 8px;
    gap: 15px;
    align-items: center;
}

.lang-cell {
    font-size: 0.75rem;
}

.lang-cell strong {
    margin-right: 5px;
}

.proficiency {
    color: #888;
}

/* Handwritten Note Component */
.handwritten-note {
    width: 35%;
    padding-left: 30px;
    font-family: 'Caveat', cursive;
    color: var(--red-text);
    font-size: 1.4rem;
    line-height: 1.2;
    transform: rotate(2deg);
}

.circled {
    position: relative;
    display: inline-block;
}

.circled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 120%;
    border: 2px solid var(--red-text);
    border-radius: 50%;
    border-top-color: transparent;
    border-right-color: transparent;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.fa-arrow-turn-down {
    display: block;
    text-align: right;
    margin-right: 20px;
    font-size: 1.2rem;
}

.note-links {
    margin-top: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

.note-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.note-link i {
    margin-top: 3px;
}

.crossed-out {
    position: relative;
    display: inline-block;
    padding: 2px 5px;
    border: 1px solid var(--text-main);
    color: var(--text-muted);
}

.crossed-out::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--red-text);
}

/* Main Content Layout */
.main-content {
    display: flex;
    gap: 40px;
}

.column {
    flex: 1;
}

.left-col {
    flex: 1.1;
}

.right-col {
    flex: 0.9;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.highlight {
    position: relative;
    z-index: 1;
}

.highlight::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -5%;
    width: 110%;
    height: 90%;
    background-color: var(--yellow);
    z-index: -1;
    border-radius: 5px;
    transform: rotate(-1deg);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 0;
    left: 4px;
    width: 1px;
    border-left: 2px dashed #999;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-point {
    position: absolute;
    top: 4px;
    left: -21px;
    width: 10px;
    height: 10px;
    background-color: var(--yellow);
    border: 1px solid var(--text-main);
    border-radius: 50%;
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.role-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.company-info {
    font-size: 0.9rem;
    margin-bottom: 3px;
    color: var(--text-muted);
}

.badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
}

.full-time, .internship, .pct {
    background-color: var(--green-badge);
}

.location-text {
    font-size: 0.8rem;
    color: #888;
}

/* Area of Expertise Collage */
.expertise-section {
    margin-bottom: 50px;
}

.collage {
    position: relative;
    height: 250px;
    width: 100%;
}

.collage-item {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 2px 5px 10px rgba(0,0,0,0.15);
}

.tape {
    background-color: #e8dcc4;
    padding: 15px 30px;
    top: 10px;
    right: 20px;
    transform: rotate(-5deg);
    z-index: 4;
    border: 1px solid #d0c0a0;
    gap: 10px;
}

.tape i {
    font-size: 1.5rem;
}

.sticky-note {
    background-color: #98fb98;
    width: 120px;
    height: 100px;
    top: 60px;
    right: 40px;
    transform: rotate(5deg);
    z-index: 3;
}

.triangle {
    width: 120px;
    height: 120px;
    top: 90px;
    left: 20px;
    transform: rotate(-15deg);
    z-index: 2;
    box-shadow: none;
    filter: drop-shadow(2px 5px 5px rgba(0,0,0,0.2));
}

.triangle-inner {
    width: 100%;
    height: 100%;
    background-color: #ff4d4d;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 15px;
}

.circle {
    background-color: #b3e6ff;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    top: 80px;
    right: -10px;
    z-index: 5;
    border-radius: 50% 50% 50% 50% / 45% 55% 45% 55%; /* Irregular circle */
}

/* Software Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px 20px;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Folder Icon Design */
.folder {
    width: 60px;
    height: 50px;
    position: relative;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    border-top-left-radius: 0;
}

.folder-tab {
    position: absolute;
    top: -8px;
    left: 0;
    width: 25px;
    height: 12px;
    border-radius: 4px 4px 0 0;
}

.folder-body {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

/* Software Specific Colors */
.ae { background-color: var(--ae-bg); color: var(--ae-text); }
.ae .folder-tab { background-color: var(--ae-bg); }

.pr { background-color: var(--pr-bg); color: var(--pr-text); }
.pr .folder-tab { background-color: var(--pr-bg); }

.ps { background-color: var(--ps-bg); color: var(--ps-text); }
.ps .folder-tab { background-color: var(--ps-bg); }

.ai { background-color: var(--ai-bg); color: var(--ai-text); }
.ai .folder-tab { background-color: var(--ai-bg); }

.xd { background-color: var(--xd-bg); color: var(--xd-text); }
.xd .folder-tab { background-color: var(--xd-bg); }

.dn { background-color: var(--dn-bg); color: var(--dn-text); }
.dn .folder-tab { background-color: var(--dn-bg); }

.maya { background-color: var(--maya-bg); color: var(--maya-text); }
.maya .folder-tab { background-color: var(--maya-bg); }

.figma { background-color: var(--figma-bg); }
.figma .folder-tab { background-color: var(--figma-bg); }

/* Figma Logo using CSS */
.figma-logo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    width: 20px;
    height: 30px;
}

.f-top-left { background: #f24e1e; border-radius: 50% 0 0 50%; }
.f-top-right { background: #ff7262; border-radius: 50%; }
.f-mid-left { background: #a259ff; border-radius: 50% 0 0 50%; }
.f-mid-right { background: #1abcfe; border-radius: 50%; }
.f-bot-left { background: #0acf83; border-radius: 50% 0 50% 50%; grid-column: 1; }

.skill-name {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 5px;
    text-align: center;
}

.progress-track {
    width: 100%;
    height: 6px;
    background-color: #ddd;
    border-radius: 3px;
    border: 1px solid #ccc;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--blue-progress);
    border-radius: 3px;
}

/* Responsive adjustments */
@media (max-width: 850px) {
    .header {
        flex-direction: column;
    }
    .id-card-wrapper {
        width: 100%;
        margin-bottom: 30px;
    }
    .handwritten-note {
        width: 100%;
        padding-left: 0;
        transform: none;
    }
    .main-content {
        flex-direction: column;
    }
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 500px) {
    .id-card {
        flex-direction: column;
    }
    .id-left, .id-right {
        width: 100%;
        border-right: none;
    }
    .id-left {
        border-bottom: 2px solid var(--border-color);
        aspect-ratio: auto;
        height: 200px;
    }
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
