:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-color: #f8fafc; /* Keep a solid fallback */
    --card-bg: #ffffff;
    --text-color: #0f172a; /* Darker, bolder text */
    --text-muted: #475569;
    --border-color: #e2e8f0;
    
    /* Deep, soft shadows for the "lifted" look */
    --shadow-card: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 
        0 2px 4px -1px rgba(0, 0, 0, 0.06), 
        0 20px 25px -5px rgba(0, 0, 0, 0.1), 
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
        
    --shadow-hover: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1), 
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Glow effect for buttons */
    --glow-primary: 0 0 15px rgba(99, 102, 241, 0.5);
    
    --radius: 1rem; /* More rounded corners */
    --max-width: 900px;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-color: var(--bg-color);
    /* Subtle noise texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

header {
    background: transparent; /* Remove header background for cleaner look */
    padding: 4rem 0 2rem 0;
    text-align: center;
    border: none;
    box-shadow: none;
}

header h1 {
    margin: 0;
    font-size: 3rem; /* Hero text size */
    font-weight: 800; /* Extra bold */
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Subtle text shadow */
}

#projects-container {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* More space between cards */
    padding-bottom: 4rem;
    flex-grow: 1;
}

.project {
    background-color: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.5); /* Subtle border */
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .project {
        flex-direction: row; /* Horizontal layout on desktop */
        align-items: stretch;
    }
    
    .project img {
        width: 50% !important;
        height: auto !important;
        min-height: 300px;
    }
    
    .project-info {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.project:hover {
    transform: translateY(-5px) scale(1.01); /* Lift effect */
    box-shadow: var(--shadow-hover);
}

.project img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 2.5rem;
}

.project-info h2 {
    margin: 0 0 1rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.025em;
}

.project-info p {
    margin: 0 0 2rem 0;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.project-info a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 9999px; /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3), var(--glow-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-info a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4), 0 0 20px rgba(99, 102, 241, 0.6);
}

/* Ad Container Styling */
.ad-container {
    margin: 4rem auto;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* Softer shadow */
    border: 1px dashed var(--border-color); /* Maintain dash for dev awareness, or remove for prod */
    display: flex;
    justify-content: center;
    max-width: 760px; /* Constrain width */
}

/* Footer Styling */
footer {
    padding: 3rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px; /* Slightly rounded corners */
    object-fit: cover;
    background-color: #eee; /* Placeholder color */
}

.footer-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.footer-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.footer-contact:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: #fcfcfc;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.footer-contact svg {
    stroke: currentColor;
    width: 18px;
    height: 18px;
}
