:root {
    --bg-dark: #0f172a;
    --card-smoky: rgba(30, 41, 59, 0.7);
    --text-main: #f1f5f9;
    --text-muted: #94b3c7; /* The Smoky Blue */
    --accent-glow: #38bdf8;
}


body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(148, 163, 184, 0.05) 0px, transparent 50%);
    color: var(--text-main);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    padding: 2rem 10%;
    align-items: center;
}

nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 2rem; }
nav a { color: var(--text-color); text-decoration: none; font-weight: 500; }

#coffee-integration {
    padding: 100px 10%;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(30, 41, 59, 0.3) 100%);
    position: relative;
}

.integration-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Side: Photo Frame */
.profile-frame {
    flex: 1;
    position: relative;
    max-width: 400px;
}

.profile-pic {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    /* Essential: Desaturate the photo slightly to fit the Smoky Blue vibe */
    filter: grayscale(20%) contrast(110%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.5);
    transition: all 0.4s ease;
}

/* Add a subtle Smoky Blue border glow behind the image on hover */
.profile-frame::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 2px solid var(--accent-glow);
    opacity: 0.1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: -1;
}

.profile-frame:hover::before {
    opacity: 0.6;
    transform: translate(5px, 5px);
}

.profile-frame:hover .profile-pic {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.7);
}

/* Right Side: Text Styling */
.integration-text {
    flex: 1.5;
}

.integration-text h2 {
    font-family: 'Playfair Display', serif; /* Or your chosen elegant serif */
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.integration-text p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Highlight the key integration words in Smoky Blue */
.integration-text strong {
    color: var(--accent-glow);
    font-weight: 600;
}

.sub-text {
    font-size: 1rem;
    opacity: 0.8;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* Responsive adjustment: Stack vertically on mobile */
@media (max-width: 900px) {
    .integration-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .profile-frame {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Hero Section */
#hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.highlight { color: var(--accent-color); }

.btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: var(--bg-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* Skills Grid */
#skills { padding: 5rem 10%; }

h1 {
    font-family: 'Playfair Display', serif; 
    font-weight: 700;
    letter-spacing: -1px;
}

.skill-card h3 {
    font-family: 'Inter', sans-serif; 
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Glassmorphism Card Style */
.skills-grid {
    display: grid;
    /* Forces exactly 2 equal columns */
    grid-template-columns: 1fr 1fr; 
    gap: 2.5rem; /* Slightly larger gap for a premium feel */
    padding-top: 3rem;
    max-width: 1000px; /* Optional: keeps the grid from getting too wide */
    margin: 0 auto;    /* Centers the grid on the page */
}

/* Responsive adjustment: Stack them on mobile devices */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.skill-card {
    background: var(--card-smoky);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    padding: 3rem;
    transition: all 0.4s ease;
    /* This makes the cards feel more substantial in a 2-column layout */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Optional: Add a subtle glow to the top-left and bottom-right corners 
   to guide the eye through your journey */
.skill-card:nth-child(1), .skill-card:nth-child(4) {
    border-left: 2px solid var(--accent-glow);
}
.skill-card:hover {
    border-color: var(--accent-glow);
    box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.2);
    transform: translateY(-5px);
}


.highlight {
    color: var(--accent-glow);
    transition: opacity 0.5s ease-in-out; /* Makes the fade smooth */
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
    font-family: 'JetBrains Mono', monospace; /* Monospace for tech feel */
}