.about-image {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(.4,1.4,.6,1), transform 0.8s cubic-bezier(.4,1.4,.6,1);
}
.about-image.visible {
    opacity: 1;
    transform: scale(1);
}

.about-highlights {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s 0.2s cubic-bezier(.4,1.4,.6,1), transform 0.8s 0.2s cubic-bezier(.4,1.4,.6,1);
}
.about-highlights.visible {
    opacity: 1;
    transform: translateY(0);
}
.about-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: url('../../uploads/profiel foto.jpg') center/cover no-repeat;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    margin: 0 auto 2rem auto;
    display: block;
}
.about-image img {
    display: none;
}
:root {
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --card-bg: #1e293b;
    --text-color: #f1f5f9;
    --text-secondary: #94a3b8;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --border-color: #334155;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-code: 'Monaco', 'Courier New', monospace;
    --transition: all 0.3s ease;
}

/* Light mode - Warm minimal palette */
/* Light mode - White & Red palette */
[data-theme="light"] {
    --bg-color: #ffffff;           /* pure white background */
    --bg-secondary: #fff6f6;       /* very light neutral section bg */
    --card-bg: #fff6f6;            /* very light neutral card bg */
    --text-color: #1a1a1a;         /* almost black text */
    --text-secondary: #a0a0a0;     /* muted secondary text */
    --border-color: #f2b8b5;       /* soft red border */
    --primary-color: #b8001f;      /* deep true red accent */
    --primary-hover: #7a0014;      /* even deeper red on hover */
}

/* Gentle warm shadows for cards in light mode */
[data-theme="light"] .project-card,
[data-theme="light"] .skill-category,
[data-theme="light"] .highlight-item,
[data-theme="light"] .about-details {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border: 3px solid var(--border-color) !important;
    box-shadow: 4px 4px 0 #b8001f, 8px 8px 0 #fff;
    border-radius: 14px;
}

/* Unique backgrounds for each skill card in light mode */
[data-theme="light"] .skill-category:nth-child(1) {
    background: #e3f0ff; /* light blue for Backend */
    border-color: #90caf9;
}
[data-theme="light"] .skill-category:nth-child(2) {
    background: #e8f5e9; /* mint green for Frontend */
    border-color: #a5d6a7;
}
[data-theme="light"] .skill-category:nth-child(3) {
    background: #fffde7; /* pale yellow for Database */
    border-color: #ffe082;
}
[data-theme="light"] .skill-category:nth-child(4) {
    background: #fff3e0; /* light orange for DevOps */
    border-color: #ffcc80;
}
[data-theme="light"] .skill-category:nth-child(5) {
    background: #ececec; /* light gray for Tools */
    border-color: #bdbdbd;
}


[data-theme="light"] .project-card:hover,
[data-theme="light"] .skill-category:hover,
[data-theme="light"] .highlight-item:hover {
    box-shadow: 0 18px 40px rgba(216, 150, 100, 0.12);
}

/* Dark mode */
[data-theme="dark"] {
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --card-bg: #1e293b;
    --text-color: #f1f5f9;
    --text-secondary: #94a3b8;
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --border-color: #334155;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-code: 'Monaco', 'Courier New', monospace;
    --transition: all 0.3s ease;
}

[data-theme="dark"] body,
[data-theme="dark"] .section,
[data-theme="dark"] .section-about,
[data-theme="dark"] .section-dark {
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .skill-category,
[data-theme="dark"] .highlight-item,
[data-theme="dark"] .about-details,
[data-theme="dark"] .dashboard-section,
[data-theme="dark"] .stat-card {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .carousel-card {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .project-title {
    color: var(--text-color) !important;
}

[data-theme="dark"] .project-desc {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .tag {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
    border-color: #3b82f6 !important;
}

[data-theme="dark"] .btn,
[data-theme="dark"] .btn-primary {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: 1px solid var(--primary-color) !important;
}

[data-theme="dark"] .btn-outline,
[data-theme="dark"] .btn-sm.btn-outline {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
}

[data-theme="dark"] .btn:hover,
[data-theme="dark"] .btn-primary:hover {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

[data-theme="dark"] .btn-outline:hover,
[data-theme="dark"] .btn-sm.btn-outline:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}

[data-theme="dark"] .section-title,
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 {
    color: var(--text-color) !important;
}

[data-theme="dark"] .skill-progress {
    background: var(--primary-color) !important;
}

[data-theme="dark"] .skill-bar {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .skill-name,
[data-theme="dark"] .skill-years {
    color: var(--text-color) !important;
}

[data-theme="dark"] .nav-menu a {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .nav-menu a.active,
[data-theme="dark"] .nav-menu a:hover {
    color: var(--text-color) !important;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid var(--border-color) !important;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .logo {
    color: var(--text-color) !important;
}

[data-theme="dark"] .theme-toggle {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .theme-toggle svg {
    fill: var(--text-color) !important;
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-subtitle {
    color: var(--text-color) !important;
}

[data-theme="dark"] .hero-description {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .about-highlights .highlight-item h4 {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .about-highlights .highlight-item p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .about-details p,
[data-theme="dark"] .about-details a {
    color: var(--text-color) !important;
}

[data-theme="dark"] .contact-info h3,
[data-theme="dark"] .contact-info p {
    color: var(--text-color) !important;
}

[data-theme="dark"] .contact-info a {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
    background: var(--bg-secondary) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
}

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

[data-theme="dark"] .carousel-arrow {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .carousel-arrow:hover {
    color: var(--primary-hover) !important;
}

[data-theme="dark"] .footer {
    background: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .social-btn {
    color: var(--text-secondary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .social-btn:hover {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

[data-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.2) !important;
    color: var(--success-color) !important;
    border: 1px solid var(--success-color) !important;
}

[data-theme="dark"] .alert-error {
    background: #fff !important;
    color: #ff0033 !important;
    border-color: #ff0033 !important;
}

[data-theme="dark"] .alert-warning {
    background: #fff !important;
    color: #ffcc00 !important;
    border-color: #ffcc00 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
.navbar {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

[data-theme="light"] .navbar {
    background: #fff6f6;
    box-shadow: 0 2px 10px rgba(184, 0, 31, 0.08);
    border-bottom: 1.5px solid #f2b8b5;
}
[data-theme="light"] .logo {
    color: var(--primary-color) !important;
}
[data-theme="light"] .theme-toggle {
    background: #fff6f6 !important;
    border: 1.5px solid var(--primary-color) !important;
}
[data-theme="light"] .theme-toggle svg {
    fill: var(--primary-color) !important;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

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

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

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--text-color);
    transition: var(--transition);
}

.theme-toggle:hover svg {
    fill: white;
}

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

.hero-content {
    max-width: 800px;
}

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

.highlight {
    color: var(--primary-color);
    /* Ensure highlight is visible in dark brutalist theme */
}

/* Strong highlight override specifically for dark theme */
[data-theme="dark"] .highlight {
    color: var(--primary-color) !important;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 80px 0;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1;
}

.section-dark {
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
}

/* About Section */
.section-about {
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

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

.about-content:has(.about-image) {
    grid-template-columns: 300px 1fr;
}

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

.about-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.about-text {
    width: 100%;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

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

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

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.highlight-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.highlight-content {
    width: 100%;
}

.highlight-content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.highlight-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.about-details {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    width: 100%;
    box-sizing: border-box;
}

.about-details p {
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.about-details p:last-child {
    margin-bottom: 0;
}

.about-details strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.about-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.about-details a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.about-details a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    border-color: var(--primary-color);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

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

.project-long-desc {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

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

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

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

.skill-item {
    width: 100%;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

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

.skill-percentage {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.skill-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 1.5s ease;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Different colors for each skill category */
.skill-category:nth-child(1) .skill-progress {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.skill-category:nth-child(2) .skill-progress {
    background: linear-gradient(90deg, #10b981, #22d3ee);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.skill-category:nth-child(3) .skill-progress {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.skill-category:nth-child(4) .skill-progress {
    background: linear-gradient(90deg, #fb923c, #f59e42);
    box-shadow: 0 0 10px rgba(251, 146, 60, 0.5);
}

.skill-category:nth-child(5) .skill-progress {
    background: linear-gradient(90deg, #9e9e9e, #bdbdbd);
    box-shadow: 0 0 10px rgba(158, 158, 158, 0.5);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
}

#formMessage {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    display: none;
}

#formMessage.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
    display: block;
}

#formMessage.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

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

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

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Utilities */
.text-center {
    text-align: center;
}

/* Carousel Styles */
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
}
.carousel {
    position: relative;
    width: 900px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.carousel-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 320px;
    min-height: 320px;
    background: var(--card-bg, #fff);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 0;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.4;
    filter: blur(2px);
    z-index: 1;
    transition: all 0.5s cubic-bezier(.4,1.4,.6,1);
    pointer-events: none;
    display: block;
    text-align: left;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.carousel-card .card-content {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
}
.carousel-card.active {
    opacity: 1;
    filter: none;
    transform: translate(-50%, -50%) scale(1.05);
    z-index: 3;
    pointer-events: auto;
    box-shadow: 0 16px 48px rgba(0,0,0,0.22);
}
.carousel-card.left {
    transform: translate(-120%, -50%) scale(0.9) rotateY(10deg);
    opacity: 0.7;
    filter: blur(1px);
    z-index: 2;
}
.carousel-card.right {
    transform: translate(20%, -50%) scale(0.9) rotateY(-10deg);
    opacity: 0.7;
    filter: blur(1px);
    z-index: 2;
}
.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-text, #222);
}
.project-desc {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: var(--secondary-text, #444);
}
.project-tags {
    margin-bottom: 1.2rem;
}
.tag {
    display: inline-block;
    background: none;
    border: 1px solid #e0bfc0;
    color: #c00;
    border-radius: 16px;
    padding: 0.2rem 0.8rem;
    font-size: 0.9rem;
    margin: 0 0.2rem 0.4rem 0;
}
.project-links {
    display: flex;
    gap: 0.7rem;
    margin-top: 0.5rem;
}
.btn-sm {
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    border: 1px solid #c00;
    background: #fff;
    color: #c00;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    cursor: pointer;
}
.btn-sm.btn-primary {
    background: #c00;
    color: #fff;
    border: 1px solid #c00;
}
.btn-sm.btn-outline {
    background: #fff;
    color: #c00;
    border: 1px solid #c00;
}
.btn-sm:hover {
    background: #900;
    color: #fff;
    border-color: #900;
}
.carousel-arrow {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--primary-color, #c00);
    cursor: pointer;
    z-index: 10;
    margin: 0 2rem;
    transition: color 0.2s;
    outline: none;
    user-select: none;
}
.carousel-arrow:hover {
    color: var(--primary-hover, #900);
}

/* ===== RESPONSIVE STYLES ===== */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    .carousel {
        width: 800px;
    }
}

/* Tablets */
@media (max-width: 1000px) {
    .carousel {
        width: 100%;
        max-width: 600px;
    }
    .carousel-card {
        width: 280px;
        min-width: 260px;
    }
    .carousel-arrow {
        margin: 0 0.5rem;
        font-size: 2rem;
    }
    .carousel-card.left {
        transform: translate(-110%, -50%) scale(0.85);
    }
    .carousel-card.right {
        transform: translate(10%, -50%) scale(0.85);
    }
}

/* Mobile and small tablets */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .theme-toggle {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-top: 1px solid var(--border-color);
        display: none;
    }

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

    .hero {
        padding: 6rem 0 4rem;
    }

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

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

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

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

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

    .section {
        padding: 3rem 0;
    }

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

    .about-content,
    .contact-container {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .about-content:has(.about-image) {
        grid-template-columns: 1fr !important;
    }

    .about-text {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
        padding: 0 1rem;
    }

    .about-image {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }

    .about-highlights {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100% !important;
        padding: 0 !important;
    }

    .highlight-item,
    [data-theme="light"] .highlight-item {
        padding: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
        border-width: 1px !important;
        margin: 0 !important;
    }

    .about-details,
    [data-theme="light"] .about-details {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
        border-width: 1px !important;
        border-left-width: 4px !important;
    }

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

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

    /* Carousel mobile adjustments */
    .carousel-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .carousel {
        width: 100%;
        height: 380px;
    }

    .carousel-card {
        width: 85vw;
        max-width: 320px;
        min-height: 340px;
    }

    .carousel-card.left,
    .carousel-card.right {
        display: none !important;
    }

    .carousel-card.active {
        transform: translate(-50%, -50%) scale(1);
    }

    .carousel-arrow {
        position: static;
        margin: 0.5rem;
    }

    .carousel-wrapper {
        position: relative;
    }

    .carousel-arrow.left,
    .carousel-arrow.right {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .carousel-arrow.left {
        left: 0.5rem;
    }

    .carousel-arrow.right {
        right: 0.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-info {
        text-align: center;
    }

    .footer {
        padding: 1.5rem 0;
    }
}

/* Small mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
    }

    .section {
        overflow-x: hidden;
    }

    .navbar .container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

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

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

    .about-content {
        padding: 0;
    }

    .about-text {
        width: 100%;
        padding: 0;
    }

    .about-highlights {
        width: 100%;
        padding: 0;
    }

    .highlight-item {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        box-sizing: border-box;
    }

    .highlight-item h4 {
        font-size: 1rem;
    }

    .highlight-item p {
        font-size: 0.9rem;
    }

    .about-details {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        box-sizing: border-box;
    }

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

    .about-image {
        width: 120px;
        height: 120px;
    }

    .about-details p {
        font-size: 0.95rem;
    }

    .carousel-card {
        width: 90vw;
        padding: 1.5rem 1rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-desc {
        font-size: 0.9rem;
    }

    .project-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-sm {
        width: 100%;
        text-align: center;
    }

    .skill-item {
        padding: 0.8rem 0;
    }

    .skill-name {
        font-size: 0.95rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .carousel-card {
        min-height: 300px;
    }

    .tag {
        font-size: 0.8rem;
        padding: 0.15rem 0.6rem;
    }
}

