/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* THEME VARIABLES */
:root {
    --primary-color: #01153E; /* Deep Navy */
    --secondary-color: #f7f5f0; /* Warm Beige */
    --accent-color: #7b1113; /* Crimson */
    --accent-light: #a52a2a; /* Lighter Crimson */
    --text-primary: #2C3E50;
    --text-secondary: #5E5E5E;
    --bg-primary: #f7f5f0;
    --bg-glass: rgba(255,255,255,0.7);
    --border-color: #e8d6b9;
    --shadow-md: 0 4px 16px rgba(1,21,62,0.08);
    --shadow-lg: 0 8px 32px rgba(1,21,62,0.12);
    --border-radius: 14px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

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

/* Navigation */
.navbar {
  position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
  z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

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

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

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

.nav-link:hover::after {
    width: 100%;
}

/* Mobile hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
  display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding-top: 70px;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.greeting {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

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

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.btn {
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.image-placeholder {
    width: 350px;
    height: 350px;
    background: var(--bg-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 4px solid var(--accent-color);
}

.hero-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    gap: 3rem;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

.timeline-item {
  position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 2rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    margin-right: 0;
    padding-left: 2rem;
    text-align: left;
}

.timeline-content {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.timeline-content .institution {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-content .duration {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.timeline-content .description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

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

.project-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

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

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

.project-tag {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--bg-accent);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Poetry Section */
.poetry {
    background: var(--bg-primary);
    padding: 5rem 0;
    position: relative;
}

.poetry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(123, 17, 19, 0.02) 0%, rgba(123, 17, 19, 0.01) 100%);
    pointer-events: none;
}

.poetry-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
    position: relative;
    z-index: 1;
}

.poem-card {
    background: var(--bg-glass);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--accent-color);
}

.poem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(123, 17, 19, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.poem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.poem-header {
  display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.poem-header h3 {
    color: var(--accent-color);
    margin-bottom: 0;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.poem-date {
    background: rgba(123, 17, 19, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.poem-text {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.poem-text p {
    color: var(--text-primary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 0;
    font-size: 1rem;
}

.poem-theme {
  display: flex;
  flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.theme-tag {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.theme-tag:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
    gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 40px;
    text-align: center;
}

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

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

.contact-form {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    position: relative;
  margin-bottom: 2rem;
}

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

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

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.875rem;
    color: var(--accent-color);
    background: var(--bg-primary);
    padding: 0 0.25rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #7b1113 0%, #A52A2A 100%);
    color: white;
  text-align: center;
    padding: 3rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h3 {
    color: #F5DEB3;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
  display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #F5DEB3;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 222, 179, 0.2);
    padding-top: 2rem;
    text-align: center;
}

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

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(245, 222, 179, 0.15);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(245, 222, 179, 0.3);
}

.footer-social a:hover {
    background: #F5DEB3;
    color:#7b1113;;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(240,248,255,0.95) 100%);
    z-index: 2000;
  display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

.preloader-content {
    text-align: center;
    background: rgba(255,255,255,0.9);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(44,62,80,0.12);
  display: flex;
    flex-direction: column;
  align-items: center;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.welcome-cloud {
    position: relative;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(135,206,250,0.3);
    border: 2px solid rgba(135,206,250,0.2);
    animation: cloud-float 2s ease-in-out infinite;
}

.welcome-cloud::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 20px;
    height: 20px;
    background: inherit;
    border-radius: 50%;
    box-shadow: 30px 0 0 inherit, 60px 0 0 inherit;
}

.welcome-cloud span {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c5aa0;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

@keyframes cloud-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.preloader-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(44,62,80,0.15);
    border: 4px solid var(--accent-color);
    display: flex;
  align-items: center;
  justify-content: center;
    background: #fff;
    margin: 0 auto;
    animation: avatar-pulse 1.5s ease-in-out infinite;
}

.preloader-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@keyframes avatar-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.preloader-message {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
    animation: message-glow 1.5s ease-in-out infinite;
}

@keyframes message-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.preloader-dot {
    animation: preloader-bounce 1s infinite alternate;
  display: inline-block;
    color: var(--accent-color);
    font-weight: bold;
}

.preloader-dot:nth-child(2) { animation-delay: 0.2s; }
.preloader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes preloader-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

/* Skills Section */
.skills {
    background: var(--bg-primary);
    padding: 5rem 0;
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(123, 17, 19, 0.03) 0%, rgba(123, 17, 19, 0.01) 100%);
    pointer-events: none;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.skills-card {
    background: var(--bg-glass);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skills-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skills-card:hover::before {
    transform: scaleX(1);
}

.skills-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.skills-card h3 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    position: relative;
    padding-bottom: 0.5rem;
}

.skills-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(123, 17, 19, 0.08);
    color: var(--accent-color);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(123, 17, 19, 0.15);
    transition: var(--transition);
    cursor: pointer;
}

.skill-tag:hover {
    background: var(--accent-color);
    color: #fff;
}

.skill-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
}

/* ACHIEVEMENTS SECTION */
.achievements {
    background: var(--bg-secondary);
    padding: 5rem 0;
}

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

.achievement-card {
    background: var(--bg-glass);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.achievement-card:hover::before {
    transform: scaleX(1);
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.achievement-icon i {
    font-size: 1.5rem;
    color: white;
}

.achievement-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.achievement-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.achievement-tag {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.achievement-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    transition: var(--transition);
    background: rgba(123, 17, 19, 0.05);
}

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

.achievement-link i {
    font-size: 0.8rem;
}

/* Badge images (external shields) */
.badge-img {
    max-width: 140px;
    height: auto;
    display: block;
}

/* Open Source section styling */
.open-source {
    /* Match Achievements section theme - warm beige background */
    background: var(--bg-secondary);
    padding: 5rem 0;
}
.oss-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Centered boxed subtitle for Open Source */
.open-source .section-subtitle {
    display: block;
    width: fit-content;
    margin: 0.75rem auto 1.5rem;
    padding: 0.6rem 1.1rem;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(1,21,62,0.06);
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.open-source .section-title {
    text-align: center;
}
.oss-card {
    /* Cards should match Achievements cards: soft glass on beige */
    background: var(--bg-primary);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    width: 220px;
    box-shadow: var(--shadow-md);
    border: 1.2px solid var(--border-color);
}
.oss-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
}
.oss-caption {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    margin: 0;
}

/* READING SECTION */
.reading {
    background: var(--bg-primary);
    padding: 5rem 0;
}
.reading-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.book-card {
    background: var(--bg-glass);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.book-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
    transform: translateY(-6px) scale(1.02);
}
.book-cover {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
}
.book-cover img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-bottom: 1.5px solid var(--border-color);
    transition: var(--transition);
}
.book-card:hover .book-cover img {
    filter: brightness(1.05) drop-shadow(0 2px 8px rgba(123,17,19,0.15));
}
.book-info {
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    flex: 1;
  display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.book-info h3 {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}
.book-author {
    color: var(--accent-alt);
    font-size: 1rem;
    margin-bottom: 0.7rem;
    font-weight: 500;
}
.book-quote {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    margin-bottom: 0;
}

/* PROJECT CARD IMAGES */
.project-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
  justify-content: center;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.project-card {
    background: var(--bg-glass);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
    padding: 0;
    margin-bottom: 0.5rem;
}
.project-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
    transform: translateY(-6px) scale(1.02);
}
.project-header, .project-card p, .project-tech {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.project-header {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}
.project-card p {
    margin-bottom: 1.5rem;
}
.project-tech {
    padding-bottom: 1.5rem;
}

/* Page Navigation Dots */
.page-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(123, 17, 19, 0.3);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.page-nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: var(--accent-color);
    border-radius: 50%;
    transition: var(--transition);
}

.page-nav-dot:hover,
.page-nav-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

.page-nav-dot.active::before {
    width: 6px;
    height: 6px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hamburger {
  display: flex;
    }

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

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .image-placeholder {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    .preloader-avatar {
        width: 120px;
        height: 120px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 2rem;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 4rem;
        margin-right: 0;
        padding-left: 2rem;
        padding-right: 0;
        text-align: left;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .container {
        padding: 0 1rem;
    }
    .reading-content {
        grid-template-columns: 1fr;
    }
    .book-cover {
        height: 180px;
    }
         .project-image {
         height: 120px;
     }
     
     .page-nav {
         right: 1rem;
     }
 } 

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .image-placeholder {
        width: 250px;
        height: 250px;
    }

    .preloader-avatar {
        width: 100px;
        height: 100px;
    }

    .hero-buttons {
    flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

    .poetry-content {
        grid-template-columns: 1fr;
  }
} 