:root {
    --primary-color: #0056b3;
    /* Blue from logo */
    --secondary-color: #003d80;
    --accent-color: #fca311;
    /* Warm accent contrasting with blue */
    --bg-color: #f8f9fa;
    --text-color: #1a1a1a;
    --text-secondary: #4a4a4a;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --radius-lg: 16px;
    --radius-full: 9999px;
}

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

body {
    font-family: 'Inter', 'Sarabun', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Top Announcement Bar */
.top-announcement {
    background: linear-gradient(90deg, #0a192f 0%, #112240 100%);
    color: var(--white);
    text-align: center;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 500;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.ajarn-s-text {
    background: linear-gradient(to right, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 45px;
    /* Pushed down by top-announcement */
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: top 0.3s ease;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    /* Adjust height to fit navbar */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover .logo-img {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 125px;
    /* Navbar height + Top bar height + extra space */
    background: linear-gradient(135deg, #e0f2ff 0%, #ffffff 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 0.8s ease-out;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.highlight {
    color: var(--primary-color);
    background: linear-gradient(120deg, rgba(0, 86, 179, 0.1) 0%, rgba(0, 86, 179, 0) 100%);
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
}

.cta-group {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 12px 28px;
    border-radius: var(--radius-full);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid #e5e5e5;
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background-color: #f5f5f5;
}

.hero-image {
    animation: fadeInRight 0.8s ease-out;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    max-width: 450px;
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Features */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

.features .container {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.feature-card {
    flex: 1;
    padding: 32px;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

/* Footer */
footer {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid #e5e5e5;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        order: 1;
        margin-bottom: 32px;
    }

    .image-wrapper {
        transform: none;
        max-width: 100%;
    }

    h1 {
        font-size: 2.5rem;
    }

    .features .container {
        flex-direction: column;
    }
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--secondary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.portfolio-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    height: 200px;
    background-color: #e0e0e0;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0056b3 0%, #003d80 100%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    font-weight: 700;
}

.portfolio-info {
    padding: 24px;
}

.portfolio-info h3 {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.portfolio-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}