/* CSS Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a1128;
    --bg-secondary: #0f1d3e;
    --accent-blue: #3b82f6;
    --accent-glow: #60a5fa;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: #142247;
    --border-color: #1e3a8a;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 17, 40, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-glow);
}

/* Hero / About Section Layout */
.about-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 30%, var(--bg-secondary) 0%, var(--bg-primary) 70%);
    padding-top: 140px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: center;
}

.hero-img-container {
    width: 100%;
}

.hero-img-placeholder {
    width: 100%;
    height: 380px;
    background-color: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-img-container img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.about-content {
    max-width: 100%;
    text-align: left;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--card-bg);
    color: var(--accent-glow);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.about-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-glow);
    margin-bottom: 20px;
    font-weight: 500;
}

.about-text {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Works Section */
.works-section {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.work-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.work-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15);
}

.img-placeholder {
    width: 100%;
    height: 180px;
    background-color: #0c1736;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.work-info {
    padding: 24px;
}

.work-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.work-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}


/* Other Works Card Link Styling */
.work-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-card-link .work-card {
    transition: var(--transition);
}

.work-card-link:hover .work-card {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.25);
}

.other-works-overlay {
    position: relative;
    background: linear-gradient(135deg, var(--card-bg) 0%, #1d3557 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.other-works-overlay span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.work-card-link:hover .other-works-overlay span {
    color: var(--accent-glow);
    transform: scale(1.05);
}


/* Contact Section */
.contact-section {
    background-color: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info-box {
    background-color: var(--card-bg);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-info-box h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.contact-item {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.contact-item a {
    color: var(--accent-glow);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-note {
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: #2563eb;
}

/* Footer */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Additional CSS for Multi-Grid Works Page */
.works-page-header {
    text-align: center;
    padding-top: 140px;
    background: radial-gradient(circle at 50% 30%, var(--bg-secondary) 0%, var(--bg-primary) 70%);
}

.work-detail-section {
    border-top: 1px solid var(--border-color);
}

.work-detail-section.alt-bg {
    background-color: var(--bg-secondary);
}

.domain-header {
    margin-bottom: 40px;
}

.domain-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.domain-header p {
    color: var(--text-muted);
}

/* Sub-grids for different item counts */
.sub-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.sub-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.sub-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

/* Article Box Styles */
.article-section-box {
    margin-top: 40px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

.article-section-box h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--accent-glow);
}

.article-card h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--accent-glow);
    margin-bottom: 12px;
    font-weight: 500;
}

.article-card p:last-child {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Active navigation link state */
.nav-links a.active {
    color: var(--accent-glow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .about-content {
        text-align: center;
    }
    .hero-img-placeholder,
    .hero-img-container img {
        height: 280px;
        max-width: 280px;
        margin: 0 auto;
    }
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-view-works {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .about-content h1 {
        font-size: 2.2rem;
    }
}