@import url(Font.css);

/* ===== Global Reset & Variables ===== */
* {
    margin: 0;
    padding: 0;
    text-decoration: none !important;
    list-style-type: none;
    box-sizing: border-box;
    transition: all 0.3s;
}

:root {
    scroll-behavior: smooth;
    --main-color-light: #0E286B;
    --main-color-dark: #3A5F9A;
    --main-color: var(--main-color-dark);
    --accent-color: #60a5fa;
    --text-light: #e2e8f0;
    --bg-dark: #0f172a;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== Utility Classes ===== */
.fw-thin { font-weight: 100; }
.fw-regular { font-weight: 400; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }

.h100-vh { height: 100vh !important; }
.backdrop-blur { backdrop-filter: blur(5px) !important; }
.filter-blur { filter: blur(5px) !important; }
.cursor-pointer { cursor: pointer; }
.fs-7 { font-size: 80%; }

.btn-main {
    background-color: var(--main-color) !important;
    color: white !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}
.btn-main:hover {
    background-color: #2E4C7D !important;
    color: white !important;
}

.text-main { color: var(--main-color) !important; }

.btn-main-outline {
    background-color: transparent !important;
    color: var(--main-color) !important;
    border: 2px solid var(--main-color) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}
.btn-main-outline:hover {
    background-color: var(--main-color) !important;
    color: white !important;
}

.shadow-main { box-shadow: 0 7px 35px 0 var(--main-color) !important; }

.shadow-main-hover { transition: box-shadow 0.5s; }
.shadow-main-hover:hover { box-shadow: 0 10px 20px -5px var(--main-color) !important; }

.bg-main { background-color: var(--main-color) !important; }

.hover-main:hover {
    background-color: var(--main-color) !important;
    color: #ffffff !important;
}

.border-main { border-color: var(--main-color) !important; }

.w-20 { width: 20% !important; }

/* ===== Glassmorphism General Style ===== */
.glass {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 1400px;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(58, 95, 154, 0.15), rgba(96, 165, 250, 0.08));
    pointer-events: none;
    border-radius: 32px;
    z-index: -1;
}

/* ===== Advanced Glass Hero Header (خاص هیرو سکشن) ===== */
.glass-hero {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
    margin: 2rem auto;
    max-width: 1400px;
    z-index: 10;
}

.glass-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(58, 95, 154, 0.15), rgba(96, 165, 250, 0.08));
    pointer-events: none;
    border-radius: 32px;
}

/* Top Navigation */
.hero-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 2rem;
}

.hero-nav .nav-links {
    display: flex;
    gap: 2rem;
}

.hero-nav a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.4s ease;
}

.hero-nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--main-color), var(--accent-color));
    border-radius: 2px;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.hero-nav a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.hero-nav a:hover::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--main-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--accent-color);
}

/* Main Hero Content */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 3rem;
    position: relative;
    z-index: 2;
}

.hero-left {
    flex: 1;
    min-width: 300px;
    color: #fff;
}

.hero-left h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-left .title {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-left p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
    opacity: 0.9;
    max-width: 90%;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    animation: float 6s ease-in-out infinite;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid rgba(58, 95, 154, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: all 0.5s ease;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color), transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.25; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards;
}
.hero-left h1 { animation-delay: 0.3s; }
.hero-left .title { animation-delay: 0.6s; }
.hero-left p { animation-delay: 0.9s; }
.profile-wrapper { animation-delay: 1.2s; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding: 3rem 2rem;
    }
    .hero-left { margin-top: 3rem; }
    .hero-left p { max-width: 100%; }
    .profile-wrapper { width: 320px; height: 320px; }
    .hero-nav { flex-direction: column; gap: 1rem; }

    .glass {
        padding: 2.5rem;
        margin: 1.5rem auto;
        border-radius: 24px;
    }
}

@media (max-width: 576px) {
    .hero-nav .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    .hero-nav a { font-size: 1rem; }
    .hero-left h1 { font-size: 2.8rem; }
    .hero-left .title { font-size: 1.5rem; }
    .profile-wrapper { width: 280px; height: 280px; }

    .glass {
        padding: 2rem;
        margin: 1rem auto;
        border-radius: 20px;
    }
}
