@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&display=swap');

:root { 
    --bg: #0b0f19; 
    --surface: rgba(22, 30, 45, 0.65); 
    --text: #f8fafc; 
    --text-muted: #94a3b8; 
    --accent: #6366f1; 
    --accent-glow: rgba(99, 102, 241, 0.5);
    --border: rgba(255,255,255,0.08); 
    --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Outfit', sans-serif; 
}

body { 
    background: var(--bg); 
    color: var(--text); 
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.15), transparent 25%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--text); text-decoration: none; transition: all 0.3s ease; }

.container { width: 100%; max-width: 100%; padding: 0 3%; }

/* Header */
header { 
    padding: 2rem 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--border); 
    margin-bottom: 4rem; 
    animation: fadeInDown 0.8s ease-out;
}

.logo { font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; }
.logo span { 
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul { display: flex; gap: 2.5rem; list-style: none; }
nav a { font-weight: 500; font-size: 1.05rem; opacity: 0.8; }
nav a:hover { opacity: 1; color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); transform: translateY(-2px); display: inline-block; }

/* Bento Hero */
.bento-hero { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    grid-template-rows: auto auto; 
    gap: 1.5rem; 
    margin-bottom: 5rem; 
    animation: fadeInUp 1s ease-out;
}

.bento-box { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    border-radius: 28px; 
    padding: 3rem; 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.bento-box:hover { 
    transform: translateY(-8px); 
    border-color: rgba(168, 85, 247, 0.4); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px var(--accent-glow);
}

.box-main { grid-column: 1 / 2; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.box-main::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--gradient); }
.box-main h1 { font-size: 4rem; line-height: 1.05; margin-bottom: 1.5rem; font-weight: 800; letter-spacing: -1.5px; }
.box-main p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 90%; }

.box-img { padding: 0; overflow: hidden; }
.box-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.box-img:hover img { transform: scale(1.05); }

.btn { 
    display: inline-block; 
    padding: 1.2rem 2.5rem; 
    background: var(--gradient); 
    color: #fff; 
    border-radius: 14px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: all 0.3s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px var(--accent-glow); }

/* Articles */
.section-title { font-size: 2.5rem; margin-bottom: 2.5rem; display: inline-block; position: relative; font-weight: 700; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: -10px; width: 50%; height: 4px; background: var(--gradient); border-radius: 2px; }

.article-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 2rem; 
    margin-bottom: 5rem; 
}

.article-card { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    border-radius: 20px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.article-card:hover { 
    transform: translateY(-10px); 
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.article-card img { height: 220px; width: 100%; object-fit: cover; border-bottom: 1px solid var(--border); transition: transform 0.5s ease; }
.article-card:hover img { transform: scale(1.03); }

.article-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.article-content h3 { font-size: 1.3rem; margin-bottom: 1.5rem; line-height: 1.4; font-weight: 600; }
.article-content a { color: #a855f7; font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 5px; }
.article-content a:hover { color: #c084fc; gap: 10px; }

/* Blog Internal */
.blog-header { text-align: center; padding: 5rem 0 3rem; animation: fadeInDown 0.8s ease-out; }
.blog-header h1 { font-size: 3.5rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.blog-content { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    border-radius: 28px; 
    padding: 5rem; 
    margin-bottom: 5rem; 
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease-out;
}

.blog-content img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 16px; margin-bottom: 3rem; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.blog-content h2 { font-size: 2.2rem; margin: 3rem 0 1.5rem; color: #fff; }
.blog-content h3 { font-size: 1.6rem; margin: 2rem 0 1rem; color: #e2e8f0; }
.blog-content p { margin-bottom: 1.8rem; font-size: 1.15rem; line-height: 1.9; color: var(--text-muted); }
.blog-content ul { margin: 0 0 2rem 2rem; }
.blog-content li { margin-bottom: 0.8rem; font-size: 1.15rem; color: var(--text-muted); }
.blog-content pre { background: rgba(0,0,0,0.4); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border); overflow-x: auto; margin-bottom: 2rem; color: #a5b4fc; }

/* Footer */
footer { 
    padding: 5rem 0 3rem; 
    border-top: 1px solid var(--border); 
    margin-top: 5rem; 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 3rem; 
}

footer h4 { margin-bottom: 1.5rem; color: #fff; font-size: 1.2rem; }
footer p { line-height: 1.8; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
footer a { color: var(--text-muted); }
footer a:hover { color: #fff; padding-left: 5px; }

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Core Pages Overrides */
main section { margin-bottom: 3rem; }
main section h2 { font-size: 2.2rem; margin-bottom: 1.5rem; color: #fff; }
main section p { font-size: 1.15rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 1.5rem; }
main section ul { margin-left: 2rem; margin-bottom: 2rem; color: var(--text-muted); font-size: 1.15rem; }
main section li { margin-bottom: 0.5rem; }

/* Contact Form */
form { display: flex; flex-direction: column; gap: 1.5rem; max-width: 600px; }
input, textarea { width: 100%; padding: 1rem 1.5rem; background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 12px; color: #fff; font-size: 1.1rem; outline: none; transition: border-color 0.3s; }
input:focus, textarea:focus { border-color: var(--accent); }
button[type="submit"] { border: none; cursor: pointer; font-family: 'Outfit'; font-size: 1.1rem; }

/* Responsive Media Queries to prevent cut-off */
@media (max-width: 992px) {
    .bento-hero { 
        grid-template-columns: 1fr; 
        grid-template-rows: auto;
    }
    .box-main { grid-column: 1 / -1; grid-row: auto; }
    .box-img { grid-column: 1 / -1; min-height: 400px; }
    .bento-box { padding: 2rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    header { flex-direction: column; gap: 1.5rem; padding: 1.5rem 0; text-align: center; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
    .box-main h1 { font-size: 2.5rem; }
    .blog-content { padding: 2.5rem 1.5rem; }
    .blog-header h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    footer { flex-direction: column; text-align: center; gap: 2rem; }
    footer ul { align-items: center; }
}
