/* Modern CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0f172a;
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-medium: rgba(255, 255, 255, 0.8);
    --text-subtle: rgba(255, 255, 255, 0.7);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-bg-hover: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.08);
    --logo-bg: rgba(255, 255, 255, 0.02);
    --logo-bg-hover: rgba(255, 255, 255, 0.05);
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --shadow-subtle: 0 8px 16px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background-color: var(--bg-dark);
    min-height: 100vh;
}

.tag {
	color: #17223d;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 6rem;
    padding: 2rem 0;
}

.header-title-section {
    display: block;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.holding-company-logo {
    flex-shrink: 0;
	margin-bottom: 2rem;
}

.holding-company-logo img {
    height: clamp(60px, 8vw, 120px);
    width: auto;
    //filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: -0.02em;
    line-height: 0.9;
    margin: 0;
}

.header-summary {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.header-summary p {
    font-size: 1.2rem;
    color: var(--text-subtle);
    line-height: 1.6;
    font-weight: 400;
}

.header-contact {
	max-width: 600px;
	margin: 0 auto 2rem;
}

.header-contact a {
	text-decoration: none;
	font-size: 1rem;
	color: var(--text-subtle);
	line-height: 1.6
	font-weight: 400;
}

.header-accent {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    margin: 0 auto;
}

/* Portfolio List */
.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.company-card {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease forwards;
}

.company-card:nth-child(2) { animation-delay: 0.2s; }
.company-card:nth-child(3) { animation-delay: 0.4s; }
.company-card:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    //background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    ////border: 1px solid var(--card-border);
    padding: 4rem;
    //box-shadow: var(--shadow-subtle);
    transition: background 0.3s ease;
    position: relative;
}

.company-card:hover .card-content {
    background: var(--card-bg-hover);
}

/* Logo Section */
.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: var(--logo-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 320px;
    transition: background 0.3s ease;
}

.company-card:hover .logo-section {
    background: var(--logo-bg-hover);
}

.logo-section img {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Text Section */
.text-section {
    padding: 2rem 0;
}

.text-section h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-white);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.text-section p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.visit-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent-blue);
    transition: color 0.3s ease;
    letter-spacing: 0.01em;
}

.company-card:hover .visit-link {
    color: var(--accent-purple);
}

/* Staggered Layout */
.right-aligned .text-section {
    text-align: right;
}

/* Focus states for accessibility */
.company-card a:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    main {
        padding: 3rem 2rem;
    }
    
    .header-title-section {
        gap: 1.5rem;
    }
    
    .holding-company-logo img {
        height: clamp(50px, 6vw, 80px);
    }
    
    .card-content {
        gap: 3rem;
        padding: 3rem 2.5rem;
    }
    
    .logo-section {
        min-height: 280px;
        padding: 2.5rem;
    }
    
    .portfolio-list {
        gap: 4rem;
    }
    
    .header-summary p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    main {
        padding: 2rem 1rem;
    }
    
    header {
        margin-bottom: 4rem;
    }
    
    .header-title-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .holding-company-logo img {
        height: 60px;
    }
    
    .portfolio-list {
        gap: 3rem;
    }
    
    .card-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 2rem;
        text-align: center;
    }
    
    .right-aligned .text-section {
        text-align: center;
    }
    
    .logo-section {
        min-height: 240px;
        order: -1;
    }
    
    .text-section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .text-section p {
        font-size: 1.1rem;
    }
    
    .header-summary p {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card-content,
    .visit-link,
    .logo-section {
        transition: none;
    }
    
    .company-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
