body {
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1500&q=80') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 3rem;
}

.frosted-glass {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 2rem;
    margin-top: 3rem;
}

.navbar.frosted-glass-dark {
    background: rgba(30, 30, 40, 0.55) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 1.5rem;
}

.nav-animated {
    position: relative;
    color: #fff !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.5rem !important;
    border-radius: 30px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
    overflow: hidden;
    z-index: 1;
}

.nav-animated:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 120%;
    height: 120%;
    background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
    opacity: 0;
    border-radius: 30px;
    z-index: -1;
    transition: opacity 0.3s, transform 0.3s;
}

.nav-animated:hover, .nav-animated:focus {
    color: #fff !important;
    background: rgba(0, 114, 255, 0.15);
    box-shadow: 0 4px 20px 0 rgba(0, 114, 255, 0.15);
    transform: translateY(-2px) scale(1.05);
}

.nav-animated:hover:before, .nav-animated:focus:before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.frosted-card {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.18);
    transition: transform 0.25s, box-shadow 0.25s, z-index 0.25s;
    cursor: pointer;
    overflow: hidden;
    min-height: 220px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.frosted-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 16px 48px 0 rgba(31,38,135,0.25);
    z-index: 2;
}
.frosted-card.expanded {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 440px;
    z-index: 10;
    transform: scale(1.01) !important;
}
.card-extra {
    display: none;
    margin-top: 1rem;
}
.frosted-card.expanded .card-extra {
    display: block;
}
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .frosted-card.expanded {
        grid-column: span 1;
        grid-row: span 2;
    }
}

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

.pdf-container iframe {
    width: 100%;
    max-width: 100%;
    height: 1200px;
    min-height: 400px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    background: #fff;
}

@media (max-width: 900px) {
    .pdf-container iframe {
        height: 60vh;
        min-height: 200px;
        max-height: 80vh;
    }
}
@media (max-width: 600px) {
    .pdf-container iframe {
        height: 300px;
        min-height: 150px;
        max-height: 60vh;
    }
}

@media (max-width: 600px) {
    .frosted-glass {
        padding: 1rem;
        margin-top: 1rem;
    }
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .pdf-container iframe {
        min-height: 200px;
        height: 40vh;
        max-height: 60vh;
    }
    h1 {
        font-size: 1.5rem;
    }
    p {
        font-size: 1rem;
    }
}
