:root {
    --bg-dark: #0a0a0c;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --glass-shine: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Background Effects */
.background-radial {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: -2;
}

.background-mesh {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,10%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%), 
        radial-gradient(at 0% 50%, hsla(225,39%,10%,1) 0, transparent 50%), 
        radial-gradient(at 50% 50%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 100% 50%, hsla(225,39%,10%,1) 0, transparent 50%), 
        radial-gradient(at 0% 100%, hsla(339,49%,30%,1) 0, transparent 50%), 
        radial-gradient(at 50% 100%, hsla(225,39%,10%,1) 0, transparent 50%), 
        radial-gradient(at 100% 100%, hsla(253,16%,7%,1) 0, transparent 50%);
    filter: blur(100px);
    z-index: -1;
    animation: mesh-move 20s ease infinite;
}

@keyframes mesh-move {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, 10px); }
}

.container {
    width: 100%;
    max-width: 1400px; /* Increased max-width for larger cards */
    padding: 2rem;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 5rem;
}

.logo-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.main-logo {
    max-width: 400px;
    height: auto;
    object-fit: contain;
    animation: fadeIn 1.2s ease forwards;
}

.title {
    display: none; /* Replaced by logo */
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 300;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Larger min-size */
    gap: 3rem; /* More spacing */
    justify-content: center;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 32px; /* Smoother corners */
    padding: 2rem; /* More internal padding */
    text-decoration: none;
    color: inherit;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    /* Lively floating animation */
    animation: fadeIn 1s ease forwards, float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-20px) scale(1.05);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(59, 130, 246, 0.2);
}

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

.card-image-container {
    width: 100%;
    height: 240px; /* Taller images */
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.card:hover .card-image {
    transform: scale(1.15);
}

.card-content {
    flex-grow: 1;
}

.card-title {
    font-size: 2rem; /* Larger titles */
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent-blue);
    margin-top: auto;
    transition: color 0.3s ease;
}

.card:hover .card-footer {
    color: #fff;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Architect Animation Styles */
.architect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.blueprint-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    stroke: rgba(59, 130, 246, 0.2);
    stroke-width: 0.5;
    fill: none;
}

.draw-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 10s linear infinite;
}

.line-1 { animation-duration: 15s; }
.line-diagonal { animation-duration: 20s; animation-delay: 2s; }

@keyframes draw {
    0% { stroke-dashoffset: 1000; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1000; }
}

.floating-tool {
    position: absolute;
    width: 40px;
    height: 40px;
    color: var(--accent-blue);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
    transition: transform 0.1s ease-out;
    opacity: 0.8;
}

@keyframes pen-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -20px) rotate(10deg); }
    66% { transform: translate(-10px, 10px) rotate(-10deg); }
}

#architect-pen {
    top: 20%;
    left: 10%;
    animation: pen-float 8s ease-in-out infinite;
}

.card:hover .arrow-icon {
    transform: translateX(8px);
}

/* Animations sync */
.card:nth-child(1) { animation-delay: 0.1s, 0s; }
.card:nth-child(2) { animation-delay: 0.2s, 1.5s; }
.card:nth-child(3) { animation-delay: 0.3s, 3s; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .card {
        padding: 1.5rem;
    }
    .card-image-container {
        height: 200px;
    }
}
