* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c02745;
    --gradient-start: #c02745;
    --gradient-end: #e94d6a;
    --text-color: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #c02745 0%, #e94d6a 100%);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100%;
    z-index: -1;
    transition: opacity 3s ease-in-out;
}

body::before {
    background: linear-gradient(135deg, #e68a00 0%, #ffb84d 100%);
    animation: fadeInOut1 20s ease-in-out infinite;
}

body::after {
    background: linear-gradient(135deg, #055a8c 0%, #0888d4 100%);
    animation: fadeInOut2 20s ease-in-out infinite;
}

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    padding-top: 1.33rem;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* Typography */
.name {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    margin-top: 0;
    text-transform: uppercase;
    color: #ffffff;
    animation: fadeInUp 1s ease-out;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-bottom: 3rem;
    text-transform: uppercase;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.photo-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 10px 40px var(--shadow);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    clip-path: polygon(
        2% 0%, 5% 2%, 8% 1%, 12% 3%, 15% 1%, 18% 2%, 22% 0%, 25% 1%, 
        30% 0%, 35% 2%, 40% 0%, 45% 1%, 50% 0%, 55% 2%, 60% 1%, 65% 0%, 
        70% 2%, 75% 0%, 80% 1%, 85% 0%, 90% 2%, 93% 1%, 96% 2%, 98% 0%,
        100% 3%, 99% 8%, 100% 12%, 98% 15%, 100% 20%, 99% 25%, 100% 30%,
        98% 35%, 100% 40%, 99% 45%, 100% 50%, 98% 55%, 100% 60%, 99% 65%,
        100% 70%, 98% 75%, 100% 80%, 99% 85%, 100% 90%, 98% 93%, 100% 96%,
        99% 98%, 98% 100%, 95% 99%, 90% 100%, 85% 98%, 80% 100%, 75% 99%,
        70% 100%, 65% 98%, 60% 100%, 55% 99%, 50% 100%, 45% 98%, 40% 100%,
        35% 99%, 30% 100%, 25% 98%, 20% 100%, 15% 99%, 10% 100%, 5% 98%,
        2% 100%, 0% 97%, 1% 92%, 0% 87%, 2% 82%, 0% 77%, 1% 72%, 0% 67%,
        2% 62%, 0% 57%, 1% 52%, 0% 47%, 2% 42%, 0% 37%, 1% 32%, 0% 27%,
        2% 22%, 0% 17%, 1% 12%, 0% 7%, 2% 3%
    );
}

.photo-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px var(--shadow);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

/* Animation delays for photos */
.photo-1 {
    animation: scaleIn 0.6s ease-out 0.6s backwards;
}

.photo-2 {
    animation: scaleIn 0.6s ease-out 0.8s backwards;
}

.photo-3 {
    animation: scaleIn 0.6s ease-out 1s backwards;
}

/* Bio */
.bio {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* Links Sections */
.links-container {
    display: flex;
    gap: 8rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.links-section {
    margin-bottom: 0;
    animation: fadeInUp 1s ease-out 0.8s backwards;
    flex: 0 1 auto;
}

.links-section h3 {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    opacity: 0.85;
}

.icon-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.icon-link {
    color: var(--text-color);
    font-size: 2rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.icon-link:hover {
    opacity: 1;
    transform: translateY(-8px) scale(1.2);
    filter: drop-shadow(0 8px 16px var(--shadow));
}

.icon-link svg {
    width: 32px;
    height: 32px;
}

/* Background Shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -200px;
    animation: float 20s infinite ease-in-out;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -150px;
    animation: float 25s infinite ease-in-out reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation: float 30s infinite ease-in-out;
}

.shape-4 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: 5%;
    animation: float 22s infinite ease-in-out reverse;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, 30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 50px) rotate(180deg);
    }
    75% {
        transform: translate(-40px, -20px) rotate(270deg);
    }
}

@keyframes backgroundCycle {
    0% {
        background: linear-gradient(135deg, #c02745 0%, #e94d6a 100%);
    }
    33.33% {
        background: linear-gradient(135deg, #e68a00 0%, #ffb84d 100%);
    }
    66.66% {
        background: linear-gradient(135deg, #055a8c 0%, #0888d4 100%);
    }
    100% {
        background: linear-gradient(135deg, #c02745 0%, #e94d6a 100%);
    }
}

@keyframes fadeInOut1 {
    0% { opacity: 0; }
    5.55% { opacity: 0; }
    33.33% { opacity: 1; }
    38.88% { opacity: 1; }
    66.66% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes fadeInOut2 {
    0% { opacity: 0; }
    38.88% { opacity: 0; }
    66.66% { opacity: 1; }
    72.22% { opacity: 1; }
    100% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 3rem 1.5rem;
    }

    .bg-shapes {
        display: none;
    }

    .links-container {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        gap: 1.5rem;
    }

    .icon-links {
        gap: 1.5rem;
    }

    .icon-link {
        font-size: 2rem;
    }

    .links-section {
        margin-bottom: 2rem;
    }

    .subtitle {
        font-size: clamp(0.9rem, 2vw, 0.9rem);
        letter-spacing: 0.15em;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .photo-grid {
        max-width: 700px;
        gap: 1.5rem;
    }
}

@media (min-width: 1025px) {
    .hero-content {
        display: grid;
        grid-template-rows: auto auto auto auto auto auto;
        align-content: center;
    }

    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
