/* ==========================================================================
   METRE GRUP - PORTAL STYLE SHEET (GRID PORTAL THEME)
   ========================================================================== */

/* --- Custom Variables & Reset --- */
:root {
    --primary-color: #D63E3E; /* Metre İnşaat Deep Red */
    --primary-hover: #b82d2d;
    --dark-bg: #111111;
    --dark-card: rgba(255, 255, 255, 0.04);
    --dark-input: #252525;
    --light-bg: #fdfdfd;
    --light-card: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted-dark: #666666;
    --text-light: #ffffff;
    --text-muted-light: #cccccc;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glass: rgba(255, 255, 255, 0.08);
    --whatsapp-green: #25D366;
    --transition-fast: 0.25s ease;
    --transition-normal: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --font-family: 'Poppins', sans-serif;
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

input, textarea, button {
    font-family: inherit;
    outline: none;
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.title-line-left {
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.75rem 0 1.5rem 0;
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(214, 62, 62, 0.25);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

/* --- Main Portal Banner Section --- */
.portal-section {
    position: relative;
    margin-top: 80px;
    padding: 6rem 0;
    background-color: var(--dark-bg);
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    overflow: hidden;
}

.portal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.96) 0%, rgba(25, 25, 25, 0.9) 100%);
    z-index: 1;
}

.portal-container {
    position: relative;
    z-index: 2;
}

.portal-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4.5rem auto;
}

.portal-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(214, 62, 62, 0.15);
    border: 1px solid rgba(214, 62, 62, 0.4);
    color: #ff5252;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portal-header h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.portal-header p {
    font-size: 1.05rem;
    color: var(--text-muted-light);
}

/* Companies Grid Layout (Side-by-Side) */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.company-card {
    background-color: var(--dark-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 3rem 2.2rem;
    text-align: center;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
}

.company-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(214, 62, 62, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 65px;
    height: 65px;
    background-color: rgba(214, 62, 62, 0.1);
    border: 1px solid rgba(214, 62, 62, 0.2);
    color: var(--primary-color);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.75rem;
    transition: var(--transition-normal);
}

.company-card:hover .card-icon {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: scale(1.1) rotate(5deg);
}

.company-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.company-card .tagline {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    min-height: 20px;
}

.company-card .desc {
    font-size: 0.95rem;
    color: var(--text-muted-light);
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.6;
}

.company-card .btn {
    width: 100%;
}

/* --- Contact Section --- */
.contact {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info h2,
.contact-form h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.contact-info > p {
    color: var(--text-muted-dark);
    margin-bottom: 2.5rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(214, 62, 62, 0.05);
    color: var(--primary-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.info-text span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-text p,
.info-text a {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.info-text a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background-color: var(--light-card);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background-color: #f7f7f7;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: var(--light-card);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(214, 62, 62, 0.1);
}

.form-status {
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.form-status.success {
    color: #2e7d32;
}

.form-status.error {
    color: var(--primary-color);
}

/* --- Bottom Credit --- */
.credit-bottom {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--light-bg);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}

.credit-bottom a {
    color: var(--text-muted-dark);
    font-weight: 500;
}

.credit-bottom a:hover {
    color: var(--primary-color);
}

/* --- Floating WhatsApp Widget --- */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    position: relative;
    transition: var(--transition-normal);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--whatsapp-green);
    top: 0;
    left: 0;
    animation: pulseWhatsApp 2s infinite;
    z-index: -1;
}

.tooltip-text {
    position: absolute;
    right: 75px;
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition-fast);
}

.whatsapp-btn:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes pulseWhatsApp {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ==========================================================================
   MEDIA QUERIES (Responsive Design)
   ========================================================================== */

@media (max-width: 1024px) {
    .portal-header h1 {
        font-size: 2.5rem;
    }

    .companies-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
