/* Main Portfolio Container */
.portfolio-main {
    min-height: 100vh;
    background: linear-gradient(180deg, #63c4ea 0%, #4384ba 50%, #1c398a 100%);
    position: relative;
    overflow-x: hidden;
    padding: 120px 0 60px 0;
}

.page-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: relative;
}

/* Arctic Scene Container */
.arctic-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
}

/* Ice Blocks Container */
.ice-blocks-container {
    position: absolute;
    bottom: 35%;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 10;
}

/* Ice Block Styling */
.ice-block {
    position: absolute;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    transform-origin: bottom center;
}

.ice-block:hover {
    transform: scale(1.05);
}

/* Ice Surface */
.ice-surface {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(240, 248, 255, 0.8) 25%,
        rgba(230, 245, 255, 0.7) 50%,
        rgba(179, 218, 255, 0.6) 75%,
        rgba(135, 206, 235, 0.5) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.ice-block-large .ice-surface {
    width: 280px;
    height: 320px;
}

/* Ice Reflection Effect */
.ice-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 70%, 
        transparent 100%);
    pointer-events: none;
}

/* Ice Content */
.ice-content {
    position: relative;
    z-index: 3;
    padding: 30px 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.ice-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e3a8a;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    text-align: center;
}

.ice-content p {
    font-size: 0.9rem;
    color: #4682B4;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Ice Links */
.ice-links {
    display: flex;
    gap: 15px;
    flex-direction: column;
    width: 100%;
}

.ice-link {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.pitch-link {
    background: linear-gradient(135deg, #87CEEB, #4682B4);
    color: white;
    box-shadow: 0 4px 15px rgba(70, 130, 180, 0.3);
}

.pitch-link:hover {
    background: linear-gradient(135deg, #4682B4, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 130, 180, 0.4);
}

.github-link {
    background: rgba(255, 255, 255, 0.9);
    color: #1e3a8a;
    border: 2px solid rgba(135, 206, 235, 0.5);
}

.github-link:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #87CEEB;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
}

/* Ice Crystals Overlay */
.ice-crystals-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.6) 2px, transparent 3px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.4) 1px, transparent 2px),
        radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.5) 1.5px, transparent 2.5px),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.3) 1px, transparent 2px),
        radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.4) 1px, transparent 2px);
    pointer-events: none;
    opacity: 0.8;
    animation: crystalSparkle 4s ease-in-out infinite;
}

@keyframes crystalSparkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Ice Particles */
.ice-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: particleFloat 15s ease-in-out infinite;
}

.particle-1 {
    width: 8px;
    height: 8px;
    top: 25%;
    left: 15%;
    animation-delay: 0s;
}

.particle-2 {
    width: 12px;
    height: 12px;
    top: 40%;
    right: 20%;
    animation-delay: 5s;
}

.particle-3 {
    width: 10px;
    height: 10px;
    top: 60%;
    left: 40%;
    animation-delay: 10s;
}

.particle-4 {
    width: 6px;
    height: 6px;
    top: 75%;
    right: 35%;
    animation-delay: 3s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) scale(1.3);
        opacity: 1;
    }
}

/* Hover effects for ice blocks */
.ice-block:hover .ice-surface {
    background: linear-gradient(135deg,
        rgba(255,255,255,0.95) 0%,
        rgba(240,248,255,0.85) 25%,
        rgba(230,245,255,0.75) 50%,
        rgba(179,218,255,0.65) 75%,
        rgba(135,206,235,0.55) 100%);
    box-shadow:
        0 20px 45px rgba(0,0,0,0.25),
        inset 0 2px 15px rgba(255,255,255,0.4);
}

.ice-block:hover .ice-content {
    transform: scale(1.02);
}

/* Floating ice animation */
@keyframes floatIce {
    0% {
        left: -60px;
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(10deg);
    }
    50% {
        transform: translateY(0) rotate(5deg);
    }
    75% {
        transform: translateY(-5px) rotate(-5deg);
    }
    100% {
        left: calc(100% + 60px);
        transform: translateY(0) rotate(0deg);
    }
}

/* Ice shimmer effect */
@keyframes iceShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .ice-blocks-container {
        bottom: 30%;
    }

    .ice-block-large .ice-surface {
        width: 240px;
        height: 280px;
    }

    .ice-content {
        padding: 20px 15px;
    }

    .ice-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .ice-content p {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .ice-links {
        gap: 10px;
    }

    .ice-link {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}