/* Dark Mode CSS Variables */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #333333;
    --text-secondary: #4b5563;
    --accent-primary: #3b82f6;
    --accent-secondary: #fbbf24;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-text: #333333;
    --hero-gradient: linear-gradient(135deg, #3b82f6 0%, #fbbf24 100%);
    --icon-gradient: linear-gradient(135deg, #1d4ed8 0%, #f59e0b 100%);
}

[data-theme="dark"] {
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --accent-primary: #1e40af;
    --accent-secondary: #10b981;
    --border-color: #475569;
    --card-bg: #1e293b;
    --navbar-bg: rgba(2, 6, 23, 0.95);
    --navbar-text: #f1f5f9;
    --hero-gradient: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
    --icon-gradient: linear-gradient(135deg, #1e3a8a 0%, #059669 100%);
}

/* General link styles for the whole website */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* Dark mode link styles */
[data-theme="dark"] a {
    color: #10b981;
}

[data-theme="dark"] a:hover {
    color: #34d399;
    text-decoration: underline;
}

/* Keep GitHub button white in dark mode */
[data-theme="dark"] .btn-secondary {
    color: white !important;
}

[data-theme="dark"] .btn-secondary:hover {
    color: white !important;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--navbar-bg);
}

.navbar.scrolled .logo-image {
    filter: none;
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo h2 {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar.scrolled .nav-logo h2 {
    color: var(--accent-primary);
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-link {
    color: var(--navbar-text);
}

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

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

.nav-link.active {
  color: #fff !important;
  font-weight: 700;
  border-bottom: 3px solid #fff;
  padding-bottom: 2px;
  background: none;
}

.navbar.scrolled .nav-link.active {
  color: var(--accent-primary) !important;
  border-bottom: 3px solid var(--accent-primary);
}

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

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

.navbar.scrolled .bar {
    background: var(--navbar-text);
}

/* Mobile menu background when open */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

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

    .nav-menu .nav-link {
        color: var(--text-primary);
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-btn {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.theme-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.navbar.scrolled .theme-btn {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.navbar.scrolled .theme-btn:hover {
    background: var(--accent-primary);
    color: white;
}

/* Hero Section */
/* Fix: Hero section always fills viewport height */
.hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    background: var(--hero-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: var(--accent-primary);
}

.highlight-yellow {
    color: var(--accent-secondary);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--accent-secondary);
    color: #1f2937;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}
.btn-secondary:hover {
    background: white;
    color: #1f2937;
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-icons {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Fix: Make floating icons more visible */
.floating-icons i {
    position: absolute;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.7); /* Increased opacity */
    animation: float 6s ease-in-out infinite;
}

.floating-icons i:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-icons i:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
}

.floating-icons i:nth-child(3) {
    bottom: 20%;
    left: 30%;
    animation-delay: 3s;
}

.floating-icons i:nth-child(4) {
    top: 40%;
    right: 40%;
    animation-delay: 4.5s;
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700 !important;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

.section-intro {
    color: var(--text-secondary);
}

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

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

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

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.skill-category h3 i {
    color: var(--accent-primary);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.skill-item span {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    display: inline-block;
}

.skill-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 4px;
    transition: width 1s ease;
    width: 0%;
}

/* Services Section */
.services {
    background: var(--card-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid.group-4 {
    grid-template-columns: repeat(4, 1fr);
}

.services-grid.group-2 {
    grid-template-columns: repeat(2, 1fr);
}

.services-grid.group-1 {
    grid-template-columns: 1fr;
    max-width: 600px;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--icon-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

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

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Experience Section */
.experience {
    background: var(--bg-secondary);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-primary);
    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(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid var(--border-color);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -60px;
}

.timeline-date {
    background: var(--accent-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

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

.timeline-company {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

/* Blog Section */
.blog {
    background: var(--card-bg);
}

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

.blog-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    background: var(--icon-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image i {
    font-size: 3rem;
    color: white;
}

.blog-content {
    padding: 1.5rem;
}

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

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

.blog-category {
    background: var(--border-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--text-primary);
}

.blog-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.125rem;
}

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

.blog-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: var(--accent-primary);
    opacity: 0.8;
}

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

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--accent-primary);
    background: transparent;
    color: var(--accent-primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-primary);
    color: white;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    background: var(--icon-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image i {
    font-size: 3rem;
    color: white;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

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

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

.project-tech span {
    background: var(--border-color);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Enhanced Project Card Styles */
.project-card.featured {
    border: 2px solid var(--accent-primary);
    position: relative;
}

.project-card.featured::before {
    content: "Featured";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.project-overview {
    font-weight: 500;
    color: var(--text-primary) !important;
    margin-bottom: 1rem !important;
}

.project-details {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.project-section {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-section:last-child {
    margin-bottom: 0;
}

.project-section strong {
    color: var(--text-primary);
}

.project-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
}

.project-link:hover {
    text-decoration: underline;
}

.project-status {
    margin-top: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.in-progress {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.planned {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

/* Page Hero Sections - Using same gradient style as contact */
.about-hero,
.projects-hero,
.blog-hero,
.gallery-hero,
.tools-hero,
.contact-hero {
    background: var(--icon-gradient);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Navbar styling for about page and other pages with icon-gradient hero */
.page-about .navbar,
.page-projects .navbar,
.page-blog .navbar,
.page-gallery .navbar,
.page-tools .navbar,
.page-contact .navbar {
    background: transparent;
}

.page-about .navbar .nav-logo h2,
.page-projects .navbar .nav-logo h2,
.page-blog .navbar .nav-logo h2,
.page-gallery .navbar .nav-logo h2,
.page-tools .navbar .nav-logo h2,
.page-contact .navbar .nav-logo h2 {
    color: white;
}

.page-about .navbar .nav-link,
.page-projects .navbar .nav-link,
.page-blog .navbar .nav-link,
.page-gallery .navbar .nav-link,
.page-tools .navbar .nav-link,
.page-contact .navbar .nav-link {
    color: white;
}

.page-about .navbar .bar,
.page-projects .navbar .bar,
.page-blog .navbar .bar,
.page-gallery .navbar .bar,
.page-tools .navbar .bar,
.page-contact .navbar .bar {
    background: white;
}

.page-about .navbar .theme-btn,
.page-projects .navbar .theme-btn,
.page-blog .navbar .theme-btn,
.page-gallery .navbar .theme-btn,
.page-tools .navbar .theme-btn,
.page-contact .navbar .theme-btn {
    border-color: white;
    color: white;
}

.page-about .navbar .theme-btn:hover,
.page-projects .navbar .theme-btn:hover,
.page-blog .navbar .theme-btn:hover,
.page-gallery .navbar .theme-btn:hover,
.page-tools .navbar .theme-btn:hover,
.page-contact .navbar .theme-btn:hover {
    background: white;
    color: var(--bg-primary);
}



.about-hero::before,
.projects-hero::before,
.blog-hero::before,
.gallery-hero::before,
.tools-hero::before,
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.about-hero .container,
.projects-hero .container,
.blog-hero .container,
.gallery-hero .container,
.tools-hero .container,
.contact-hero .container {
    position: relative;
    z-index: 1;
}

.about-hero .section-title,
.projects-hero .section-title,
.blog-hero .section-title,
.gallery-hero .section-title,
.tools-hero .section-title,
.contact-hero .section-title {
    color: white;
    margin-bottom: 1rem;
}

.about-hero .hero-buttons,
.projects-hero .hero-buttons,
.blog-hero .hero-buttons,
.gallery-hero .hero-buttons,
.tools-hero .hero-buttons {
    justify-content: center;
}

/* Contact Section */
.contact {
    background: var(--icon-gradient);
    color: white;
}

.contact-content {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method i {
    font-size: 1.5rem;
    color: white;
    width: 40px;
}

.contact-method h4 {
    margin-bottom: 0.25rem;
    color: white;
}

.contact-method p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Consistent font and placeholder color for form fields */
.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Inter', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
    color: var(--text-secondary);
    opacity: 1;
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder,
[data-theme="dark"] .form-group select::placeholder {
    color: var(--text-secondary);
    opacity: 1;
}

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

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

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}
.footer-section {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-primary) !important;
}
[data-theme="dark"] .footer-section h3,
[data-theme="dark"] .footer-section h4 {
    color: #4ade80;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    color: var(--text-primary);
    font-weight: 400;
    text-decoration: none;
}
.footer-section ul li a {
    color: var(--accent-primary);
    text-decoration: underline;
    font-weight: 500;
}

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

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

    .hero {
        min-height: 100vh;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        height: 100%;
        align-items: center;
    }
    .hero-visual {
        height: 200px;
    }

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

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

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

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

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

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

    .services-grid,
    .services-grid.group-4,
    .services-grid.group-2 {
        grid-template-columns: 1fr;
    }

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

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

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -40px;
        right: auto;
    }

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

    .section-title {
        font-size: 2rem;
    }
}

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

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .project-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 200px;
    }
} 

/* Resource links in projects grid */
.projects-grid ul {
    list-style: none;
    padding-left: 0;
}
.projects-grid ul li {
    margin-bottom: 0.5rem;
}
.projects-grid ul li a {
    color: var(--accent-primary);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-primary);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.projects-grid ul li a:hover {
    color: var(--accent-secondary);
    border-bottom: 1px solid var(--accent-secondary);
} 

/* Simpler call-to-action link style - no underline */
.cta-link {
    color: var(--accent-primary);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-right: 1.1em;
    transition: color 0.2s;
}
.cta-link::after {
    content: '\2192';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1em;
    color: inherit;
    transition: right 0.2s;
}
.cta-link:hover {
    color: var(--accent-secondary);
}

/* Footer link style - no underline */
.footer-section ul li a {
    color: var(--accent-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-section ul li a:hover {
    color: var(--accent-secondary);
} 

/* Make contact form fields stand out on gradient backgrounds */
.contact .form-group input,
.contact .form-group select,
.contact .form-group textarea {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 0;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contact .form-group input:focus,
.contact .form-group select:focus,
.contact .form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px rgba(37,99,235,0.10);
    outline: none;
} 

/* Accent background behind the Suggest a Resource card */
.suggest-resource-bg {
    background: linear-gradient(120deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    opacity: 0.10;
    border-radius: 32px;
    position: absolute;
    left: 50%;
    top: 0;
    width: 90vw;
    height: 100%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

/* Card style with accent border */
.contact .contact-content {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.10);
    padding: 2.5rem 2rem;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
    border: none;
    position: static;
    z-index: auto;
}

.suggest-resource-bg, .suggest-resource-icon { display: none !important; }

/* Section icon above the title */
.suggest-resource-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem auto;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    color: white;
    font-size: 2rem;
}

/* Button hover effect */
.contact .contact-form button.btn-primary:hover {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(37,99,235,0.13);
    border: none;
} 

/* Ensure .contact-info text is always dark in light mode */
.contact .contact-info h3 {
    color: #222 !important;
}
.contact .contact-info p {
    color: #444 !important;
}
[data-theme="dark"] .contact .contact-info h3,
[data-theme="dark"] .contact .contact-info p {
    color: white !important;
}

/* Make all form fields and submit button the same width and bigger */
.contact .contact-form .form-group input,
.contact .contact-form .form-group select,
.contact .contact-form .form-group textarea,
.contact .contact-form button {
    width: 100%;
    box-sizing: border-box;
    min-height: 64px;
    font-size: 1.25rem;
}
.contact .contact-form .form-group textarea {
    min-height: 140px;
}
.contact .contact-form button {
    width: 100%;
    min-height: 40px;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.5em 0;
    border-radius: 8px;
    margin-top: 0.5rem;
    letter-spacing: 0.01em;
} 

/* Make Resource Name, Category, and Why fields bigger in Suggest a Resource form */
.contact .contact-form .form-group input[type="text"],
.contact .contact-form .form-group input[type="url"],
.contact .contact-form .form-group textarea {
    min-width: 340px;
    min-height: 72px;
    font-size: 1.35rem;
    padding: 1.2em 1em;
}
@media (max-width: 600px) {
  .contact .contact-form .form-group input[type="text"],
  .contact .contact-form .form-group input[type="url"],
  .contact .contact-form .form-group textarea {
    min-width: 100%;
    font-size: 1.1rem;
    padding: 1em 0.7em;
  }
}
.contact .contact-form .form-group textarea {
    min-height: 180px;
    resize: vertical;
}

/* --- Adaptive CSS Enhancements --- */

@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
    padding: 0 16px;
  }
  .hero-container, .about-content, .services-grid, .projects-grid, .blog-grid, .footer-content {
    gap: 2rem;
  }
}

@media (max-width: 1024px) {
  .container {
    max-width: 800px;
    padding: 0 12px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .services-grid.group-3, .services-grid.group-4 {
    grid-template-columns: 1fr 1fr;
  }
  .projects-grid, .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding: 0 6px;
  }
  section {
    padding: 48px 0;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .services-grid.group-3, .services-grid.group-4, .projects-grid, .blog-grid, .footer-content {
    grid-template-columns: 1fr;
  }
  .btn, .btn-primary, .btn-secondary, .contact .contact-form button {
    min-height: 48px;
    font-size: 1rem;
    padding: 0.7em 0.5em;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-section {
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .footer-section h3, .footer-section h4 {
    font-size: 1.1rem;
  }
  .footer-section ul li {
    font-size: 1rem;
    padding: 0.3rem 0;
  }
}

@media (max-width: 600px) {
  .container {
    max-width: 100vw;
    padding: 0 2px;
  }
  section {
    padding: 32px 0;
  }
  .hero-title {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 1rem;
  }
  .contact .contact-content {
    padding: 1rem 0.2rem;
    gap: 1rem;
  }
  .contact .contact-form {
    max-width: 640px;
    margin: 0 auto;
  }
  .contact .contact-form .form-group input,
  .contact .contact-form .form-group select,
  .contact .contact-form .form-group textarea {
    min-width: 100%;
    min-height: 40px;
    font-size: 1rem;
    padding: 0.7em 0.8em;
  }
  .contact .contact-form .form-group textarea {
    min-height: 56px;
    max-height: 180px;
    resize: vertical;
  }
  .contact .contact-form button {
    min-height: 36px;
    font-size: 1rem;
    padding: 0.5em 0;
    border-radius: 8px;
    margin-top: 0.5rem;
  }
} 

/* Make all resource links and footer items look like project-link */
.projects-grid ul li a,
.footer-section ul li a,
.footer-section ul li {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
    border-bottom: none !important;
    padding-bottom: 0;
}

/* Add spacing between footer items for vertical layout */
.footer-section ul li {
    margin-bottom: 0;
    padding: 0.5rem 0;
    display: block;
    line-height: 1.5;
}

.projects-grid ul li a:hover,
.footer-section ul li a:hover,
.footer-section ul li:hover {
    text-decoration: underline;
    border-bottom: none !important;
}

/* Make hyperlinks look different in dark mode */
[data-theme="dark"] .projects-grid ul li a,
[data-theme="dark"] .footer-section ul li a {
    color: #4ade80; /* green-400 */
}
[data-theme="dark"] .projects-grid ul li a:hover,
[data-theme="dark"] .footer-section ul li a:hover {
    color: #fbbf24;
} 

.footer-github {
    color: var(--accent-primary) !important;
}

.footer .highlight {
    color: var(--accent-primary);
    font-weight: inherit;
} 

.footer-section ul li:not(:has(a)) {
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    cursor: default !important;
} 

.footer-accent {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.01em;
} 

.footer .highlight-yellow.footer-accent {
    color: var(--accent-secondary) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
} 

.footer-uniform {
    color: var(--accent-primary) !important;
    font-family: 'Inter', Arial, Helvetica, sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.01em !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    display: block;
} 

@media (max-width: 600px) {
  .about-text {
    padding-left: 15px;
    padding-right: 15px;
  }
} 

.tool-buy-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
}

.tool-buy-link:hover {
    text-decoration: underline;
}

.tool-section-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.tool-section-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.tool-section-card .section-title {
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 0.5rem;
} 

/* Contact method icon and heading color for light mode */
.contact-method h4,
.contact-method i {
    color: var(--accent-primary);
}

/* Contact method text and link color for light mode */
.contact-method p,
.contact-method a {
    color: var(--text-primary);
}

/* Contact method icon and heading color for dark mode */
[data-theme="dark"] .contact-method h4,
[data-theme="dark"] .contact-method i {
    color: #10b981;
}

/* Contact method text and link color for dark mode */
[data-theme="dark"] .contact-method p,
[data-theme="dark"] .contact-method a {
    color: #10b981;
} 

/* Modern semi-transparent navbar for hero-gradient pages */
/* REMOVE ALL OF THE FOLLOWING */
/*
.page-about .navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.3s, box-shadow 0.3s;
}

.page-about [data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.page-about .navbar .nav-link,
.page-about .navbar .nav-logo h2,
.page-about .navbar .theme-btn,
.page-about .navbar .bar {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.page-about .navbar .nav-link.active {
    color: var(--accent-primary) !important;
    border-bottom: 3px solid var(--accent-primary);
}

.page-about .navbar .theme-btn:hover {
    background: var(--accent-primary);
    color: white;
}

.page-about .navbar.scrolled {
    background: var(--navbar-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
*/ 