:root {
  --nav-height: 81px; /* set to your actual navbar height */
}

/* Google Chrome / Safari */
body::-webkit-scrollbar {
  display: none;
}

/* apply only on non-home pages */
body.has-fixed-nav {
  padding-top: var(--nav-height);
}
.navbar + .container {
  margin-top: var(--nav-height);
}
/* when jumping to #anchors, stop under the fixed nav */
:root { --site-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%); }

html {
  background: #0a0a0a;                 /* fallback */
  background-image: var(--site-bg);
  background-attachment: fixed;        /* keeps it visible during rubber-band */
  background-size: cover;
}

/* let the html background show through */
body {
  background: transparent;
  min-height: 100dvh;                   /* modern viewport unit for mobile */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00f5ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-links a:hover {
    color: #00f5ff;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #00f5ff;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(45deg, #00f5ff, #ff00ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #cccccc;
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.6;
}

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

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #00f5ff, #0080ff);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 245, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: #00f5ff;
    color: #00f5ff;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: #00f5ff;
    color: #00f5ff;
    transform: translateY(-2px);
}

.section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #00f5ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-content {
    padding: 2rem;
}

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

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-type {
    font-size: 0.85rem;
    color: #00f5ff;
    background: rgba(0, 245, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.project-description {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-metrics {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00ff88;
    display: block;
}

.metric-label {
    font-size: 0.8rem;
    color: #999999;
}

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

.tech-tag {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
}

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

.project-link {
    color: #00f5ff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #ffffff;
}

.page {
    display: none;
    min-height: 100vh;
    padding-top: 100px;
}

.page.active {
    display: block;
}

.projects-page .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.all-projects-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    overflow: hidden;
}

.all-projects-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 245, 255, 0.3);
}

.project-image-small {
    width: 100px;
    min-width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #00f5ff;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card-content {
    padding: 1.5rem;
    flex: 1;
}

.project-card-content h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.8;
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category h4 {
    color: #00f5ff;
    margin-bottom: 1rem;
}

.skills-list {
    list-style: none;
}

.skills-list li {
    padding: 0.25rem 0;
    color: #cccccc;
}

/* GitHub Page Styles */
.github-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.github-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.github-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 245, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

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

.repo-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: #ffffff;
}

.repo-language {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 245, 255, 0.2);
    color: #00f5ff;
    border-radius: 12px;
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.github-card p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.repo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00f5ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.repo-link:hover {
    color: #ffffff;
}

.github-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Resume Page Styles */
.resume-section {
    max-width: 800px;
    margin: 0 auto;
}

.contact-card, .resume-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card h3, .resume-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #00f5ff;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-item i {
    color: #00f5ff;
    width: 20px;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
}

.contact-item a:hover {
    color: #00f5ff;
}

.edu-item, .exp-item {
    margin-bottom: 2rem;
}

.edu-header, .exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.edu-header h4, .exp-header h4 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.edu-date, .exp-date {
    color: #00f5ff;
    font-weight: 500;
    font-size: 0.9rem;
}

.edu-degree, .edu-minors, .edu-gpa {
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.exp-company {
    color: #cccccc;
    margin: 0;
}

.edu-honors {
    margin-top: 1rem;
}

.honor-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.exp-details {
    margin-top: 1rem;
    padding-left: 1rem;
}

.exp-details li {
    color: #cccccc;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.honors-grid {
    display: grid;
    gap: 1rem;
}

.honor-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.honor-item i {
    color: #00ff88;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

.honor-item h4 {
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.honor-item p {
    color: #cccccc;
    font-size: 0.9rem;
    margin: 0;
}

.download-resume {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Blog Page Styles */
.blog-posts-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 245, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.blog-post-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.blog-post-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-post-date {
    color: #00f5ff;
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-post-tldr {
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #00f5ff;
    font-style: italic;
}

.blog-post-tldr::before {
    content: "TL;DR: ";
    font-weight: 600;
    font-style: normal;
}

.blog-post-content {
    color: #cccccc;
    line-height: 1.7;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
    color: #ffffff;
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.blog-post-content h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid rgba(0, 245, 255, 0.3);
    padding-bottom: 0.5rem;
}

.blog-post-content h2 {
    font-size: 1.5rem;
}

.blog-post-content h3 {
    font-size: 1.3rem;
}

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

.blog-post-content a {
    color: #00f5ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-content a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.blog-post-content blockquote {
    border-left: 4px solid #00f5ff;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #999999;
}

.blog-post-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

.blog-post-content pre {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
}

.blog-post-content ul,
.blog-post-content ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

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

/* Newsletter Signup Styles - Floating Design */
.newsletter-float-container {
    position: relative;
    margin: 1rem 0 3rem;
    display: flex;
    justify-content: flex-end;
}

.newsletter-float-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    color: #00f5ff;
}

.newsletter-float-toggle:hover {
    background: rgba(0, 245, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 245, 255, 0.2);
}

.newsletter-float-toggle i {
    font-size: 0.9rem;
}

.newsletter-signup-expanded {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-width: 90vw;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    margin-top: 0.5rem;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.newsletter-signup-header h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0;
}

.newsletter-close {
    background: none;
    border: none;
    color: #cccccc;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.newsletter-close:hover {
    color: #00f5ff;
}

.newsletter-signup-expanded p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #00f5ff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.frequency-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.frequency-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.frequency-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.frequency-option input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.frequency-option input[type="radio"]:checked {
    border-color: #00f5ff;
    background: rgba(0, 245, 255, 0.2);
}

.frequency-option input[type="radio"]:checked::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #00f5ff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.frequency-option label {
    color: #cccccc;
    cursor: pointer;
    font-size: 0.9rem;
}

.newsletter-submit {
    background: linear-gradient(45deg, #00f5ff, #0080ff);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 245, 255, 0.3);
}

.newsletter-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.newsletter-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.newsletter-message.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.newsletter-message.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.loading-container {
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #00f5ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.error-container {
    text-align: center;
    padding: 3rem;
    color: #ff6b6b;
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: #cccccc;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 245, 255, 0.1), rgba(255, 0, 255, 0.1));
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .container {
        padding: 0 1rem;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

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

    .download-resume {
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .all-projects-card {
        flex-direction: column;
    }

    .project-image-small {
        width: 100%;
        height: 80px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .frequency-options {
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .newsletter-float-container {
        justify-content: center;
    }

    .newsletter-signup-expanded {
        right: 50%;
        transform: translateX(50%);
    }
}