/* Reset and Base Styles */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Definitions */
@font-face   {
    font-family:Chillen;
    src: url(fonts/Chillen.ttf);
    }

@font-face   {
    font-family:sfpro;
    src: url(fonts/SF-Pro.ttf);
    }

@font-face   {
    font-family:washington;
    src: url(fonts/Washington.ttf);
    }
    

@font-face {
    font-family:Sequel;
    src: url(fonts/Sequel_Demo.ttf)
}

/* Global Styles */
body {
    background-color: #f5f5f5;
    color: #333333;
    font-family: sfpro, Arial, sans-serif;
    padding-top: 80px;
    font-weight: 400;
}

h1  {
    color: #1b1b1b;
    text-align: center;
    font-size: 40pt;
    font-weight: 500;
    margin: 10px 0;
}

h2 {
    color: #000000;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Utility Classes */
.center{
    margin-left: auto;
    margin-right:auto;
    display:block;
    padding: 20px;
}

.home-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    margin-top: 20px;
}

.intro-text {
    flex: 1;
    padding-right: 60px;
    font-family: sfpro, Arial, sans-serif;
    margin-left: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(-20px);
}

.intro-container {
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 0.5s;
}

.intro-line {
    font-size: 48px;
    color: #000000;
    margin-bottom: 0;
}

.adjective-container {
    height: 80px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.adjective {
    position: absolute;
    font-size: 56px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(60px);
}

/* Color classes for adjectives */
.adjective[data-color="1"] {
    color: #fa4483;
}

.adjective[data-color="2"] {
    color: #f49c14;
}

.adjective[data-color="3"] {
    color: #2cab64;
}

.adjective[data-color="4"] {
    color: #2c84bc;
}

/* Make the first and last adjective (Happy Wang) bold */
.adjective:nth-child(1), .adjective:nth-child(7) {
    font-weight: 500;
    font-size: 60px;
    color: #F5C500;
}

.adjective:nth-child(1) {
    animation: slideIn 1s forwards, slideOut 1s forwards;
    animation-delay: 1.5s, 3s;
}

.adjective:nth-child(2) {
    animation: slideIn 1s forwards, slideOut 1s forwards;
    animation-delay: 4.5s, 6s;
}

.adjective:nth-child(3) {
    animation: slideIn 1s forwards, slideOut 1s forwards;
    animation-delay: 7.5s, 9s;
}

.adjective:nth-child(4) {
    animation: slideIn 1s forwards, slideOut 1s forwards;
    animation-delay: 10.5s, 12s;
}

.adjective:nth-child(5) {
    animation: slideIn 1s forwards, slideOut 1s forwards;
    animation-delay: 13.5s, 15s;
}

.adjective:nth-child(6) {
    animation: slideIn 1s forwards, slideOut 1s forwards;
    animation-delay: 16.5s, 18s;
}

.adjective:nth-child(7) {
    animation: slideIn 1s forwards;
    animation-delay: 19.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(40px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from { 
        opacity: 1;
        transform: translateY(0);
    }
    to { 
        opacity: 0;
        transform: translateY(-40px);
    }
}

/* Responsive styling for home container */
@media (max-width: 992px) {
    .home-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin-top: 10px;
    }
    
    .intro-text {
        padding-right: 0;
        margin-bottom: 20px;
        margin-left: 0;
    }
    
    .happyface-container {
        width: 100%;
        max-width: 400px;
        margin: 20px auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .spacer {
        height: 15vh;
    }
}

@media (max-width: 576px) {
    .home-container {
        margin-top: 5px;
    }
    
    .spacer {
        height: 10vh;
    }
    
    .intro-line {
        font-size: 36px;
    }
    
    .adjective {
        font-size: 38px;
        position: absolute;
        left: 0;
        right: 0;
        text-align: center;
        width: 100%;
        transform: none;
        font-weight: 400;
    }
    
    .adjective:nth-child(1), .adjective:nth-child(7) {
        font-size: 38px;
        font-weight: 500;
    }
    
    .adjective:nth-child(6) {
        font-size: 38px;
    }
    
    .adjective-container {
        height: 60px;
        position: relative;
        width: 100%;
        overflow: visible;
    }
    
    .happyface-container {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 30px auto;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
    
    .happyface {
        width: 100%;
        height: auto;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }

    h1 {
        font-size: 36pt;
    }

    .home-button {
        display: block;
        margin: 40px auto 0;
        text-align: center;
    }

    .hover-prompt {
        display: none;
    }
}

.happyface-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.happyface {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.1s ease;
    opacity: 0;
}

.happyface:first-child {
    opacity: 1;
}

.happyface-container:hover .happyface:nth-child(1) {
    opacity: 0;
}

.happyface-container:hover .happyface:nth-child(2) {
    opacity: 1;
}

.happyface-container:hover .happyface:nth-child(3) {
    opacity: 0;
}

.happyface-container:hover .happyface:nth-child(4) {
    opacity: 0;
}

.happyface-container:hover .happyface:nth-child(5) {
    opacity: 0;
}

.happyface-container:hover .happyface:nth-child(6) {
    opacity: 0;
}

.happyface-container:hover .happyface:nth-child(7) {
    opacity: 0;
}

.spacer {
    height: 25vh;
    width: 100%;
}

.top-margin{
    margin-top: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    }

a:hover{
    color:#003366;
}

#navbar {
    border: none;
    border-bottom: 2px solid #333333;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    justify-content: center;
    min-height: 70px;
    z-index: 1000;
}

.nav-logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    z-index: 1;
    width: 80px;
}

#navbar ul {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 0;
}

#navbar li {
    margin: 0 1.8vw;
    list-style-type: none;
    text-align: center;
}

#navbar li a {
    font-size: 13pt;
    text-decoration: none;
    color: #333333;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 10px;
}

#navbar li a:hover {
    background-color: #F5C500;
    color: white;
}

@media (max-width: 768px) {
    #navbar li {
        margin: 0 1.5vw;
    }
    
    #navbar li a {
        font-size: 12pt;
        padding: 8px 12px;
    }

    .nav-logo {
        width: 60px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    #navbar li {
        margin: 0 1vw;
    }
    
    #navbar li a {
        font-size: 11pt;
        padding: 8px 10px;
    }

    .nav-logo {
        width: 50px;
        left: 5px;
    }
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 30px auto;
    text-align: center;
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.home-button {
    display: inline-block;
    margin-top: 40px;
    padding: 8px 16px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 16px;
    width: fit-content;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 4s;
}

.home-button:hover {
    background-color: #F5C500;
    color: #ffffff;
}

.hover-prompt {
    position: absolute;
    bottom: -10px;
    left: 55%;
    transform: translateX(calc(-50% - 25px));
    text-align: center;
    font-size: 14px;
    color: #666;
    font-style: italic;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 0.5s;
    z-index: 10;
    width: 100%;
}

.link-title {
    font-size: 18px;
    margin: 10px 0 5px;
    color: #000000;
    font-weight: 700;
}

.link-card .link-title {
    font-weight: 700;
    color: #000000;
}

@keyframes moveUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: moveUp 0.8s forwards;
}

.link-card:nth-child(1) {
    animation-delay: 0.2s;
}

.link-card:nth-child(2) {
    animation-delay: 0.4s;
}

.link-card:nth-child(3) {
    animation-delay: 0.6s;
}

.link-card:nth-child(4) {
    animation-delay: 0.8s;
}

.link-card:nth-child(5) {
    animation-delay: 1s;
}

.link-card:nth-child(6) {
    animation: moveUp 1s forwards;
    animation-delay: 1.2s;
}

.link-card:nth-child(7) {
    animation: moveUp 1s forwards;
    animation-delay: 1.4s;
}

.link-card:nth-child(8) {
    animation: moveUp 1s forwards;
    animation-delay: 1.6s;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-links a {
    opacity: 1;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    color: #000000;
    font-size: 14px;
    font-weight: 300;
}

/* Button group styles */
.button-group {
    display: flex;
    gap: 10px;
}

.card-button.secondary {
    background-color: #F7DD72;
    color: #000000;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    margin: 0;
}

/* Canva embed styles */
.canva-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    padding-bottom: 0;
    box-shadow: 0 2px 8px 0 rgba(63,69,81,0.16);
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    will-change: transform;
}

.canva-embed iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: none;
    padding: 0;
    margin: 0;
}

/* Loading Page Styles */
.loading-page {
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'sfpro', sans-serif;
    color: #fff;
}

.loading-logo-container {
    width: 200px;
    height: 200px;
    margin-bottom: 50px;
    animation: float 3s ease-in-out infinite;
}

.loading-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loading-progress-container {
    width: 80%;
    max-width: 500px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.loading-progress-bar {
    width: 0%;
    height: 10px;
    background-color: #fff;
    transition: width 0.3s ease;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.about-text strong {
    font-weight: 500;
}

.content-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: moveUp 0.8s forwards;
    margin-bottom: 30px;
}

#website-design-card {
    animation: moveUp 0.8s forwards;
    animation-delay: 3s;
    animation-fill-mode: forwards;
}

.content-card:nth-child(1) {
    animation-delay: 0.2s;
}

.content-card:nth-child(2) {
    animation-delay: 0.4s;
}

.content-card:nth-child(3) {
    animation-delay: 0.6s;
}

.content-card:nth-child(4) {
    animation-delay: 0.8s;
}

.content-card:nth-child(5) {
    animation-delay: 1.2s;
}

.content-card:nth-child(6) {
    animation-delay: 1.6s;
}

.content-card:nth-child(7) {
    animation-delay: 1.8s;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.intro-video-container {
    width: 75%;
    max-width: 918px;
    margin: 0 auto 15px;
    padding: 0 20px;
    text-align: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 20px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-link {
    display: inline-block;
    color: #F5C500;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.video-link:hover {
    color: #003366;
}

.video-description {
    font-size: 14px;
    color: #666;
    margin: 10px 0 0 0;
    line-height: 1.4;
}

.scroll-arrow {
    font-size: 28px;
    color: #F5C500;
    transition: color 0.3s ease;
    display: inline;
}

.scroll-indicator {
    text-align: center;
    margin: 0 auto 20px;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    animation-delay: 0.2s;
    width: 75%;
    max-width: 918px;
    cursor: pointer;
    position: relative;
    padding: 10px 0;
}

.scroll-indicator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #F5C500;
    transform: translateY(-50%);
}

.scroll-indicator span {
    display: inline-block;
    font-size: 16px;
    color: #F5C500;
    font-weight: 500;
    background-color: #f5f5f5;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .intro-video-container {
        width: 75%;
        padding: 0 15px;
        margin: 0 auto 10px;
    }

    .scroll-indicator {
        width: 75%;
        padding: 8px 0;
    }
}

@media (max-width: 576px) {
    .intro-video-container {
        width: 75%;
        padding: 0 10px;
        margin: 0 auto 8px;
    }

    .scroll-indicator {
        width: 75%;
        padding: 6px 0;
    }
}