/* ==================== Reset & Variables ==================== */
:root {
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #06b6d4;
    --accent-secondary: #8b5cf6;
    --text-light: #f1f5f9;
    --text-muted: #cbd5e1;
    --border-color: #334155;
    --gradient-1: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* New variables for theming */
    --card-bg: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(30, 41, 59, 0.7));
    --card-bg-hover: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(30, 41, 59, 0.88));
    --input-bg: rgba(30, 41, 59, 0.5);
    --navbar-bg: rgba(15, 23, 42, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.5);
}

.light-theme {
    --primary-color: #f8fafc;
    --secondary-color: #e2e8f0;
    --text-light: #1e293b;
    --text-muted: #475569;
    --border-color: #cbd5e1;
    --card-bg: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    --card-bg-hover: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    --input-bg: #ffffff;
    --navbar-bg: rgba(248, 250, 252, 0.95);
    --shadow-color: rgba(148, 163, 184, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 1;
}

body.exit-animation {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== Navbar ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.light-theme .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    forced-color-adjust: none; /* Prevents forced colors on menu button */
    -webkit-print-color-adjust: exact;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light) !important; /* Force text color */
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
    forced-color-adjust: none;
    filter: none !important;
}

/* ==================== Hero Section ==================== */
.hero {
    margin-top: 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-1);
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-2);
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-button {
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: var(--gradient-1);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.5);
}

/* ==================== Projects Section ==================== */
.projects {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--card-bg);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.project-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.15);
    background: var(--card-bg-hover);
}

.card-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%) !important;
    background-color: #f5f7fa !important; /* Fallback */
    color-scheme: only light !important; /* Forces light mode rendering for this element */
    forced-color-adjust: none; /* Prevents browser from forcing colors */
    -webkit-print-color-adjust: exact;
    border-bottom: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    isolation: isolate; /* Create a new stacking context */
    transform: translateZ(0); /* Hack for some rendering engines */
}

.card-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    z-index: 2;
    filter: none !important; /* Prevents filters from being applied */
}

.placeholder-icon {
    font-size: 5rem;
    color: var(--accent-color);
    opacity: 1;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-1));
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .card-overlay {
    opacity: 0.15;
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: var(--card-bg-hover);
    gap: 15px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-description {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.card-stats span {
    font-size: 0.85rem;
    color: var(--accent-color);
    background: rgba(6, 182, 212, 0.2);
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.5);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card-button {
    padding: 13px 24px;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    width: 100%;
}

.card-button:hover {
    transform: translateX(5px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

/* ==================== About Section ==================== */
.about {
    padding: 100px 20px;
    background: var(--secondary-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text h2 i {
    margin-right: 10px;
    opacity: 0.9;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.expertise {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(139, 92, 246, 0.05));
    border-left: 3px solid var(--accent-color);
    border-radius: 8px;
}

.expertise p {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skills-list span {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(139, 92, 246, 0.25));
    border: 1.5px solid var(--accent-color);
    color: var(--text-light);
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.skills-list span i {
    margin-right: 6px;
}

/* ==================== Stats Section ==================== */
.stats {
    padding: 80px 20px;
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: var(--card-bg);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.stat-card:hover {
    border-color: var(--accent-color);
    background: var(--card-bg-hover);
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(6, 182, 212, 0.25);
}

.stat-icon {
    font-size: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 60px;
    animation: iconFloat 3s ease-in-out infinite;
}

.stat-card:nth-child(2) .stat-icon {
    animation-delay: 0.3s;
}

.stat-card:nth-child(3) .stat-icon {
    animation-delay: 0.6s;
}

.stat-card:nth-child(4) .stat-icon {
    animation-delay: 0.9s;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-info {
    text-align: left;
}

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Project Card Variants */
.project-card-4 {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(30, 41, 59, 0.95));
}

.project-card-4 .card-overlay {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
}

.project-card-4:hover .placeholder-icon {
}

.project-card-5 {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(30, 41, 59, 0.95));
}

.project-card-5 .card-overlay {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(6, 182, 212, 0.2));
}

.project-card-5:hover .placeholder-icon {
    color: #22c55e;
}

.project-card-6 {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
}

.project-card-6:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(139, 92, 246, 0.25));
}

/* Coming Soon Badge */
.card-stats span {
    font-size: 0.85rem;
    color: var(--accent-color);
    background: rgba(6, 182, 212, 0.2);
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.5);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.project-card-4 .card-stats span:last-child,
.project-card-5 .card-stats span:last-child {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ==================== Contact Section ==================== */
.contact {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--accent-color);
    background: rgba(6, 182, 212, 0.05);
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
    animation: iconPulse 2s ease-in-out infinite;
}

.contact-item:nth-child(2) i {
    animation-delay: 0.3s;
}

.contact-item:nth-child(3) i {
    animation-delay: 0.6s;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.contact-item h3 {
    margin-bottom: 10px;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* ==================== Footer ==================== */
.footer {
    background: var(--primary-color);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.footer p {
    margin: 10px 0;
}

.heart {
    color: #ec4899;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ==================== Contact Form ==================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-form-container h3,
.contact-info-container h3 {
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--accent-color);
}

.form-group input,
.form-group textarea {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
    border: none;
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.contact-info-container .contact-content {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 0;
}

.contact-info-container .contact-item {
    padding: 25px;
    text-align: left;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-info-container .contact-item i {
    margin-bottom: 12px;
    animation: none;
}

.contact-info-container .contact-item:hover {
    background: rgba(6, 182, 212, 0.05);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.contact-info-container .contact-item h4 {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* ==================== Project Filters ==================== */
.projects-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
}

/* ==================== Card Details Button ==================== */
.card-details-btn {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    margin-top: auto;
    font-weight: 500;
}

.card-details-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-1px);
}

/* ==================== Modal ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* Modal Content Styles */
.modal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.modal-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.modal-tagline {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 500;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.modal-features {
    list-style: none;
    padding: 0;
}

.modal-features li {
    color: var(--text-light);
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.modal-features li i {
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-tech span {
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid var(--accent-color);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    color: var(--text-light);
    font-weight: 600;
}

.modal-link {
    display: inline-block;
    background: var(--gradient-1);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 15px;
}

.modal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .projects-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .modal-content {
        padding: 25px;
        width: 95%;
    }

    .hamburger {
        display: flex;
        z-index: 1001; /* Ensure it's above other elements */
        background: transparent; /* Explicit background */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        gap: 0;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 15px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-content {
        padding: 15px;
    }

    .contact-content {
        gap: 20px;
    }

    .stats-grid {
        gap: 15px;
    }

    .stat-card {
        padding: 25px 20px;
        gap: 15px;
    }
}
