html {
    scroll-behavior: smooth;
}

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

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 17px;
    line-height: 1.7;
    color: #333;
    background-color: #faf8f3;
}

/* Navigation */
.navbar {
    padding: 20px 0;
    background-color: #faf8f3;
    border-bottom: 1px solid #e0e0e0;
}

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

.nav-links {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.current {
    color: #000;
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.hero-text {
    max-width: 700px;
}

.intro-text {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    margin-bottom: 10px;
    font-family: 'Courier New', Courier, monospace;
}

.hero-name {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.hero-tagline {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 40px;
    color: #333;
}

.highlight {
    color: #4a90e2;
}

.highlight-red {
    color: #e74c3c;
}

.hero-description p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

.hero-description a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-description a:hover {
    color: #357abd;
    text-decoration: underline;
}

.contact-info {
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f5f3ed;
    border-radius: 8px;
    text-align: left;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Hero Image - Card Flip */
.hero-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Card flip container */
.flip-card {
    width: 100%;
    max-width: 350px;
    height: 350px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.flip-card-front {
    background-color: #fff;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card-front img, .flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Content Sections */
.news-section, .education-section {
    padding: 60px 0;
    background-color: #faf8f3;
}

.education-section {
    background-color: #f5f3ed;
}

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

.content-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.news-list, .education-list {
    list-style: none;
}

.news-list li, .education-list li {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 3px solid #4a90e2;
    padding: 15px 0 15px 20px;
}

.news-list li {
    background-color: #f5f3ed;
    border-radius: 4px;
    padding: 15px 20px;
}

.news-list {
    max-height: 350px;  /* Adjust this to fit ~3 news items */
    overflow-y: auto;
    padding-right: 10px; /* Prevents content from touching scrollbar */
}

/* Optional: Style the scrollbar to match your aesthetic */
.news-list::-webkit-scrollbar {
    width: 8px;
}

.news-list::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb {
    background: #4a90e2;
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb:hover {
    background: #357abd;
}

.news-list a, .education-list a {
    color: #4a90e2;
    text-decoration: none;
}

.news-list a:hover, .education-list a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 40px 0;
    background-color: #faf8f3;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-name {
        font-size: 3rem;
    }
    
    .hero-tagline {
        font-size: 1.5rem;
    }
    
    .hero-image {
        order: -1;
    }
}

/* Typewriter effect */
.typewriter {
    color: #e74c3c;
    border-right: 3px solid #e74c3c;
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { border-color: #e74c3c; }
    50% { border-color: transparent; }
}

/* Social Icons */
/* Social Icons */
.social-icons {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    justify-content: center;
}

.icon-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

.icon-button:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: background-color 0.3s ease;
}

.icon-button:hover .icon-circle {
    background-color: #333;
}

.icon-circle i {
    font-size: 35px;
    color: white;
}

.icon-button span {
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Image toggle link */
.image-toggle {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
    cursor: pointer;
}

.image-toggle:hover {
    color: #333;
    text-decoration: underline;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #357abd;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
