/* Warm Professional Design - Tom Schorn Portfolio */

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

:root {
    /* Warm Professional Palette - Einladend aber professionell */
    --navy: #1e3a5f;
    --navy-light: #2d5580;
    --navy-dark: #152840;
    --warm-gray: #4a4a4a;
    --warm-gray-light: #6b6b6b;
    --sand: #f5f1ed;
    --cream: #faf8f5;
    --beige: #e8e3dc;
    --bronze: #9b6b4f;
    --bronze-light: #b8836b;
    --bronze-dark: #7d5740;
    --white: #ffffff;
    --border: #e0ddd8;
}

body {
    font-family: 'Inter', sans-serif !important;
    background: var(--cream) !important;
    color: var(--warm-gray) !important;
    line-height: 1.6;
}

/* Navigation - Custom design (not Bootstrap) */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.98);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

nav a {
    color: var(--warm-gray-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    padding: 8rem 2rem 6rem;
    background: linear-gradient(to bottom, var(--white), var(--cream));
    margin-top: 56px; /* Account for fixed navbar */
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-text .subtitle {
    font-size: 1.5rem;
    color: var(--bronze);
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.hero-text p {
    font-size: 1.0625rem;
    color: var(--warm-gray-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(155, 107, 79, 0.15);
    border: 3px solid var(--beige);
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--navy);
    color: white;
}

.btn-primary:hover {
    background: var(--navy-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--bronze);
    border: 1.5px solid var(--bronze);
}

.btn-secondary:hover {
    background: var(--bronze);
    color: white;
    transform: translateY(-1px);
}

/* Tech Stack Section */
.tech-stack {
    padding: 6rem 2rem;
    background: var(--sand);
}

.tech-stack .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.0625rem;
    color: var(--warm-gray-light);
    margin-bottom: 4rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tech-card {
    position: relative;
    height: 420px;
    perspective: 1000px;
}

.tech-card.wide {
    grid-column: span 2;
}

.tech-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.tech-card:hover .tech-card-inner {
    transform: rotateY(180deg);
}

.tech-card-front,
.tech-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
}

.tech-card-front {
    display: flex;
    flex-direction: column;
}

.tech-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.tech-card-back h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bronze-light);
}

.tech-card-back p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
}

.tech-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
    flex-shrink: 0;
}

.tech-card-icon i {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.tech-card .subtitle-small {
    font-size: 0.875rem;
    color: var(--bronze);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.tech-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-list li {
    padding: 0.5rem 1rem;
    background: rgba(155, 107, 79, 0.08);
    border: 1px solid rgba(155, 107, 79, 0.25);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--bronze);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-list li:hover {
    background: rgba(155, 107, 79, 0.15);
    transform: translateY(-2px);
    border-color: var(--bronze);
}

/* Footer Override */
footer.bg-dark {
    background: var(--navy) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-card.wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text .subtitle {
        font-size: 1.25rem;
    }

    .hero-image img {
        max-width: 280px;
        margin: 0 auto;
    }

    .btn-group {
        justify-content: center;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .tech-card.wide {
        grid-column: span 1;
    }

    .tech-card {
        height: auto;
        min-height: 420px;
    }
}
