/* ============================================
   SURGILINK Portfolio v4 - Multi-Page Design
   Professional Light Theme Stylesheet
   ============================================ */

/* ========== CSS Variables ========== */
:root {
    /* Primary Colors - Light Blue Theme */
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #22d3ee;
    --secondary: #0284c7;
    --accent: #06b6d4;

    /* Backgrounds */
    --bg-light: #f0f9ff;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #ecfeff 100%);

    /* Text Colors */
    --text-dark: #0c4a6e;
    --text-muted: #64748b;
    --text-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0891b2 0%, #0284c7 50%, #06b6d4 100%);
    --gradient-hero: linear-gradient(135deg, #e0f2fe 0%, #cffafe 100%);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(8, 145, 178, 0.15);

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(8, 145, 178, 0.08);
    --shadow-md: 0 4px 20px rgba(8, 145, 178, 0.1);
    --shadow-lg: 0 10px 40px rgba(8, 145, 178, 0.15);
    --shadow-hover: 0 15px 50px rgba(8, 145, 178, 0.2);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Section Padding */
    --section-padding: 100px;
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-gradient);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========== Utility Classes ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== Glass Effects ========== */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(8, 145, 178, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.glass-dark {
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: var(--radius-full);
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

/* ========== Animated Background ========== */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-gradient);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #67e8f9, #22d3ee);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #a5f3fc, #06b6d4);
    bottom: -150px;
    left: -150px;
    animation: float 25s ease-in-out infinite reverse;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #cffafe, #0891b2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-50px) rotate(10deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
}

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-hex {
    width: 45px;
    height: 52px;
    background: var(--gradient-primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 800;
    font-size: 1.3rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-nav {
    background: var(--gradient-primary);
    color: var(--text-white) !important;
    padding: 12px 28px;
    border-radius: var(--radius-full);
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition-normal);
}

/* ========== Page Hero (For Non-Home Pages) ========== */
.page-hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.6) 0%, rgba(6, 182, 212, 0.55) 50%, rgba(14, 116, 144, 0.6) 100%);
    z-index: 1;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .page-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    margin-bottom: 20px;
}

.page-hero .page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--text-white);
}

.page-hero .page-title .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero .page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--text-white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
    color: var(--text-white);
    font-weight: 600;
}

/* Legacy page-header support */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
}

.page-tag {
    margin-bottom: 20px;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-primary i {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.btn-primary:hover i {
    transform: translateX(5px);
}

.btn-secondary {
    background: #ffffff;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========== Section Headers ========== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.title-line {
    display: block;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    min-width: 60px;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(8, 145, 178, 0.2);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hex-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.hex-main {
    width: 400px;
    height: 460px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
    position: relative;
}

.hex-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hex-float {
    position: absolute;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
}

.hex-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hex-float-1 {
    width: 130px;
    height: 150px;
    top: 30px;
    right: -30px;
}

.hex-float-2 {
    width: 100px;
    height: 115px;
    bottom: 80px;
    left: -20px;
}

/* ========== Cards ========== */
.card {
    padding: 30px;
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    width: 28px;
    height: 28px;
    color: var(--text-white);
}

.card h3,
.card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== Grids ========== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* ========== About Styles ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    padding: 35px;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.mv-card {
    padding: 25px;
}

.mv-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.mv-icon i {
    width: 24px;
    height: 24px;
    color: var(--text-white);
}

.mv-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.mv-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.values-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.value-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    transition: var(--transition-normal);
}

.value-card:hover {
    transform: translateX(10px);
}

.value-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.value-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.value-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========== Services Styles ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    padding: 35px;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.service-card:hover .service-glow {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(8, 145, 178, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
}

.service-icon i {
    width: 28px;
    height: 28px;
    color: var(--primary);
    transition: var(--transition-normal);
}

.service-card:hover .service-icon i {
    color: var(--text-white);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========== Products Styles ========== */
.products-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.tab-btn i {
    width: 20px;
    height: 20px;
}

.tab-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--text-white);
    border-color: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-icon-wrap {
    margin-bottom: 25px;
}

.product-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: rgba(8, 145, 178, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.product-card:hover .product-icon {
    background: var(--gradient-primary);
}

.product-icon i {
    width: 32px;
    height: 32px;
    color: var(--primary);
    transition: var(--transition-normal);
}

.product-card:hover .product-icon i {
    color: var(--text-white);
}

.product-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========== Partner Styles ========== */
.partner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.partner-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.partner-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.partner-feature {
    display: flex;
    gap: 20px;
    padding: 25px;
}

.partner-feature:hover {
    transform: translateX(10px);
}

.feature-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    width: 26px;
    height: 26px;
    color: var(--text-white);
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.partner-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.partner-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.partner-stats {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    padding: 20px 40px;
}

.p-stat {
    text-align: center;
}

.p-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.p-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== Contact Styles ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 28px;
}

.contact-card:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    width: 24px;
    height: 24px;
    color: var(--text-white);
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.contact-card a {
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.contact-card a:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form-wrapper {
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-normal);
}

.form-group textarea~label {
    top: 20px;
    transform: none;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -12px;
    left: 15px;
    font-size: 0.8rem;
    background: #ffffff;
    padding: 0 8px;
    color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========== Footer ========== */
.footer {
    background: #ffffff;
    padding: 80px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col li a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-col li a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(8, 145, 178, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.social-link i {
    width: 20px;
    height: 20px;
    color: var(--text-white);
}

.social-link:hover {
    transform: translateY(-3px);
}

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top i {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ========== Responsive Design ========== */

/* Tablet */
@media (max-width: 1024px) {

    .hero-container,
    .about-grid,
    .partner-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        order: -1;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        gap: 25px;
        padding: 50px 30px;
        transition: 0.4s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-container {
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        text-align: center;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hex-main {
        width: 260px;
        height: 300px;
    }

    .hex-float {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .products-tabs {
        flex-direction: column;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Page Hero */
    .page-hero {
        min-height: 320px;
        padding: 100px 0 50px;
    }

    .page-hero .page-title {
        font-size: 2rem;
    }

    .page-hero .page-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }

    /* Partner Section */
    .partner-features {
        gap: 15px;
    }

    .partner-feature {
        padding: 20px;
    }

    .partner-image {
        height: 250px;
    }

    .partner-stats {
        position: relative;
        margin-top: 20px;
    }

    /* Value Cards */
    .value-card {
        flex-direction: column;
        text-align: center;
    }

    .value-number {
        margin-bottom: 10px;
    }

    /* Contact */
    .contact-cards {
        gap: 15px;
    }

    .contact-card {
        padding: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 50px;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .page-title,
    .page-hero .page-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .hex-main {
        width: 200px;
        height: 230px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .service-card,
    .product-card,
    .partner-feature,
    .contact-card,
    .mv-card,
    .value-card {
        padding: 18px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Page Hero */
    .page-hero {
        min-height: 280px;
        padding: 90px 0 40px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }

    .footer-col h4 {
        font-size: 1rem;
    }

    .footer-col li {
        font-size: 0.9rem;
    }
}

/* Extra Small */
@media (max-width: 350px) {
    .container {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .page-hero .page-title {
        font-size: 1.4rem;
    }

    .hex-main {
        width: 170px;
        height: 195px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .glass-dark {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
}

/* Image Grids - Better Responsive */
@media (max-width: 768px) {

    .image-grid-3,
    .image-grid-4 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .image-grid-4 {
        grid-template-columns: 1fr !important;
    }
}

/* ================================
   Interactive Product Grid - Hover Effect
   ================================ */
.product-grid {
    display: flex;
    gap: 20px;
    margin-top: 45px;
    height: 350px;
    align-items: stretch;
}

.product-grid .glass-card {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.product-grid .glass-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    transition: transform 0.5s ease, filter 0.3s ease;
}

/* Hover Effect - Hovered image gets bigger */
.product-grid:hover .glass-card {
    flex: 0.7;
    filter: brightness(0.85);
}

.product-grid .glass-card:hover {
    flex: 2.5 !important;
    filter: brightness(1) !important;
    box-shadow: 0 20px 60px rgba(8, 145, 178, 0.3);
    z-index: 10;
}

.product-grid .glass-card:hover img {
    transform: scale(1.05);
}

/* Optional: Add overlay text on hover */
.product-grid .glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 145, 178, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.product-grid .glass-card:hover::after {
    opacity: 1;
}

/* Remove old classes */
.product-main,
.product-small {
    padding: 0;
    background: transparent;
}

/* موبايل - Stack vertically on small screens */
@media (max-width: 900px) {
    .product-grid {
        flex-direction: column;
        height: auto;
    }

    .product-grid .glass-card {
        height: 220px;
        flex: none !important;
    }

    .product-grid:hover .glass-card {
        flex: none !important;
        filter: none;
    }

    .product-grid .glass-card:hover {
        transform: scale(1.02);
    }
}

/* ================================
   Mission & Vision Section
   ================================ */

.section-mv {
    padding-top: 0;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.mv-card {
    position: relative;
    padding: 35px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(8, 145, 178, 0.12);
}

.mv-bg-shape {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    opacity: 0.08;
    border-radius: 50%;
    z-index: 0;
}

.mv-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.mv-icon i {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.mv-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.mv-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .mv-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== Core Values ===== */
.core-values-grid {
    gap: 30px;
}

.core-value-card {
    position: relative;
    padding: 40px 35px;
    background: #ffffff;
    border-radius: 18px;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.core-value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.core-value-bg {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(8, 145, 178, 0.08);
    line-height: 1;
    pointer-events: none;
}

.core-value-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.core-value-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 420px;
}

/* Mobile */
@media (max-width: 768px) {
    .core-value-card {
        padding: 30px;
    }

    .core-value-bg {
        font-size: 4rem;
    }
}


.services-section .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    padding: 40px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(8, 145, 178, 0.18);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(8, 145, 178, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.service-icon i {
    width: 30px;
    height: 30px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-section .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-section .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Process Section */
.process-section {
    background: transparent;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(8, 145, 178, 0.18);
}

.process-step {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.process-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .glass-card>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    #about-preview .glass-card img {
        object-fit: cover !important;
        object-position: center 40% !important;
        /* يحاول يركز على المنتجات */
        width: 100% !important;
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
        filter: brightness(1.05) contrast(1.1);
        /* يزيد الوضوح */
    }
}



@media (max-width: 768px) {

    /* يجعلهم عمود واحد على الموبايل */
    section>.container>.glass-card>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* يجعلهم مربعات متساوية */
    section>.container>.glass-card>div>div[style*="height: 250px"] {
        height: 200px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    /* يركز على منتصف الصور */
    section>.container>.glass-card img {
        object-fit: cover !important;
        object-position: center center !important;
        width: 100% !important;
        height: 100% !important;
        filter: brightness(1.1) saturate(1.1);
    }
}

/* ================================
   Services Image Grid - Responsive
   ================================ */
.services-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    border-radius: 20px;
    overflow: hidden;
}

.services-image-item {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
}

.services-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.services-image-item:hover img {
    transform: scale(1.05);
}

/* Responsive - Stack vertically on mobile */
@media (max-width: 768px) {
    .services-image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .services-image-item {
        height: 220px;
    }
}