/* black.css - Consolidated & Refined Styles for Portfolio & Content Pages (Normal CSS) */

/* General Styles - Light Theme (Base) */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #374155; /* Tailwind gray-700 */
    background-color: #ffffff; /* White background */
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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


/* ==============================
   HEADER & NAVIGATION (Consistent)
   ============================== */

/* Header Styling - Light Theme */
.site-header { background-color: #f5fdf8; color: #020202; padding: 15px 0; position: sticky; height: 80px; top: 0; z-index: 1000; width: 100%; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); transition: background-color 0.2s ease, box-shadow 0.2s ease; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo a { text-decoration: none; display: flex; align-items: center; }
.logom{ width: 60px; cursor: pointer; }
.main-nav ul { list-style: none; display: flex; gap: 20px; }
.main-nav ul li a { color: #020202; text-decoration: none; font-size: 17px; padding: 8px 12px; border-radius: 4px; transition: color 0.2s ease, background-color 0.2s ease; }
.main-nav ul li a:hover { color: #007bff; background-color: #f0f0f0; }

/* Dropdown Menu Styles - Light Theme */
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: #ffffff; min-width: 200px; box-shadow: 0px 6px 12px rgba(0,0,0,0.1); z-index: 1001; border-radius: 6px; left: 50%; transform: translateX(-50%); right: auto; transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, visibility 0.2s ease; opacity: 0; visibility: hidden; padding: 5px 0; border: 1px solid #e2e8f0; }
.dropdown-content a { color: #333;text-decoration: none; display: block; transition: background-color 0.2s ease, color 0.2s ease; border-radius: 0; }
.dropdown-content a:hover { background-color: #f0f0f0; }
.dropdown:hover .dropdown-content { display: block; opacity: 1; visibility: visible; }

main.design-resources { /* Common wrapper for both page types */
    padding: 50px 0;
    max-width: 900px; /* Default max-width for readability */

    margin: 40px auto;
}

/* Hero Section on Content Pages */
main.design-resources section.hero {
    background-color: transparent;
    padding: 0 0 2.5rem 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0; /* slate-200 */
    margin-bottom: 2.5rem;
    border-radius: 0;
    box-shadow: none;
    position: relative;
}
/* Target H1 specifically within hero on content pages */
main.design-resources section.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #111827; /* Dark heading */
    font-weight: 600;
    line-height: 1.3;
}
/* Target P specifically within hero on content pages */
main.design-resources section.hero p {
    font-size: 1.1rem;
    color: #4b5563; /* gray-600 */
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Headings/Paragraphs within .resource-summary and .resource-list on Content Pages */
main.design-resources h2.jj,
main.design-resources h3.jj {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    color: #1e293b; /* Heading color */
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}
main.design-resources h2.jj { font-size: 1.75rem; }
main.design-resources h3.jj { font-size: 1.6rem; }

main.design-resources .resource-summary p,
main.design-resources .resource-list p {
   font-size: 1rem;
   line-height: 1.75;
   color: #475569; /* slate-600 */
   margin-bottom: 1.5rem;
   max-width: 820px; /* Limit line length */
   margin-left: auto; /* Center align */
   margin-right: auto;
}
/* Hero Section on Content Pages */
main.design-resources section.hero {
    background: linear-gradient(135deg, #152456 0%, #3eb9d1 100%); /* Adjusted gradient */
    padding-top: 30px;
    text-align: center;
    border-bottom: none; /* Remove line under title */
    margin-bottom: 3.5em; /* Reduced - 2.5rem converted to em */
    border-radius: 1em; /* 1em */
    box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.15); /* Subtle Shadow */
    position: relative;

    /* New Fade-In Animation */
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInHero 1.2s ease-out forwards;
}

@keyframes fadeInHero {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Target H1 specifically within hero on content pages */
main.design-resources section.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.7em; /* adjusted - 1.875em; /* 2.5rem converted to em  - Reduced to 1.875em */
    margin-bottom: 0.7em; /* adjusted - 0.625em; /* 1rem converted to em */
    color: #ffffff; /* White heading */
    font-weight: 700; /* Bolder */
    letter-spacing: -0.01em;
    line-height: 1.2;
}
/* Target P specifically within hero on content pages */
main.design-resources section.hero p {
    font-size: 1.2em; /* adjusted - 0.825em; /* 1.1rem converted to em - Reduced to 0.825em */
    color: rgba(255, 255, 255, 0.75); /* Light gray */
    max-width: 55em; /* adjusted - 40.625em; /* 650px converted to em */
    margin: 0 auto;
    line-height: 1.6;
}
/* Override for feature list paragraphs if needed */
main.design-resources section.resource-list > .container > p { /* More specific target for feature paragraphs */
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

main.design-resources .resource-list p b {
    font-weight: 600;
    color: #1e293b;
}

/* Image Styling on Content Pages */
main.design-resources .features-image { /* Target only images with this class */
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(148, 163, 184, 0.15);
    border: 1px solid #e2e8f0;
}
.btnget{
    padding: 15px;
    background-color: #007bff;
    margin: auto;
    border: none;
    text-align: center;
    display: flex;
    border-radius: 10px;
    cursor: pointer;
}
/* Link Styling within Content Sections */
main.design-resources .resource-summary p a,
main.design-resources .resource-list p a {
    color: #3b82f6; /* Link color */
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}
main.design-resources .resource-summary p a:hover,
main.design-resources .resource-list p a:hover {
    color: #1d4ed8; /* Darker link hover */
    text-decoration: none;
}

.resource-list{
    display: flex;
}
/* Use the specific list wrapper class */
ul.resource-single-column-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Vertical gap */
}
.resource-item{
    width: 400px;
}
/* Target items ONLY inside this list */
ul.resource-single-column-list li.resource-item {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(148, 163, 184, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}
ul.resource-single-column-list li.resource-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(148, 163, 184, 0.15);
}

ul.resource-single-column-list a.resource-item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

ul.resource-single-column-list .resource-item-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}
ul.resource-single-column-list .features-image { /* Target the image tag inside */
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
ul.resource-single-column-list li.resource-item:hover .features-image {
    transform: scale(1.05);
}
ul.resource-single-column-list .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
ul.resource-single-column-list li.resource-item:hover .image-overlay {
    opacity: 0.4;
}

ul.resource-single-column-list .resource-item-content {
    padding: 1.75rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
ul.resource-single-column-list .resource-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 1rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background-color: #e0f2fe;
    color: #0c4a6e;
    align-self: flex-start;
    border: 1px solid #e2e8f0;
}
ul.resource-single-column-list .resource-item-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0 0 0.65rem 0;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.2s ease;
}
ul.resource-single-column-list a.resource-item-link:hover .resource-item-content h3 {
    color: #3b82f6;
}
ul.resource-single-column-list .resource-item-content p {
   font-size: 1rem;
   line-height: 1.65;
   color: #475569;
   margin-bottom: 1.5rem;
   flex-grow: 1;
}
ul.resource-single-column-list .visit-link-inline { /* Class used in portfolio.html */
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.95rem;
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
ul.resource-single-column-list .visit-link-inline i { margin-left: 6px; font-size: 1.2em; transition: transform 0.2s ease; }
ul.resource-single-column-list a.resource-item-link:hover .visit-link-inline {
    color: #1d4ed8;
}
ul.resource-single-column-list a.resource-item-link:hover .visit-link-inline i {
    transform: translateX(4px);
}


/* --- Shared Conclusion Paragraph --- */
p.conclusion-paragraph {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-top: 3.5rem;
    padding-top: 2rem;
    font-weight: 400;
    border-top: 1px solid #e2e8f0;
}


/* Footer Styling - Light Theme (Unchanged) */
#footer { background-color: #f8f9fa; padding: 40px 0; color: #555; transition: background-color 0.2s ease, color 0.2s ease; margin-top: 3rem; border-top: 1px solid #e5e7eb; }
#footer .container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
#footer .footer-columns { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
#footer .footer-column { flex: 1; min-width: 180px; margin-bottom: 30px; text-align: left; }
#footer .footer-column h3 { font-size: 1.2rem; margin-bottom: 15px; color: #333; transition: color 0.2s ease; }
#footer .footer-column ul { list-style: none; padding: 0; }
#footer .footer-column li { margin-bottom: 8px; }
#footer .footer-column a { color: #007bff; text-decoration: none; transition: color 0.2s ease; }
#footer .footer-column a:hover { color: #0056b3; }

/* Theme Toggle Button - Light Theme (Unchanged) */
#theme-toggle { position: fixed; top: 25px; right: 30px; width: 50px; height: 50px; border-radius: 50%; border: 1px solid #ced4da; background-color: #ffffff; cursor: pointer; padding: 0; display: flex; justify-content: center; align-items: center; overflow: hidden; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease; z-index: 1001; }
#theme-toggle:hover { background-color: #f9fafb; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }
#theme-toggle:active { transform: scale(0.95); }
#theme-toggle:focus-visible { outline: 2px solid #007bff; outline-offset: 3px; }
#theme-toggle .icon { display: block; width: 24px; height: 24px; border-radius: 50%; background-color: #facc15; position: relative; box-shadow: 0 0 5px rgba(0, 0, 0, 0.05); transition: all 0.2s ease-in-out; transform: scale(1) rotate(0deg); }


/* --- Dark Theme Styles --- */
body[data-theme="dark"] {
    color: #d1d5db;
    background-color: #0f172a;
}

/* Header Styling - Dark Theme (Unchanged) */
body[data-theme="dark"] .site-header { background-color: #111827; color: #f8f9fa; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); }
body[data-theme="dark"] .main-nav ul li a { color: #f8f9fa; }
body[data-theme="dark"] .main-nav ul li a:hover { color: #60a5fa; background-color: #1f2937; }

/* Dropdown Menu Styles - Dark Theme (Unchanged) */
body[data-theme="dark"] .dropdown-content { background-color: #1f2937; box-shadow: 0px 6px 12px rgba(0,0,0,0.3); border-color: #334155; }
body[data-theme="dark"] .dropdown-content a { color: #f8f9fa; }
body[data-theme="dark"] .dropdown-content a:hover { background-color: #374151; }


/* Content Pages (e.g., Canva) - Dark Theme */
body[data-theme="dark"] main.design-resources section.hero { border-bottom-color: #334155; }
body[data-theme="dark"] main.design-resources section.hero h1 { color: #f1f5f9; }
body[data-theme="dark"] main.design-resources section.hero p { color: #94a3b8; }
body[data-theme="dark"] h2.jj, body[data-theme="dark"] h3.jj { color: #f1f5f9; }
body[data-theme="dark"] main.design-resources .resource-summary p, body[data-theme="dark"] main.design-resources .resource-list p { color: #94a3b8; }
body[data-theme="dark"] main.design-resources .resource-list p b { color: #e2e8f0; }
body[data-theme="dark"] main.design-resources .features-image { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); border-color: #334155; }
body[data-theme="dark"] main.design-resources .resource-summary p a, body[data-theme="dark"] main.design-resources .resource-list p a { color: #60a5fa; }
body[data-theme="dark"] main.design-resources .resource-summary p a:hover, body[data-theme="dark"] main.design-resources .resource-list p a:hover { color: #93c5fd; }

/* Portfolio Page Content - Dark Theme */
body[data-theme="dark"] ul.resource-single-column-list li.resource-item { background-color: #1e293b; border-color: transparent; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
body[data-theme="dark"] ul.resource-single-column-list li.resource-item:hover { box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); border-color: #475569; }
body[data-theme="dark"] ul.resource-single-column-list .resource-item-image { background-color: #334155; }
body[data-theme="dark"] ul.resource-single-column-list .image-overlay { background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0) 50%); opacity: 0.8; }
body[data-theme="dark"] ul.resource-single-column-list li.resource-item:hover .image-overlay { opacity: 0.5; }
body[data-theme="dark"] ul.resource-single-column-list .resource-item-content { background-color: #1e293b; }
body[data-theme="dark"] ul.resource-single-column-list .resource-tag { filter: brightness(0.9) contrast(1.1); }
body[data-theme="dark"] ul.resource-single-column-list .resource-tag.design-tool { background-color: #075985; color: #e0f2fe; }
body[data-theme="dark"] ul.resource-single-column-list .resource-tag.ui-ux { background-color: #4338ca; color: #eef2ff; }
body[data-theme="dark"] ul.resource-single-column-list .resource-tag.photos { background-color: #166534; color: #dcfce7; }
body[data-theme="dark"] ul.resource-single-column-list .resource-tag.color-tool { background-color: #9a3412; color: #ffedd5; }
body[data-theme="dark"] ul.resource-single-column-list .resource-item-content h3 { color: #f1f5f9; }
body[data-theme="dark"] ul.resource-single-column-list a.resource-item-link:hover .resource-item-content h3 { color: #60a5fa; }
body[data-theme="dark"] ul.resource-single-column-list .resource-item-content p { color: #94a3b8; }
body[data-theme="dark"] ul.resource-single-column-list .visit-link-inline { color: #60a5fa; border-top-color: #334155; }
body[data-theme="dark"] ul.resource-single-column-list a.resource-item-link:hover .visit-link-inline { color: #93c5fd; }

/* Shared Dark Theme Styles */
body[data-theme="dark"] p.conclusion-paragraph { color: #94a3b8; border-top-color: #334155; }

/* Footer Styling - Dark Theme (Unchanged) */
body[data-theme="dark"] #footer { background-color: #111827; color: #adb5bd; border-top-color: #1f2937; }
body[data-theme="dark"] #footer .footer-column h3 { color: #f0f0f0; }
body[data-theme="dark"] #footer .footer-column a { color: #60a5fa; }
body[data-theme="dark"] #footer .footer-column a:hover { color: #93c5fd; }

/* Theme Toggle Button - Dark Theme (Unchanged) */
body[data-theme="dark"] #theme-toggle { border-color: #4b5563; background-color: #1f2937; }
body[data-theme="dark"] #theme-toggle:hover { background-color: #374151; }
body[data-theme="dark"] #theme-toggle:focus-visible { outline-color: #60a5fa; }
body[data-theme="dark"] #theme-toggle .icon { background-color: #eab308; transform: scale(1) rotate(180deg) translateX(-2px); box-shadow: inset -6px -3px 0 0px #0f172a; /* Use body bg for cutout */ }


/* Media Queries for Responsiveness */
@media (max-width: 768px) {
     /* Intro animation responsive styles - REMOVED */
    /* Header unchanged */
    .site-header { height: 100px; } /* Slightly shorter header */
    .site-header .container { flex-wrap: nowrap; }
    .logo { flex-grow: 1; }
    .main-nav { order: 3; width: 100%;} /* Pushed below logo/toggle */
    .main-nav ul { flex-direction: row; align-items: center; gap: 5px; } /* Stack links vertically */
    .main-nav ul li { width: 100%; text-align: center;} /* Make list items full width */

    .dropdown1 { position: fixed; transform: none; box-shadow: none; background-color: #ffffff; text-align: center; left: 200px; width: 20%; }
    body[data-theme="dark"] .dropdown-content { background-color: #1e293b; }
    .dropdown-content a { padding: 8px 10px; }
    body[data-theme="light"] .dropdown-content a { color:#cbd5e1 ; } /* Adjusted mobile dropdown color */
    body[data-theme="dark"] .dropdown-content a { color: #374155; } /* Adjusted mobile dropdown color */
    .dropdown > a i { /* Hide the dropdown icon on mobile */
        display: none;
    }

    /* Responsive Content Pages */
    main.design-resources { padding: 40px 0; max-width: 90%; }
    main.design-resources section.hero { padding: 0 15px 2rem 15px; margin-bottom: 2rem; }
    main.design-resources section.hero h1 { font-size: 2rem; }
    main.design-resources section.hero p { font-size: 1rem; }
    main.design-resources h2.jj { font-size: 1.5rem; }
    main.design-resources h3.jj { font-size: 1.4rem; }
    main.design-resources .resource-summary p, main.design-resources .resource-list p { font-size: 0.95rem; }
    main.design-resources .features-image { max-width: 100%; margin: 1.5rem auto; }

    /* Responsive Portfolio List */
    ul.resource-single-column-list { gap: 2rem; }
    ul.resource-single-column-list .resource-item-image { height: auto; aspect-ratio: 16 / 10; }
    ul.resource-single-column-list .resource-item-content { padding: 1.25rem 1.5rem; }
    ul.resource-single-column-list .resource-item-content h3 { font-size: 1.25rem; }
    ul.resource-single-column-list .resource-item-content p { font-size: 0.9rem; }
    ul.resource-single-column-list .visit-link-inline { font-size: 0.9rem; }

    p.conclusion-paragraph { font-size: 1.05rem; margin-top: 3rem; padding-top: 1.75rem; }

    /* Footer unchanged */
    #footer .footer-columns { flex-direction: row; align-items: center; }
    #footer .footer-column { width: 100%; margin-bottom: 20px; text-align: center; }

    /* Theme toggle unchanged */
    #theme-toggle { position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; }
    #theme-toggle .icon { width: 20px; height: 20px; }
    body[data-theme="dark"] #theme-toggle .icon { box-shadow: inset -5px -2px 0 0px #111827; }
}

@media (max-width: 480px) {
    /* Content Pages */
    main.design-resources .hero h1 { font-size: 1.75rem; }
    main.design-resources h2.jj { font-size: 1.3rem; }
    main.design-resources h3.jj { font-size: 1.2rem; }

    /* Portfolio List */
    ul.resource-single-column-list .resource-item-image { aspect-ratio: 4 / 3; }
    ul.resource-single-column-list .resource-item-content h3 { font-size: 1.15rem; }
}