* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0c10;
    color: #eef2ff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #14181f; }
::-webkit-scrollbar-thumb { background: #2c3e66; border-radius: 10px; }

.glass {
    background: rgba(18, 22, 35, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 2rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.8rem;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #1e3a8a, #0f172a);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 5s ease infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-12px); }
}
.float-soft {
    animation: float 3s ease-in-out infinite alternate;
}

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.9s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.card-3d {
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.card-3d:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.5);
    border-color: rgba(59,130,246,0.6);
}

.animated-border {
    position: relative;
    background: rgba(10, 14, 23, 0.7);
    border-radius: 2rem;
}
.animated-border::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    padding: 2px;
    background: linear-gradient(135deg, #3b82f6, #a855f7, #3b82f6);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.animated-border:hover::before {
    opacity: 1;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3b82f6;
    box-shadow: 0 0 20px rgba(59,130,246,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 1rem;
}
.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(59,130,246,0.7);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}
.gallery-item {
    overflow: hidden;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    aspect-ratio: 1 / 1;
    background: #11161f;
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s;
}
.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1.02);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1rem 0.8rem 0.6rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    transform: translateY(0);
    transition: transform 0.3s;
}
.gallery-item:hover .gallery-caption {
    transform: translateY(-5px);
}

.meter-bar {
    background: #1e293b;
    border-radius: 40px;
    height: 28px;
    overflow: hidden;
}
.meter-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #a855f7, #3b82f6);
    border-radius: 40px;
    transition: width 1.8s cubic-bezier(0.22, 0.97, 0.36, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.typed-text {
    border-right: 2px solid #3b82f6;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: blinkCursor 0.75s step-end infinite;
}
@keyframes blinkCursor {
    0%, 100% { border-color: #3b82f6; }
    50% { border-color: transparent; }
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 10, 18, 0.85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(59,130,246,0.2);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 24px;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #eef2ff;
    background: rgba(255,255,255,0.05);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    transition: all 0.2s;
    font-weight: 500;
}
.instagram-link:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.instagram-link i {
    color: #e4405f;
    font-size: 1.2rem;
}

@media (max-width: 680px) {
    .container {
        padding: 0 1.2rem;
    }
    .typed-text {
        white-space: normal;
        border-right: none;
    }
    .profile-photo {
        width: 90px;
        height: 90px;
    }
}