/*
Theme Name: Coul
Theme URI: 
Author: 
Author URI: 
Description: A classic WordPress theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coul
*/

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* WordPress specific image styles */
.wp-image-59,
.wp-image-59[width],
.wp-image-59[height] {
    width: 100% !important;
    height: auto !important;
    max-width: 435px;
}

.wp-caption {
    max-width: 100%;
    margin: 0 auto;
}

.wp-caption img {
    width: 100%;
    height: auto;
}

.wp-caption-text {
    text-align: center;
    font-style: italic;
    margin-top: 8px;
}

/* Ensure all image containers are responsive */
.post-thumbnail,
.featured-thumbnail,
.featured-post-thumbnail,

.post-thumbnail img,
.featured-thumbnail img,
.featured-post-thumbnail img,

:root {
    --primary-color: #2d3436;
    --secondary-color: #0984e3;
    --accent-color: #00b894;
    --text-color: #2d3436;
    --light-text: #636e72;
    --background: #f8f8f2;
    --light-background: #f8f9fa;
    --border-color: #dfe6e9;
    --transition: all 0.3s ease;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

/* Import Monoton font for outlined effect */
@import url('https://fonts.googleapis.com/css2?family=Monoton&display=swap');

/* Import Recursive font for variable headings */
@import url('https://fonts.googleapis.com/css2?family=Recursive:slnt,wght,CASL,MONO@0..1,300..1000,0..1,0..1&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    letter-spacing: -0.02em;
}

/* Header styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

/* Floating glassmorphism header style */
.glass-header {
    top: 1rem;
    background: white; /* fallback for no support */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    transition: var(--transition);
    display: table;
    margin: 0 auto;
}

/* Fancy blur if supported */
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .glass-header {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation */
.main-navigation {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--secondary-color);
}

.main-navigation a:hover::after {
    width: 100%;
}
.nav-menu {
    position: relative;
}

.nav-menu ul {
    display: flex;
    position: relative;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-menu li {
    position: relative;
    z-index: 1;
}

.nav-menu a {
    display: inline-block;
    padding: 0.5rem;
    position: relative;
    z-index: 2;
    color: black;
    text-decoration: none;
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    height: 100%;
    background: white;
    border-radius: 6px;
    z-index: 0;
    transition: all 0.3s ease;
    width: 0;
    left: 0;
}


/* Responsive styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        display: flex;
        gap: 1rem;
    }

    .main-navigation ul {
        gap: 1rem;
    }
}

/* Content area */
.site-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px;
}

.recent-posts {
    text-align: center;
    margin-bottom: 60px;
}

.skills-section .section-title,
.recent-posts h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5em;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.skills-section .section-title::after,
.recent-posts h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0 auto;
    max-width: 1400px;
}

.blog-card {
    background: rgba(255,255,255,0.92);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    isolation: isolate;
    text-align: center;
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(9, 132, 227, 0.1) 0%,
        rgba(0, 184, 148, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.blog-card:hover::before {
    opacity: 1;
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.post-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card:hover .post-thumbnail::after {
    opacity: 1;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .post-thumbnail img {
    transform: scale(1.08);
}

.entry-content {
    padding: 24px;
    position: relative;
}

.entry-footer {
    text-align: center;
    margin-top: 20px;
}

.entry-title {
    font-family: 'Recursive', 'Outfit', sans-serif;
    font-variation-settings: 'wght' 600, 'CASL' 0.5;
    font-size: 1.3em;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.entry-title a {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.entry-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .entry-title a::after {
    width: 100%;
}

.entry-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.9em;
    color: var(--light-text);
}

.entry-summary {
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.read-more::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.read-more:hover::before {
    opacity: 1;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .site-content {
        padding: 90px 20px;
    }
    
    .recent-posts h2 {
        font-size: 2em;
        margin-bottom: 30px;
        padding-bottom: 15px;
    }
}

/* Page Content */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content .entry-title {
    font-size: 3em;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

.page-thumbnail {
    margin: 40px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-thumbnail img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.page-thumbnail:hover img {
    transform: scale(1.05);
}

/* Front Page */
.custom-hero-section {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    background: #d3d9d8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 2;
    padding: 0 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero-logo-text {
    font-family: 'Monoton', 'Outfit', sans-serif;
    font-size: 8vw;
    color: #142526;
    letter-spacing: 0.05em;
    margin: 0 0 20px 0;
    line-height: 1;
    text-align: center;
    font-weight: normal;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.5em;
    color: #142526;
    text-align: center;
    margin-bottom: 0;
    letter-spacing: 0.04em;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.5s forwards;
}
/* .hero-subtitle  responsive */
@media screen and (max-width: 768px) {
    .hero-subtitle {
        font-size: 1em;
    }
}

.scroll-indicator {
    position: absolute;
    left: 8%;
    bottom: 40px;
    transform: translateX(-50%);
    z-index: 3;
    width: 110px;
    height: 110px;
    text-transform: uppercase;
    color: #000;
    font-weight: bold;
    font-family: system-ui;
    background-color: azure;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 4px;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.scroll-indicator svg {
    width: 100px;
    height: 100px;
    display: block;
    animation: rotating 12s linear infinite;
}

@media screen and (max-width: 768px) {
    .scroll-indicator {
        left: 20%;
    }
}

@keyframes rotating {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Featured Content */
.featured-content {
    margin-bottom: 80px;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    color: var(--primary-color);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.featured-post {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.featured-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.featured-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.featured-post:hover::before {
    opacity: 1;
}

.featured-thumbnail {
    position: relative;
    overflow: hidden;
}

.featured-thumbnail img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.featured-post:hover .featured-thumbnail img {
    transform: scale(1.1);
}

.featured-post h3 {
    font-size: 1.8em;
    margin: 30px;
    color: var(--primary-color);
}

.featured-post .entry-meta {
    margin: 0 30px;
    color: var(--light-text);
}

.featured-post .entry-summary {
    margin: 30px;
    color: var(--light-text);
}

/* Comments */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comment-list {
    list-style: none;
    margin: 30px 0;
}

.comment {
    margin-bottom: 30px;
    padding: 30px;
    background: var(--light-background);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.comment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.comment:hover::before {
    transform: scaleY(1);
}

.comment-meta {
    margin-bottom: 15px;
    font-size: 0.9em;
    color: var(--light-text);
}

.comment-form {
    margin-top: 40px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.comment-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(9, 132, 227, 0.1);
}

/* Search Form */
.search-form {
    display: flex;
    margin: 30px 0;
}

.search-field {
    flex: 1;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 30px 0 0 30px;
    transition: var(--transition);
}

.search-field:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color),
                0 0 20px rgba(9, 132, 227, 0.2);
}

.search-submit {
    padding: 15px 25px;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover {
    background: var(--accent-color);
}

/* Widgets */
.widget-area {
    background: var(--light-background);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.widget {
    margin-bottom: 40px;
    position: relative;
}

.widget::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--secondary-color),
        var(--accent-color)
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.widget:hover::after {
    transform: scaleX(1);
}

.widget-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.widget a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.widget a:hover {
    color: var(--secondary-color);
}

/* Footer */
.site-footer {
    background: rgba(255,255,255,0.92);
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    color: var(--light-text);
    margin: 0;
    letter-spacing: 0.02em;
}

.copyright::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    margin: 0 auto 20px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 30px 20px;
        margin-top: 40px;
    }
    
    .copyright {
        font-size: 0.85em;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .site-content {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3em;
    }
}

@media (max-width: 768px) {
    .blog-grid,
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .main-navigation ul {
        flex-direction: row;
        gap: 15px;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .footer-navigation ul {
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content .site-description {
        font-size: 1.2em;
    }

    .page-content .entry-title {
        font-size: 2.5em;
    }

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    h3 {
        font-size: 1.5em;
    }

    .site-title {
        display: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Loading State */
body.loading {
    cursor: wait;
}

body.loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    z-index: 9999;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Content Transitions */
.site-content.fade-out {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
}

.site-content.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s ease;
}

.custom-cursor.cursor-hover {
    transform: scale(1.5);
}

.skill-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.skill-card:nth-child(1) { animation: fadeInUp 0.6s ease 0.2s forwards; }
.skill-card:nth-child(2) { animation: fadeInUp 0.6s ease 0.4s forwards; }
.skill-card:nth-child(3) { animation: fadeInUp 0.6s ease 0.6s forwards; }

.skill-progress {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

.skill-card:hover .skill-progress {
    width: var(--skill-level);
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--secondary-color) }
}

/* Enhanced Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Contact Form */
.contact-form input,
.contact-form textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form input:focus,
.contact-form textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced Button Effects */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Enhanced Skill Progress Bars */
.skill-progress {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Navigation */
.main-navigation a {
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Enhanced Footer */
.site-footer {
    background: linear-gradient(
        to bottom,
        var(--background),
        var(--light-background)
    );
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }

    .skill-card:hover {
        transform: none;
    }
    
    .cta-button:hover {
        transform: none;
    }
}

.nav-previous,
.nav-next {
    position: relative;
}

.nav-previous span,
.nav-next span {
    display: block;
    font-size: 0.8em;
    color: var(--light-text);
    margin-bottom: 10px;
}

.nav-previous a,
.nav-next a {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-previous a:hover,
.nav-next a:hover {
    color: var(--secondary-color);
}

.nav-previous img,
.nav-next img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    transition: var(--transition);
}

.nav-previous a:hover img,
.nav-next a:hover img {
    transform: scale(1.1);
}

.nav-previous h4,
.nav-next h4 {
    font-size: 1.1em;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-previous a,
    .nav-next a {
        flex-direction: column;
        text-align: center;
    }

    .nav-previous img,
    .nav-next img {
        width: 100%;
        height: 200px;
    }
}

/* Blog Post Styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    font-family: 'Inter', sans-serif;
    scroll-margin-top: 100px;
}

.post-header {
    text-align: center;
    margin-bottom: 60px;
}

.post-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.post-meta {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    color: var(--light-text);
    font-size: 0.9em;
}

.post-meta a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-meta a:hover {
    color: var(--accent-color);
}

.post-featured-image {
    margin: 0 -2rem 60px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: calc(100% + 4rem);
    max-width: 100vw;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    max-width: 100%;
}

.post-featured-image:hover .featured-image {
    transform: scale(1.02);
}

.post-content {
    font-family: 'Inter', sans-serif;
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 60px;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: 2em;
    margin: 2em 0 1em;
    color: var(--primary-color);
}

.post-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: 1.5em;
    margin: 1.5em 0 1em;
    color: var(--primary-color);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2em 0;
    display: block;
}

.post-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    color: var(--light-text);
}

/* .post-content pre {
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 2em 0;
} */

.post-content code {
    background: var(--light-background);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.post-tags {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tags-label {
    color: var(--light-text);
    margin-right: 10px;
}

.post-tags a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-tags a:hover {
    color: var(--accent-color);
}

.comments-section {
    margin-top: 60px;
    padding-top: 40px;
}

/* Comment Form Styles */
.comment-form {
    background: var(--light-background);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.comment-form .submit:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-post {
        padding: 6rem 1rem 3rem;
    }
    
    .post-title {
        font-size: 2.5em;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-content {
        font-size: 1em;
    }
    
    .post-content h2 {
        font-size: 1.8em;
    }
    
    .post-content h3 {
        font-size: 1.3em;
    }
    
    .post-featured-image {
        margin: 0 -1rem 40px;
        width: calc(100% + 2rem);
    }
    
    .comment-form {
        padding: 1.5rem;
    }
}

.hero-logo-svg {
    width: 80vw;
    max-width: 1100px;
    margin: 0 auto 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-logo-svg svg {
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-logo-svg svg path {
    fill: none;
    stroke: #001B21;
    stroke-width: 3;
    stroke-dasharray: 2590;
    stroke-dashoffset: 2590;
    animation: drawPath 8s forwards;
    fill: #fff;
    transition: fill 6s ease;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
        fill: #001B21;
    }
}

@media (max-width: 768px) {
    .hero-logo-svg {
        width: 98vw;
        max-width: 98vw;
        margin-bottom: 20px;
    }
}

/* Variable font for headings */
@import url('https://fonts.googleapis.com/css2?family=Recursive:slnt,wght,CASL,MONO@0..1,300..1000,0..1,0..1&display=swap');

.personal-intro {
    max-width: 700px;
    margin: 48px auto 32px auto;
    padding: 32px 20px 24px 20px;
    background: rgba(255,255,255,0.92);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s cubic-bezier(0.4,0,0.2,1);
    scroll-margin-top: 100px;
}
.personal-intro .avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(9,132,227,0.08);
    object-fit: cover;
    border: 3px solid #fff;
}
.personal-intro h2 {
    font-family: 'Recursive', 'Outfit', sans-serif;
    font-variation-settings: 'wght' 800, 'CASL' 1;
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.personal-intro p {
    font-size: 1.15em;
    color: var(--text-color);
    line-height: 1.6;
}

.tech-stack {
    max-width: 900px;
    margin: 0 auto 48px auto;
    padding: 32px 20px 24px 20px;
    background: rgba(255,255,255,0.92);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeIn 1.2s cubic-bezier(0.4,0,0.2,1);
}
.tech-stack h2 {
    font-family: 'Recursive', 'Outfit', sans-serif;
    font-variation-settings: 'wght' 700, 'CASL' 0.7;
    font-size: 1.7em;
    margin-bottom: 18px;
    color: var(--primary-color);
}
.stack-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 10px;
}
.stack-icons img {
    width: 54px;
    height: 54px;
    filter: grayscale(0.2) drop-shadow(0 2px 8px rgba(9,132,227,0.08));
    transition: transform 0.2s, filter 0.2s;
    border-radius: 12px;
    background: #f8f9fa;
    padding: 6px;
}
.stack-icons img:hover {
    transform: scale(1.13) rotate(-4deg);
    filter: grayscale(0) drop-shadow(0 6px 24px rgba(9,132,227,0.18));
    background: #e3f6fd;
}
@media (max-width: 600px) {
    .personal-intro {
        margin: 24px 4vw 18px 4vw;
        padding: 18px 4vw 12px 4vw;
        width: calc(100% - 8vw);
    }

    .contact-info {
        margin: 24px auto 18px auto;
        padding: 18px 4vw 12px 4vw;
        width: calc(100% - 8vw);
        max-width: none;
    }

    .contact-info .section-title {
        font-size: 1.2em;
    }
    
    .contact-link {
        font-size: 1em;
        padding: 10px 20px;
        min-width: 200px;
    }

    .tech-stack h2 {
        font-size: 1.2em;
    }
    .stack-icons img {
        width: 38px;
        height: 38px;
        padding: 3px;
    }
}

.featured-posts-section {
    max-width: 1200px;
    margin: 0 auto 48px auto;
    padding: 0 20px;
    animation: fadeIn 1.2s cubic-bezier(0.4,0,0.2,1);
}

.featured-posts-section .section-title {
    font-family: 'Recursive', 'Outfit', sans-serif;
    font-variation-settings: 'wght' 700, 'CASL' 0.7;
    font-size: 1.7em;
    margin-bottom: 32px;
    color: var(--primary-color);
    text-align: center;
}

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

.featured-post-card {
    background: rgba(255,255,255,0.92);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

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

.featured-post-card:nth-child(1) { animation: fadeInUp 0.6s ease 0.2s forwards; }
.featured-post-card:nth-child(2) { animation: fadeInUp 0.6s ease 0.4s forwards; }
.featured-post-card:nth-child(3) { animation: fadeInUp 0.6s ease 0.6s forwards; }

.featured-post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.featured-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post-card:hover .featured-post-thumbnail img {
    transform: scale(1.05);
}

.featured-post-content {
    padding: 24px;
}

.featured-post-content h3 {
    font-family: 'Recursive', 'Outfit', sans-serif;
    font-variation-settings: 'wght' 600, 'CASL' 0.5;
    font-size: 1.3em;
    margin-bottom: 12px;
}

.featured-post-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post-content h3 a:hover {
    color: var(--secondary-color);
}

.featured-post-content .post-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.9em;
    color: var(--light-text);
}

.featured-post-content .post-excerpt {
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

.featured-post-content .read-more {
    display: inline-block;
    padding: 8px 20px;
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.3s ease;
}

.featured-post-content .read-more:hover {
    background: var(--accent-color);
}

@media (max-width: 768px) {
    .featured-posts-section {
        padding: 0 16px;
        margin-bottom: 32px;
    }
    
    .featured-posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .featured-post-content {
        padding: 20px;
    }
}

/* Skills Section */
.skills-section {
    padding: 80px 20px;
    background: var(--light-background);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.skill-icon {
    font-size: 2.2em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.skill-info {
    width: 100%;
}

.skill-info h3 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 1.2em;
}

.skill-description {
    font-size: 0.9em;
    color: var(--light-text);
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 40px;
}

.skill-bar {
    height: 4px;
    background: var(--light-background);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover .skill-progress {
    width: var(--skill-level);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-card {
        margin: 0 auto;
        max-width: 300px;
    }
}

/* Contact CTA */
.contact-cta {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.contact-cta .section-title {
    color: white;
    margin-bottom: 20px;
}

.contact-cta p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.2em;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: white;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-card {
        margin: 0 auto;
        max-width: 400px;
    }
}

/* 404 Page Styles */
.error-404 {
    padding: 8rem 2rem 4rem;
    text-align: center;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-404 .page-header {
    margin-bottom: 2rem;
}

.error-404 .page-title {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.error-404 .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-404 .page-content p {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

.error-404 .search-form {
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    width: 100%;
}

.error-404 .search-field {
    width: 100%;
    padding: 1.25rem 3rem 1.25rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1.1rem;
    transition: var(--transition);
    background: var(--light-background);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.error-404 .search-field:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 6px 20px rgba(9, 132, 227, 0.15);
    background: var(--background);
}

.error-404 .search-field::placeholder {
    color: var(--light-text);
    opacity: 0.8;
}

.error-404 .search-submit {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    display: block !important;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(9, 132, 227, 0.2);
}

.error-404 .search-submit:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 184, 148, 0.3);
}

.error-404 .search-submit:active {
    transform: translateY(-50%) scale(0.95);
}

@media (max-width: 768px) {
    .error-404 .search-field {
        padding: 1rem 2.5rem 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .error-404 .search-submit {
        padding: 0.6rem 1rem;
        right: 0.25rem;
    }
}

.error-404-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.error-404 .widget {
    background: var(--light-background);
    padding: 2rem;
    border-radius: 10px;
    text-align: left;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.error-404 .widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.error-404 .widget-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.error-404 .widget ul {
    list-style: none;
    padding: 0;
}

.error-404 .widget li {
    margin-bottom: 0.75rem;
}

.error-404 .widget a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.error-404 .widget a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .error-404 {
        padding: 6rem 1rem 3rem;
    }
    
    .error-404 .page-title {
        font-size: 4rem;
    }
    
    .error-404 .page-content p {
        font-size: 1.1rem;
    }
    
    .error-404-widgets {
        grid-template-columns: 1fr;
    }
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.blog-link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0 2px;
}

.blog-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #000;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.blog-link:hover {
    color: #333;
}

.blog-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Add a subtle bounce effect on hover */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.blog-link:hover {
    animation: bounce 0.5s ease;
}

.contact-info {
    max-width: 700px;
    margin: 48px auto 32px auto;
    padding: 32px 20px 24px 20px;
    background: rgba(255,255,255,0.92);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s cubic-bezier(0.4,0,0.2,1);
    scroll-margin-top: 100px;
}

.contact-info .section-title {
    font-family: 'Recursive', 'Outfit', sans-serif;
    font-variation-settings: 'wght' 700, 'CASL' 0.7;
    font-size: 1.7em;
    margin-bottom: 32px;
    color: var(--primary-color);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.contact-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1em;
    padding: 12px 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-width: 250px;
    justify-content: center;
}

.contact-link i {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.contact-link:hover i {
    transform: scale(1.1);
}

.contact-link.email:hover {
    color: #EA4335;
}

.contact-link.phone:hover {
    color: #34A853;
}

@media (max-width: 600px) {
    .contact-info {
        padding: 18px 4vw 12px 4vw;
        margin: 24px auto 18px auto;
    }
    
    .contact-info .section-title {
        font-size: 1.2em;
    }
    
    .contact-link {
        font-size: 1em;
        padding: 10px 20px;
        min-width: 200px;
    }
} 