/* =========================================
   1. STYLE GUIDE (VARIABLES)
   ========================================= */
:root {
    --black: #000000;
    --white: #ffffff;
    --bg-color: #FAFAFA;
    --gray-light: #dddddd;
    --text-heading: #111827;
    --text-body: #333333;
    --text-muted: #555555;

    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

    --max-width-default: 1100px;
    --max-width-wide: 1440px;
}

/* =========================================
   2. GLOBAL STYLES & TYPOGRAPHY
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-system);
    color: var(--black);
    background-color: var(--bg-color);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 500; }

p {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.75;
}

a {
    color: var(--black);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   3. REUSABLE UTILITIES
   ========================================= */
.container {
    max-width: var(--max-width-default);
    margin: 0 auto;
    padding: 48px 32px;
}

.container-wide {
    max-width: var(--max-width-wide);
    margin: 120px auto 0;
    padding: 48px 5%;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.bg-gray { background-color: var(--gray-light); }
.radius-sm { border-radius: 4px; }
.radius-md { border-radius: 8px; }

/* =========================================
   4. COMPONENTS (Header, Footer, Buttons)
   ========================================= */
header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000; 
    width: 90%;
    max-width: 1500px;
    padding: 16px 32px;
    border-radius: 99px; 
    background-color: rgba(255, 255, 255, 0.5); 
    backdrop-filter: blur(12px); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.4); 
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: space-evenly; 
    align-items: center;
}

header nav a {
    font-size: 18px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

header nav a:hover { color: var(--text-muted); }

header nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--black);
    transition: width 0.3s ease;
}

header nav a:hover::after { width: 100%; }

footer {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    padding: 32px 5%; 
    margin-top: 80px;
}

.social-icon img {
    width: 44px; 
    height: 44px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover img {
    transform: translateY(-2px); 
    opacity: 0.6; 
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--black);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--black);
    cursor: pointer;
}

.btn:hover {
    background-color: var(--white);
    color: var(--black);
}

.btn.disabled {
    background-color: var(--gray-light);
    color: var(--text-muted);
    border-color: var(--gray-light);
    cursor: default; 
}

.btn.disabled:hover {
    background-color: var(--gray-light);
    color: var(--text-muted); 
}

.btn.full-width {
    width: 100%;
    margin-top: 12px;
}

/* =========================================
   5. HERO SECTIONS
   ========================================= */
.home-hero, 
.about-hero {
    width: 100%;
    height: 600px;
    position: relative;
    background-color: var(--text-muted);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Home Hero Specifics */
.home-hero {
    background-image: url('../images/home-hero.jpg');
    filter: grayscale();
}

.home-hero-content {
    margin-top: 150px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-hero-content h1 {
    font-size: 80px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.home-hero-content p {
    font-size: 32px;
    letter-spacing: 1px;
}

/* About Hero Specifics */
.about-hero {
    background-image: url('../images/about-hero1.png');
    z-index: 1; 
}

.about-text {
    position: absolute;
    top: 50%;
    left: 5%;
    z-index: 10; 
}

.about-text h1 {
    font-size: 48px;
    color: var(--white);
}

/* Aska HTML Hero Image Specifics */
.aska-hero {
    position: relative;
    width: 100%;
    height: 100%;
    margin-top: -80px; 
    z-index: -1; 
}

.aska-hero .hero-image {
    width: 100%;
    height: 800px;
    object-fit: cover; 
    object-position: center; 
}

/* =========================================
   6. PAGE-SPECIFIC LAYOUTS
   ========================================= */

/* --- Home Page Articles --- */
.home-featured {
    margin: 80px 0 24px;
}

.home-article {
    display: flex;
    align-items: center;
    gap: 64px;
    margin-bottom: 120px;
}

.home-article:nth-child(even) { flex-direction: row-reverse; }

.home-article .content { flex: 1; }
.home-article .content h3 { margin-bottom: 16px; }
.home-article .content p { color: var(--text-muted); margin-bottom: 24px; }

.home-article .image {
    width: 450px;
    height: 350px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.home-article .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- All Projects Grid --- */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4%; 
    margin-top: 32px; 
}

.project-card {
    flex: 0 0 48%; 
    max-width: 48%; 
    margin-bottom: 32px;
}

.project-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-overlay {
    position: absolute;
    inset: 0; 
    background-color: rgba(255, 255, 255, 0.85); 
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-thumbnail:hover .project-overlay { opacity: 1; }
.project-thumbnail:hover .project-overlay h2 { transform: translateY(0); }

/* --- Project Tags --- */
.project-tag {
    position: absolute;
    bottom: 24px; 
    border-radius: 99px; 
    padding: 4px 16px;
    font-size: 14px; 
    font-weight: 500;
}

.tag-industrial { border: 2px solid #ef4444; color: #ef4444; }
.tag-ux { border: 2px solid #3b82f6; color: #3b82f6; }

/* --- About Me Page --- */
.about-layout {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    margin-top: 80px; 
    padding-bottom: 80px;
}

.about-image-container {
    max-width: 400px;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
}

.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(90%);
}

.about-text-container {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

/* --- Contact Form --- */
.contact { text-align: center; }
.contact-header { margin-bottom: 48px; gap: 8px; }
.contact-header h2 { font-size: 2.5rem; margin: 0; }
.contact-header p { color: var(--text-muted); font-size: 1.1rem; margin: 0; }

.contact-form-container { max-width: 600px; margin: 0 auto; text-align: left; }
.contact-form { gap: 24px; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-light);
    border-radius: 4px; 
    background-color: var(--white);
    transition: border-color 0.3s ease;
}

/* --- Aska Project Details --- */
.project-meta {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin: 64px auto 80px auto; 
    padding: 32px 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    max-width: 800px; 
}

.project-text-block {
    max-width: 700px;
    margin: 0 auto;
}

.aska-main {
    margin: 80px auto; 
    padding: 0 32px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 64px; 
}

.aska-main img {
    width: 100%; 
    height: auto;
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
}