@import url('https://fonts.cdnfonts.com/css/satoshi');
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Satoshi', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0e1017;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0e1017;
    z-index: -1;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(33, 41, 60, 0.95);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: backInDown 1.5s ease-out 13s both;
}

.navbar.scrolled {
    background: rgba(33, 41, 60, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo .logo-circle {
    width: 80px;
    height: 80px;
    border: 2px solid #e0b17a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    background-color: #222A3D;
    position: relative;
    top: 15px;
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav-logo .logo-circle:hover {
    background: #e0b17a;
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    font-family: "Kanit", sans-serif;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e0b17a;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #e0b17a;
}

/* Hamburger Menu - Hidden on Desktop */
.nav-toggle {
    display: none;
}

/* Hero Section */
.hero {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 100px;
    margin-bottom: 4rem;
    margin-top: 7rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('urn.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center 30%;
    opacity: 0.3;
    z-index: 1;
    animation: zoomIn 2s ease-out;
}

.urn-controller-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.urn-controller-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    opacity: 0.8;
    animation: backInDown 1.5s ease-out 2s both, zoomOut 1s ease-in 11.9s both;
    margin-bottom: 3%;
}

.urn-analytics-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.urn-analytics-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    opacity: 0.8;
    animation: backInUp 1.5s ease-out 3.5s both, zoomOut 1s ease-in 11.9s both;
    margin-bottom: 0%;
}

.urn-hammer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    pointer-events: none;
}

.urn-hammer-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    opacity: 0.8;
    animation: backInLeft 1.5s ease-out 5s both, zoomOut 1s ease-in 11.9s both;
    margin-left: -5%;
}

.urn-learning-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.urn-learning-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    opacity: 0.8;
    animation: backInRight 1.5s ease-out 6.5s both, zoomOut 1s ease-in 11.9s both;
    margin-right: -5%;
}

.hero-content {
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 2rem 0;
    max-width: 400px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
    color: #E0B17A;
    text-shadow: none;
    font-family: "Kanit", sans-serif;
    animation: fadeInDown 1.5s ease-out 13s both;
}

.title-line {
    display: block;
}

.title-line:nth-child(2) {
    color: #E0B17A;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0;
    line-height: 1.6;
    animation: fadeIn 2.4s ease-out 8.5s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    rotate: 180deg;
    animation: slideInUp 0.8s ease-out 15s both;
}

.scroll-arrow {
    width: 4px;
    height: 40px;
    background: #e0b17a;
    position: relative;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -6px;
    width: 16px;
    height: 16px;
    background: #e0b17a;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -2px;
    width: 8px;
    height: 8px;
    background: #e0b17a;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.section-title {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.logo-circle.large {
    width: 120px;
    height: 120px;
    border: 3px solid #e0b17a;
    font-size: 2rem;
    font-weight: 700;
}

/* About Section */
.about {
    background: rgba(65, 81, 131, 0.8);
    backdrop-filter: blur(10px);
    padding: 8rem 0;
    margin-bottom: 4rem;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0b17a, transparent);
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0b17a, transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-portrait {
    display: flex;
    justify-content: center;
}

.portrait-frame {
    width: 300px;
    height: 400px;
    border: 3px solid #e0b17a;
    position: relative;
    overflow: hidden;
    background-color: #222A3D;
}

.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portrait-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #313640 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #e0b17a;
    font-weight: 600;
}

.about-bio {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0b17a;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e0b17a;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #e0b17a;
    color: #0a0a0a;
    transform: translateY(-2px);
}

/* Services Section */
.services {
    background: rgba(65, 81, 131, 0.8);
    backdrop-filter: blur(10px);
    padding: 8rem 0;
    margin-bottom: 4rem;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0b17a, transparent);
}

.services::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0b17a, transparent);
}

.services-content {
    max-width: 800px;
    margin: 0 auto;
}

.services-list {
    margin-top: 4rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-bullet {
    width: 12px;
    height: 12px;
    background: #e0b17a;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
    position: relative;
}

.service-bullet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    border: 2px solid #e0b17a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.service-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

/* Work Gallery Section */
.work {
    background: rgba(49, 54, 64, 0.9);
    backdrop-filter: blur(10px);
    padding: 8rem 0;
    margin-bottom: 4rem;
    position: relative;
}

.work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0b17a, transparent);
}

.work::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0b17a, transparent);
}

.work-gallery {
    margin-top: 4rem;
    position: relative;
}

.gallery-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.gallery-container::-webkit-scrollbar {
    display: none;
}

.work-card {
    min-width: 350px;
    height: 450px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-10px);
}

.work-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, #313640 0%, #2a2a2a 100%);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #313640 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #e0b17a;
    font-weight: 600;
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(64, 64, 64, 0.99));
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.work-card:hover .work-overlay {
    transform: translateY(0);
}

.work-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.work-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

/* Work section link styling to match navbar */
.work a {
    color: #e0b17a;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    font-family: "Kanit", sans-serif;
}

.work a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e0b17a;
    transition: width 0.3s ease;
}

.work a:hover::after {
    width: 100%;
}

.work a:hover {
    color: #e0b17a;
    font-weight: 600;
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.gallery-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #e0b17a;
    background: rgba(14, 16, 23, 0.9);
    color: #e0b17a;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.gallery-btn:hover {
    background: #e0b17a;
    color: #0a0a0a;
    transform: scale(1.1);
}

.gallery-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Contact Section */
.contact {
    background: rgba(49, 54, 64, 0.9);
    backdrop-filter: blur(10px);
    padding: 8rem 0;
    margin-bottom: 4rem;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0b17a, transparent);
}

.contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0b17a, transparent);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-input:focus {
    outline: none;
    border-color: #e0b17a;
    background: rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-label {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: 0.5rem;
    left: 1rem;
    font-size: 0.75rem;
    color: #e0b17a;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #e0b17a 0%, #744725 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(224, 177, 122, 0.3);
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: #415183;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #e0b17a;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(33, 41, 60, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Hamburger Menu Button */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
    }
    
    .nav-toggle span {
        width: 100%;
        height: 3px;
        background: #e0b17a;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .portrait-frame {
        width: 250px;
        height: 300px;
    }
    
    .services-list {
        margin-top: 2rem;
    }
    
    .service-item {
        gap: 1rem;
    }
    
    .work-card {
        min-width: 280px;
        height: 350px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .work-card {
        min-width: 250px;
        height: 300px;
    }
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Remove unused styles */
.logo-circle.small {
    display: none;
}
.footer-logo {
    display: none;
}

@keyframes zoomIn {
    from {
        opacity: 0.3;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    50% {
        opacity: 0.3;
    }
    to {
        opacity: 0.3;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) translateX(-50%);
    }
}

@keyframes backInDown {
    0% { opacity: 0; transform: translateY(-1200px) scale(0.7); }
    80% { transform: translateY(0px) scale(0.7); }
    100% { transform: translateY(0px) scale(1); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes zoomOut {
    0% { opacity: 1; }
    50% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
    100% { opacity: 0; }
} 