/* 
   Theme: Minimalist / White / Modern
   Inspiration: Later.com
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-text: #1a1a1a;
    --secondary-text: #555555;
    --accent-color: #000000;
    /* Minimalist black for accents */
    --bg-color: #ffffff;
    --card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    /* Minimalist Tech Background with White Overlay */
    background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
        url('assets/img/bg-tech.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--primary-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.logo {
    max-width: 200px;
}

/* Header / Hero */
header {
    text-align: center;
    padding: 40px 20px 20px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

header h1 {
    font-weight: 700;
    font-size: 3rem;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

header p {
    font-size: 1.25rem;
    color: var(--secondary-text);
    font-weight: 300;
}

/* Main Content - Card Grid */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically if desired, or 'flex-start' */
    padding: 40px 20px 80px;
}

.card-container {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
}

/* Spotlight Overlay */
#spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.15) 0%, transparent 25%);
    mix-blend-mode: overlay;
}

/* Card Styling - Glassmorphism Update */
.card {
    background: rgba(255, 255, 255, 0.65);
    /* Semi-transparent white */
    backdrop-filter: blur(12px);
    /* Blur effect */
    -webkit-backdrop-filter: blur(12px);
    /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    /* Highlight top border */
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    /* ~1/3 of desktop width usually */
    text-decoration: none;
    color: inherit;
    transition: transform 0.1s ease-out, box-shadow var(--transition-speed) ease;
    /* Faster transform for tilt */
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px) rotate(-25deg);
    /* Animation delays will be handled in JS or nth-child CSS */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.card:hover {
    /* transform handled by JS tilt mainly, but we keep a scale fallback if JS fails */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.8);
}

.card:hover .card-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--primary-text);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card {
    position: relative;
    /* Ensure absolute positioning works for children */
}

.card-btn {
    position: absolute;
    top: 200px;
    /* Matches card-image height */
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 48px;
    height: 48px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--primary-text);
}

.card-image {
    height: 200px;
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2rem;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
    text-align: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-text);
}

.card-description {
    font-size: 0.95rem;
    color: var(--secondary-text);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    margin-top: auto;
    color: #888;
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive - Mobile First (default styles above were desktop-ish, let's refining for mobile if needed) 
   Actually, flex-direction: row + flex-wrap: wrap handles responsive well.
   Let's ensure mobile specific tweaks.
*/
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        max-width: 100%;
        /* Full width on mobile */
    }
}

@media (min-width: 769px) {
    header {
        padding: 80px 20px 40px;
    }
}