/* Circular logo - navbar */
.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    border-radius: 50%;
    object-fit: cover;
    width: 45px !important;
    height: 45px !important;
    margin-right: 0.5rem;
}

/* Reduce hero section spacing */
#hero {
    min-height: auto !important;
    padding-bottom: 2rem !important;
}

/* Reduce spacing between sections */
#recent-blogs {
    padding-top: 2rem !important;
}

#recent-videos {
    padding-top: 2rem !important;
}

/* Navbar items alignment fix */
.navbar-nav .nav-item.navbar-text {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item .nav-link,
.navbar-nav .nav-item .text-center,
.navbar-nav .nav-item .lang-switcher {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Theme toggle */
#theme-toggle {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

/* Language Switcher */
.lang-switcher .lang-flag {
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-switcher .lang-flag:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Page transition - smooth fade */
body {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* About Me Section */
#about-me .content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* About Page Spacing */
.page-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.page-content > p:first-of-type + h3,
.page-content h3:first-of-type {
    margin-top: 1.5rem;
}

.page-content ul {
    margin-bottom: 1rem;
}

.page-content .skills-grid {
    margin-bottom: 1.5rem;
}

.page-content .cert-grid {
    margin-bottom: 0.5rem;
}

#about-me .about-skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 2rem;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

#about-me .about-skills li {
    position: relative;
    padding-left: 1rem;
    list-style: none;
}

#about-me .about-skills li::before {
    content: "▹";
    position: absolute;
    left: -0.5rem;
    color: var(--primary-color, #c9a227);
}

/* AWS Certifications Grid */
.cert-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: center !important;
    padding: 0.5rem 0 !important;
}

.cert-grid img {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    object-fit: contain !important;
    transition: transform 0.2s ease;
}

.cert-grid img:hover {
    transform: scale(1.15);
}

/* Skills Tags Grid */
.skills-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.6rem !important;
    justify-content: flex-start !important;
    padding: 0.5rem 0 1rem 0 !important;
}

.skill-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.4rem 0.9rem !important;
    border: 1px solid #c9a227 !important;
    border-radius: 20px !important;
    color: #c9a227 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
}

.skill-tag:hover {
    background: rgba(201, 162, 39, 0.1) !important;
    transform: translateY(-2px);
}

.skill-tag i {
    font-size: 0.9rem !important;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.video-card {
    background: var(--secondary-bg-color, #1a1a1a);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.video-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.video-thumb .yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 42px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-card:hover .video-thumb .yt-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-thumb .yt-play::after {
    content: "";
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}

.video-info {
    padding: 1rem;
}

.video-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
}

.video-info h3 a {
    color: inherit;
    text-decoration: none;
}

.video-info h3 a:hover {
    color: #c9a227;
}

.video-date {
    font-size: 0.8rem;
    color: #888;
}

/* Talks Grid */
.talks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
    align-items: start;
}

.talk-card {
    background: var(--secondary-bg-color, #1a1a1a);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.talk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.talk-image {
    overflow: hidden;
    background: #111;
}

.talk-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.talk-card:hover .talk-image img {
    transform: scale(1.05);
}

.talk-info {
    padding: 1rem;
}

.talk-info h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    color: inherit;
}

.talk-event {
    display: block;
    font-size: 0.85rem;
    color: #c9a227;
    margin-bottom: 0.25rem;
}

.talk-date {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.75rem;
}

.talk-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.talk-links .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.talk-links .btn i {
    margin-right: 0.3rem;
}

/* ===== LIGHT THEME SUPPORT ===== */

/* Light theme - Video cards */
body:not(.dark) .video-card {
    background: #ffffff;
    border-color: #dee2e6;
}

body:not(.dark) .video-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Light theme - Talk cards */
body:not(.dark) .talk-card {
    background: #ffffff;
    border-color: #dee2e6;
}

body:not(.dark) .talk-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

body:not(.dark) .talk-image {
    background: #f8f9fa;
}

/* Light theme - Content cards (homepage) */
body:not(.dark) .content-card {
    background: #ffffff !important;
    border-color: #dee2e6 !important;
}

body:not(.dark) .content-card-header {
    color: #6c757d !important;
}

body:not(.dark) .content-card-title a {
    color: #212529 !important;
}

body:not(.dark) .content-card-title a:hover {
    color: #c9a227 !important;
}

/* Blog Post Content - Images */
#single .page-content img {
    margin: 2rem 0 0 0;
}

#single .page-content figure {
    margin: 2rem auto;
    text-align: center;
}

#single .page-content figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.4rem;
}

/* Blog Post Content - Lists */
#single .page-content ul,
#single .page-content ol {
    margin-bottom: 1.5rem !important;
    padding-left: 2rem !important;
    list-style-position: outside !important;
}

#single .page-content ul > li,
#single .page-content ol > li {
    margin-bottom: 1.25rem !important;
    line-height: 1.8 !important;
    padding-left: 0.5rem;
}

#single .page-content ul > li:last-child,
#single .page-content ol > li:last-child {
    margin-bottom: 0 !important;
}

/* Blog Post Links - More visible */
#single .page-content a {
    color: #c9a227 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#single .page-content a:hover {
    color: #e0b82a !important;
    text-decoration-thickness: 2px;
}

/* Light theme */
body:not(.dark) #single .page-content a {
    color: #b8860b !important;
}

body:not(.dark) #single .page-content a:hover {
    color: #9a7209 !important;
}
