/* Modern Portfolio CSS - COMPLETE FIXED VERSION */

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --dark: #f8fafc;
    --light: #1e293b;
    --white: #0f172a;
    --gray: #94a3b8;
    --gray-light: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] body {
    background: #0f172a;
    color: #f8fafc;
}

[data-theme="dark"] .bg-light {
    background: #1e293b;
}

[data-theme="dark"] .modal-content,
[data-theme="dark"] .service-modal-content {
    background: #1e293b;
}

[data-theme="dark"] .portfolio-item,
[data-theme="dark"] .service-card,
[data-theme="dark"] .skill-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .contact-form-card,
[data-theme="dark"] .process-step,
[data-theme="dark"] .pricing-card {
    background: #1e293b;
}

[data-theme="dark"] .footer {
    background: #0f172a;
}

[data-theme="dark"] .floating-badge {
    background: #1e293b;
    color: #f8fafc;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    padding-top: 75px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   PRELOADER
   ========================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    top: 50%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-30px, 30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-light {
    background: white;
    color: var(--primary);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 17px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 40px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

/* Profile Card */
.profile-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.profile-image {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.profile-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px dashed var(--primary);
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floating-badge {
    position: absolute;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    animation: floatBadge 3s ease-in-out infinite;
    z-index: 10;
}

.floating-badge i {
    color: var(--primary);
}

.badge-1 {
    top: 20%;
    left: -30px;
    animation-delay: 0s;
}

.badge-2 {
    top: 20%;
    right: -30px;
    animation-delay: 1s;
}

.badge-3 {
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: var(--gray);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

.bg-light {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.skill-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.skill-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.skill-description {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 14px;
}

.skill-bar {
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
}

.skill-level {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 48px;
}

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 20px;
    transition: var(--transition);
    border: 3px solid transparent;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-description {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: var(--primary);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 48px;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 220px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-category {
    background: white;
    color: var(--dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.project-content {
    padding: 24px;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-description {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 4px 12px;
    background: var(--light);
    border-radius: 6px;
    font-size: 12px;
    color: var(--gray);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--light);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-info i {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-bottom i {
    color: var(--secondary);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Utilities */
.text-center {
    text-align: center;
}

/* Smooth scrolling for modals */
.modal,
.service-modal {
    scroll-behavior: smooth;
}

.modal-content,
.service-modal-content {
    scroll-behavior: smooth;
}

/* Custom scrollbar for modals */
.modal-content::-webkit-scrollbar,
.service-modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track,
.service-modal-content::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb,
.service-modal-content::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.service-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .about-hero,
    .portfolio-hero,
    .services-hero,
    .contact-hero {
        padding: 100px 0 40px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .hero-stats {
        gap: 24px;
    }

    .profile-image {
        width: 280px;
        height: 280px;
    }

    .section-title {
        font-size: 32px;
    }

    .floating-badge {
        font-size: 12px;
        padding: 8px 12px;
    }

    .badge-1,
    .badge-2 {
        position: relative;
        left: 0;
        right: 0;
        top: 0;
        margin: 10px auto;
    }

    .badge-3 {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        margin: 10px auto;
    }
}

/* ==========================================
   ABOUT PAGE STYLES
   ========================================== */
.about-hero {
    padding: 120px 0 60px;
    text-align: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 80px 0;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about-text h2 {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.experience-section {
    background: var(--white);
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-year {
    grid-column: 2;
}

.timeline-content {
    background: var(--light);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-year {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-description {
    color: var(--gray);
    line-height: 1.7;
}

.skills-showcase {
    padding: 80px 0;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.skill-category {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.skill-category h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
    color: var(--gray);
    font-weight: 500;
}

.skill-category li:last-child {
    border-bottom: none;
}

.certifications {
    background: var(--white);
    padding: 80px 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cert-card {
    background: var(--light);
    padding: 30px;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.cert-card:hover {
    border-color: var(--primary);
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
}

.cert-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cert-org {
    color: var(--gray);
    font-size: 14px;
}

/* ==========================================
   PORTFOLIO PAGE STYLES
   ========================================== */
.portfolio-hero {
    padding: 120px 0 60px;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 25px;
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.portfolio-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    text-align: center;
    color: white;
}

.portfolio-category-badge {
    background: white;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

.view-project-btn {
    background: white;
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    transition: var(--transition);
}

.view-project-btn:hover {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.portfolio-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.portfolio-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tech-badge {
    padding: 6px 14px;
    background: var(--light);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
}

.portfolio-year {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.portfolio-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.portfolio-link:hover {
    gap: 10px;
}

/* ==========================================
   MODAL STYLES (Portfolio + Services)
   ========================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    max-width: 700px;
    width: 100%;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    animation: modalSlide 0.3s ease;
    margin: 80px auto 40px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light);
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.modal-image {
    height: 280px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
}

.modal-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    clear: both;
}

.modal-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: var(--light);
    border-radius: 10px;
}

.modal-meta-item h4 {
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-meta-item p {
    font-size: 15px;
    font-weight: 700;
}

.modal-section {
    margin: 25px 0;
}

.modal-section h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.modal-section p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 15px;
}

.modal-features {
    list-style: none;
}

.modal-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.modal-features li::before {
    content: '\2713';
    color: var(--primary);
    font-weight: bold;
    font-size: 16px;
}

/* ==========================================
   SERVICES PAGE STYLES
   ========================================== */
.services-hero {
    padding: 120px 0 60px;
    text-align: center;
}

.service-icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
}

.service-card:hover .service-icon-box {
    animation-play-state: paused;
    transform: scale(1.1);
}

.service-btn {
    width: 100%;
    padding: 12px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 10px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.service-btn:hover {
    background: var(--primary);
    color: white;
}

/* Pricing Section */
.pricing-section {
    background: var(--white);
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--light);
    padding: 40px 30px;
    border-radius: 20px;
    border: 3px solid transparent;
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    background: white;
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.pricing-period {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
    color: var(--gray);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Process Section */
.process-section {
    padding: 100px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.process-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.process-step h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.process-step p {
    color: var(--gray);
    line-height: 1.7;
}

/* Service Modal */
.service-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: center;
}

.service-modal.active {
    display: flex;
}

.service-modal-content {
    background: var(--white);
    max-width: 650px;
    width: 100%;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    animation: modalSlide 0.3s ease;
    margin: 80px auto 40px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.service-modal h2 {
    font-size: 28px;
    margin-bottom: 15px;
    clear: both;
}

.service-modal h3 {
    font-size: 20px;
    margin: 25px 0 12px;
}

.service-modal p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 15px;
}

.service-modal ul {
    list-style: none;
    margin-bottom: 20px;
}

.service-modal li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.service-modal li::before {
    content: '\2713';
    color: var(--primary);
    font-weight: bold;
    font-size: 16px;
}

/* ==========================================
   CONTACT PAGE STYLES
   ========================================== */
.contact-hero {
    padding: 120px 0 60px;
    text-align: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    padding: 80px 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.info-card p,
.info-card a {
    color: var(--gray);
    text-decoration: none;
}

.info-card a:hover {
    color: var(--primary);
}

.contact-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--light);
    color: var(--dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ==========================================
   FORM ERROR STYLES
   ========================================== */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* ==========================================
   NOTIFICATION STYLES (Global)
   ========================================== */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 10000;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification i {
    font-size: 20px;
}

.notification-success i {
    color: #10b981;
}

.notification-error i {
    color: #ef4444;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray);
    margin-left: 12px;
}

/* ==========================================
   DARK MODE - PAGE-SPECIFIC ELEMENTS
   ========================================== */

/* Timeline */
[data-theme="dark"] .timeline-content {
    background: #1e293b;
}

[data-theme="dark"] .timeline-dot {
    background: #0f172a;
}

/* Skill categories */
[data-theme="dark"] .skill-category {
    background: #1e293b;
}

/* Certifications */
[data-theme="dark"] .cert-card {
    background: #1e293b;
}

/* Filter buttons */
[data-theme="dark"] .filter-btn {
    background: #1e293b;
    border-color: #475569;
    color: #f8fafc;
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
}

/* Portfolio items */
[data-theme="dark"] .portfolio-title {
    color: #f8fafc;
}

/* Services page */
[data-theme="dark"] .service-card {
    background: #1e293b;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .service-card h3 {
    color: #f8fafc;
}

[data-theme="dark"] .service-btn {
    background: #0f172a;
    color: var(--primary);
}

[data-theme="dark"] .service-btn:hover {
    background: var(--primary);
    color: white;
}

/* Pricing */
[data-theme="dark"] .pricing-card {
    background: #1e293b;
}

[data-theme="dark"] .pricing-card.featured {
    background: #1e293b;
    border-color: var(--primary);
}

[data-theme="dark"] .pricing-title {
    color: #f8fafc;
}

/* Process steps */
[data-theme="dark"] .process-step {
    background: #1e293b;
}

[data-theme="dark"] .process-step h3 {
    color: #f8fafc;
}

/* Contact forms */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: #0f172a;
    border-color: #475569;
    color: #f8fafc;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: #1e293b;
    border-color: var(--primary);
}

[data-theme="dark"] .form-group label {
    color: #f8fafc;
}

/* Info cards */
[data-theme="dark"] .info-card {
    background: #1e293b;
}

[data-theme="dark"] .info-card h3 {
    color: #f8fafc;
}

/* Notifications */
[data-theme="dark"] .notification {
    background: #1e293b;
    color: #f8fafc;
}

/* Modals */
[data-theme="dark"] .modal-close {
    background: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .modal-close:hover {
    background: var(--primary);
    color: white;
}

/* ==========================================
   WHATSAPP FLOATING BUTTON
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    animation: whatsappPulse 2s infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-tooltip {
    position: absolute;
    left: 70px;
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent #333 transparent transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

[data-theme="dark"] .whatsapp-float {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

[data-theme="dark"] .whatsapp-tooltip {
    background: #1e293b;
}

[data-theme="dark"] .whatsapp-tooltip::before {
    border-color: transparent #1e293b transparent transparent;
}

/* ==========================================
   LIVE CHAT WIDGET
   ========================================== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 90px;
    z-index: 998;
}

.chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.chat-toggle:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.chat-icon-close {
    display: none;
}

.chat-widget.open .chat-icon-open {
    display: none;
}

.chat-widget.open .chat-icon-close {
    display: block;
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-widget.open .chat-window {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.chat-header-name {
    font-weight: 700;
    font-size: 15px;
}

.chat-header-status {
    font-size: 12px;
    opacity: 0.8;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.chat-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    min-height: 250px;
    max-height: 300px;
    background: var(--light);
}

.chat-message {
    margin-bottom: 12px;
    max-width: 80%;
}

.chat-message-sent {
    margin-left: auto;
}

.chat-message-received {
    margin-right: auto;
}

.chat-message p {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
}

.chat-message-sent p {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message-received p {
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--gray-light);
    border-bottom-left-radius: 4px;
}

.chat-time {
    display: block;
    font-size: 11px;
    color: var(--gray);
    margin-top: 4px;
}

.chat-message-sent .chat-time {
    text-align: right;
}

.chat-name-prompt {
    padding: 16px;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--gray-light);
    background: var(--white);
}

.chat-name-prompt input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: var(--light);
    color: var(--dark);
}

.chat-name-prompt input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-name-btn {
    padding: 10px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.chat-name-btn:hover {
    background: var(--primary-dark);
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid var(--gray-light);
    background: var(--white);
}

.chat-input-area input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: var(--light);
    color: var(--dark);
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-send-btn {
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--primary-dark);
}

/* Chat Widget Dark Mode */
[data-theme="dark"] .chat-window {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .chat-messages {
    background: #0f172a;
}

[data-theme="dark"] .chat-message-received p {
    background: #1e293b;
    color: #f8fafc;
    border-color: #475569;
}

[data-theme="dark"] .chat-name-prompt input,
[data-theme="dark"] .chat-input-area input {
    background: #0f172a;
    border-color: #475569;
    color: #f8fafc;
}

[data-theme="dark"] .chat-name-prompt input:focus,
[data-theme="dark"] .chat-input-area input:focus {
    border-color: var(--primary);
}

/* ==========================================
   DARK MODE - MISSING RULES
   ========================================== */

/* Project category badge */
[data-theme="dark"] .project-category {
    background: #1e293b;
    color: #f8fafc;
}

/* Button light */
[data-theme="dark"] .btn-light {
    background: #1e293b;
    color: var(--primary);
}

/* Portfolio category badge */
[data-theme="dark"] .portfolio-category-badge {
    background: #1e293b;
    color: var(--primary);
}

/* View project button */
[data-theme="dark"] .view-project-btn {
    background: #1e293b;
    color: var(--primary);
}

/* Form select option color in dark mode */
[data-theme="dark"] .form-group select option {
    background: #1e293b;
    color: #f8fafc;
}

/* ==========================================
   PAGE-SPECIFIC RESPONSIVE (merged)
   ========================================== */
@media (max-width: 768px) {
    /* About */
    .about-content,
    .skills-categories {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 60px;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        grid-column: 1;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 25px 20px;
        margin: 60px auto 20px;
    }

    .modal-meta {
        grid-template-columns: 1fr;
    }

    .modal-image {
        height: 200px;
    }

    /* Services */
    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

    .service-modal-content {
        padding: 25px 20px;
        margin: 60px auto 20px;
    }

    /* Contact */
    .contact-container,
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Chat widget mobile */
    .chat-widget {
        right: 20px;
    }

    .chat-window {
        width: calc(100vw - 40px);
        right: -10px;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    body {
        padding-top: 65px;
    }

    .about-hero,
    .portfolio-hero,
    .services-hero,
    .contact-hero {
        padding: 90px 0 30px;
    }

    .chat-widget {
        right: 16px;
        bottom: 20px;
    }

    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .chat-window {
        width: calc(100vw - 32px);
        right: -8px;
        max-height: 420px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        left: 16px;
    }
}