/*
Theme Name: Ierion
Theme URI: https://www.facebook.com/Himelahmed62/
Author: Himel Ahmed
Author URI: https://www.facebook.com/Himelahmed62/
Description: A professional high-performance, dark-mode cybersecurity WordPress theme. Features advanced GSAP animations, custom mouse interactions, and a premium administrative dashboard designed for excellence.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ierion
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
Tags: custom-menu, dark, featured-images, full-width-template, theme-options, translation-ready, block-styles, blog, cybersecurity, premium, gsap, lenis, animations
*/

/* ========== DESIGN SYSTEM ========== */
:root {
    --bg-color: #000000;
    --accent-purple: #7C5DFA;
    --accent-cyan: #00F3FF;
    --text-main: #FFFFFF;
    --text-dim: #A1A1AA;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --container-width: 1440px;
    --section-padding: 120px;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: initial; /* Lenis handles smooth scroll */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========== UTILITIES ========== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.accent { color: var(--accent-purple); }
.highlight { color: var(--accent-purple); font-weight: 600; }
.center { text-align: center; }

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== GRAIN & CANVAS ========== */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

#digital-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* ========== CURSOR ========== */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 10000;
}

.policy-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 40px 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.cursor__circle {
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: invert(0.1) brightness(1.1);
    box-shadow: 0 0 20px rgba(124, 93, 250, 0.1);
}

.cursor__circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--accent-purple);
    border-radius: 50%;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: background 0.3s, padding 0.3s;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.header__logo img {
    height: 40px;
}

.header__nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.header__nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.header__nav a:hover {
    color: var(--accent-purple);
}

.header__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
}

.header__toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}

.header__toggle.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.header__toggle.active span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero__title {
    font-size: clamp(40px, 8vw, 120px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

.hero__labels {
    display: flex;
    gap: 20px;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.hero__label {
    opacity: 0.2;
    transition: opacity 0.5s;
}

.hero__label.active {
    opacity: 1;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 2px solid #fff;
    border-radius: 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: mouse-scroll 1.5s infinite;
}

@keyframes mouse-scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ========== SECTIONS ========== */
section {
    padding: var(--section-padding) 0;
}

.section-title {
    font-size: clamp(36px, 6vw, 64px);
    margin-bottom: 30px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.sub-title {
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--accent-purple);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.tag {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ========== MISSION ========== */
.mission__intro-box {
    width: 80%;
    margin: 0 auto 120px;
    padding: 60px 40px;
    text-align: center;
}

.mission__intro-box p {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.mission {
    padding-bottom: 60px;
}

.mission__details {
    align-items: center;
}

.mission__visual {
    display: flex;
    justify-content: flex-start;
}

.floating-e img {
    width: 400px;
    filter: drop-shadow(0 0 50px rgba(124, 93, 250, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ========== SERVICES ========== */
.services {
    padding-top: 60px;
}

.services__mindmap {
    margin: 80px 0;
}

.mindmap-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 60px;
    overflow: hidden;
}

.mindmap-container img {
    border-radius: 20px;
    width: 100%;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: transform 0.3s, background 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-purple);
}

.service-card__icon {
    margin-bottom: 20px;
    color: var(--accent-purple);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-dim);
    font-size: 16px;
}

/* ========== PHILOSOPHY & LEADERSHIP ========== */
.leadership__image img, .philosophy__image img {
    border-radius: 30px;
    width: 100%;
    object-fit: cover;
}

/* ========== CONTACT ========== */
.contact__form {
    background: rgba(255, 255, 255, 0.03);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 30px;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-purple);
}

.btn-submit {
    background: var(--accent-purple);
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.btn-submit:hover {
    transform: translateY(-5px);
    background: #6b4de0;
}

/* ========== FOOTER ========== */
.footer {
    position: relative;
    padding: 100px 0 40px;
    margin-top: 100px;
}

.footer__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.footer__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.95));
}

.footer__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.footer__tagline {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-main);
    text-align: left;
}

.footer__socials {
    display: flex;
    gap: 30px;
}

.footer__socials a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.footer__bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.privacy-link {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.privacy-link:hover {
    color: var(--accent-purple);
}

/* ========== CONTENT PAGES ========== */
.content-page {
    padding-top: 200px;
    padding-bottom: 120px;
}

.content-header {
    margin-bottom: 80px;
    text-align: center;
}

.content-header h1 {
    font-size: clamp(40px, 6vw, 80px);
    margin-bottom: 20px;
}

.content-header .last-updated {
    color: var(--text-dim);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content-body {
    max-width: 900px;
    margin: 0 auto;
}

.content-body h2 {
    font-size: 28px;
    margin: 60px 0 30px;
    color: var(--text-main);
}

.content-body h3 {
    font-size: 22px;
    margin: 40px 0 20px;
    color: var(--text-main);
}

.content-body p {
    margin-bottom: 25px;
    color: var(--text-dim);
    line-height: 1.8;
}

.content-body ul {
    margin-bottom: 30px;
    padding-left: 20px;
    list-style: none;
}

.content-body ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: var(--text-dim);
    line-height: 1.6;
}

.content-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-purple);
    border-radius: 50%;
}

/* Cookie Table Styles */
.policy-table-wrapper {
    margin: 40px 0;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.contact__form {
    padding: 20px;
}

@media (max-width: 768px) {
    .contact__form { padding: 0; }
    .btn-submit { width: 100%; }
    .form-group input, .form-group textarea { width: 100%; }
}

.policy-table th {
    padding: 20px;
    background: rgba(124, 93, 250, 0.1);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.policy-table td {
    padding: 20px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    line-height: 1.5;
}

.policy-table tr:last-child td {
    border-bottom: none;
}

/* ========== ANIMATION CLASSES ========== */
.reveal-text {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}

/* ========== MODAL STYLES ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
}

.modal__content {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    width: 90%;
    max-width: 480px;
    padding: 70px 40px;
    border-radius: 40px;
    text-align: center;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 93, 250, 0.1);
}

.modal.active .modal__content {
    transform: scale(1) translateY(0);
}

.modal__icon-success {
    width: 100px;
    height: 100px;
    background: rgba(124, 93, 250, 0.1);
    border: 1px solid rgba(124, 93, 250, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
}

/* Custom Animated Checkmark */
.checkmark {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #7C5DFA;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #7C5DFA;
}

.modal.active .checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-miterlimit: 10;
    stroke: #7C5DFA;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.modal.active .checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

.modal__title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -1px;
}

.modal__message {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 50px;
}

.modal__close {
    background: var(--accent-purple);
    color: #fff;
    border: none;
    padding: 18px 50px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 15px 30px rgba(124, 93, 250, 0.2);
}

.modal__close:hover {
    background: #6D4AFF;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(124, 93, 250, 0.4);
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .grid-2 { gap: 60px; }
    .services__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .mission__details { flex-direction: column-reverse; }
    .services__grid { grid-template-columns: 1fr; }
    .mission__info { text-align: center; }
    .leadership__image { order: -1; }
    .leadership__content { text-align: center; }
    .philosophy__content { text-align: center; }
    .hero { height: auto; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 0; }
    .hero__labels { flex-direction: row; gap: 10px; font-size: 16px; justify-content: flex-start; }
    .mission__intro-box { width: 100%; padding: 40px 20px; margin-bottom: 60px; }
    .mission__intro-box p { font-size: 24px; line-height: 1.3; }
    .mindmap-container { padding: 20px; border-radius: 20px; }
    .contact__form { padding: 40px 24px; border-radius: 15px; }
}

@media (max-width: 768px) {
    .header__nav {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        padding: 100px 40px;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1500;
    }

    .header__nav.active {
        right: 0;
    }

    .header__nav ul {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }

    .header__nav a {
        font-size: 24px;
        font-family: var(--font-heading);
    }

    .header__toggle {
        display: flex;
    }

    .footer__content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer__tagline {
        font-size: 24px;
        line-height: 1.3;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-top: 30px;
    }
}

@media (max-width: 480px) {
    .modal__content {
        padding: 50px 24px;
        border-radius: 30px;
    }
    .modal__title { font-size: 28px; }
    .modal__message { font-size: 15px; margin-bottom: 30px; }
    .modal__icon-success { width: 80px; height: 80px; margin-bottom: 30px; }
}

