:root {
    --primary-color: #e91e63;
    --secondary-color: #64748b;
    --dark-bg: #0f172a;
    --light-bg: #fce4ec;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #f8bbd9;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --hover-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffebf0 !important;
}

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

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

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

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ff6b9d 0%, #feca57 100%);
    color: white;
    padding: 8rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: visible;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.certification-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.cert-stat {
    text-align: center;
    color: white;
}

.cert-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cert-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    cursor: pointer;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

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

.feature-card {
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

/* Page Content */
.page-content {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.page-intro {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* About Page */
.about-intro {
    margin-bottom: 3rem;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.interest-item {
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
}

.values-list {
    list-style-position: inside;
    line-height: 2;
    font-size: 1.1rem;
}

/* Resume Page */
.resume-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-info {
    color: var(--text-light);
}

.resume-section {
    margin-bottom: 3rem;
}

.resume-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.job-entry {
    margin-bottom: 2rem;
}

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

.job-date {
    color: var(--text-light);
}

.job-company {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.job-responsibilities {
    list-style-position: inside;
    line-height: 1.8;
}

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

.skill-category h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style: none;
    line-height: 1.8;
}

/* Cars Page */
.cars-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

.car-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.car-image-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #ff6b9d 0%, #feca57 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.car-details {
    padding: 2rem;
}

.car-specs {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.spec-item {
    background-color: var(--light-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.car-features h3 {
    margin: 1.5rem 0 1rem;
    color: var(--primary-color);
}

.dream-cars {
    list-style-position: inside;
    line-height: 2;
}

/* Links Page */
.links-section {
    margin-bottom: 3rem;
}

.links-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.link-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.link-card:hover {
    transform: translateY(-3px);
}

.link-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.link-category {
    display: inline-block;
    background-color: var(--light-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* TeslaMate Page */
.dashboard-container {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 2rem 0;
    min-height: 600px;
    box-shadow: var(--card-shadow);
}

.dashboard-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 500px;
    background-color: var(--light-bg);
    border-radius: 0.5rem;
}

.placeholder-note {
    color: var(--text-light);
    margin-top: 1rem;
}

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

.stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
}

/* Blog Page */
.blog-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.blog-post {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.post-header h2 a {
    color: var(--text-dark);
    text-decoration: none;
}

.post-header h2 a:hover {
    color: var(--primary-color);
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.post-category {
    background-color: var(--light-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.post-excerpt {
    margin: 1rem 0;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}

.sidebar-section h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.category-list,
.recent-posts,
.archive-list {
    list-style: none;
    line-height: 1.8;
}

.category-list a,
.recent-posts a,
.archive-list a {
    color: var(--text-dark);
    text-decoration: none;
}

.category-list a:hover,
.recent-posts a:hover,
.archive-list a:hover {
    color: var(--primary-color);
}

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

.subscribe-form input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
}

/* Blog Post Page */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
}

.reading-time {
    margin-left: auto;
}

.article-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    line-height: 1.8;
}

.article-content h2 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.article-content h3 {
    margin: 1.5rem 0 0.75rem;
    color: var(--text-dark);
}

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

.article-content ul,
.article-content ol {
    margin: 1rem 0 1rem 2rem;
}

.article-content pre {
    background-color: var(--dark-bg);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.article-content code {
    background-color: var(--light-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.article-footer {
    margin-top: 3rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tag {
    background-color: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.article-nav {
    display: flex;
    justify-content: space-between;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.pagination-prev,
.pagination-next {
    color: var(--primary-color);
    text-decoration: none;
}

.pagination-prev.disabled,
.pagination-next.disabled {
    color: var(--text-light);
    pointer-events: none;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.contact-info-section {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    height: fit-content;
}

.contact-item {
    margin-bottom: 2rem;
}

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

.social-links {
    list-style: none;
    line-height: 1.8;
}

.social-links a {
    color: var(--text-dark);
    text-decoration: none;
}

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

.contact-cta {
    text-align: center;
    margin: 3rem 0;
}

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

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--card-shadow);
    }

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

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 1.5rem;
        white-space: normal;
    }

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

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

    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .blog-sidebar {
        position: static;
    }

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

    .certification-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .cert-number {
        font-size: 2.5rem;
    }

    .cert-label {
        font-size: 1rem;
    }

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

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

@media print {
    .navbar,
    .footer,
    .resume-download {
        display: none;
    }

    .page-content {
        padding: 0;
    }

    .resume-section {
        page-break-inside: avoid;
    }
}

/* TeslaMate Dashboard Styles */
.dashboard-container {
    margin: 2rem 0;
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
}

.dashboard-container iframe {
    display: block;
    width: 100%;
    min-height: 600px;
    background: white;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .dashboard-container iframe {
        min-height: 400px;
        height: 70vh;
    }
}