/* style.css - Minimalist & Professional Showcase */

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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #161616;
    --text-primary: #f5f5f5;
    --text-secondary: #a1a1aa;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

/* --- Header & Hero --- */
header {
    padding: 4rem 0 2rem;
    text-align: center;
}

.logo-img {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- Projects Section --- */
.section-title {
    margin: 6rem 0 3rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-secondary);
}

.projects-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2.5rem;
    padding: 1rem 1rem 3rem;
    margin: 0 -1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.projects-grid::-webkit-scrollbar {
    height: 6px;
}

.projects-grid::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.projects-grid::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 10px;
}

.projects-grid::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.project-card {
    flex: 0 0 340px;
    scroll-snap-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    background: #111;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.service-item h4 {
    margin-bottom: 1rem;
    color: var(--accent);
}

/* --- Footer --- */
footer {
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid var(--card-border);
    margin-top: 6rem;
}

.footer-content {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-content a {
    color: var(--text-primary);
    text-decoration: none;
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* --- Detail Pages --- */
.detail-hero {
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

.detail-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 6rem;
}

.pwa-deep-dive {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    margin: 4rem 0;
}

.pwa-deep-dive h3 {
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.detail-hero .back-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 3rem;
}

.detail-hero .back-link:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--accent-glow);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 2rem;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--accent-glow);
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Responsiveness Update */
@media (max-width: 768px) {
    .pwa-deep-dive {
        padding: 1.5rem;
    }
}
