:root {
    /* Hostinger Purple Palette */
    --primary-purple: #5025D1;
    --purple-dark: #3B1A9B;
    --purple-light: #6B46C1;
    --purple-accent: #8B5CF6;
    --purple-soft: #A78BFA;
    
    /* Dark Theme Colors */
    --bg-dark: #0F0F23;
    --bg-secondary: #1A1A2E;
    --bg-card: #16213E;
    --bg-surface: #0E3460;
    
    /* Text Colors */
    --text-white: #FFFFFF;
    --text-light: #F8FAFC;
    --text-gray: #CBD5E1;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    
    /* Accent Colors */
    --accent-blue: #3B82F6;
    --accent-cyan: #06B6D4;
    --success: #10B981;
    --warning: #F59E0B;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #5025D1 0%, #3B1A9B 100%);
    --gradient-hero: linear-gradient(135deg, #0F0F23 0%, #1A1A2E 50%, #16213E 100%);
    --gradient-card: linear-gradient(145deg, #16213E 0%, #0E3460 100%);
    --gradient-purple: linear-gradient(135deg, #5025D1 0%, #8B5CF6 100%);
    --gradient-accent: linear-gradient(135deg, #6B46C1 0%, #A78BFA 100%);
    --gradient-dark: linear-gradient(135deg, #0F0F23 0%, #1A1A2E 100%);
    
    /* Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(80, 37, 209, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 10px 15px -3px rgba(80, 37, 209, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-large: 0 25px 50px -12px rgba(80, 37, 209, 0.3), 0 10px 20px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(80, 37, 209, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--bg-dark);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure all sections maintain dark theme */
section, .container, .container-fluid {
    background: transparent;
    color: var(--text-light);
}

/* Force dark background for any section that might have white/light backgrounds */
.skills-section, 
.projects-section,
.portfolio-section,
section:not(.hero-section):not(.contact-section) {
    background: var(--bg-secondary) !important;
    color: var(--text-light) !important;
}

/* Navigation */
.navbar {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(80, 37, 209, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.2rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    background: var(--gradient-purple);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.nav-link {
    font-weight: 600;
    color: #441FAF !important;
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-white) !important;
    background: rgba(68, 31, 175, 0.2);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(80, 37, 209, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(107, 70, 193, 0.08) 0%, transparent 50%);
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--purple-soft) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-subtitle {
    font-size: clamp(1.3rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--purple-accent);
    letter-spacing: -0.02em;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.7;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

/* Buttons */
.btn-custom {
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.02em;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.btn-primary-custom {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-medium);
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
    color: var(--text-white);
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-outline-custom {
    background: rgba(80, 37, 209, 0.1);
    color: var(--text-white);
    border: 2px solid var(--primary-purple);
    backdrop-filter: blur(10px);
}

.btn-outline-custom:hover {
    background: var(--primary-purple);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: var(--text-white);
}

/* Sections */
.section-padding {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    letter-spacing: -0.03em;
    color: var(--text-white);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--gradient-purple);
    border-radius: 3px;
    box-shadow: var(--shadow-glow);
}

/* About Section */
.about-section {
    background: var(--bg-secondary);
    position: relative;
}

.about-content {
    background: var(--gradient-card);
    border-radius: 25px;
    padding: 4rem;
    box-shadow: var(--shadow-large);
    position: relative;
    border: 1px solid rgba(80, 37, 209, 0.2);
    backdrop-filter: blur(10px);
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-purple);
    border-radius: 25px 25px 0 0;
}

.about-intro h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-purple);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.star-accent {
    color: var(--purple-accent);
    font-size: 1.8rem;
    margin: 0 1.5rem;
    animation: twinkle 3s infinite;
    filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.5));
}

.about-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.about-text p {
    margin-bottom: 2rem;
}

.highlight-text {
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.about-image {
    width: 300px;
    height: 380px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--shadow-large);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(80, 37, 209, 0.3);
}

.about-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-glow), var(--shadow-large);
}

.resume-btn {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-medium);
    margin-top: 1.5rem;
}

.resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: var(--text-white);
}

/* Experience Section */
.experience-section {
    background: var(--bg-secondary);
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(80, 37, 209, 0.3);
}

.experience-title {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-purple);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.timeline-item {
    background: var(--bg-surface);
    border-radius: 18px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-purple);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(80, 37, 209, 0.2);
}

.timeline-item:hover {
    transform: translateX(15px);
    box-shadow: var(--shadow-medium);
    background: var(--bg-card);
    border-left-color: var(--purple-accent);
}

.timeline-company {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.timeline-role {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-size: 0.95rem;
    color: var(--purple-soft);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Skills Section - Fixed Dark Theme */
.skills-section {
    background: var(--bg-secondary) !important;
    padding: 6rem 0;
    position: relative;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(80, 37, 209, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
}

.skill-item {
    background: var(--gradient-card);
    padding: 3rem;
    border-radius: 22px;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(80, 37, 209, 0.2);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-purple);
}

.skill-item:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-large);
    border-color: var(--purple-accent);
}

.skill-category {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-purple);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.skill-tag {
    background: var(--primary-purple);
    color: var(--text-white);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.3rem 0.3rem 0.3rem 0;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(80, 37, 209, 0.3);
}

.skill-tag:hover {
    transform: scale(1.08);
    background: var(--purple-accent);
    box-shadow: var(--shadow-glow);
}

/* Projects Section - Fixed Dark Theme */
.projects-section {
    background: var(--bg-dark) !important;
    padding: 6rem 0;
    position: relative;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(80, 37, 209, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

/* Fix project card text visibility */
.project-card {
    background: var(--gradient-card);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(80, 37, 209, 0.2);
    position: relative;
    z-index: 1;
    color: var(--text-white) !important;
}

.project-card h3, 
.project-card h4, 
.project-card h5, 
.project-card h6,
.project-card .card-title,
.project-card .project-title {
    color: var(--text-white) !important;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-card p, 
.project-card .card-text,
.project-card .project-description {
    color: var(--text-gray) !important;
    line-height: 1.6;
}

.project-card .card-body {
    background: transparent !important;
    color: var(--text-white) !important;
    padding: 2rem;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-large);
}

.project-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(80, 37, 209, 0.95), rgba(139, 92, 246, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links a {
    color: var(--text-white);
    font-size: 1.6rem;
    margin: 0 1rem;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-links a:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.project-card h5 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.project-card .card-body {
    background: transparent;
    padding: 2rem;
}

.tech-tag {
    background: rgba(80, 37, 209, 0.2);
    color: var(--purple-soft);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.25rem;
    border: 1px solid rgba(80, 37, 209, 0.4);
}

/* Contact Section - Maintain existing purple gradient */
.contact-section {
    background: var(--gradient-primary);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 22px;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-medium);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.8rem;
    margin-right: 1.5rem;
    width: 40px;
    text-align: center;
}

/* Footer */
.footer {
    background: #0A0A0A;
    color: var(--text-gray);
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(80, 37, 209, 0.2);
}

/* Override any Bootstrap or framework whites/lights */
.bg-white, 
.bg-light, 
.text-dark {
    background: var(--bg-secondary) !important;
    color: var(--text-light) !important;
}

.card {
    background: var(--gradient-card) !important;
    border: 1px solid rgba(80, 37, 209, 0.2) !important;
    color: var(--text-light) !important;
}

.card-body {
    background: transparent !important;
    color: var(--text-light) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.2) rotate(180deg); 
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-main {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-image {
        width: 250px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
    
    .about-content {
        padding: 2.5rem 1.5rem;
    }
    
    .skill-item {
        padding: 2rem;
    }
    
    .timeline-item {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .btn-custom {
        width: 100%;
        justify-content: center;
    }
}

/* Additional styles for social media contact items */
.contact-item a {
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--purple-soft);
    transform: scale(1.05);
}

/* Specific icons styling for social media */
.contact-item .fab.fa-linkedin {
    color: #0A66C2;
}

.contact-item .fab.fa-instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-item:hover .fab.fa-linkedin {
    color: #004182;
    transform: scale(1.1);
}

.contact-item:hover .fab.fa-instagram {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Systems Development Section Styles */
.system-card {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(80, 37, 209, 0.2);
    position: relative;
    overflow: hidden;
}

.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-purple);
}

.system-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: var(--purple-accent);
}

.system-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.system-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-medium);
}

.system-icon i {
    font-size: 1.8rem;
    color: var(--text-white);
}

.system-title-area {
    flex: 1;
}

.system-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.system-category {
    font-size: 0.9rem;
    color: var(--purple-soft);
    font-weight: 500;
    margin-bottom: 0;
}

.system-content {
    color: var(--text-gray);
}

.system-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.system-features {
    margin-bottom: 1.5rem;
}

.features-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-gray);
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.4rem;
    color: var(--success);
    font-weight: bold;
    font-size: 0.9rem;
}

.system-technologies {
    margin-bottom: 2rem;
}

.system-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.system-footer .btn {
    flex: 1;
    min-width: 120px;
}

/* Responsive adjustments for systems */
@media (max-width: 768px) {
    .system-card {
        padding: 2rem 1.5rem;
    }
    
    .system-header {
        flex-direction: column;
        text-align: center;
    }
    
    .system-icon {
        margin: 0 auto 1rem auto;
    }
    
    .system-footer {
        flex-direction: column;
    }
    
    .system-footer .btn {
        width: 100%;
    }
}

/* Website section additional styles */
.project-card .btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.project-card small {
    font-size: 0.8rem;
}

.project-card .d-flex {
    border-top: 1px solid rgba(80, 37, 209, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}



/* Mobile Font Size Adjustments - Add these to your existing CSS */

/* Hero Section Mobile Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem) !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.4rem) !important;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem !important;
        margin-bottom: 2rem;
    }
}

/* Section Titles Mobile */
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem) !important;
        margin-bottom: 2.5rem;
    }
}

/* About Section Mobile */
@media (max-width: 768px) {
    .about-intro h3 {
        font-size: 1.8rem !important;
    }
    
    .about-text {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }
    
    .about-text p {
        margin-bottom: 1.5rem;
    }
}

/* Experience Section Mobile */
@media (max-width: 768px) {
    .experience-title {
        font-size: 1.6rem !important;
    }
    
    .timeline-company {
        font-size: 1.1rem !important;
    }
    
    .timeline-role {
        font-size: 0.95rem !important;
    }
    
    .timeline-date {
        font-size: 0.85rem !important;
    }
    
    .timeline-description {
        font-size: 0.9rem !important;
        line-height: 1.5;
    }
}

/* Skills Section Mobile */
@media (max-width: 768px) {
    .skill-category {
        font-size: 1.2rem !important;
        margin-bottom: 1.5rem;
    }
    
    .skill-tag {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem;
    }
}

/* Systems/Projects Mobile */
@media (max-width: 768px) {
    .system-title {
        font-size: 1.1rem !important;
    }
    
    .system-category {
        font-size: 0.8rem !important;
    }
    
    .system-description {
        font-size: 0.9rem !important;
    }
    
    .features-title {
        font-size: 0.9rem !important;
    }
    
    .features-list li {
        font-size: 0.85rem !important;
    }
    
    .project-card h5 {
        font-size: 1.1rem !important;
    }
    
    .project-card p {
        font-size: 0.9rem !important;
    }
    
    .tech-tag {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.7rem;
    }
}

/* Contact Section Mobile */
@media (max-width: 768px) {
    .contact-item h6 {
        font-size: 0.9rem !important;
        margin-bottom: 0.3rem;
    }
    
    .contact-item p {
        font-size: 0.85rem !important;
    }
    
    .contact-item i {
        font-size: 1.4rem !important;
    }
}

/* Button Text Mobile */
@media (max-width: 768px) {
    .btn-custom {
        font-size: 0.9rem !important;
        padding: 0.8rem 1.8rem;
    }
    
    .btn-sm {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem;
    }
    
    .resume-btn {
        font-size: 0.9rem !important;
        padding: 0.8rem 1.5rem;
    }
}

/* Small Mobile Screens (320px - 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.5rem) !important;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem) !important;
    }
    
    .hero-section p {
        font-size: 0.9rem !important;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 5vw, 1.8rem) !important;
    }
    
    .about-text {
        font-size: 0.9rem !important;
    }
    
    .timeline-company {
        font-size: 1rem !important;
    }
    
    .system-title {
        font-size: 1rem !important;
    }
    
    .project-card h5 {
        font-size: 1rem !important;
    }
}

/* Website Portfolio Section - Force white text */
#websites .section-title,
#websites h2,
#websites h3,
#websites h4,
#websites h5 {
    color: var(--text-white) !important;
    font-weight: 700;
}

#websites .text-center.mb-5.text-muted {
    color: var(--text-gray) !important;
}

#websites .project-card h5 {
    color: var(--text-white) !important;
    font-weight: 700;
    margin-bottom: 1rem;
}

#websites .project-card p,
#websites .project-card .text-muted {
    color: var(--text-gray) !important;
    line-height: 1.6;
}

#websites .project-card small {
    color: var(--text-muted) !important;
}

/* Systems Development Section - Force white text */
#systems .section-title,
#systems h2,
#systems h3,
#systems h4 {
    color: var(--text-white) !important;
    font-weight: 700;
}

#systems .text-center.mb-5.text-muted {
    color: var(--text-gray) !important;
}

#systems .system-title {
    color: var(--text-white) !important;
    font-weight: 700;
}

#systems .system-category {
    color: var(--purple-soft) !important;
}

#systems .system-description {
    color: var(--text-gray) !important;
}

#systems .features-title {
    color: var(--text-white) !important;
    font-weight: 600;
}

#systems .features-list li {
    color: var(--text-gray) !important;
}

/* Fix any Bootstrap overrides that might be causing issues */
.text-muted {
    color: var(--text-gray) !important;
}

.text-dark {
    color: var(--text-white) !important;
}

/* Ensure section backgrounds remain dark */
#websites {
    background: var(--bg-secondary) !important;
    color: var(--text-white);
}

#systems {
    background: var(--bg-secondary) !important;
    color: var(--text-white);
}

/* Additional specificity for stubborn text elements */
section#websites *,
section#systems * {
    color: inherit;
}

section#websites h1,
section#websites h2,
section#websites h3,
section#websites h4,
section#websites h5,
section#websites h6,
section#systems h1,
section#systems h2,
section#systems h3,
section#systems h4,
section#systems h5,
section#systems h6 {
    color: var(--text-white) !important;
}

section#websites p,
section#systems p {
    color: var(--text-gray) !important;
}

/* Fix for cards in both sections */
#websites .project-card,
#systems .system-card {
    background: var(--gradient-card) !important;
    color: var(--text-white) !important;
    border: 1px solid rgba(80, 37, 209, 0.2);
}

#websites .project-card .card-body,
#systems .system-card .system-content {
    background: transparent !important;
    color: var(--text-white) !important;
}