/* ==========================================================================
   Tsyklova_komisiia_A_ta_KIT.css
   Style definitions for "Automation and Computer-Integrated Technologies"
   Prefix used: akit- to prevent styling clashes.
   ========================================================================== */

/* Variables / Theme */
:root {
    --akit-bg: #070d19;
    --akit-bg-panel: #0d1726;
    --akit-card-bg: rgba(13, 23, 38, 0.7);
    --akit-cyan: #00e5ff;
    --akit-orange: #ff6d00;
    --akit-text: #f8fafc;
    --akit-text-muted: #94a3b8;
    --akit-border: rgba(0, 229, 255, 0.2);
    --akit-border-orange: rgba(255, 109, 0, 0.2);
    --akit-shadow-glow: 0 0 20px rgba(0, 229, 255, 0.25);
    --akit-shadow-glow-orange: 0 0 20px rgba(255, 109, 0, 0.25);
    --akit-font: 'Roboto', 'Inter', sans-serif;
}

/* Base resets & styles inside our namespace */
.akit-main-content {
    /* background-color: var(--akit-bg); */
    color: var(--akit-text);
    font-family: var(--akit-font);
    padding: 0;
    /* border-radius: 20px; */
    /* box-shadow: inset 0 0 40px rgba(0,0,0,0.8); */
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Background Grid Pattern */
.akit-main-content::before {
    display: none;
}

/* Interactive Header */
.akit-header {
    position: relative;
    background: radial-gradient(circle at center, #0d1e36 0%, #060b13 100%);
    border: 2px solid var(--akit-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    overflow: hidden;
    margin-bottom: 40px;
    z-index: 1;
    box-shadow: var(--akit-shadow-glow);
}

.akit-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 229, 255, 0.03) 0px,
        rgba(0, 229, 255, 0.03) 1px,
        transparent 1px,
        transparent 4px
    );
    pointer-events: none;
}

.akit-hud-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 1;
}

.akit-hud-element {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.7;
}

.akit-hud-left {
    top: 15%; left: 5%;
}

.akit-hud-right {
    bottom: 15%; right: 5%;
}

@media (max-width: 768px) {
    .akit-hud-element {
        width: 80px; height: 80px;
        opacity: 0.3;
    }
}

.akit-spin-slow {
    transform-origin: center;
    animation: akitHUDSpin 15s linear infinite;
}
.akit-spin-fast-reverse {
    transform-origin: center;
    animation: akitHUDSpinReverse 8s linear infinite;
}
.akit-pulse {
    animation: akitHUDPulse 2s ease-in-out infinite alternate;
}
.akit-radar-sweep {
    transform-origin: center;
    animation: akitHUDSpin 4s linear infinite;
}

@keyframes akitHUDSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes akitHUDSpinReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}
@keyframes akitHUDPulse {
    from { opacity: 0.3; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.1); }
}

.akit-dept-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--akit-cyan);
    color: var(--akit-cyan);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.akit-title-glitch {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 10px 0;
    letter-spacing: 1px;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.akit-title-glitch::before,
.akit-title-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.akit-title-glitch::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: akitGlitchAnim 5s infinite linear alternate-reverse;
}

.akit-title-glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--akit-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: akitGlitchAnim2 5s infinite linear alternate-reverse;
}

@keyframes akitGlitchAnim {
    0% { clip: rect(10px, 9999px, 86px, 0); }
    5% { clip: rect(61px, 9999px, 35px, 0); }
    10% { clip: rect(98px, 9999px, 20px, 0); }
    15% { clip: rect(31px, 9999px, 80px, 0); transform: translate(2px); }
    20% { clip: rect(46px, 9999px, 22px, 0); transform: translate(-2px); }
    25% { clip: rect(80px, 9999px, 41px, 0); transform: translate(0); }
    100% { clip: rect(80px, 9999px, 41px, 0); }
}

@keyframes akitGlitchAnim2 {
    0% { clip: rect(85px, 9999px, 19px, 0); }
    5% { clip: rect(14px, 9999px, 76px, 0); }
    10% { clip: rect(38px, 9999px, 92px, 0); }
    15% { clip: rect(65px, 9999px, 54px, 0); transform: translate(-2px); }
    20% { clip: rect(100px, 9999px, 34px, 0); transform: translate(2px); }
    25% { clip: rect(20px, 9999px, 63px, 0); transform: translate(0); }
    100% { clip: rect(20px, 9999px, 63px, 0); }
}

.akit-title-highlight {
    color: var(--akit-cyan);
    position: relative;
    display: inline-block;
}

.akit-title-sub {
    font-size: 1.25rem;
    color: var(--akit-orange);
    font-weight: 500;
    margin-top: 15px;
    text-shadow: 0 0 8px rgba(255, 109, 0, 0.4);
}

/* Sections Base */
.akit-section {
    position: relative;
    margin-bottom: 50px;
    z-index: 1;
    background-color: var(--akit-bg-panel);
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center center;
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}

.akit-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #fff;
    border-left: 5px solid var(--akit-cyan);
    padding-left: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.akit-section-title i {
    color: var(--akit-cyan);
}

@media (max-width: 767px) {
    .akit-section {
        padding: 25px 15px;
        margin: 20px 10px;
        border-radius: 10px;
    }
    .akit-header {
        padding: 40px 15px;
        margin-bottom: 25px;
        border-radius: 0 0 15px 15px;
    }
    .akit-header-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    .akit-header-subtitle {
        font-size: 1.1rem;
    }
    .akit-hex-grid {
        height: auto;
        min-height: 400px;
    }
}

.akit-intro-card {
    background: transparent;
    border: none;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
    transition: none;
}

.akit-intro-card:hover {
    border-color: transparent;
}

.akit-intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .akit-intro-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.akit-spec-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-left: 1px solid rgba(255,255,255,0.08);
    padding-left: 20px;
}

.akit-spec-item {
    display: flex;
    flex-direction: column;
}

.akit-spec-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--akit-text-muted);
    letter-spacing: 1px;
}

.akit-spec-val {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
}

/* Hexagonal Grid */
.akit-hex-section {
    text-align: center;
}

.akit-hex-grid {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 550px;
    margin: 40px auto;
}

.akit-hex-wrapper {
    position: absolute;
    width: 190px;
    height: 220px;
    background: rgba(0, 229, 255, 0.15);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translate(-50%, -50%);
    top: 50%; left: 50%;
    z-index: 8;
}

.akit-hex-wrapper:hover {
    background: linear-gradient(135deg, var(--akit-cyan), var(--akit-orange));
    transform: translate(-50%, -50%) scale(calc(var(--hex-scale, 1) * 1.06)) !important;
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.4));
    z-index: 15;
}

.akit-hex-inner {
    position: absolute;
    top: 2px; left: 2px; right: 2px; bottom: 2px;
    background: #09121f;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
    z-index: 2;
    transition: background 0.3s ease;
    overflow: hidden;
}

.akit-hex-wrapper:hover .akit-hex-inner {
    background: #0d1e34;
}

.akit-hex-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: transform 0.5s ease;
}

.akit-hex-wrapper:hover .akit-hex-bg {
    transform: scale(1.15);
}

.akit-hex-label {
    position: absolute;
    background: #0d1726; /* Solid dark background so lines behind don't show through */
    border: 1px solid var(--akit-orange);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: left 0.3s ease, top 0.3s ease;
    transform: translate(-50%, -50%);
}

.leader-line {
    z-index: 5;
}

.akit-hex-title {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    transition: color 0.3s ease;
}

.akit-hex-wrapper:hover .akit-hex-title {
    color: var(--akit-cyan);
}

.akit-hex-desc {
    font-size: 0.75rem;
    color: var(--akit-text-muted);
    margin-top: 5px;
    display: none; /* Can be shown on hover if needed */
}

/* Teachers Grid */
.akit-teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.akit-teacher-card {
    background: var(--akit-card-bg);
    border: 1px solid var(--akit-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.akit-teacher-card:hover {
    border-color: rgba(255, 109, 0, 0.4);
    transform: translateY(-8px);
    box-shadow: var(--akit-shadow-glow-orange);
}

.akit-teacher-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 125%; /* 4:5 ratio */
    background: #050b14;
    overflow: hidden;
    border-bottom: 2px solid var(--akit-border);
}

.akit-teacher-img-wrap img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.akit-teacher-card:hover .akit-teacher-img-wrap img {
    transform: scale(1.05);
}

.akit-teacher-card:hover .akit-teacher-img-wrap {
    border-bottom-color: var(--akit-orange);
}

.akit-teacher-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.akit-teacher-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.akit-teacher-role {
    font-size: 0.95rem;
    color: var(--akit-cyan);
    font-weight: 500;
    margin-bottom: 15px;
}

.akit-teacher-details {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--akit-text-muted);
}

.akit-teacher-details p {
    margin-bottom: 0;
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--akit-text-muted);
}

.akit-teacher-details strong {
    display: block;
    color: var(--akit-cyan);
    margin-bottom: 2px;
    font-size: 0.9rem;
    font-weight: 600;
}

.akit-teacher-topic {
    font-size: 0.8rem;
    background: rgba(255, 109, 0, 0.05);
    border-left: 3px solid var(--akit-orange);
    padding: 8px 12px;
    margin-top: 10px;
    border-radius: 0 8px 8px 0;
    line-height: 1.3;
}

.akit-teacher-topic strong {
    color: var(--akit-orange);
    display: block;
    margin-bottom: 3px;
}

/* Skills Grid */
.akit-skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .akit-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .akit-skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.akit-skill-card {
    background: rgba(18, 30, 49, 0.5);
    border: 1px solid var(--akit-border);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.akit-skill-card:hover {
    background: rgba(18, 30, 49, 0.8);
    border-color: var(--akit-cyan);
    transform: translateX(5px);
}

.akit-skill-card i {
    font-size: 1.6rem;
    color: var(--akit-cyan);
    background: rgba(0, 229, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.akit-skill-text h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 5px 0;
}

.akit-skill-text p {
    font-size: 0.85rem;
    color: var(--akit-text-muted);
    margin: 0;
}

/* Careers Section */
.akit-career-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .akit-career-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.akit-career-card {
    background: var(--akit-card-bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.akit-career-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--akit-orange);
    transition: width 0.3s ease;
}

.akit-career-card:hover {
    border-color: var(--akit-border-orange);
    transform: translateY(-5px);
    box-shadow: var(--akit-shadow-glow-orange);
}

.akit-career-card:hover::before {
    width: 8px;
}

.akit-career-icon {
    font-size: 2rem;
    color: var(--akit-orange);
    margin-bottom: 15px;
}

.akit-career-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 10px 0;
}

.akit-career-card p {
    font-size: 0.85rem;
    color: var(--akit-text-muted);
    margin: 0;
}

/* Documents / Admissions Section */
.akit-docs-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-top: 0;
}

.akit-docs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    align-items: center;
}

@media (min-width: 768px) {
    .akit-docs-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.akit-docs-info h3 {
    font-size: 1.4rem;
    color: #fff;
    margin: 0 0 10px 0;
}

.akit-docs-info p {
    font-size: 0.9rem;
    color: var(--akit-text-muted);
    margin: 0 0 20px 0;
}

.akit-docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.akit-docs-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.akit-docs-list li i {
    color: var(--akit-cyan);
}

.akit-docs-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.akit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.akit-btn-cyan {
    background: var(--akit-cyan);
    color: #070d19;
}

.akit-btn-cyan:hover {
    background: #00b8cc;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.akit-btn-outline {
    background: transparent;
    color: var(--akit-cyan);
    border: 1px solid var(--akit-cyan);
}

.akit-btn-outline:hover {
    background: rgba(0, 229, 255, 0.05);
    border-color: #00b8cc;
    transform: translateY(-2px);
}

/* Future / Contact Block */
.akit-future-block {
    background: radial-gradient(circle at top left, #12223a 0%, #060b13 100%);
    border: 1px solid var(--akit-border);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.akit-future-block h2 {
    font-size: 1.6rem;
    color: #fff;
    margin: 0 0 15px 0;
}

.akit-future-block p {
    font-size: 0.95rem;
    color: var(--akit-text-muted);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.akit-contacts-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.akit-contact-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.akit-contact-pill:hover {
    background: rgba(0, 229, 255, 0.05);
    border-color: var(--akit-cyan);
    color: var(--akit-cyan);
    transform: translateY(-2px);
}

.akit-contact-pill i {
    color: var(--akit-cyan);
}

.akit-contact-pill.akit-mail i {
    color: var(--akit-orange);
}

.akit-contact-pill.akit-mail:hover {
    border-color: var(--akit-orange);
    color: var(--akit-orange);
    background: rgba(255, 109, 0, 0.05);
}

/* General Layout helpers & Animations */
.akit-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.akit-fade-in.akit-visible {
    opacity: 1;
    transform: none; /* Changed from translateY(0) to remove stacking context */
}

.akit-universities-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.akit-uni-item {
    flex: 0 1 100%;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--akit-text-muted);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .akit-uni-item {
        flex: 0 1 calc(50% - 7.5px);
    }
}

@media (min-width: 1024px) {
    .akit-uni-item {
        flex: 0 1 calc(33.333% - 10px);
    }
}

.akit-uni-item:hover {
    background: rgba(0, 229, 255, 0.03);
    border-color: rgba(0, 229, 255, 0.2);
    color: #fff;
}

.akit-uni-item i {
    color: var(--akit-cyan);
    font-size: 1.2rem;
}

/* Hexagon Mobile Text Fallback Styles */
.akit-hex-title {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

/* Media Queries for Hexagon Labels */
@media (max-width: 900px) {
    .akit-hex-label {
        display: none !important;
    }
    .leader-line {
        display: none !important;
    }
    .akit-hex-bg {
        opacity: 0.5 !important;
    }
}

@media (min-width: 901px) {
    .akit-hex-title {
        display: none !important;
    }
}

/* Future Block Slogan Formatting */
.akit-text-cyan {
    color: var(--akit-cyan);
}
.akit-mobile-br {
    display: none;
}
.akit-dash {
    display: inline;
}

@media (max-width: 768px) {
    .akit-mobile-br {
        display: block;
    }
    .akit-dash {
        display: none;
    }
}
