/* ==============================================
   MODERN EMBEDDED SYSTEMS PORTFOLIO
   Dark Theme | Responsive | Glassmorphism
   ============================================== */

/* --- VARIABLES & RESET --- */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #06b6d4; /* Cyan */
    --accent-secondary: #3b82f6; /* Blue */
    --accent-tertiary: #10b981; /* Green */
    --accent-magenta: #ec4899; /* Pink */
    --gradient-main: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.3);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 2rem; color: var(--text-primary); }
h3 { font-size: 1.5rem; color: var(--text-primary); }
h4 { font-size: 1.25rem; color: var(--accent-primary); }
p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }
a { color: var(--accent-primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--accent-secondary); text-decoration: none; }

/* --- FONTS IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 2rem;
    transition: var(--transition-normal);
}

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

.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-normal);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Mobile Menu Toggle */
.hamburger-toggle {
    display: none;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.hamburger-toggle:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-primary);
    background: rgba(6, 182, 212, 0.1);
}

.nav-link.active {
    border-bottom: 2px solid var(--accent-primary);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        padding: 2rem;
        flex-direction: column;
        gap: 1rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-link {
        padding: 1rem;
        width: 100%;
        text-align: center;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

/* --- LAYOUT --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-fluid {
    padding: 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col-md-1, .col-md-2, .col-md-4, .col-md-6, .col-md-12 {
    padding: 0 1rem;
}

.col-md-4 { flex: 0 0 calc(33.333% - 2rem); }
.col-md-6 { flex: 0 0 calc(50% - 2rem); }
.col-md-12 { flex: 0 0 100%; }

@media (max-width: 768px) {
    .col-md-4 { flex: 0 0 100%; margin-bottom: 1rem; }
    .col-md-6 { flex: 0 0 100%; }
    .container { padding: 0 1rem; }
    .navbar { padding: 0.5rem 1rem; }

    .col-md-2, .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9, .col-md-10 {
        flex: 0 0 calc(100% - 2rem);
    }
}

/* --- GLASSMORPHISM CARD --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(6, 182, 212, 0.3);
}

/* --- ENHANCED CARDS --- */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-main);
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-image {
    transform: scale(1.1);
}

.service-card-content {
    padding: 1.5rem;
}

.service-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.service-description {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
.service-features {
    margin-bottom: 1.25rem;
}
.service-features ul {
    list-style: none;
    padding: 0;
}
.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.service-features li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}
.service-card-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.btn-primary {
    background: var(--gradient-main);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}
.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
}
.btn-secondary:hover {
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}
/* Mobile Card Layout */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1rem;
    }

    .service-card-image-wrapper {
        height: 160px;
    }

    .service-card-content {
        padding: 1rem;
    }

    .service-card-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .service-features li {
        font-size: 0.8rem;
    }
}
/* --- ABOUT SECTION --- */
.about-section {
    padding: 6rem 0;
}
.about-content {
    max-width: 800px;
    margin: 0 auto;
}
.about-highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.about-feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition-normal);
}
.about-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}
.about-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}
/* --- SKILLS SECTION --- */
.skills-section {
    padding: 6rem 0;
}
.skills-header {
    text-align: center;
    margin-bottom: 3rem;
}
.skills-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.skills-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}
.skill-item {
    margin-bottom: 1.5rem;
}
.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}
.skill-proficiency {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
}
.skill-bar {
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
}
.skill-progress {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 6px;
    transition: width 1.5s ease;
    position: relative;
    overflow: hidden;
}
.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@keyframes fillBar {
    from { width: 0; }
}
.skill-description {
    margin-top: 0.75rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.skill-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    color: var(--accent-primary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    cursor: default;
}
.skill-tag:hover {
    background: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}
/* --- CONTACT SECTION --- */
.contact-section {
    padding: 6rem 0;
}
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}
.contact-title {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}
.contact-info {
    margin-top: 3rem;
    text-align: center;
}
.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}
.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.contact-email {
    font-size: 1.25rem;
    color: var(--accent-primary);
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}
.form-control {
    width: 100%;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}
form-label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 500;
    font-size: 1.05rem;
}
form-textarea {
    resize: vertical;
    min-height: 120px;
}
.submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}
.error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}
.success-message {
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid rgba(16, 185, 129, 0.5);
    color: #10b981;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}
/* Form controls - used in contact form */
.form-control {
    width: 100%;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}
/* Submit button */
.submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}
/* Message alerts */
.error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}
.success-message {
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid rgba(16, 185, 129, 0.5);
    color: #10b981;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}
/* --- FOOTER --- */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    text-align: center;
    position: reative;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.footer-link {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.footer-link:hover {
    color: var(--accent-primary);
}
.footer-copy {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-on-scroll {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}
.animate-on-scroll:nth-child(1) { animation-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { animation-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { animation-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { animation-delay: 0.4s; }
/* --- UTILITY CLASSES --- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mt-6 { margin-top: 4rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.text-center { text-align: center; }
.text-primary { color: var(--accent-primary); }
.text-secondary { color: var(--text-secondary); }
.text-white { color: var(--text-primary); }
.section {
    padding: 6rem 0;
}
/* --- EMBEDDED SERVICES --- */
.service-card {
    height: 100%;
}
.service-card-image-wrapper {
    height: 200px;
}
.service-card-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 16px 16px 0 0;
}
/* --- TIMELINE STYLES (for Experience/Education) --- */
.timeline-section {
    padding: 6rem 0;
}
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
}
.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 2px solid var(--bg-primary);
}
/* --- EXPERIENCE STYLES --- */
.experience-card {
    margin-bottom: 2rem;
    transition: var(--transition-normal);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.experience-title {
    font-size: 1.5rem;
    margin: 0;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.experience-company {
    color: var(--accent-secondary);
    font-weight: 500;
    margin: 0;
}

.experience-date {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.experience-location {
    color: var(--accent-tertiary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Markdown content styling */
.markdown-content {
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border-left: 3px solid var(--accent-primary);
}

.markdown-content p {
    white-space: pre-line;
    margin-bottom: 1rem;
}

.markdown-content ul {
    margin-left: 1.5rem;
}

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

/* --- EDUCATION STYLES --- */
.education-section {
    padding: 6rem 0;
}

.education-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--glass-border);
}

.education-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
}

.degree-badge {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.education-card {
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
}

.education-school {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-degree {
    font-size: 1.5rem;
    color: var(--accent-tertiary);
    margin-bottom: 1rem;
}

.education-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.education-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.education-year {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-left: auto;
}

.education-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.education-description ul {
    list-style: none;
    padding-left: 0;
}

.education-description li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 8px;
    color: var(--text-secondary);
}

.education-coursework {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.coursework-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coursework-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.coursework-tag {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.coursework-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* --- SKILL TAGS --- */
.skill-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    color: var(--accent-primary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    cursor: default;
}

.skill-tag:hover {
    background: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

/* --- SKILL BARS --- */
.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 5px;
    width: 0;
    transition: width 1s ease;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
    }
}

/* --- LOADING SPINNER --- */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(6, 182, 212, 0.2);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- ERROR STATES --- */
.error {
    color: #ef4444;
    padding: 2rem;
    text-align: center;
}

/* --- SUCCESS STATES --- */
.success {
    color: #10b981;
    padding: 2rem;
    text-align: center;
}

/* ==============================================
   EMBEDDED SYSTEMS SPECIFIC STYLES
   ============================================== */

/* Tech Icons */
.tech-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Code Snippet Style */
code {
    background: rgba(6, 182, 212, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--accent-primary);
    font-size: 0.9rem;
}

pre {
    background: rgba(15, 23, 42, 0.9);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code {
    background: transparent;
    padding: 0;
    color: var(--text-primary);
}

/* Terminal Effect */
.terminal {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

.terminal-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
}

/* ==============================================
   PARTICLE BACKGROUND EFFECT
   ============================================== */

.particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 4s ease-in-out infinite;
}

/* ==============================================
   MOBILE OPTIMIZATION
   ============================================== */

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .terminal {
        font-size: 0.85rem;
    }
    
    pre {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-primary);
    color: white;
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #1a1a1a;
    }
    
    .glass-card,
    .service-card {
        border-width: 2px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .hamburger-toggle,
    .nav-links,
    .footer-links {
        display: none !important;
    }
    
    .service-card,
    .glass-card {
        break-inside: avoid;
    }
}