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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #666;
    --accent-color: #C1A4E2;
    --background-color: #ffffff;
    --surface-color: #f7f3fc;
    --border-color: #e9ecef;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-light: #999;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

/* Links */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navigation */
.navbar {
    background-color: var(--background-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.1em;
}

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

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

.logo-nav {
    max-height: 2.3rem;
    width: auto;
    margin: 0.2em 0;
    padding: 0.2em 0;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background-color: var(--background-color);
}

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

}

.hero-text h1 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    font-weight: 600;
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.hero-text-title {
    font-size: 2.2rem;
    line-height: 1.1;
}

.hero-text-buttons {
    text-align: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    max-width: 520px;
    height: auto;
    border: 5px solid var(--primary-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Hero extra phrase and tags */
.hero-extra {
    margin-top: 6rem;
    text-align: center;
    position: relative;
    z-index: 1;
}
.hero-quote {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.2;
}
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}
.hero-tag {
    background: none;
    color: var(--primary-color); /* lighter version of #C1A4E2 */
    padding: 0;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 400;
    box-shadow: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
    cursor: default;
    transition: none;
}
@media (max-width: 600px) {
    .hero-quote {
        font-size: 1.3rem;
    }
    .hero-tags {
        gap: 1.2rem;
    }
    .hero-tag {
        font-size: 1rem;
    }
    .hero-text-title {
        font-size: 1.3rem;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background-color: var(--surface-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.project-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.project-card {
    background-color: white;
    border: 2px solid #000000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.project-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tag {
    background-color: var(--surface-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Project Detail Page */
.project-header {
    padding: 40px 0 80px;
    background-color: var(--surface-color);
}

.project-nav {
    margin-bottom: 2rem;
}

.back-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-color);
}

.project-title h1 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-title p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.meta-item {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.content-text p {
    margin-bottom: 1rem;
}

.content-text ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.content-text li {
    margin-bottom: 0.5rem;
}

.content-image {
    width: 100%;
}

.content-image svg {
    width: 100%;
    height: auto;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.result-item {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.result-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Experiences Page */
.experiences-hero {
    background-color: var(--surface-color);
}

.experiences-section {
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 21px;
    top: 0;
    width: 18px;
    height: 18px;
    background-color: var(--accent-color);
    border-radius: 0;
    border: 4px solid white;
    box-shadow: var(--shadow-sm);
}

.timeline-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.timeline-header h3 {
    color: var(--primary-color);
    margin-bottom: 0;
}

.timeline-period {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.timeline-company {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-description ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.timeline-description li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Education Section */
.education-section {
    padding: 80px 0;
    background-color: var(--surface-color);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.education-item {
    background-color: transparent;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-color);
    display: flex;
    gap: 1rem;
}

.education-icon {
    flex-shrink: 0;
}

.education-item {
    transition: box-shadow 0.3s, transform 0.3s;
}
.education-item:hover {
    box-shadow: 0 8px 24px rgba(193, 164, 226, 0.18), 0 1.5px 6px rgba(0,0,0,0.08);
    transform: translateY(-6px) scale(1.03);
    background-color: #f8f9fa;
  
}

.education-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.education-content p {
    margin-bottom: 0.5rem;
}

.education-content p:first-of-type {
    color: var(--accent-color);
    font-weight: 600;
}

.education-content p:last-of-type {
    font-weight: 600;
}

/* Skills Section */
.skills-section {
    padding: 80px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.skills-category h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-weight: 500;
    color: var(--primary-color);
}

.skill-bar {
    height: 8px;
    background-color: var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.hero-buttons-left {
    justify-content: flex-start;
}
.skill-progress {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: var(--radius-sm);
    transition: width 0.8s ease;
}

.soft-skills {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.soft-skill-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.soft-skill-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Blog Pages */
.blogs-header {
    padding: 80px 0;
    background-color: var(--surface-color);
}

.blogs-section {
    padding: 80px 0;
}

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

.blog-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image img,
.blog-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-date,
.blog-category {
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-category {
    color: var(--accent-color);
    font-weight: 600;
}

.blog-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.blog-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-time {
    font-size: 0.875rem;
    color: var(--text-light);
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-color);
}

/* Blog Detail Page */
.article-header {
    padding: 40px 0 80px;
    background-color: var(--surface-color);
}

.article-nav {
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-date,
.article-category,
.article-read-time {
    font-size: 0.875rem;
    color: var(--text-light);
}

.article-category {
    color: var(--accent-color);
    font-weight: 600;
}

.article-title {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.article-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.article-image {
    padding: 40px 0;
    background-color: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img,
.image-container svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.article-content {
    padding: 80px 0 160px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.article-content {

    margin: 0 auto;
}

.article-body {
    max-width: none;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
    padding-bottom: 0.5rem;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 2px;
    background: var(--accent-color);
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
    hyphens: auto;
}

.article-body p:last-child {
    margin-bottom: 0;
}

.article-body ul, .article-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.article-body li:last-child {
    margin-bottom: 0;
}

.article-body strong {
    color: var(--primary-color);
    font-weight: 600;
}

.article-body em {
    font-style: italic;
    color: var(--text-primary);
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--surface-color);
    border-left: 4px solid var(--accent-color);
    font-style: italic;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.article-body code {
    background: var(--surface-color);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.article-body pre {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.article-body pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.author-info {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.author-avatar {
    flex-shrink: 0;
}

.author-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.author-details p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.875rem;
}

.article-actions {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.article-actions h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    background-color: white;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.share-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

.related-articles {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.related-articles h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    background-color: white;
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
}

.related-item:hover {
    box-shadow: var(--shadow-sm);
}

.related-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.related-item span {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* Contact Page */
.contact-header {
    padding: 80px 0;
    background-color: var(--surface-color);
}

.contact-section {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-content-single {
    display: flex;
    justify-content: center;
}

.contact-info h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    margin: 2.5rem 0 2.5rem 0;
}

.contact-item {
    flex: 1 1;
    min-width: 180px;
    max-width: 300px;

 
    justify-content: center;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.contact-details-text h3 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
   
}

.contact-details-text p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.social-links h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent-color);
}

/* Contact Form */
.contact-form h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Availability Section */
.availability-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    padding-top: 1.5rem;
}
.availability-text {
    color: var(--background-color);
    font-size: 1.125rem;
}
.availability-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.availability-content h2 {
    margin-bottom: 2rem;
    color: var(--background-color);
}

.availability-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 0;
}

.status-indicator.available {
    background-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.availability-details {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.availability-item {
    background-color: var(--surface-color);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid var(--primary-color);
    flex: 1;
    max-width: 250px;
}

.availability-item.item-center {
    justify-self: center;
    text-align: center;
}

.availability-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.availability-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background-color: var(--surface-color);
    text-align: center;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.newsletter-content p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 3fr 0.5fr 0.5fr;
    gap: 3rem;
    align-items: start;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;

}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item span:first-child {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item span:last-child {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.email-contact {
    color: var(--primary-color);
    font-size: 1.125rem
}
.footer-social h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;

    justify-content: center;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    font-size: 0.95rem;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* LinkedIn Button Styling */
.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    margin: 0 auto;
    justify-content: center;
    max-width: 200px;
}

.linkedin-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.linkedin-icon {
    flex-shrink: 0;
}

.arrow-icon {
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.linkedin-btn:hover .arrow-icon {
    transform: translateX(3px);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--background-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
    }

   
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero */
    .hero {
        padding: 40px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        text-align: center;
    }

  

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Content Grid */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    /* Education */
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Article */
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-sidebar {
        position: static;
    }
    
    .article-body {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .article-body p {
        font-size: 1rem;
        text-align: left;
    }
    
    .article-body li {
        font-size: 1rem;
    }

    /* Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        left: 11px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand,
    .footer-contact,
    .footer-social {
        text-align: center;
    }

    .footer-description {
        max-width: 100%;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
        max-width: 300px;
    }

    .hero-image {
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .image-placeholder {
        max-width: 95vw;
    }
    .image-placeholder img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 20px 0;
    }

    .projects,
    .experiences-section,
    .education-section,
    .skills-section,
    .blogs-section,
    .contact-section,
    .article-content {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-marker {
        left: 6px;
        width: 12px;
        height: 12px;
    }

    .timeline::before {
        left: 11px;
    }

    .image-placeholder {
        max-width: 100vw;
    }
    .image-placeholder img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        border-radius: 0;
    }
}

/* Utility Classes */


.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

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

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */


/* Print styles */
@media print {
    .navbar,
    .footer,
    .newsletter-section {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}

/* Blog card link wrapper */
.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.blog-card-link:focus .blog-card,
.blog-card-link:hover .blog-card {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* Ensure .blog-card itself still has pointer and transition */
.blog-card {
    cursor: pointer;
    transition: var(--transition);
}

/* Global responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Project, blog, content, and article images responsive */
.project-image img,
.blog-image img,
.content-image img,
.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

@media (max-width: 600px) {
    .hero-quote {
        font-size: 1.3rem;
    }
    .hero-tags {
        gap: 1.2rem;
    }
    .hero-tag {
        font-size: 1rem;
    }
}

.hero-image-absolute {
    position: absolute;
    top: 50%;
    right: 0;
    left: auto;
    transform: translateY(-50%);
    width: 50vw;
    max-width: 600px;
    z-index: 0;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: auto;
}
.hero-image-absolute .image-placeholder {
    width: 100%;
    max-width: 600px;
    height: auto;
}
.hero-image-absolute img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 1;
}
.hero-content, .hero-extra {
    position: relative;
    z-index: 1;
}
@media (max-width: 900px) {
    .hero-image-absolute {
        width: 60vw;
        max-width: 400px;
    }
    .hero-image-absolute .image-placeholder {
        max-width: 400px;
    }
}
@media (max-width: 768px) {
    .hero-image-absolute {
        position: static;
        width: 100%;
        max-width: 95vw;
        transform: none;
        margin: 0 auto 1.5rem auto;
        justify-content: center;
    }
    .hero-image-absolute .image-placeholder {
        max-width: 95vw;
    }
    .hero-buttons-left {
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .hero-image-absolute {
        max-width: 100vw;
        margin-bottom: 1rem;
    }
    .hero-image-absolute .image-placeholder {
        max-width: 100vw;
    }
}

/* Dark mode for contact page */
body.contact-dark-mode {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.contact-dark-mode main, body.contact-dark-mode .contact-header {
    flex: 1 0 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
body.contact-dark-mode .footer {
    flex-shrink: 0;
    margin-top: auto;
}
body.contact-dark-mode .contact-header {
    min-height: calc(100vh - 80px - 120px); /* adjust 80px for navbar, 120px for footer if needed */
    padding: 0;
    background: var(--accent-color);
}

body.contact-dark-mode .contact-header h1,
body.contact-dark-mode .contact-header p,
body.contact-dark-mode .contact-header h3 {
    color: var(--primary-color) !important;
}
@media (max-width: 800px) {
    body.contact-dark-mode .contact-header {
        min-height: calc(100vh - 60px - 160px); /* adjust for mobile navbar/footer */
    }
}

/* Download button style for navbars */
.btn-download {
    background: var(--accent-color);
    color: #181824;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-download:hover {
   
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
    
}

body.contact-dark-mode .availability-section {
    background: var(--primary-color);
    color: #fff;
}
body.contact-dark-mode .availability-status,
body.contact-dark-mode .availability-status * {
    color: #fff;
}
body.contact-dark-mode .section-header,
body.contact-dark-mode .section-header h1,
body.contact-dark-mode .section-header h2,
body.contact-dark-mode .section-header p {
    color: #fff;
}
body.contact-dark-mode .contact-section,
body.contact-dark-mode .contact-section * {
    color: #fff;
}
body.contact-dark-mode .navbar {
    background: var(--primary-color);
    color: white;
}
body.contact-dark-mode .navbar .nav-link,
body.contact-dark-mode .navbar  {
    color: white;
}


body.contact-dark-mode .navbar .nav-link.active {
    color: var(--accent-color);
}
body.contact-dark-mode .navbar .nav-logo a {
    color: white;
}
body.contact-dark-mode .navbar .bar {
    background-color: white;
}

/* Mobile menu styling for contact dark mode */
@media (max-width: 768px) {
    body.contact-dark-mode .nav-menu {
        background-color: var(--primary-color);
    }
    
    body.contact-dark-mode .nav-menu .nav-link {
        color: white;
    }
    
    body.contact-dark-mode .nav-menu .nav-link:hover,
    body.contact-dark-mode .nav-menu .nav-link.active {
        color: var(--accent-color);
    }
    .footer-contact .contact-item.social-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.25rem;
      }
      .footer-contact .contact-item.social-links span {
        width: 100%;
        text-align: center;
        display: block;
      }
      .footer-contact .contact-item.social-links a {
        display: block;
        text-align: center;
        word-break: break-all;
      }
}

@media (max-width: 800px) {
    .contact-details {
        flex-direction: column;
        gap: 1.2rem;
        align-items: stretch;
    }
    .contact-item {
        max-width: 100%;
        justify-content: flex-start;
    }
   
    .availability-details {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .availability-item {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

body.contact-dark-mode .availability-content h2 {
    color: #fff;
}



.hero-bg {
 /*  background: url('images/hero.webp') left center no-repeat;*/
    background-size: cover;
    overflow: hidden;
}
.hero-bg::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.05);
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}
@media (max-width: 600px) {
    .hero-bg {
        background-size: contain;
        background-position: left top;
    }
}

.hero-index {
    margin-top: 5rem;
}

.hero-moad-large {
    font-size: 3.2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    display: inline-block;
    letter-spacing: 0.1em;
}
.hero-role-small {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    display: inline-block;
}
@media (max-width: 600px) {
    .hero-moad-large {
        font-size: 3rem;
    }
    .hero-role-small {
        font-size: 0.95rem;
    }
}

.content-image-full {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    z-index: 1;
    position: static;
    margin: 0;
}

.content-image-full img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-left: 0;
    margin-right: 0;
}

.content-text-saas-bold p {
    font-weight: 600;
}

.saas-section-title {
    text-decoration: underline;
    color: #181824;
}

.section-spacer {
    height: 2.5rem;
    width: 100%;
    display: block;
}

.content-image-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 2rem 0;
}
.content-image-centered img {
    max-width: 900px;
    width: 100%;
    height: auto;
    display: block;
  
}

.project6-section {
    padding: 3rem 0;
    background: #fff;
}
.project6-section .container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}
.project6-blocks {
    display: flex;
    gap: 6rem;
    justify-content: center;
    align-items: stretch;
    margin: 2.5rem 0;
}
.project6-block {
    flex: 1 1 0;
    min-width: 220px;
}
@media (max-width: 800px) {
    .project6-blocks {
        flex-direction: column;
        gap: 1.2rem;
    }
    .project6-block {
        max-width: 100%;
    }
}
.problematique {
    margin-top: 2rem;
    font-weight: 600;
    font-size: 1.6rem;
    color: #181824;
    text-align: center;
}
/* Double border for project images */
.project-img-double-border {
    position: relative;
    z-index: 1;
    border: 4px solid black;
    box-shadow: 0 0 0 4px var(--accent-color);
    border-radius: 0px;
    background: #fff;
    transition: box-shadow 0.3s, border-color 0.3s;
}

/* Scroll-up animation for images */
.project-img-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.project-img-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-img-double-border.project-img-animate {
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}
.project-img-double-border.project-img-animate:hover {
    transform: scale(1.04);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--accent-color), 0 8px 32px rgba(0,0,0,0.12);
}

/* Modal overlay for fullscreen image */
.project-img-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20,20,30,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s;
    opacity: 1;
}
.project-img-modal-img {
    max-width: 70vw;
    max-height: 80vh;
    width: 70vw;
    border: 4px solid black;
    box-shadow: 0 0 0 4px var(--accent-color);
    background: #fff;
    border-radius: 0px;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    object-fit: contain;
    display: block;
    position: relative;
}
.project-img-modal-close {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.project-img-modal-close:hover {
    background: rgba(0,0,0,0.95);
}
@media (max-width: 900px) {
    .project-img-modal-img {
        max-width: 95vw;
        width: 95vw;
    }
    .project-img-modal-close {
        top: 1rem;
        right: 1rem;
        width: 2rem;
        height: 2rem;
        font-size: 1.1rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
  .availability-details {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .availability-item {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}

