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

:root {
    --color-black: #111111;
    --color-white: #f5f5f5;
    --color-dark: #1a1a1a;
    --color-gray: #333333;
    --color-light-gray: #cccccc;
    --color-mid-gray: #888888;
    --color-accent: #e67021;
    --color-accent-dark: #000000;
    --font-main: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: #0d0d0d;
    color: var(--color-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ===== HEADER ===== */
.site-header {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background-color: var(--color-dark);
    border-bottom: 2px solid var(--color-gray);
    position: relative;
}

.tutorial-link {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-accent);
    color: var(--color-black);
    font-weight: 800;
    font-size: 18px;
    padding: 6px 20px;
    text-decoration: none;
    border: 2px solid var(--color-accent-dark);
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(212, 160, 23, 0.3);
    animation: attentionShake 4s infinite;
    transition: background-color 0.2s, color 0.2s;
    z-index: 10;
}

.tutorial-link:hover {
    background-color: var(--color-accent-dark);
    color: var(--color-white);
    animation: none;
}

@keyframes attentionShake {

    0%,
    100% {
        transform: translate(-50%, -50%);
    }

    2% {
        transform: translate(calc(-50% - 3px), calc(-50% + 1px)) rotate(-2deg);
    }

    4% {
        transform: translate(calc(-50% + 3px), calc(-50% - 1px)) rotate(2deg);
    }

    6% {
        transform: translate(calc(-50% - 3px), calc(-50% + 1px)) rotate(-2deg);
    }

    8% {
        transform: translate(calc(-50% + 3px), calc(-50% - 1px)) rotate(2deg);
    }

    10% {
        transform: translate(-50%, -50%);
    }
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 150px;
    width: auto;
    transition: transform 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.header-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--color-mid-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 12px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.page-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    margin: 16px auto 0;
}

.page-subtitle {
    font-size: 18px;
    color: var(--color-mid-gray);
    margin-bottom: 60px;
    text-align: center;
}

/* ===== TUTORIAL BUTTONS ===== */
.buttons-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
    width: 100%;
}

.action-card {
    display: flex;
    flex-direction: column;
    width: 340px;
    background-color: var(--color-dark);
    text-decoration: none;
    border: 3px solid var(--color-gray);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.action-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 160, 23, 0.2);
}

/* Specific Card Styling */
.youtube-card {
    border-color: rgba(255, 0, 0, 0.3);
}

.youtube-card:hover {
    border-color: #ff0000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 0, 0, 0.3);
}

.swm-card {
    border-color: rgba(98, 0, 255, 0.3);
}

.swm-card:hover {
    border-color: #6200ff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(98, 0, 255, 0.3);
}

.pdf-card {
    border-color: rgba(66, 133, 244, 0.3);
}

.pdf-card:hover {
    border-color: #4285F4;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(66, 133, 244, 0.3);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    border-bottom: 2px solid var(--color-gray);
}

.youtube-card .card-img-wrapper {
    border-bottom-color: rgba(255, 0, 0, 0.3);
}

.youtube-card:hover .card-img-wrapper {
    border-bottom-color: #ff0000;
}

.card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.action-card:hover .card-thumbnail {
    transform: scale(1.1);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.youtube-card:hover .play-icon {
    background-color: #ff0000;
    border-color: #ff0000;
    transform: translate(-50%, -50%) scale(1.15);
}

.play-icon svg {
    width: 30px;
    height: 30px;
    margin-left: 6px;
}

.card-icon-wrapper {
    width: 100%;
    height: 190px;
    background-color: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--color-gray);
    color: var(--color-white);
}

.pdf-card .card-icon-wrapper {
    border-bottom-color: rgba(66, 133, 244, 0.3);
}

.pdf-card:hover .card-icon-wrapper {
    border-bottom-color: #4285F4;
}

.card-icon-wrapper svg {
    width: 80px;
    height: 80px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.pdf-card:hover .card-icon-wrapper svg {
    color: #4285F4;
    opacity: 1;
    transform: scale(1.15);
}

.card-content {
    padding: 24px;
    text-align: center;
    background-color: var(--color-dark);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.youtube-card:hover .card-title {
    color: #ff0000;
}

.pdf-card:hover .card-title {
    color: #4285F4;
}

.card-desc {
    font-size: 15px;
    color: var(--color-mid-gray);
    line-height: 1.5;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--color-dark);
    border-top: 2px solid var(--color-gray);
    padding: 20px 32px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-rights,
.footer-sponsor {
    font-size: 14px;
    color: var(--color-mid-gray);
}

.footer-sponsor {
    display: flex;
    align-items: center;
    gap: 8px;
}

.swm-footer-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--color-accent);
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.swm-footer-link:hover {
    opacity: 0.8;
}

.swm-footer-logo {
    height: 32px;
    width: auto;
}

.footer-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.footer-link:hover {
    border-bottom-color: var(--color-accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .site-header {
        padding: 10px 16px;
    }

    .tutorial-link {
        font-size: 14px;
        padding: 4px 12px;
    }

    .logo-img {
        height: 130px;
    }

    .header-nav {
        gap: 12px;
    }

    .nav-link {
        font-size: 13px;
        padding: 4px 8px;
    }

    .page-title {
        font-size: 32px;
    }

    .action-card {
        width: 100%;
        max-width: 360px;
    }
}

@media (max-width: 480px) {
    .header-nav {
        display: none;
    }

    .logo-img {
        height: 110px;
    }
     .tutorial-link {
        left: 50px;
    }

    .page-title {
        font-size: 28px;
    }
}