.card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.post-card {
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    background: #489abd66;
    transition: 0.3s;
    max-width: 600px;
}

.post-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.post-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.card-body {
    text-align: center;
    padding: 20px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.card-text {
    font-size: 1rem;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.btn-primary:hover {
    background-color: #0056b3;
}


/* Contact Form Section */
.contact-form {
    width: 70%;
    max-width: none;
    margin: 2rem auto;
}

@media (max-width: 767px) {
    .contact-form {
        width: 95%;
        max-width: none;
        margin: 2rem auto;
    }
}

/* Heading */
.contact-form h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    /* White to match gradient background */
    text-align: left;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Glassmorphism Card */
.contact-form .card {
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.15);
    /* translucent white */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Form Labels */
.form-label {
    font-weight: bold;
    color: #fff;
    text-align: left;
    display: block;
    margin-bottom: 6px;
}

.form-control {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(234, 230, 230, 0.062) !important;
    color: #fff !important;
    padding: 10px;
    font-size: 1rem;
}

textarea.form-control {
    resize: none;
    background: rgba(234, 230, 230, 0.062) !important;
    color: #fff !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

textarea.form-control {
    resize: none;
}

/* Button */
.btn-primary {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
}

/* Gradient Glass Cards */
.intro-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 35px 28px;
    color: #f1f1f1;
    backdrop-filter: blur(14px);
    overflow: hidden;
    z-index: 1;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 0 20px rgba(13, 207, 84, 0.6),
        0 0 40px rgba(0, 198, 255, 0.4);
}


/* Gradient border effect */
.intro-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0dcf54, #00c6ff, #ff6b6b, #b48e79);
    background-size: 400% 400%;
    animation: border-anim 8s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

@keyframes border-anim {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.intro-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Heading */
.intro-card h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #00f260, #0575e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Text */
.intro-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Lists */
.intro-card ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.intro-card ul li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.intro-card ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #0dcf54;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 900px) {
    .intro-section {
        grid-template-columns: 1fr;
    }
}

.exercises-section {
    padding: 50px 20px;
}

.exercises-card {
    background: linear-gradient(135deg, #c030309f, #0d3b66);
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 30px 70px rgba(216, 10, 10, 0.549);
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exercises-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.exercises-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 40px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}


/* Flip Card */
.flip-card {
    width: 340px !important;
    height: 200px;
    margin: 10px;
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 10px;
    color: white;
}

.flip-card-front {
    background: linear-gradient(135deg, #3498db, #6ab0f3);
}

.flip-card-back {
    background: linear-gradient(135deg, #e74c3c, #f78b83);
    transform: rotateY(180deg);
}

.quizzes-section {
    padding: 50px 20px;
}

@media (max-width: 768px) {

    .exercises-section,
    .quizzes-section {
        width: 98%;
    }
}

.quizzes-card {
    background: linear-gradient(135deg, #c9ff195c, #0d3b66);
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quizzes-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.quizzes-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

/* Sliding Card */
.slide-card-container {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 320px !important;
    height: 200px;
    position: relative;
    margin: 20px;
}

.slide-card {
    display: flex;
    width: 640px;
    transition: transform 0.6s ease-in-out;
    position: absolute;
    /* Ensures it starts from the left */
    left: 0;
    /* Aligns the slides perfectly */
}

.slide {
    width: 320px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: white;
    border-radius: 10px;
    transform: translateX(0%);
}

.slide-1 {
    background: linear-gradient(135deg, #2ecc71, #6bf39b);
}

.slide-2 {
    background: linear-gradient(135deg, #f39c12, #f7b84c);
}

.homepage-features {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.feature-icon i {
    font-size: 3rem;
    color: #007bff;
    transition: color 0.3s;
}

.feature-card:hover .feature-icon i {
    color: #0056b3;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
}

.feature-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.feature-card .btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.tips-section {
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.tips-section h2 {
    margin-bottom: 15px;
    color: #333;
}

.tip {
    padding: 12px 15px;
    margin: 10px 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
}

.tip .icon {
    font-size: 18px;
    line-height: 1.2;
}

/* Tip types */
.tip.warning {
    background-color: #fff4e5;
    border-left: 8px solid #ffb74d;
}

.tip.error {
    background-color: #ffe5e5;
    border-left: 8px solid #f44336;
}

.tip.quiz {
    background-color: #c0d0df;
    border-left: 8px solid #4caf50;
}

.tip.exercise {
    background-color: #c0d0df;
    border-left: 8px solid #2196f3;
}

.interactive-hero-section {
    padding: 100px 20px;
    display: flex;
    justify-content: center;
}

/* Hero Container */
.interactive-hero {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    max-width: 1100px;
    padding: 50px 35px;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    backdrop-filter: blur(14px);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Gradient border effect */
.interactive-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 3px;
    background: linear-gradient(135deg, #0dcf54, #00c6ff, #ff6b6b, #b48e79);
    background-size: 300% 300%;
    animation: heroBorder 10s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

@keyframes heroBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.interactive-hero:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Left column: logo */
.interactive-hero-logo {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interactive-hero-logo img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.685);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.interactive-hero-logo img:hover {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 0 35px rgba(255, 107, 107, 0.7);
}

/* Right column: text & buttons */
.interactive-hero-content {
    flex: 1;
    min-width: 280px;
}

.interactive-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00f260, #0575e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.interactive-hero-text {
    font-size: 1.2rem;
    color: #f1f1f1;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Interactive hero buttons */
.interactive-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: flex-start;
    position: relative;
}

.interactive-hero-buttons a {
    background: linear-gradient(135deg, #0d6efd, #6aa0ff);
    color: #fff;
    font-weight: 600;
    padding: 15px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.6);
    flex: 1 0 160px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Gradient variations */
.interactive-hero-buttons a.btn-success {
    background: linear-gradient(135deg, #198754, #5ac18e);
    box-shadow: 0 0 15px rgba(25, 135, 84, 0.6);
}

.interactive-hero-buttons a.btn-info {
    background: linear-gradient(135deg, #0dcaf0, #5ce0f2);
    box-shadow: 0 0 15px rgba(13, 202, 240, 0.6);
}

/* Hover effect */
.interactive-hero-buttons a:hover {
    transform: translateY(-10px) scale(1.12);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.8);
}

/* Slight arc effect */
.interactive-hero-buttons a:nth-child(1) {
    transform: rotate(-8deg);
}

.interactive-hero-buttons a:nth-child(2) {
    transform: rotate(2deg);
}

.interactive-hero-buttons a:nth-child(3) {
    transform: rotate(10deg);
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .interactive-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 95%;
    }

    .interactive-hero-logo {
        margin-bottom: 25px;
    }

    .interactive-hero-buttons {
        justify-content: center;
    }

    .interactive-hero-buttons a {
        transform: rotate(0deg) !important;
        width: 85%;
    }
}

/* HERO BASE */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    padding: 50px;
}

/* LAYOUT */
.hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
}

/* TEXT SIDE */
.hero-text {
    flex: 1;
    min-width: 320px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.typing {
    font-size: 1.5rem;
    color: #cde1ff;
    border-right: 3px solid #fff;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 4s steps(25, end) infinite alternate,
        blink 0.7s step-end infinite;
}

.typing-title {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #fff;
    /* Cursor */
    font-family: monospace;
    font-size: 3rem;
    text-align: center;

    animation: typing 5s steps(10, end) infinite alternate,
        blink-cursor 0.75s step-end infinite;
}

.typing-wrapper {
    display: flex;
    justify-content: center;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 300px
    }
}

@keyframes blink {
    50% {
        border-color: transparent
    }
}

@keyframes blink-cursor {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #fff;
    }
}

@keyframes typing-title {
    from {
        width: 0
    }

    to {
        width: 200px
    }
}

.hero-text p {
    margin: 20px 0;
    font-size: 1.1rem;
    max-width: 480px;
}

/* BUTTON */
.btn-cta {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    background: #ffd028;
    color: #222;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(255, 202, 40, 0.6);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: #ff795ee8;
    box-shadow: 0 0 30px rgba(255, 202, 40, 0.9);
}

/* CODE CARD SIDE */
.hero-graphic {
    flex: 1;
    min-width: 320px;
    display: flex;
    justify-content: center;
}

.code-card {
    background: #1c1c1c;
    border-radius: 12px;
    padding: 20px;
    width: 340px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.code-card header {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.code-card .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.red {
    background: #ff5f56;
}

.amber {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

pre {
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #cdd9e5;
}

.kw {
    color: #ffca28;
}

.c {
    color: #6cb6ff;
}

/* FLOATING ANIMATION */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.parent-background {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    flex-wrap: wrap;
}

.blobs {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(119, 226, 255, 0.326), transparent 70%);
    border-radius: 50%;
    animation: blobMove1 15s infinite ease-in-out;
}

/* Different blobs with different keyframes and delays */
.blob:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-name: blobMove1;
    animation-duration: 15s;
}

.blob:nth-child(2) {
    top: 30%;
    left: 70%;
    animation-name: blobMove2;
    animation-duration: 22s;
    animation-delay: 3s;
}

.blob:nth-child(3) {
    top: 60%;
    left: 20%;
    animation-name: blobMove3;
    animation-duration: 10s;
    animation-delay: 5s;
}

.blob:nth-child(4) {
    top: 80%;
    left: 50%;
    animation-name: blobMove4;
    animation-duration: 20s;
    animation-delay: 3s;
}

/* Keyframes for random movement */
@keyframes blobMove1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(100px, -50px) scale(1.2);
    }

    50% {
        transform: translate(-50px, 100px) scale(0.8);
    }

    75% {
        transform: translate(80px, 50px) scale(1.1);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes blobMove2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-120px, 40px) scale(1.7);
    }

    50% {
        transform: translate(60px, -90px) scale(0.9);
    }

    75% {
        transform: translate(-80px, 70px) scale(1.5);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes blobMove3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(90px, 60px) scale(0.9);
    }

    50% {
        transform: translate(-70px, -40px) scale(1.1);
    }

    75% {
        transform: translate(50px, 80px) scale(1);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes blobMove4 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-100px, -50px) scale(1.2);
    }

    50% {
        transform: translate(80px, 60px) scale(0.9);
    }

    75% {
        transform: translate(-50px, -70px) scale(1.1);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}