@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600&display=swap');

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: #fff;
    color: #111;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0 5%;
    position: relative;
    overflow-x: hidden;
}

/* Background animated grid lines */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    animation: moveGrid 30s linear infinite;
    pointer-events: none;
    /* Prevent it from blocking clicks */
}

/* Fading mask so grid fades out towards edges or bottom */
body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 40%, #fff 90%);
    z-index: -1;
    pointer-events: none;
}

@keyframes moveGrid {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 60px 60px;
    }
}

/* Header Area */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 60px 0;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

/* Logo specific adjustments to make it scale correctly */
.logo {
    height: 45px;
    object-fit: contain;
    margin-bottom: 8px;
    margin-left: -5px;
    /* Adjust if logo has built-in padding */
}

.subtitle {
    font-size: 11px;
    letter-spacing: 0.8px;
    color: #555;
    font-weight: 300;
}

.nav {
    padding-top: 5px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-link {
    text-decoration: none;
    color: #000;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #555;
}

.admin-link {
    color: #e0e0e0;
    /* Very light color to be subtle/secret */
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.admin-link:hover {
    color: #111;
    /* Shows up black when hovered over */
    opacity: 1;
    transform: scale(1.1);
}

.career-link {
    color: #444;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.career-link:hover {
    color: #000;
    transform: scale(1.15);
}

/* File Upload Label */
.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px dashed #bbb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    font-family: inherit;
    transition: border-color 0.3s ease, background 0.3s ease;
    background: #fafafa;
    width: 100%;
}

.file-upload-label:hover {
    border-color: #333;
    background: #f0f0f0;
}

.file-upload-label input[type="file"] {
    display: none;
}

.file-upload-label i.fa-paperclip {
    font-size: 16px;
    color: #555;
    flex-shrink: 0;
}

/* Main Content Area */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 12vh;
}

.hero-text {
    margin-bottom: 80px;
}

.hero-text h1 {
    font-size: 40px;
    font-weight: 300;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 40px;
    min-height: 112px;
    /* Prevent layout shift */
}

/* Blinking cursor effect */
#typewriter-text::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-text p {
    font-size: 22px;
    font-weight: 300;
    color: #333;
    line-height: 1.5;
    max-width: 1100px;
    white-space: nowrap;
    /* Forces text to stay on one line */
    overflow: hidden;
    text-overflow: ellipsis;

    /* Initial state for animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Class to trigger animation */
.hero-text p.show-anim {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero-text p {
        white-space: normal;
        /* Allow wrapping on smaller screens to prevent cutting text off */
    }
}

/* Action Buttons / Contact Selection Area */
.action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Aligns toward the right */
    gap: 15px;
    margin-top: 40px;
}

.action-item {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 300;
    color: #222;

    /* Initial hidden state for animation */
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.action-item.show-anim {
    opacity: 1;
    transform: translateY(0);
}

.key-box {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #050505;
    color: #fff;
    font-weight: 500;
    font-size: 28px;
    border-radius: 6px;
    width: 48px;
    height: 56px;
    margin: 0 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.key-box:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Footer Area */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid #eaeaea;
    font-size: 11px;
    color: #888;
    font-weight: 300;
}

.footer .address {
    text-align: center;
    letter-spacing: 0.5px;
}

.footer .copyright {
    letter-spacing: 0.5px;
}

.contact-info {
    display: flex;
    gap: 15px;
}

.contact-info a {
    color: #888;
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* =============================================
   RESPONSIVE DESIGN — Mobile First Approach
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        white-space: normal;
        font-size: 18px;
    }

    .action-buttons {
        gap: 10px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    body {
        padding: 0 6%;
    }

    .header {
        padding: 30px 0 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo {
        height: 35px;
    }

    .nav {
        gap: 15px;
    }

    .contact-link {
        font-size: 12px;
    }

    .hero-text {
        margin-bottom: 40px;
    }

    .hero-text h1 {
        font-size: 24px;
        min-height: unset;
        margin-bottom: 25px;
    }

    .hero-text p {
        font-size: 16px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .action-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-top: 20px;
        justify-content: flex-start;
    }

    .action-item {
        font-size: 16px;
    }

    .key-box {
        width: 40px;
        height: 48px;
        font-size: 22px;
        margin: 0 10px;
    }

    .footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 20px 0;
    }

    .contact-info {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .linkedin-tab {
        right: -68px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .linkedin-tab:hover,
    .linkedin-tab:active {
        right: 0;
    }

    .linkedin-tab i {
        font-size: 15px;
    }

    .cookie-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        padding: 15px 18px;
    }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Start at top, not center — prevents clipping */
    padding: 40px 16px 24px;
    /* Top breathing room, side padding */
    overflow-y: auto;
    /*Scrollable overlay on mobile */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* Prevent inner scroll — let overlay scroll */
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: sticky;
    /* Stays visible as user scrolls inside overlay */
    top: 0;
    float: right;
    margin: 16px 16px 0 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #444;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.close-btn:hover {
    color: #000;
}

.modal-body {
    display: flex;
    flex-direction: row;
}

/* Left Side Form */
.contact-form-section {
    flex: 1.5;
    padding: 50px 40px;
    background-color: #fff;
}

.contact-form-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 400;
}

.contact-form-section p {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: 300;
}

.form-group {
    margin-bottom: 20px;
}

.group-label {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    margin-bottom: 10px;
    letter-spacing: 0.4px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    padding: 9px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #444;
    font-weight: 300;
    transition: border-color 0.25s ease, background 0.25s ease;
    user-select: none;
}

.radio-option:hover {
    border-color: #333;
    background: #f7f7f7;
}

.radio-option input[type="radio"] {
    accent-color: #111;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #333;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background-color: #050505;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 400;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: #333;
}

/* Right Side Info */
.contact-info-section {
    flex: 1;
    background-color: #f9f9f9;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-section h3 {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 400;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

.info-item i {
    font-size: 20px;
    color: #333;
    margin-top: 5px;
}

.info-item h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
}

.info-item p a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item p a:hover {
    color: #000;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 16px 10px 40px;
        /* Less top space on mobile */
        align-items: flex-start;
    }

    .modal-content {
        border-radius: 10px;
        width: 100%;
    }

    .modal-body {
        flex-direction: column;
    }

    .contact-form-section {
        padding: 20px 18px 20px;
    }

    .contact-info-section {
        padding: 20px 18px 30px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* Prevents iOS auto-zoom on inputs */
        padding: 12px;
    }

    .submit-btn {
        padding: 14px;
        font-size: 15px;
    }
}

/* Cookie Banner Styling */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 450px;
    background-color: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    font-weight: 300;
}

.cookie-btn {
    align-self: flex-start;
    background-color: #111;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-btn:hover {
    background-color: #444;
}



/* LinkedIn Sliding Tab */
.linkedin-tab {
    position: fixed;
    right: -80px;
    /* Hidden off screen by default, showing only icon edge */
    top: 50%;
    transform: translateY(-50%);
    background-color: #0a66c2;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px 0 0 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    box-shadow: -3px 0 15px rgba(10, 102, 194, 0.25);
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 500;
}

.linkedin-tab:hover {
    right: 0;
    /* Slides fully into view */
    box-shadow: -4px 0 20px rgba(10, 102, 194, 0.4);
}

.linkedin-tab i {
    font-size: 18px;
    flex-shrink: 0;
}

.linkedin-tab span {
    white-space: nowrap;
}