/* Portfolio-Sektion Styles */
:root {
    --primary-color: #00a2ff;
    --secondary-color: #0062ff;
    --accent-color: #00ffff;
    --dark-bg: #000814;
    --darker-bg: #000000;
    --light-text: #e0f2ff;
    --silver: #c0c0c0;
    --glow-effect: 0 0 10px rgba(0, 162, 255, 0.7), 0 0 20px rgba(0, 162, 255, 0.4);
    --transition-speed: 0.3s;
}

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

html, body {
    height: 100%;
    width: 100%;
    overflow: auto;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--light-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 162, 255, 0.5);
}

.section-content {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(90deg, var(--darker-bg) 0%, transparent 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 1200px;
}

.portfolio-item {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-speed) ease;
}

.portfolio-item:nth-child(1) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' fill='%23001428'/%3E%3Cpath d='M0 0L100 100M100 0L0 100' stroke='%2300a2ff' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 10px 10px;
}

.portfolio-item:nth-child(2) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' fill='%23001428'/%3E%3Ccircle cx='50' cy='50' r='40' stroke='%2300a2ff' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-size: 20px 20px;
}

.portfolio-item:nth-child(3) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' fill='%23001428'/%3E%3Cpolygon points='50,20 80,50 50,80 20,50' stroke='%2300a2ff' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-size: 20px 20px;
}

.portfolio-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.portfolio-item.glow {
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.8), 0 0 40px rgba(0, 162, 255, 0.4);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    transform: translateY(100%);
    transition: transform var(--transition-speed) ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Animation-Klassen */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.8rem;
    }
    
    .portfolio-item {
        height: 250px;
    }
}

/* iPhone-spezifische Optimierungen */
@supports (-webkit-touch-callout: none) {
    .section-content {
        -webkit-overflow-scrolling: touch;
    }
}
