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

a {
    color: inherit;
    text-decoration: none;
}

:root {
    --navy: #0f172a;
    --blue-dark: #1e3a8a;
    --blue-medium: #1e40af;
    --slate-light: #f1f5f9;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-light: #cbd5e1;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #0D1B47;
}

h1, h2, h3 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 98vh;
    background: #0D1B47;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    color: var(--white);
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    font-weight: 400;
}

.hero-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-description {
    margin-bottom: 2rem;
}

.hero-description p {
    margin-bottom: 0;
    max-width: 500px;
}

.button-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    font-family: 'Instrument Sans', sans-serif;
    padding: 0.625rem 1.25rem;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    color: var(--white);
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
#linkedin-button {
    background-color: #ffffff;
    color: black;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: #1a2847;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #8b7355 0%, #6b5d52 100%);
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder:hover {
    transform: translateY(-4px);
}

/* Background Section */
.background {
    height: 100vh;
    background-image: linear-gradient(180deg, #0D1B47 0%, #1F43AD 4%, #F2C9A8 7%, #f5f1ea 11%);
    display: flex;
    align-items: center;
    padding: 4rem 0;
    position: relative;
}

.background-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    padding-top: 4rem;
}

.background-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    color: #1a1a1a;
    font-weight: 400;
}

.background-text p {
    font-size: 1rem;
    max-width: 400px;
    line-height: 1.7;
    color: #2d2d2d;
}

.background-info {
    margin-bottom: 1.5rem;
}

.background-info p {
    margin-bottom: 0;
}

.btn-work {
    font-family: 'Instrument Sans', sans-serif;
    padding: 1.5rem 0rem;
    border: none;
    background: transparent;
    color: #444444;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: left;
}

.btn-work .link-arrow {
    color: #444444;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.btn-work:hover .link-arrow {
    transform: translateX(6px);
}

.btn-work-light {
    color: #e2e2e2;
}

.btn-work-light .link-arrow {
    color: #e2e2e2;
}

.background-images {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    position: relative;
}

.image-grid {
    position: relative;
    width: 280px;
    height: 350px;
}

.grid-image {
    position: absolute;
    width: 340px;
    height: auto;
    border-radius: 0.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, filter 0.3s ease;
    border: 2px solid white;
    overflow: hidden;
}

.grid-image.draggable {
    cursor: move;
    cursor: grab;
}

.grid-image.draggable.dragging {
    cursor: grabbing;
    transition: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.grid-image.draggable.dragging img {
    filter: grayscale(0%);
}

.grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.grid-image:hover img {
    filter: grayscale(0%);
}

.grid-image:nth-child(1) {
    top: 0;
    left: 0;
    transform: rotate(-3deg);
    z-index: 3;
}

.grid-image:nth-child(2) {
    top: 20px;
    left: 30px;
    transform: rotate(2deg);
    z-index: 2;
}

.grid-image:nth-child(3) {
    top: 40px;
    left: 60px;
    transform: rotate(-1deg);
    z-index: 1;
}

.grid-image:hover {
    transform: translateY(-5px) rotate(-3deg);
    z-index: 10;
}

.grid-image:nth-child(2):hover {
    transform: translateY(-5px) rotate(2deg);
}

.grid-image:nth-child(3):hover {
    transform: translateY(-5px) rotate(-1deg);
}

/* Mobile: horizontal layout for images */
@media (max-width: 768px) {
    .image-grid {
        width: 100%;
        height: 180px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .grid-image {
        position: absolute;
        width: 340px;
        height: auto;
        border: 2px solid white;
    }

    .grid-image:nth-child(1) {
        top: 0;
        left: 50%;
        transform: translateX(-50%) rotate(0deg);
        z-index: 3;
    }

    .grid-image:nth-child(2) {
        top: 10px;
        left: 50%;
        transform: translateX(-50%) rotate(0deg);
        z-index: 2;
    }

    .grid-image:nth-child(3) {
        top: 20px;
        left: 50%;
        transform: translateX(-50%) rotate(0deg);
        z-index: 1;
    }

    .grid-image:hover {
        transform: translateX(-50%) translateY(-8px) rotate(0deg);
        z-index: 10;
    }
}

/* Outside Work Section */
.outside-work {
    height: 100vh;
    background: linear-gradient(180deg, #f5f1ea 4%, #F2C9A8 10%, #1F43AD 22%, #0D1B47 40%);
    display: flex;
    align-items: center;
    padding: 5rem 0;
    position: relative;
}

.outside-work .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.outside-work-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.outside-work-text {
    color: var(--white);
}

.outside-work-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.outside-work-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

.outside-work-video {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.video-container {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3/4;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
}

.video-container:hover {
    transform: translateY(-4px);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.video-container:hover video {
    filter: grayscale(0%);
}

/* Footer */
.footer {
    background: #020617;
    color: #94a3b8;
    padding: 3rem 0rem;
    border-top: 3px dashed rgba(255, 255, 255, 0.3);
}

/* Mission Section */
.mission .container {
    margin-bottom: 3rem;
}

.container-mission {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: flex-start;
    padding: 0 1rem;
}

.mission-content {
    color: var(--white);
    margin-bottom: 4rem;
}

.mission-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: var(--white);
}

.mission-content .italic {
    font-style: italic;

}


.mission-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0rem;
}

.footer-rhs {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    align-self: flex-start;
    text-align: right;
    color: rgba(255, 255, 255, 0.6);
}

.footer-rhs p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer-column p {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: inherit;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #cacaca;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay-1 {
    animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content {
        gap: 2.5rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .background-text h2,
    .outside-work-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0rem 1.25rem;
    }

    .hero {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-text p {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .hero-image {
        order: -1;
        justify-content: center;
    }

    .image-placeholder {
        max-width: 240px;
    }

    .button-group {
        gap: 0.625rem;
        justify-content: center;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .background {
        padding: 3rem 0;
        min-height: auto;
    }

    .background-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 2rem;
    }

    .background-text h2 {
        font-size: 2.25rem;
    }

    .background-text p {
        font-size: 0.9375rem;
        max-width: 100%;
    }

    .background-images {
        justify-content: center;
        order: 2;
    }

    .background-text {
        order: 1;
    }

    .outside-work {
        padding: 3rem 2rem;
        height: auto;
        min-height: 120vh;
        align-items: center;
    }

    .outside-work-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: center;
    }

    .outside-work-text {
        order: 1;
    }

    .outside-work-video {
        justify-content: center;
        order: 2;
    }

    .video-container {
        max-width: 340px;
    }

    .outside-work-text h2 {
        font-size: 2.25rem;
    }

    .outside-work-text p {
        font-size: 0.9375rem;
        max-width: 100%;
    }

    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .container-mission {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mission-content h2 {
        font-size: 2.25rem;
    }

    .footer-rhs {
        align-items: flex-start;
        text-align: left;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 0.875rem;
        max-width: 100%;
    }

    .image-placeholder {
        max-width: 200px;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .background {
        padding: 2rem 0;
    }

    .background-text h2 {
        font-size: 1.875rem;
    }

    .background-text p {
        font-size: 0.875rem;
    }

    .image-grid {
        width: 100%;
        height: 140px;
    }

    .grid-image {
        width: 300px;
        height: auto;
        border: 2px solid white;
    }

    .grid-image:nth-child(1) {
        top: 0;
    }

    .grid-image:nth-child(2) {
        top: 8px;
    }

    .grid-image:nth-child(3) {
        top: 16px;
    }

    .outside-work {
        margin: auto auto;
        padding: 2rem 1rem;
        height: auto;
        min-height: 140vh;
    }

    .video-container {
        max-width: 300px;
    }

    .outside-work-text h2 {
        font-size: 1.875rem;
    }

    .outside-work-text p {
        font-size: 0.875rem;
        max-width: 100%;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-column h3 {
        font-size: 1.125rem;
    }

    .footer-column h4 {
        font-size: 0.9375rem;
    }

    .mission-content h2 {
        font-size: 1.875rem;
    }

    .mission-content p {
        font-size: 0.875rem;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.95);
    color: #1a2847;
    padding: 0.875rem 1.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-size: 0.9375rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-error {
    background: rgba(239, 68, 68, 0.95);
    color: white;
}

/* Tooltip */
.tooltip-link {
    position: relative;
    display: inline-block;
}

.tooltip-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    color: #1a2847;
    padding: 0.625rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.tooltip-link::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip-link:hover::after,
.tooltip-link:hover::before {
    opacity: 1;
}