:root {
    /* 
     * TEXT POSITION CONTROLS
     * Adjust these values to move all text blocks (title, description, contact) at once
     * 
     * --text-left-offset: Move all text left/right (increase to move right, decrease to move left)
     * --text-top-offset: Move all text up/down (increase to move down, decrease to move up)
     * 
     * Example: To move all text 10px to the right and 20px down:
     *   --text-left-offset: 27px;  (17px + 10px)
     *   --text-top-offset: 20px;
     */
    --text-left-offset: 1px;
    --text-top-offset: 0px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #ffffff;
    color: #000000;
}

body {
    line-height: 1.6;
}

.container {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.student-name {
    position: absolute;
    left: var(--text-left-offset);
    top: calc(-7px + var(--text-top-offset));
    font-size: 230px;
    font-weight: 700;
    letter-spacing: 2.1px;
    color: #000000;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    white-space: nowrap;
    z-index: 11;
    text-align: left;
    display: block;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    margin-top: 0;
}

/* Photo Section */
.photo-section {
    padding: 21px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: 2px dashed #cccccc;
    padding: 0;
    position: relative;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    color: #999999;
    margin-bottom: 12px;
}

.placeholder-text {
    font-size: 0.875rem;
    color: #999999;
    font-family: 'Roboto Mono', monospace;
    text-align: center;
}

/* Image styles - use this class when replacing placeholder with actual image */
.student-photo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    padding: 0;
    box-sizing: border-box;
}

/* Content Section */
.content-section {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    min-height: 0;
    position: relative;
}

.text-block {
    max-width: 600px;
}

.description-block {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding-top: 0;
}

.description {
    font-size: 1rem;
    font-weight: 400;
    color: #000000;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    font-family: 'Roboto Mono', monospace;
    position: absolute;
    transform: none;
    left: calc(1px + var(--text-left-offset));
    top: calc(220px + var(--text-top-offset));
    width: calc(100% - 17px - 50px);
    padding-right: 50px;
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 0px;
    position: absolute;
    left: var(--text-left-offset);
    top: calc(514px + var(--text-top-offset));
    height: 138px;
    width: calc(100% - 17px - 50px);
}

.contact-item {
    font-size: 1rem;
    font-weight: 400;
    color: #000000;
    line-height: 1.6;
    margin: 0;
    font-family: 'Roboto Mono', monospace;
}

/* Responsive Design */
@media (min-width: 1400px) {
    .description {
        left: calc(1px + var(--text-left-offset));
        width: calc(100% - 17px - 50px);
    }

    .contact-block {
        left: var(--text-left-offset);
        width: calc(100% - 17px - 50px);
    }
}

@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .photo-section {
        height: 40vh;
        min-height: 0;
    }

    .content-section {
        padding: 30px;
        min-height: 0;
    }

    .student-name {
        top: calc(0px + var(--text-top-offset));
        font-size: clamp(4rem, 12vw, 8rem);
        white-space: nowrap;
        left: var(--text-left-offset);
    }

    .main-content {
        margin-top: 0;
    }

    .description {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        padding-right: 0;
        margin: 0 0 30px 0;
    }

    .contact-block {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        padding-top: 30px;
    }
}

@media (max-width: 640px) {
    .student-name {
        top: calc(0px + var(--text-top-offset));
        font-size: clamp(2.5rem, 8vw, 4rem);
        white-space: normal;
        line-height: 1.1;
        left: var(--text-left-offset);
    }

    .main-content {
        margin-top: 0;
    }

    .content-section {
        padding: 25px 20px;
    }

    .description {
        font-size: 0.95rem;
        margin: 20px;
        width: auto;
    }

    .contact-item {
        font-size: 0.95rem;
    }

    .contact-block {
        padding-top: 20px;
        gap: 6px;
    }
}
