/* Project: Kayan Design Studio
    Theme: Modern Minimalist Dark
*/

:root {
    --bg: #0a0a0a;          /* Deep Black */
    --card-bg: #141414;     /* Dark Gray */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent: #3b82f6;      /* Modern Blue */
    --accent-glow: rgba(59, 130, 246, 0.5);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 10%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent);
}

/* --- Header Section --- */
header {
    padding: 120px 10% 80px;
    max-width: 1000px;
}

header h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
    font-weight: 700;
}

header p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 600px;
}

.gradient-text {
    background: linear-gradient(90deg, #3b82f6, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Portfolio Grid --- */
#work {
    padding: 40px 10% 120px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card {
    height: 400px;
    background-color: var(--card-bg);
    border: 1px solid #27272a;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background-position: top center;
    background-size: cover;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0.8;
    transition: var(--transition);
}

.card:hover .overlay {
    opacity: 1;
}

.overlay span {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- Legal Containers --- */
.legal-container {
    padding: 100px 10%;
    max-width: 800px;
    margin: 0 auto;
}

.legal-container h1 { font-size: 2.5rem; margin-bottom: 2rem; }
.legal-container h2 { margin-top: 2rem; margin-bottom: 1rem; color: var(--accent); }
.legal-container p, .legal-container li { color: var(--text-secondary); margin-bottom: 1rem; }

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* --- Footer --- */
footer {
    padding: 60px 10%;
    border-top: 1px solid #1f1f23;
    text-align: center;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    nav { padding: 1.5rem 5%; }
    header { padding: 80px 5% 40px; }
    .grid { grid-template-columns: 1fr; }
    header h1 { font-size: 3rem; }
}
