* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #cbd5f5;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    padding: 15px 40px;
    color: white;
    z-index: 1000;
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
}

nav a:hover {
    color: #38bdf8;
}

.hero {
    height: clamp(250px, 35vh, 450px);
    background: url("it-background.jpg") center/cover no-repeat;
    background-attachment: fixed; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 100px;
    max-height: 1000px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    position: fixed;
    bottom: 4vh;
    left: 0;
    width: 100%;
    z-index: 50;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 60px);
}

.hero p {
    font-size: clamp(14px, 1.2vw, 18px);
}

.hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 50%;
    background: rgba(15, 23, 42, 0.7);
    top: 0;
    left: 0;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-logo {
    position: absolute;
    left: 4vh;
    top: 30%;
    transform: translateY(-50%);
    z-index: 2;
}

.hero-logo img {
    height: 40vh;
    max-height: 40vh;
}

.hero-content {
    position: relative;
    color: rgb(255, 255, 255);
    text-align: center;
    z-index: 2;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

.hero p {
    margin-bottom: 30px;
}

.btn {
    padding: 14px 30px;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

.content {
    background: linear-gradient(to bottom, white 80%, transparent);
    padding: 60px 20px;
    margin-top: -20px;
    padding-bottom: 80px;
    border-radius: 20px 20px 20px 20px;
    width: 90%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    position: relative;
}

@media (min-width: 1200px) {
    .content {
        grid-template-columns: 1fr 1fr;
    }
}

.content h2 {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 30px;
    font-size: clamp(20px, 2vw, 32px);
}

.content2 {
    background: linear-gradient(to bottom, white 80%, transparent);
    padding: 25px 20px;
    margin: 40px auto 100px auto;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 -10px 30px rgb(0, 0, 0);
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 18px;
    line-height: 1.7;
}

.content2 img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}

.hero2 {
    height: clamp(220px, 35vh, 420px);
    background: url("it-background.jpg") center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 200px;
    box-shadow: 0 5px 20px rgb(0, 0, 0);
    margin-top: 35px;
    width: 100%;
    z-index: 1;
}

.hero2::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.26);
    z-index: 1;
}

.hero-logo2 {
    position: absolute;
    left: 4vh;
    top: 55vh;
    transform: translateY(-50%);
    z-index: 2;
}

.hero-logo2 img {
    height: 40vh;
    max-height: 40vh;
}

.side-logo {
    position: fixed;
    left: 1%;
    top: 5%;
    z-index: 100;
}

.side-logo img {
    height: clamp(200px, 25vw, 400px);
}

.card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    background: #f1f5f9;
    padding: 15px;
    border-radius: 10px;
    transition: 0.4s;
}

.card-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.card::after {
    content: "";
    inset: 0;
    background: rgba(15, 23, 42, 0);
    transition: 0.4s;
    z-index: 1;
}

.card-short {
    display: block;
    position: relative;
    transition: 0.4s;
    z-index: 2;
}

.card:hover .card-short {
    opacity: 0;
    transform: translateY(-5px);
}

.card-full {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;

    transition: all 0.4s ease;
}

.card-full {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.card:hover::after {
    background: rgba(15, 23, 42, 0.6);
}

.card:hover {
    color: rgb(20, 20, 20);
    transform: translateY(-3px);
}

.card:hover .card-full {
    max-height: 300px;
    opacity: 1;
}

section {
    padding-top: 80px;
    background: linear-gradient(180deg, #e2e8f0, #cbd5f5);
}

.sub-hero {
    height: 30vh;
    background: url("it-background.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.sub-hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    top: 0;
    left: 0;
}

.sub-hero h1 {
    position: relative;
    z-index: 2;
    font-size: 40px;
}

footer {
    position: fixed;
    bottom: 0vh;
    width: 100%;
    text-align: center;
    padding: 20px;
    background: #0f172a;
    color: white;
    z-index: 100;
}

.footer-link {
    color: #38bdf8;
    text-decoration: none;
    margin-left: 10px;
}

.footer-link:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}