/* =============================
   Shreya Portfolio – Modern Theme
   ============================= */

/* ---------- CSS Variables ---------- */

:root {
	--bg: #f7f9fc;
	--text: #080808;
	--muted: #6b7280;
	--primary: #2563eb;
	--primary-600: #1e40af;
	--accent: #74C0FC;
	--warning: #ffd54a;
	--card: #ffffff;
	--border: #e5e7eb;
	--shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
	--shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.12);
}
body.dark-mode {
	--bg: #0f172a;
	--text: #ffffff;
	--muted: #ffffff;
	--primary: #60a5fa;
	--primary-600: #3b82f6;
	--accent: #74C0FC;
	--warning: #ffd54a;
	--card: #0b1220;
	--border: #1f2937;
	--shadow: 0 8px 24px rgba(2, 6, 23, 0.5);
	--shadow-lg: 0 16px 40px rgba(2, 6, 23, 0.6);
}

/* ---------- Reset / Base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Fira Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	padding-top: 70px;
	transition: background-color .25s ease, color .25s ease;
}
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
hr { border: 0; height: 1px; background: var(--border); margin: 24px 0; }

/* Remove section separators (lines) site-wide */
hr, .simple-divider, .section-divider { display: none !important; }

/* ---------- Header ---------- */
.header { position:fixed;width:100%;z-index:9999;  background: var(--card); height: 70px; top:0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: var(--card); border-bottom: 1px solid var(--border); position: fixed; top: 0; left: 0; right: 0; z-index: 1000; backdrop-filter: blur(10px); }

/* Left area (icon + label + toggle) */
.nav-container > i { font-size: 20px; color: var(--accent); }
.nav-container > span { font-weight: 600; font-size: 16px; color: var(--text); }

/* Mode toggle positioned next to "Mode" text */
.toggle-container { display: flex; align-items: center; gap: 8px; }
#modeToggle { display: none; }

/* Pill behind the star */
.toggle { display: inline-flex; align-items: center; justify-content: center; padding: 6px 14px; border-radius: 9999px; background: rgba(116, 192, 252, .25); border: 1px solid rgba(116, 192, 252, .35); cursor: pointer; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.toggle:hover { transform: translateY(-1px); }

/* Star */
.star { color: var(--warning); font-size: 18px; line-height: 1; display: inline-block; transition: transform .25s ease; }
.toggle:hover .star { transform: scale(1.1); }
#modeToggle:checked + .toggle { background: rgba(116, 192, 252, .35); border-color: rgba(116,192,252,.55); }

/* Hamburger Menu */
.hamburger-menu { display: none; cursor: pointer; }
.hamburger-icon { width: 24px; height: 20px; position: relative; }
.hamburger-icon span { display: block; width: 100%; height: 3px; background: var(--text); border-radius: 2px; position: absolute; transition: all 0.3s ease; }
.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 8px; }
.hamburger-icon span:nth-child(3) { top: 16px; }

/* Hamburger Animation */
.hamburger-menu.active .hamburger-icon span:nth-child(1) { transform: rotate(45deg); top: 8px; }
.hamburger-menu.active .hamburger-icon span:nth-child(2) { opacity: 0; }
.hamburger-menu.active .hamburger-icon span:nth-child(3) { transform: rotate(-45deg); top: 8px; }

/* Nav */
.nav-menu { display: flex; gap: 24px; align-items: center; }
.nav-link { color: var(--text); text-decoration: none; padding: 8px 16px; border-radius: 8px; transition: all 0.3s ease; font-weight: 500; text-align: left !important; }
.nav-link:hover { background: rgba(116, 192, 252, 0.1); color: var(--accent); }
.nav-link.active { background: var(--accent); color: #111; }
.nav-link#connect { 
    border: 2px solid var(--accent) !important; 
    border-radius: 8px !important;
    padding: 6px 16px !important;
}

/* Ensure navigation text is always left-aligned */
.nav-menu .nav-link,
.nav-container .nav-link,
header .nav-link,
.nav-menu a,
.nav-container a,
header a {
    text-align: left !important;
}

/* Force left alignment on all navigation elements */
.nav-menu,
.nav-container nav,
header nav {
    text-align: left !important;
}

.nav-menu a,
.nav-container nav a,
header nav a {
    text-align: left !important;
}

/* Override any inherited text alignment */
.nav-container,
.nav-menu,
.nav-link,
.nav-menu a,
.nav-container a,
header a[href] {
    text-align: left !important;
}

/* Ensure no center alignment inheritance */
.nav-container *,
.nav-menu *,
.nav-link * {
    text-align: left !important;
}

/* ---------- Banner / Hero ---------- */
.banner { height: 320px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(116,192,252,.25), transparent 60%); position: relative; will-change: auto; transform: none !important; }
.banner-pattern { width: 100%; height: 100%; }
.banner-pattern img { width: 100%; height: 100%; object-fit: cover; filter: saturate(110%) contrast(102%); border-bottom: 1px solid var(--border); }

/* ---------- Section headings ---------- */
.section-title { 
    font-size: clamp(20px, 2.5vw, 28px); 
    font-weight: 600; 
    letter-spacing: .2px; 
    text-align: center; 
    margin: 8px 0 8px; 
    color: #000; 
    text-transform: uppercase; 
    font-family: 'Bastant', sans-serif;
}
body.dark-mode .section-title { color: #ffffff; }
.section-subtitle { text-align: center; color: var(--muted); max-width: 720px; margin: 8px auto 48px; }

/* Dashboard Title */
.dashboard-title { 
    text-align: left; 
    font-size: 14px; 
    margin: 0 0 8px; 
    color: var(--muted); 
    font-weight: 600;
    letter-spacing: -0.25px;
}

/* Section Divider */
.section-divider { 
    border: 0; 
    height: 2px; 
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 12px auto 24px; 
    width: 80%;
    max-width: 600px;
    border-radius: 1px;
}

/* Simple Divider */

.simple-divider {
	border: 0;
	height: 1px;
	background: #000;
	margin: 8px 0 16px;
	width: 100%;
}

/* Make divider span full container width when needed */
.simple-divider--full { width: 100%; }

/* Ensure all section dividers look identical */
.about-section .simple-divider,
.projects-section + .simple-divider,
.contact-section + hr,
.footer .simple-divider {
	height: 1px;
	background: #000;
	border: 0;
	width: 100%;
}

/* ---------- About ---------- */
.about-section { padding: 72px 0; background: repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(0, 0, 0, 0.1) 20px, rgba(0, 0, 0, 0.1) 21px), repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(0, 0, 0, 0.1) 20px, rgba(0, 0, 0, 0.1) 21px); }

/* Override container max-width for about section */
.about-section .container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
}

.about-container { max-width: 1400px; margin: 0 auto; padding: 0; display: flex; justify-content: center; align-items: center; }
.about-card {
    background: var(--card);
    border: 3px solid var(--border);
    border-radius: 24px;
    padding: 60px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
}
    

.about-text { 
    display: flex; 
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 1200px;
}

/* Top row with actions and short-info side by side */
.about-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

@media (max-width: 768px) {
    .about-top {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}

.about-actions { 
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    flex: 1; /* both take equal width */
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    max-width: 1200px;
}
/* Top row */
.about-actions .social-buttons { order: 1; }
.about-actions .short-info { order: 2; margin-left: auto; text-align: right; }
/* Full-width rows below */
.about-actions .bio-row { order: 3; flex-basis: 100%; }
.about-actions .action-buttons { order: 4; flex-basis: 100%; }

@media (max-width: 768px) {
  .about-actions { justify-content: center; }
  .about-actions .short-info { width: 100%; margin-left: 0; text-align: center; order: 2; }
}

.social-buttons { display: flex; justify-content: flex-start; gap: 12px; }
.social-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.social-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.social-buttons i { color: #0b0b0b !important; }

/* Dark mode: make social buttons white */
body.dark-mode .social-btn { background: #ffffff; border-color: #e5e7eb; }

.short-info { text-align: right; color: var(--muted); margin: 0 0 6px; font-size: 14px; }
.about-text h3 { text-align: left; margin: 0; font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; }
.about-text p { text-align: left; color: var(--muted); margin: 0; max-width: 100%; font-size: clamp(14px, 1.6vw, 16px); }

.action-buttons { display: flex; justify-content: flex-start; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.action-btn { 
    background: #ffe46b; 
    color: #222; 
    padding: 12px 20px; 
    border-radius: 9999px; 
    border: 0; 
    text-decoration: none; 
    font-weight: 700; 
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.action-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 228, 107, .35); background: #fff3a6; }

/* Profile image container as fixed-size rectangle */
.profile-image {
	text-align: center;
	background: #fff3cd;
	border-radius: 16px;
	width: 360px;
	height: 300px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow);
	flex-shrink: 0;
	margin: 0 auto !important;
}

/* Override the conflicting bio-row profile-image rule */
.bio-row .profile-image {
	margin: 0 auto !important;
}

/* Flip animation styles */
.flip-container {
	width: 100%;
	height: 100%;
	perspective: 1000px;
}

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

.profile-image:hover .flipper {
	transform: rotateY(180deg);
}

.front, .back {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.front {
	z-index: 2;
}

.back {
	transform: rotateY(180deg);
	background: linear-gradient(135deg, #74C0FC, #A078D7);
	color: white;
	padding: 20px;
	text-align: center;
}

.back-content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}

.back-content span {
	display: block;
	padding: 8px 16px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 20px;
	backdrop-filter: blur(10px);
}

.profile-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transition: transform .25s ease;
}

/* ---------- Projects ---------- */
/* Old projects section styles removed - using new .projects class instead */

/* ---------- Contact ---------- */
.contact-section { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    padding: 80px 0 80px 0; 
    background: repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(0, 0, 0, 0.1) 20px, rgba(0, 0, 0, 0.1) 21px), repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(0, 0, 0, 0.1) 20px, rgba(0, 0, 0, 0.1) 21px); 
    width: 100%;
    position: relative;
    min-height: 80vh;
}

.contact-section .container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
}

.contact-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    max-width: 1200px;
    padding: 10px 0;
    margin: 0 auto;
}

.contact-card {
    align-items: center;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 24px !important;
    padding: 40px !important;
    box-shadow: var(--shadow-lg) !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 600px !important;
    flex-shrink: 0 !important;
    transition: width 0.5s ease-in-out, max-width 0.5s ease-in-out !important;
    text-align: center;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.contact-card.shrunk {
   
    max-width: 620px !important;
  
}
.contact-card h3 {align-items: center; margin: 0 0 20px !important; color: var(--accent) !important; font-family: 'Bastant', sans-serif !important; font-size: 36px !important; text-align: center !important; }
.contact-card p { margin: 0 0 25px !important; color: var(--text-secondary) !important; line-height: 1.6 !important; font-family: 'Fira Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important; font-size: 18px !important; text-align: center !important; }
.contact-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; }
.contact-item { display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 12px !important; color: var(--text) !important; font-size: 16px !important; }
.contact-item i { color: var(--accent) !important; font-size: 20px !important; }
.social-links { display: flex !important; justify-content: flex-start !important; gap: 20px !important; margin-bottom: 40px !important; }
.social-link { 
    width: 44px !important; 
    height: 44px !important; 
    border-radius: 50% !important; 
    display: grid !important; 
    place-items: center !important; 
    color: var(--text) !important; 
    text-decoration: none !important; 
    transition: transform .2s ease, box-shadow .2s ease !important; 
    background: var(--card) !important; 
    border: 1px solid var(--border) !important; 
    box-shadow: var(--shadow) !important;
}
.social-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.social-link i { color: var(--text) !important; }

/* Dark mode social links */
body.dark-mode .social-link { 
    background: #ffffff !important; 
    border-color: #e5e7eb !important; 
}
body.dark-mode .social-link i { 
    color: #111 !important; 
}

.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; }
.form-group { margin-bottom: 30px; }
.form-group label { display: block; margin-bottom: 12px; color: var(--text-primary); font-weight: 600; font-size: 16px; }
.form-group input, .form-group textarea { width: 100%; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text-primary); font-size: 16px; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(116, 192, 252, 0.1); }
.submit-btn { width: 100%; padding: 12px 16px; border-radius: 12px; background: var(--accent); color: #111; font-weight: 700; border: 0; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.submit-btn:hover { background: #9fd3fe; transform: translateY(-2px); }

.message-toggle { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.toggle-arrow { background: var(--accent); color: #111; border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .3s ease; font-size: 16px; }
.toggle-arrow:hover { background: #9fd3fe; transform: scale(1.1); }
.toggle-arrow.rotated { transform: rotate(180deg); }

.contact-form-container { display: flex !important; flex-direction: column !important; min-width: 400px !important; height: 600px !important; opacity: 0 !important; visibility: hidden !important; transition: all 0.5s ease-in-out !important; align-self: flex-start !important; }
.contact-form-container.visible { opacity: 1 !important; visibility: visible !important; }
.contact-form { background: var(--card) !important; border: 1px solid var(--border) !important; border-radius: 16px !important; padding: 60px !important; box-shadow: var(--shadow-lg) !important; height: 100% !important; overflow-y: auto !important; }
.contact-form.visible { right: 0 !important; }

/* Mobile Contact Form Overlay */
.contact-form-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-form-overlay.visible {
    display: flex;
}

.contact-form-mobile {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.contact-form-mobile .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: #111;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.form-toggle { display: flex !important; justify-content: flex-start !important; margin-top: 16px !important; }
.form-toggle .toggle-arrow { 
    background: transparent !important; 
    color: var(--accent) !important; 
    border: 2px solid var(--accent) !important; 
    border-radius: 25px !important; 
    padding: 12px 50px !important; 
    cursor: pointer !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    gap: 8px !important; 
    transition: all 0.3s ease !important; 
    font-weight: 600 !important;
    min-width: 300px !important;
}

.form-toggle .toggle-arrow:hover { 
    background: var(--accent) !important; 
    color: #ffffff !important; 
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(116, 192, 252, 0.3) !important;
}
.form-toggle .toggle-arrow.rotated { transform: none !important; }
.form-toggle .toggle-arrow span { font-size: 14px; }

/* ---------- Footer ---------- */
.footer { background: #33527B; color: #fff; padding: 80px 0 40px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 20px; }
.footer-section h4 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.footer-section h4 i { color: #ffd700; }
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section li { margin: 6px 0; }
.footer-section a { color: #ffffffcc; text-decoration: none; }
.footer-section a:hover { color: #eaf2ff; }
.footer-bottom { text-align: center; color: #ffffffcc; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 12px; padding-right: 0; margin-bottom: 20px; }

/* Footer colors in dark mode */
body.dark-mode .footer {
    background: var(--card) !important;
    border-top: 1px solid var(--border) !important;
}

body.dark-mode .footer-section h4 { 
    color: var(--text) !important; 
}

body.dark-mode .footer-section a { 
    color: var(--text-secondary) !important; 
}

body.dark-mode .footer-section a:hover { 
    color: var(--accent) !important; 
}

body.dark-mode .footer-bottom { 
    color: var(--text-secondary) !important; 
    border-top: 1px solid var(--border) !important; 
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: #111;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.visible {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #9fd3fe;
    transform: scale(1.1);
}

/* Dark mode adjustments */
body.dark-mode .scroll-to-top {
    background: var(--accent);
    color: #111;
}

/* ---------- Animations / Reveal ---------- */
section { opacity: 1; transform: translateY(0); transition: opacity .4s ease, transform .4s ease; }
section { scroll-margin-top: 80px; }

/* ---------- Case Study Layout ---------- */
.case-study { padding: 64px 0; background: linear-gradient(180deg, rgba(37,99,235,0.06), rgba(37,99,235,0.03)); }
.case-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.case-content {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.case-sidebar {
    display: block;
}
.case-content h1 { margin: 0 0 16px; font-size: clamp(22px, 3vw, 32px); }
.case-content h2 { margin-top: 24px; font-size: clamp(18px, 2.2vw, 24px); }
.case-content h3 { margin-top: 16px; font-size: 16px; }
.case-content p, .case-content li { color: var(--muted); }
.case-content ul, .case-content ol { padding-left: 20px; }
.case-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.case-table th, .case-table td { border: 1px solid var(--border); padding: 10px; text-align: left; }
.case-table th { background: rgba(116,192,252,0.15); color: var(--text); }

.case-sidebar { position: sticky; top: 90px; }
.sidebar-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.sidebar-card h4 { margin: 0 0 12px; font-size: 16px; }
.sidebar-nav { display: grid; gap: 8px; }
.sidebar-nav a { text-decoration: none; color: var(--text); padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; }
.sidebar-nav a:hover { background: rgba(116,192,252,0.12); border-color: var(--accent); }

@media (max-width: 1024px) {
	.case-layout { grid-template-columns: 1fr; }
	.case-sidebar { position: static; }
}

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

/* Mobile Navigation */
@media (max-width: 768px) {
	.nav-container { 
		flex-wrap: wrap; 
		gap: 12px; 
		padding: 12px 16px; 
	}
	.toggle-container { order: 2; width: 100%; justify-content: space-between; }
	.banner { height: 240px; }
	.contact-container { grid-template-columns: 1fr; }
	.contact-details { grid-template-columns: 1fr; }
	.profile-image img { width: 240px; height: 240px; }

    .hamburger-menu { display: block; }
    
    .nav-menu { 
        position: fixed; 
        top: 100%; 
        left: 0; 
        right: 0; 
        background: var(--card); 
        flex-direction: column; 
        gap: 0; 
        padding: 20px; 
        box-shadow: var(--shadow-lg); 
        border-top: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 100%;
        max-height: calc(100vh - 100%);
        overflow-y: auto;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active { 
        transform: translateY(0); 
        opacity: 1; 
        visibility: visible; 
    }
    
    .nav-link { 
        width: 100%; 
        text-align: left !important; 
        padding: 16px; 
        border-radius: 12px; 
        margin-bottom: 8px;
        border: 1px solid transparent;
        transition: all 0.2s ease;
    }
    
    .nav-link:hover { 
        background: rgba(116, 192, 252, 0.1); 
        border-color: var(--accent);
        transform: translateX(8px);
    }
    
    .nav-link.active { 
        background: var(--accent); 
        color: #fff; 
        border-color: var(--accent);
        transform: translateX(8px);
    }
    
    /* Make mode toggle smaller on mobile */
    .toggle { 
        padding: 4px 10px; 
    }
    
    .star { 
        font-size: 16px; 
    }
    
    /* Add mobile menu backdrop */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: -1;
    }
    
    .nav-menu.active::before {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile about section adjustments */
    .dashboard-title { 
        font-size: clamp(24px, 4vw, 32px); 
        margin: 0 0 12px; 
    }
    
    .section-divider { 
        width: 90%; 
        margin: 24px auto; 
    }
    
    .about-card { 
        padding: 40px 28px; 
        border-radius: 20px; 
        margin: 28px 0;
    }
    
    /* Mobile layout - stack content vertically */
    .about-content { 
        flex-direction: column; 
        gap: 32px; 
        align-items: center;
    }
    
    .about-text { 
        text-align: center; 
        flex: none;
        width: 100%;
    }
    
    .social-buttons { 
        justify-content: center; 
    }
    
    .short-info { 
        text-align: center; 
    }
    
    .about-text h3 { 
        text-align: center; 
    }
    
    .about-text p { 
        text-align: center; 
    }
    
    .action-buttons { 
        justify-content: center; 
    }
    
    .profile-image { 
        padding: 16px; 
        max-width: 280px;
    }
    
    .profile-image img { 
        width: 240px; 
        height: 240px; 
    }
}

@media (max-width: 480px) {
	.nav-menu { gap: 18px; }
	.nav-link { padding: 6px 10px; font-size: 14px; }
	.action-buttons { flex-direction: column; }
	.profile-image img { width: 200px; height: 200px; }
	
	/* Mobile hamburger improvements */
	.hamburger-icon { width: 28px; height: 24px; }
	.hamburger-icon span { height: 4px; }
	.hamburger-icon span:nth-child(2) { top: 10px; }
	.hamburger-icon span:nth-child(3) { top: 20px; }
	
	/* Better mobile nav spacing */
	.nav-menu { padding: 24px 16px; }
	.nav-link { 
		padding: 18px; 
		font-size: 16px; 
		margin-bottom: 12px;
	}
	
	/* Mobile container adjustments */
	.container { padding: 0 16px; }
	
	/* Small screen about section adjustments */
	.dashboard-title { 
		font-size: 22px; 
		margin: 0 0 8px; 
	}
	
	.section-divider { 
		width: 95%; 
		margin: 20px auto; 
	}
	
	.about-card { 
		padding: 50px 50px; 
		border-radius: 18px; 
		margin: 24px 0;
	}
	
	.about-content { 
		gap: 24px; 
		align-items: center;
	}
	
	.profile-image { 
		padding: 12px; 
		max-width: 240px;
	}
	
	.profile-image img { 
		width: 200px; 
		height: 200px; 
		border-radius: 16px; 
	}
}

/* Spacing between text and image */
.about-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 48px;
	max-width: 1200px;
	margin: 0 auto;
}
.about-text { gap: 16px; }

/* Center layout earlier on tablets so profile image centers nicely */
@media (max-width: 1024px) {
	.about-content { flex-direction: column; align-items: center; }
	.bio-row { flex-direction: column; align-items: center; gap: 16px; }
	.bio-row .profile-image { margin: 0 auto; width: 100%; max-width: 520px; height: 260px; }
}

@media (max-width: 768px) {
	.about-content {
		flex-direction: column;
		gap: 24px;
	}
	.profile-image {
		width: 100%;
		height: 260px;
		max-width: 520px;
		margin: 0 auto;
	}
}

/* Short info + profile image row */
.bio-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 8px 0 16px;
}
.bio-row .short-info { flex: 1; }
.bio-row .bio-text { flex: 1; }
.bio-text .action-buttons { margin-top: 20px; }
.bio-row .profile-image { margin: 0 0 0 auto; }

@media (max-width: 768px) {
	.bio-row {
		flex-direction: column;
		align-items: center;
		gap: 16px;
	}
	.bio-row .short-info { text-align: center; }
	.bio-row .bio-text { text-align: center; }
}

/* Make about section wider than default container */
.about-section .container {
	max-width: 1200px;
}

/* Social buttons row with short-info to the right */
.social-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
    flex-wrap: wrap;
}
.social-buttons .short-info {
    margin-left: 16px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
	.about-section .container { max-width: 100%; }
	.social-buttons { justify-content: center; }
	.social-buttons .short-info { margin-left: 0; text-align: center; }
}

/* Close Button Styles */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: #111;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    background: #9fd3fe;
    transform: scale(1.1);
}

/* Contact Form Container with Close Button */
.contact-form {
    position: relative;
}

/* Hide Contact Section when Form is Visible */
.contact-section.form-visible .contact-card {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-section.form-visible .contact-form-container {
    opacity: 1;
    visibility: visible;
}

/* ---------- Mobile Responsiveness ---------- */
@media (max-width: 768px) {
    .header { padding: 0 20px; }
    .nav-links { display: none; text-align: left; }
    .hamburger { display: block; }
    .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--border); padding: 20px; box-shadow: var(--shadow); text-align: left; }
    .nav-links.active a { margin: 10px 0; text-align: left; }
    .about-container { padding: 0 15px; }
    .about-card { padding: 40px 30px; width: 100%; max-width: 100%; }
    
    /* About Section Mobile Layout */
    .about-content {
        flex-direction: column !important;
        gap: 30px !important;
    }
    .bio-row {
        flex-direction: column !important;
        gap: 30px !important;
        text-align: center !important;
    }
    .profile-image {
        order: 1 !important;
        margin: 0 auto !important;
    }
    .bio-text {
        order: 2 !important;
        text-align: center !important;
    }
    .about-actions {
        order: 3 !important;
        text-align: center !important;
    }
    .social-buttons {
        justify-content: center !important;
        margin-bottom: 20px !important;
    }
    .short-info {
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    .action-buttons {
        justify-content: center !important;
        gap: 15px !important;
    }
    
    .projects-grid { grid-template-columns: 1fr; gap: 30px; }
    .project-card { padding: 30px; }
    
    /* Contact Section Mobile Fixes */
    .contact-section { 
        padding: 20px 0 0 0; 
        min-height: auto; 
        position: relative;
    }
    .contact-section .container {
        padding: 0 20px !important;
    }
    .contact-container { 
        flex-direction: column !important; 
        align-items: center !important; 
        width: 100%;
        max-width: 100%;
        padding: 10px 0;
    }
    .contact-card { 
        width: 100% !important; 
        max-width: 100% !important; 
        padding: 30px 20px !important;
        min-height: auto !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0 !important;
    }
    .contact-card h3 { font-size: 28px !important; }
    .contact-card p { font-size: 16px !important; }
    .contact-details { gap: 8px; margin-bottom: 20px; }
    .contact-item { gap: 8px !important; font-size: 14px !important; }
    .social-links { justify-content: center !important; gap: 15px !important; margin-bottom: 30px !important; }
    .social-link { width: 45px !important; height: 45px !important; }
    
    /* Footer Mobile Fixes */
    .footer { 
        padding: 40px 20px 20px; 
        text-align: left;
    }
    .footer-content { 
        grid-template-columns: 1fr; 
        gap: 30px; 
        text-align: left; 
    }
    .footer-section { 
        text-align: left; 
    }
    .footer-section h4 { 
        font-size: 14px; 
        text-align: left;
    }
    .footer-section a { 
        font-size: 13px; 
        text-align: left;
    }
    
    /* Footer Bottom Extra Small Adjustments */
    .footer-bottom { 
        margin-bottom: 60px; 
        text-align: center !important;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .contact-form-container { display: none !important; }
}

@media (max-width: 480px) {
    /* Extra Small Devices */
    .nav-container {
        padding: 10px 12px;
    }
    
    .nav-menu {
        gap: 12px;
    }
    
    .nav-link {
        padding: 5px 8px;
        font-size: 13px;
    }
    
    /* About Section Extra Small Layout */
    .about-card {
        padding: 25px 15px;
    }
    .about-content {
        gap: 20px !important;
    }
    .bio-row {
        gap: 20px !important;
    }
    .profile-image img {
        width: 180px;
        height: 180px;
    }
    .social-buttons {
        gap: 15px !important;
        margin-bottom: 15px !important;
    }
    .short-info {
        margin-bottom: 15px !important;
        font-size: 14px;
    }
    .action-buttons {
        gap: 10px !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .action-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center !important;
    }
    
    /* Contact Section Extra Small Fixes */
    .contact-section { 
        padding: 15px 0 0 0; 
    }
    .contact-section .container {
        padding: 0 15px !important;
    }
    .contact-card { 
        padding: 20px 15px !important;
        border-radius: 16px !important;
    }
    .contact-card h3 { 
        font-size: 24px !important; 
        margin-bottom: 15px !important;
    }
    .contact-card p { 
        font-size: 14px !important; 
        margin-bottom: 20px !important;
    }
    .contact-details { 
        gap: 6px; 
        margin-bottom: 15px; 
    }
    .contact-item { 
        gap: 6px !important; 
        font-size: 13px !important; 
    }
    .social-links { 
        gap: 12px !important; 
        margin-bottom: 25px !important; 
    }
    .social-link { 
        width: 40px !important; 
        height: 40px !important; 
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Footer Extra Small Fixes */
    .footer { 
        padding: 30px 15px 15px; 
        text-align: left;
    }
    .footer-content { 
        gap: 25px; 
        text-align: left;
    }
    .footer-section { 
        text-align: left;
    }
    .footer-section h4 { 
        font-size: 14px; 
        text-align: left;
    }
    .footer-section a { 
        font-size: 13px; 
        text-align: left;
    }
    
    /* Footer Bottom Extra Small Adjustments */
    .footer-bottom { 
        margin-bottom: 60px; 
        text-align: center !important;
    }
    
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* About section content layout */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
}

.bio-row {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    justify-content: center;
}

.profile-image {
	text-align: center;
	background: #fff3cd;
	border-radius: 16px;
	width: 360px;
	height: 300px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow);
	flex-shrink: 0;
	margin: 0 auto;
}

/* Ensure bio-row centers content properly */
.about-actions .bio-row {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    justify-content: center;
    order: 3;
    flex-basis: 100%;
}

.about-actions .bio-text {
    flex: 1;
    max-width: 500px;
    text-align: left;
}

/* ---------- Projects Section ---------- */
.projects-section { 
    padding: 72px 0; 
    background: linear-gradient(180deg, rgba(37,99,235,0.08), rgba(37,99,235,0.04)); 
    width: 100%;
    max-width: 100%;
}

.projects-section--compact { 
    padding-top: 36px; 
}

.projects-section .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 20px !important;
}

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

.projects-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    font-family: 'Bastant', sans-serif;
    font-weight: bold;
}

.projects-header p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Raleway', sans-serif;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.filter-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 20px 32px;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}

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

.filter-btn.active {
    background: var(--accent);
    color: #111;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(116, 192, 252, 0.25);
}

.projects-container {
    position: relative;
    max-width: 70% !important;
    width: 70% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.projects-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
    flex: 1;
    scroll-behavior: smooth;
    flex-wrap: nowrap;
    align-items: stretch;
    min-height: 500px;
}

.projects-row::-webkit-scrollbar {
    display: none;
}

.nav-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 10;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: #9fd3fe;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.nav-btn-left {
    left: 0;
}

.nav-btn-right {
    right: 0;
}

.project-card {
    flex: 0 0 280px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    flex-shrink: 0;
}

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

/* Removed conflicting project-content rule */

/* Removed conflicting project-content h3 rule */

/* Removed conflicting project-content p rule */

.project-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    margin-top: auto;
}

.btn {
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    min-height: 28px;
}

.btn-primary {
    background: var(--accent);
    color: #111;
}

.btn-primary:hover {
    background: #9fd3fe;
}

.btn-secondary {
    background: #ffd700;
    color: #111;
}

.btn-secondary:hover {
    background: #ffe46b;
}

/* Responsive adjustments for single row layout */
@media (max-width: 1200px) {
    .projects-container {
        gap: 6px;
    }
    
    .project-card {
        flex: 0 0 260px;
        min-height: 400px;
    }
    
    .nav-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .projects-container {
        gap: 5px;
        padding: 0 10px;
    }
    
    .projects-row {
        gap: 10px;
    }
    
    .project-card {
        flex: 0 0 240px;
        min-height: 380px;
    }
    
    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    /* Removed conflicting project-content rules */
}

@media (max-width: 480px) {
    .projects-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .projects-row {
        width: 100%;
        justify-content: center;
    }
    
    .project-card {
        flex: 0 0 220px;
        min-height: 360px;
    }
}

.projects-section .projects-container {
    position: relative;
    max-width: 70% !important;
    width: 70% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.projects-section .projects-row {
    display: flex !important;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
    flex: 1;
    scroll-behavior: smooth;
    flex-wrap: nowrap !important;
    align-items: stretch;
    min-height: 500px;
}

.projects-section .projects-row::-webkit-scrollbar {
    display: none;
}

.projects-section .project-card {
    flex: 0 0 280px !important;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    height: 380px !important;
    width: 280px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    min-height: 380px !important;
}

.projects-section .nav-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 10;
    flex-shrink: 0;
}

.projects-section .nav-btn:hover {
    background: #9fd3fe;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.projects-section .nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.projects-section .projects-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin: 20px;
}

.projects-section .projects-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--text);
    text-align: center;
    font-family: 'Fira Mono', monospace;
}

/* Dark mode override for projects header */
body.dark-mode .projects-section .projects-header h2 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
}

/* Light mode override for projects header */
body:not(.dark-mode) .projects-section .projects-header h2 {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    background: none !important;
}

.projects-section .projects-header p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Raleway', sans-serif;
}

.projects-section .project-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.projects-section .filter-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 20px 32px;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}

.projects-section .filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.projects-section .filter-btn.active {
    background: var(--accent);
    color: #111;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(116, 192, 252, 0.25);
}

.projects-section .project-image {
    position: relative;
    height: 144.14px !important;
    width: 278px !important;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 144.14px !important;
    max-width: 278px !important;
    min-height: 144.14px !important;
    min-width: 278px !important;
}

.projects-section .project-image img {
    width: 278px !important;
    height: 144.14px !important;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    max-width: 278px !important;
    max-height: 144.14px !important;
    min-width: 278px !important;
    min-height: 144.14px !important;
}

.projects-section .project-card:hover .project-image img {
    transform: scale(1.05);
}

.projects-section .project-content {
    padding: 24px 24px 0px 24px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--text) !important;
    background: transparent !important;
    width: 278px !important;
    height: 235.88px !important;
    max-width: 278px !important;
    max-height: 235.88px !important;
    min-width: 278px !important;
    min-height: 235.88px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 5 !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 0px !important;
}

.projects-section .project-content h3 {
    font-size: 1.25rem !important;
    margin-bottom: 12px !important;
    color: var(--text) !important;
    font-weight: 600 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    line-height: 1.2 !important;
    max-height: 2.4em !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.projects-section .project-content p {
    color: var(--muted) !important;
    margin-bottom: 12px !important;
    margin-top: 0px !important;
    padding-bottom: 0px !important;
    padding-top: 0px !important;
    line-height: 1.6 !important;
    font-size: 0.85rem !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    text-align: justify !important;
    text-justify: inter-word !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    max-height: 4.8em !important;
}

.projects-section .project-buttons {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

.projects-section .project-buttons .btn {
    padding: 6px 8px !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    min-height: 28px !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 15 !important;
}

.projects-section .project-buttons .btn-primary {
    background: var(--accent) !important;
    color: #111 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.projects-section .project-buttons .btn-secondary {
    background: #ffd700 !important;
    color: #111 !important;
    visibility: visible !important;
    opacity: 1 !important;
}
