/* style.css - Modern Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette - Clean & Professional */
    --bg-color: #f3f4f6;       /* Light grey background */
    --card-bg: #ffffff;        /* White cards */
    --text-primary: #111827;   /* Almost black */
    --text-secondary: #6b7280; /* Muted grey */
    --accent: #2563eb;         /* Royal Blue */
    --accent-hover: #1d4ed8;   /* Darker Blue */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #111827;
        --card-bg: #1f2937;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --accent: #60a5fa;
        --accent-hover: #93c5fd;
    }
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Layout Wrapper */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Navigation - THIS is the section controlling your menu */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 3rem;
}

.logo { font-weight: 700; font-size: 1.25rem; color: var(--text-primary); text-decoration: none; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* Hero Section */
.hero {
    margin-bottom: 4rem;
    max-width: 650px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.05rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero {
    display: flex;          /* Puts image and text side-by-side */
    align-items: center;    /* Vertically centers them */
    gap: 3rem;             /* Space between image and text */
    margin-bottom: 4rem;
    max-width: 100%;       /* Allow it to fill container */
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
}
.btn:hover { background-color: var(--accent-hover); transform: translateY(-1px); }

/* Cards Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover { transform: translateY(-5px); }
.card h3 { margin-top: 0; font-size: 1.25rem; }
.card p { color: var(--text-secondary); font-size: 0.95rem; }
.card-link { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.9rem; }

/* Skills Tags */
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.tag {
    background: rgba(0,0,0,0.05); /* Subtle grey */
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}
@media (prefers-color-scheme: dark) { .tag { background: rgba(255,255,255,0.1); } }

/* Footer */
footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Blog Article Styling */
.post-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}
.post-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}
.article-content h2 { margin-top: 2.5rem; color: var(--text-primary); }
.article-content p { margin-bottom: 1.5rem; }
.article-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }
pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 2rem 0;
}

/* Certification Card Styles */
.cert-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    
    /* UPDATED: Bigger, deeper shadow */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease; /* Smoother animation */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* UPDATED: On hover, it floats even higher with a huge shadow */
.cert-card:hover {
    transform: translateY(-8px); /* Moves up slightly more */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.cert-logo {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.cert-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cert-issuer {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}


/* Accordion / Collapsible Section Styles */
details {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem; /* Space between sections */
    overflow: hidden;    /* Keeps content inside rounded corners */
    scroll-margin-top: 100px; /* Ensures the header isn't hidden behind the menu when you jump to it */
}

summary {
    cursor: pointer;
    padding: 1.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    list-style: none; /* Hides the default ugly triangle */
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    transition: background 0.2s;
    color: var(--text-primary);
}

summary:hover {
    background: rgba(0,0,0,0.02); /* Subtle hover effect */
}

/* Custom +/- indicator on the right */
summary::after {
    content: '+';
    margin-left: auto; /* Pushes the plus sign to the far right */
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

details[open] summary::after {
    content: '-'; /* Changes to minus when open */
}

/* The logos inside the header bar */
.header-logo {
    height: 40px; /* Small and neat */
    width: auto;
}

/* Adjust the grid inside the accordion */
details .grid {
    padding: 2rem;
    margin-bottom: 0; /* Remove default margin */
    border-top: 1px solid rgba(0,0,0,0.05); /* Divider line */
    background: rgba(0,0,0,0.01); /* Slightly different inner background */
}

/* PROFILE PICTURE STYLING */
.profile-pic {
    width: 200px;           /* Size of the circle */
    height: 200px;
    border-radius: 50%;     /* Makes it a perfect circle */
    object-fit: cover;      /* Prevents your face from getting squashed */
    border: 4px solid var(--card-bg); /* White border looks polished */
    box-shadow: var(--shadow);
    flex-shrink: 0;         /* Prevents image from shrinking on small screens */
}

/* MOBILE RESPONSIVENESS */
/* On phones, stack the image on top of the text */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
}