/* Reset and Base Styles */
* {
    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: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: -1;
    backdrop-filter: blur(100px);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

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

.nav-logo h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2563eb;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(226, 232, 240, 0.8) 100%);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

/* Code Snippets */
.code-snippets {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 600px;
}

.code-line {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.code-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.code-line.sql {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    color: #059669;
    border-color: rgba(34, 197, 94, 0.3);
    animation-delay: 0.2s;
}

.code-line.python {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.3);
    animation-delay: 0.4s;
}

.code-line.excel {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.3);
    animation-delay: 0.6s;
}

.code-line.r {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    color: #7c3aed;
    border-color: rgba(139, 92, 246, 0.3);
    animation-delay: 0.8s;
}

.code-line.javascript {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(234, 179, 8, 0.05));
    color: #ca8a04;
    border-color: rgba(234, 179, 8, 0.3);
    animation-delay: 0.8s;
}

.code-line:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 1.0s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-text h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2563eb;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 1.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #2563eb;
    padding: 12px 30px;
    border: 2px solid #2563eb;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.hero-social {
    display: flex;
    gap: 1rem;
}

.hero-social a {
    width: 45px;
    height: 45px;
    background: white;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-social a:hover {
    color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}


/* Data Science Visual */
.data-science-visual {
    width: 350px;
    height: 350px;
    position: relative;
    background: linear-gradient(135deg, #1e293b, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.4);
    overflow: hidden;
}

.data-elements {
    position: relative;
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

.data-point {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

.data-point:nth-child(1) {
    top: 20px;
    right: 50px;
}

.data-point:nth-child(2) {
    top: 50px;
    left: 20px;
}

.data-point:nth-child(3) {
    bottom: 50px;
    right: 20px;
}

.data-point:nth-child(4) {
    bottom: 20px;
    left: 50px;
}

.data-point i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #60a5fa;
}

.central-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.5);
    z-index: 10;
}

.central-node i {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent 70%);
    border-radius: 50%;
    animation: float 12s ease-in-out infinite;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-intro {
    margin-bottom: 2.5rem;
}

.about-intro h3 {
    color: #1e293b;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.intro-highlight {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
    margin-bottom: 1.5rem;
}

.intro-highlight p {
    font-size: 1.2rem;
    color: #1e293b;
    margin: 0;
    line-height: 1.6;
}

.key-achievements {
    margin-bottom: 2.5rem;
}

.key-achievements h4 {
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.achievement-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.achievement-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #10b981;
    color: #374151;
    line-height: 1.6;
    font-size: 1rem;
}

.achievement-item .highlight {
    background: #dcfce7;
    color: #166534;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* My Approach - Rendered Box Style */
.approach-section {
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    padding: 3rem;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.3);
}

.approach-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.approach-section h4 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.approach-section h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #34d399);
    border-radius: 2px;
}

.approach-intro {
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.approach-intro p {
    font-size: 1.3rem;
    color: #e2e8f0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.step-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #34d399, #fbbf24);
}

.step-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(96, 165, 250, 0.4);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.4);
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-content strong {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.step-content span {
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.approach-conclusion {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    position: relative;
    z-index: 2;
}

.approach-conclusion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #34d399, #60a5fa, #a78bfa);
}

.approach-conclusion p {
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.7;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.specialization {
    margin-bottom: 2.5rem;
}

.specialization h4 {
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.spec-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.spec-item {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    border-radius: 8px;
    color: #374151;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.spec-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.education {
    margin-bottom: 2rem;
}

.education h4 {
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.education-item {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #8b5cf6;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #2563eb);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}

.education-item h5 {
    color: #1e293b;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.education-item p {
    color: #2563eb;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.education-note {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
    font-weight: 500;
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border-left: 3px solid #8b5cf6;
}

.call-to-action {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 15px 35px rgba(30, 41, 59, 0.4);
    border: 2px solid #475569;
    position: relative;
    overflow: hidden;
}

.call-to-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #8b5cf6, #10b981);
}

.call-to-action p {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.7;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.call-to-action strong {
    color: #60a5fa;
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-text ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.8rem;
    color: #64748b;
    line-height: 1.6;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::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.6s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
    backdrop-filter: blur(20px);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: -10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08), transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: visible !important; /* CRITICAL FIX: Allow buttons to be visible */
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    min-height: 450px !important; /* INCREASED: More space for content */
    max-height: none !important; /* REMOVED: No height restriction */
    padding-bottom: 20px !important; /* ADDED: Extra space for buttons */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* FIXED: Allow content to be visible and ensure proper spacing */
    min-height: 0;
    overflow: visible !important; /* CRITICAL FIX: Allow buttons to be visible */
    /* Better width control for typography */
    max-width: 100%;
    /* Ensure buttons have space */
    padding-bottom: 80px !important; /* ADDED: Extra space for buttons */
    height: 100%;
    box-sizing: border-box;
}

/* Ensure proper content flow and spacing */
.project-content > * {
    flex-shrink: 0;
}

.project-content > p {
    flex-shrink: 1; /* Allow description to shrink if needed */
    flex-grow: 0;   /* Don't grow beyond clamp */
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    /* Constrain tags to prevent layout breaking */
    max-width: 100%;
    max-height: 3rem; /* Limit to roughly 2 rows of tags */
    overflow: hidden;
    /* Ensure smooth wrapping */
    align-items: flex-start;
    align-content: flex-start;
}

.tag {
    background: #e2e8f0;
    color: #475569;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Project card description with robust line clamping */
.project-content > p,
.project-card .project-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;

    /* FORCED SHORT line-clamp implementation */
    display: -webkit-box;
    -webkit-line-clamp: 2 !important; /* REDUCED to 2 lines */
    line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3.2rem !important; /* 2 lines only */

    /* Typography constraints */
    max-width: 100%;
    font-size: 0.95rem;

    /* Ensure proper text wrapping */
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;

    /* Fallback for non-webkit browsers */
    max-height: 4.8rem; /* Approximately 3 lines at 1.6 line-height */

    /* Prevent any layout expansion */
    min-height: 0;
    flex-shrink: 1;
}

.project-highlights {
    margin-bottom: 2rem;
}

.project-highlights ul {
    list-style: none;
    padding: 0;
}

.project-highlights li {
    color: #64748b;
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: relative;
}

.project-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-link {
    background: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-link:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    position: relative;
}

.skills::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
    border-radius: 50%;
    animation: float 13s ease-in-out infinite;
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.skill-category:hover::after {
    opacity: 1;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #8b5cf6, #10b981, #f59e0b);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #2563eb;
}

.skill-category h3 {
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #8b5cf6);
    border-radius: 2px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.skill-item::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;
}

.skill-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.skill-item:hover::before {
    left: 100%;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(226, 232, 240, 0.9) 100%);
    backdrop-filter: blur(20px);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 30%;
    right: -5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);
    border-radius: 50%;
    animation: float 11s ease-in-out infinite;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}


.contact-item i {
    font-size: 1.5rem;
    color: #2563eb;
    width: 40px;
}

.contact-item div strong {
    display: block;
    color: #1e293b;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contact-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #2563eb;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close:hover {
    color: #2563eb;
}

#modal-body {
    padding: 2rem;
}

/* Video Demo Styles */
.video-demo-section {
    margin: 0 0 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.video-demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #8b5cf6);
}

.video-demo-section h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.video-caption {
    color: #64748b;
    font-style: italic;
    font-size: 0.95rem;
    text-align: center;
    margin: 0;
    font-weight: 500;
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.placeholder-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.placeholder-content i {
    font-size: 4rem;
    color: #60a5fa;
    margin-bottom: 1rem;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

.placeholder-content p {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.placeholder-content small {
    font-size: 1rem;
    opacity: 0.8;
    color: #cbd5e1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Dashboard Gallery Styles */
.dashboard-gallery {
    margin: 1.5rem 0;
}

.dashboard-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.dashboard-gallery img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.dashboard-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dashboard-gallery p {
    color: #64748b;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* Modal Content Styling */
#modal-body h2 {
    color: #1e293b;
    margin-bottom: 1rem;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 0.5rem;
}

#modal-body h3 {
    color: #2563eb;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

#modal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

#modal-body li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

#modal-body a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

#modal-body a:hover {
    text-decoration: underline;
}

/* Project Modal Specific Styles */
.project-modal-content {
    padding: 0;
}

.project-modal-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.project-modal-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-modal-info {
    flex: 1;
}

.project-modal-info h2 {
    margin: 0 0 1rem 0;
    color: #1e293b;
    font-size: 1.8rem;
}

.project-category {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.project-modal-description,
.project-modal-impact,
.project-modal-demo,
.project-modal-links {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.project-modal-links:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.modal-links-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-links-grid .btn-link {
    flex: 1;
    min-width: 140px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .code-snippets {
        max-width: 100%;
    }
    
    .code-line {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .data-science-visual {
        width: 280px;
        height: 280px;
    }
    
    .data-point {
        width: 60px;
        height: 60px;
        font-size: 0.7rem;
    }
    
    .data-point i {
        font-size: 1.2rem;
    }
    
    .central-node {
        width: 90px;
        height: 90px;
        font-size: 0.8rem;
    }
    
    .central-node i {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .achievement-grid {
        gap: 1rem;
    }
    
    .achievement-item {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .intro-highlight {
        padding: 1rem;
    }
    
    .intro-highlight p {
        font-size: 1.1rem;
    }
    
    .spec-list {
        grid-template-columns: 1fr;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .call-to-action {
        padding: 1.5rem;
    }
    
    .approach-section {
        padding: 2rem;
        margin: 1rem 0;
    }
    
    .approach-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-item {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-content strong {
        font-size: 1.1rem;
    }
    
    .approach-conclusion {
        padding: 1.5rem;
    }
    
    .about-stats {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .stat-card {
        min-width: 150px;
    }
    
    .project-card {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none; /* Allow more height on mobile */
    }

    .project-content {
        padding: 1.5rem;
    }

    /* Mobile-specific description styling - FORCED SHORT */
    .project-content > p,
    .project-card .project-content p {
        -webkit-line-clamp: 2 !important; /* REDUCED to 2 lines */
        line-clamp: 2 !important;
        max-height: 3.2rem !important; /* 2 lines at 1.6 line-height */
        font-size: 0.9rem;
    }

    .project-tags {
        max-height: 4rem; /* Allow more tag space on mobile */
    }
    
    .project-links {
        flex-wrap: wrap;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .project-modal-header {
        flex-direction: column;
        gap: 1rem;
    }

    .project-modal-image {
        width: 100%;
        height: 200px;
    }

    .modal-links-grid {
        flex-direction: column;
    }

    .modal-links-grid .btn-link {
        width: 100%;
    }
    
    .dashboard-row {
        flex-direction: column;
    }
    
    .dashboard-gallery img {
        width: 100% !important;

/* ============================================
   ROBUST CARD LAYOUT SYSTEM (Complete Override)
   ============================================ */

/* 1. Card Container - Flexible Grid Structure */
.project-card {
    display: grid !important;
    grid-template-columns: 1fr 1.5fr !important;
    gap: 0 !important;
    background: white !important;
    border-radius: 20px !important;
    overflow: visible !important; /* CRITICAL FIX: Allow buttons to be visible */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;

    /* Remove problematic height constraints */
    height: auto !important;
    max-height: none !important;
    min-height: 350px !important; /* Consistent minimum height */
}

/* 2. Image Container with Proper Aspect Ratio */
.project-image {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}

.project-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: 16/9 !important;
}

/* 3. Content Body - Flexible Column Layout */
.project-content {
    display: flex !important;
    flex-direction: column !important;
    padding: 2.5rem !important;
    min-width: 0 !important; /* Prevent flex item from overflowing */
    height: auto !important;
    overflow: visible !important;
    justify-content: space-between !important;
    min-height: 320px !important; /* Ensure minimum space for content + buttons */
}

/* 4. Title */
.project-content h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 0 1rem 0 !important;
    line-height: 1.3 !important;
}

/* 5. Tags - Natural Wrapping, No Height Limits */
.project-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    /* Remove all height constraints */
    max-height: none !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
}

.project-tags .tag {
    background: #e2e8f0 !important;
    color: #475569 !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 15px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* 6. Description with Smart Line Clamp */
.project-content > p {
    color: #64748b !important;
    line-height: 1.6 !important;
    margin: 0 0 1.5rem 0 !important;
    flex: 1 !important; /* Take available space */

    /* FORCED SHORT line clamp - ALWAYS show Read More */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* REDUCED to 2 lines */
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
    max-height: 3.2rem !important; /* 2 lines only */
}

/* 7. Highlights Section */
.project-highlights {
    margin-bottom: 1.5rem !important;
    flex-shrink: 0 !important;
}

.project-highlights ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.project-highlights li {
    color: #64748b !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
}

/* 8. Buttons - Always Visible at Bottom */
.project-links {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    margin-top: auto !important; /* Push to bottom */
    flex-shrink: 0 !important; /* Never shrink */
    padding-top: 1rem !important;
    min-height: 50px !important; /* Ensure space for buttons */
    position: relative !important;
    z-index: 10 !important; /* Always on top */
}

.project-links .btn-link {
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.9rem !important;
}

/* Ensure Read More is visible by default - FORCE VISIBILITY */
.project-links button[data-read-more="true"] {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
}

/* Override any hiding attempts */
.project-card .project-links button {
    display: inline-flex !important;
}

/* CRITICAL FIX: Multiple selectors to ensure Read More buttons are ALWAYS visible */
button[data-read-more="true"],
button[onclick*="openProjectModal"],
.project-links button[onclick*="openProjectModal"],
.btn-link[onclick*="openProjectModal"] {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

/* ULTRA FORCE: Ensure project-links container is always visible */
.project-links {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 50px !important; /* Force minimum height */
    margin-top: auto !important; /* Push to bottom */
}

/* ULTRA FORCE: Every possible Read More button selector */
button[data-read-more="true"],
button[onclick*="openProjectModal"], 
.project-links button,
.btn-link[onclick*="openProjectModal"],
.project-content button,
.project-card button {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 9999 !important;
    background: #2563eb !important;
    color: white !important;
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    min-width: 120px !important;
    height: auto !important;
    line-height: 1.4 !important;
}

/* Override ANY display: none attempts */
.project-card *[style*="display: none"] button,
.project-card *[style*="visibility: hidden"] button {
    display: inline-flex !important;
    visibility: visible !important;
}

/* SPECIAL FIX: Target Weather Energy project specifically */
.project-card h3[title*="Weather-Driven Energy"] ~ .project-content .project-links button,
.project-card h3[title*="Australian Energy Market"] ~ .project-content .project-links button,
.project-card:has(h3:contains("Weather-Driven Energy")) .project-links button,
.project-card:has(h3:contains("Australian Energy Market")) .project-links button {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 99999 !important;
    background: #e11d48 !important; /* Different color to identify special fix */
    color: white !important;
    padding: 12px 24px !important;
    border: 2px solid #ffffff !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    min-width: 140px !important;
}

/* NUCLEAR OPTION: Force every button in every project card to be visible */
.project-card .project-content button,
.project-card .project-links button,
.project-card button[data-read-more],
.project-card button[onclick] {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 9999 !important;
}

/* CRITICAL FIX: Absolutely position project-links at bottom of cards */
.project-links {
    position: absolute !important;
    bottom: 20px !important;
    left: 20px !important;
    right: 20px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 15px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    gap: 1rem !important;
    align-items: center !important;
    z-index: 1000 !important;
}

/* Ensure parent project-content has relative positioning */
.project-content {
    position: relative !important;
}

/* 9. Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .project-card {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }

    .project-content {
        padding: 1.5rem !important;
    }

    .project-content > p {
        -webkit-line-clamp: 2 !important; /* REDUCED to 2 lines */
        line-clamp: 2 !important;
        max-height: 3.2rem !important; /* 2 lines only */
    }

    .project-links {
        flex-direction: column !important;
    }

    .project-links .btn-link {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-links .btn-link {
        width: 100% !important;
        justify-content: center !important;
    }
}
