/*
Theme Name: TABIF Modern Pro
Description: Complete Structure Rebuild - Multi-page Premium SaaS Design
Author: Developer
Version: 1.0.0
*/

:root {
    --brand-primary: #0ea5e9;    /* Ocean Blue */
    --brand-secondary: #10b981;  /* Emerald Green */
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #020617;
    --text-body: #334155;
    --border-color: #e2e8f0;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 50px -10px rgba(14, 165, 233, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text-body); background: var(--bg-light); overflow-x: hidden; line-height: 1.8; font-size: 1.05rem; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { text-decoration: none; color: inherit; transition: 0.3s ease; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-md); }

.pro-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pro-section { padding: 120px 0; }
.bg-white { background: var(--card-bg); }

/* Typography */
h1, h2, h3, h4 { color: var(--text-dark); font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.pro-gradient-text { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Buttons */
.btn-pro { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; border-radius: 12px; font-weight: 700; font-size: 1rem; transition: all 0.3s ease; border: none; cursor: pointer; }
.btn-solid { background: var(--text-dark); color: #fff; box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2); }
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3); color: #fff; }
.btn-gradient { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); color: #fff; box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3); }
.btn-gradient:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4); color: #fff; }
.btn-light { background: #ffffff; color: var(--brand-primary); box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2); }
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3); color: var(--text-dark); }


/* Section Headers */
.pro-section-head { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.pro-section-head h2 { font-size: 3rem; margin-bottom: 20px; }
.pro-section-head p { font-size: 1.1rem; color: var(--text-body); }
.pro-pill { display: inline-block; padding: 6px 16px; background: rgba(14, 165, 233, 0.1); color: var(--brand-primary); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-radius: 100px; margin-bottom: 16px; }

/* Global Header */
.pro-header { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 25px 0; transition: all 0.4s ease; background: transparent; }
.pro-header.scrolled { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); padding: 15px 0; border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-soft); }
.pro-nav { display: flex; align-items: center; justify-content: space-between; }
.pro-logo a { font-size: 1.7rem; font-weight: 800; color: var(--text-dark); }
.pro-menu ul { display: flex; gap: 35px; list-style: none; }
.pro-menu a { font-weight: 600; color: var(--text-body); font-size: 0.95rem; }
.pro-menu a:hover { color: var(--brand-primary); }

/* Global Hero */
.pro-hero { padding: 200px 0 100px; position: relative; text-align: center; background: radial-gradient(circle at top, #e0f2fe 0%, var(--bg-light) 60%); overflow: hidden; }
.dark-green-hero { background: linear-gradient(135deg, #132431 0%, #1e5631 80%, #0d2917 100%); }
.dark-green-hero h1 { color: #111827; }
.dark-green-hero p { color: rgba(255, 255, 255, 0.85); }

.pro-hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.pro-hero h1 { font-size: 5.2rem; margin-bottom: 24px; line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; }
.pro-hero p { font-size: 1.35rem; margin-bottom: 40px; color: #475569; font-weight: 400; max-width: 700px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* Glass Floating Image Layer */
.pro-hero-glass-img { position: relative; max-width: 1000px; margin: 80px auto -150px; z-index: 5; }
.pro-glass-label { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: #ffffff; padding: 6px 20px; border-radius: 20px; font-weight: 600; font-size: 0.9rem; z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.1); color: var(--text-dark); }
.pro-glass-wrap { background: rgba(255,255,255,0.2); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.3); border-radius: 32px; padding: 15px; box-shadow: 0 40px 100px -20px rgba(0,0,0,0.3); position: relative; }
.pro-glass-wrap img { width: 100%; height: 500px; object-fit: cover; border-radius: 20px; }

/* Grid Cards (Services & Incubatees) */
.pro-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.pro-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pro-card { background: var(--card-bg); border-radius: var(--radius-md); padding: 40px 30px; border: 1px solid var(--border-color); transition: 0.4s ease; position: relative; overflow: hidden; }
.pro-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: transparent; }
.pro-card-icon { width: 60px; height: 60px; background: #e0f2fe; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 24px; color: var(--brand-primary); }
.pro-card h3 { font-size: 1.3rem; margin-bottom: 12px; }

/* Impact Dark Matrix */
.pro-impact { background: var(--text-dark); color: #fff; padding: 150px 0; position: relative; overflow: hidden; }
.pro-impact::before { content: ''; position: absolute; inset: 0; background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCI+CjxwYXRoIGQ9Ik0wIDBoNDB2NDBIMHoiIGZpbGw9Im5vbmUiLz4KPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMSIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIi8+Cjwvc3ZnPg=='); }
.pro-matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; z-index: 2; }
.matrix-cell { text-align: center; padding: 40px 20px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-md); transition: 0.3s; }
.matrix-cell:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); transform: scale(1.05); }
.matrix-number { font-size: 4rem; font-weight: 800; background: linear-gradient(135deg, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 10px; }
.matrix-label { font-size: 1rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }

/* Partners Cards */
.pro-partner-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); height: 140px; display: flex; align-items: center; justify-content: center; padding: 30px; transition: 0.3s; }
.pro-partner-card img { filter: grayscale(1); opacity: 0.5; transition: 0.3s; max-height: 100%; object-fit: contain; }
.pro-partner-card:hover { box-shadow: var(--shadow-soft); border-color: transparent; }
.pro-partner-card:hover img { filter: grayscale(0); opacity: 1; }

/* Horizontal Infra / Simple Grid */
.pro-infra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pro-infra-item { position: relative; border-radius: var(--radius-md); overflow: hidden; height: 350px; }
.pro-infra-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.pro-infra-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,0.9), transparent); display: flex; align-items: flex-end; padding: 30px; }
.pro-infra-overlay h3 { color: #fff; font-size: 1.5rem; }
.pro-infra-item:hover img { transform: scale(1.05); }

/* Zig Zag Layout */
.pro-zigzag { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 120px; }
.pro-zigzag.flip .pro-zz-content { order: -1; }
.pro-zz-img { padding: 20px; background: #fff; border-radius: 32px; box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); }
.pro-zz-img img { border-radius: 20px; width: 100%; height: 500px; object-fit: cover; }
.pro-zz-content h2 { font-size: 3rem; margin-bottom: 24px; }
.pro-zz-content p { font-size: 1.15rem; margin-bottom: 30px; color: var(--text-body); }

/* Global Footer */
.pro-footer { background: var(--text-dark); padding: 80px 0 40px; color: #cbd5e1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-logo { font-size: 2rem; font-weight: 800; color: #fff; }
.footer-logo span { color: var(--brand-primary); }
.footer-col h3 { color: #fff; font-size: 1.2rem; margin-bottom: 24px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: #94a3b8; }
.footer-col a:hover { color: #fff; }

/* Internal Page Hero */
.pro-page-hero { padding: 180px 0 80px; background: var(--bg-light); text-align: center; border-bottom: 1px solid var(--border-color); }
.pro-page-hero h1 { font-size: 4rem; }

/* Sub Page Content Defaults */
.pro-content-area h1, .pro-content-area h2 { margin: 40px 0 20px; }
.pro-content-area img { box-shadow: var(--shadow-soft); margin: 30px 0; }

/* Form */
.pro-form { background: #fff; padding: 50px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); }
.pro-form input, .pro-form textarea { width: 100%; padding: 16px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-light); font-family: inherit; font-size: 1rem; margin-top: 8px; transition: 0.3s; }
.pro-form input:focus, .pro-form textarea:focus { outline: none; border-color: var(--brand-primary); background: #fff; box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1); }

/* Responsive */
@media(max-width:1024px) {
    .pro-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .pro-matrix, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .pro-zigzag { grid-template-columns: 1fr; gap: 40px; }
    .pro-zigzag.flip .pro-zz-content { order: 0; }
}
@media(max-width:768px) {
    .pro-grid-4, .pro-grid-3, .pro-matrix, .pro-infra-grid, .footer-grid { grid-template-columns: 1fr; }
    .pro-menu, .pro-header .btn-pro { display: none; }
    .pro-hero h1 { font-size: 3rem; }
    .pro-glass-wrap { display: none; } /* Hide complicated stuff on mobile */
}
