@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --bg-color: #050505;
    --text-color: #EDEDED;
    --brand-purple: #8b5cf6;
    --brand-yellow: #fde047;
    --brand-red: #e11d48;
    --accent-color: var(--brand-purple);
    --border-color: #262626;
    --grid-color: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -0.05em;
    /* Ultra-tight tracking */
    line-height: 1.1;
}

/* Custom Utilities */
.text-massive {
    font-size: clamp(3rem, 8vw, 9rem);
    font-weight: 800 !important;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7) !important;
}

.text-display {
    font-size: clamp(2rem, 5vw, 4rem);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5) !important;
}

.border-b-thin {
    border-bottom: 1px solid var(--border-color);
}

.border-t-thin {
    border-top: 1px solid var(--border-color);
}

/* Grid Layouts */
.swiss-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

/* Navigation */
.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a3a3a3;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--brand-yellow);
}

/* Service List Item */
.service-item {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

@media (min-width: 768px) {
    .service-item {
        padding: 3rem 0;
    }
}

.service-item:hover {
    background-color: rgba(139, 92, 246, 0.05);
    border-color: var(--brand-purple);
    padding-left: 1rem;
    padding-right: 1rem;
}

.service-item:last-child {
    border-bottom: 1px solid var(--border-color);
}

.service-number {
    font-family: 'Outfit', monospace;
    color: #525252;
}

/* Project Card */
.project-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-image {
    width: 630px;
    height: 700px;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: grayscale(100%);
}

.project-card:hover .project-image {
    filter: grayscale(0%);
}

.project-info {
    padding-top: 1.5rem;
}

/* Buttons */
.btn-minimal {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-minimal:hover {
    background: var(--brand-purple);
    color: #fff;
    border-color: var(--brand-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Text Colors */
.text-brand-yellow {
    color: var(--brand-yellow);
}

.text-brand-purple {
    color: var(--brand-purple);
}

.text-brand-red {
    color: var(--brand-red);
}

/* Form Styles & Autofill Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: #EDEDED;
    -webkit-box-shadow: 0 0 0px 1000px #050505 inset;
    transition: background-color 5000s ease-in-out 0s;
}

input,
textarea,
select {
    background-color: transparent !important;
}

/* Remove default focus ring on some browsers */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Footer */
.footer-link {
    font-size: clamp(2rem, 6vw, 6rem);
    line-height: 1;
    font-weight: 500;
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 8px;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    transition: text-decoration-color 0.3s ease;
}

.footer-link:hover {
    text-decoration-color: #fff;
}