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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
}

/* Animated Background Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

/* Design & Development: Harshad Mahajan | 2025 */

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item a:hover {
    color: #4ecdc4;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    transition: width 0.3s ease;
}

.nav-item a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at 30% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(69, 183, 209, 0.05) 0%, transparent 50%);
    padding: 100px 2rem 2rem;
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
    max-width: 1200px;
}

.profile-section {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out;
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
    border: 4px solid transparent;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1) border-box;
    animation: profilePulse 3s ease-in-out infinite;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 300% 300%;
    animation: profileGlow 4s ease infinite;
    z-index: -1;
}

@keyframes profilePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes profileGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    animation: titleFloat 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
    animation: subtitleFloat 3s ease-in-out infinite 0.5s;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.5s both;
}

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

@keyframes titleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes subtitleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Portals */
.portals-container {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.portal {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portal::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 300% 300%;
    animation: portalGlow 4s ease infinite;
    z-index: -1;
}

.portal-projects::before { animation-delay: 0s; }
.portal-skills::before { animation-delay: 1.3s; }
.portal-about::before { animation-delay: 2.6s; }

@keyframes portalGlow {
    0%, 100% { 
        background-position: 0% 50%;
        transform: rotate(0deg) scale(1);
    }
    33% { 
        background-position: 100% 50%;
        transform: rotate(120deg) scale(1.1);
    }
    66% { 
        background-position: 0% 100%;
        transform: rotate(240deg) scale(1.05);
    }
}

.portal-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(20, 20, 40, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-inner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: innerPulse 2s ease-in-out infinite;
}

@keyframes innerPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

.portal:hover {
    transform: scale(1.15) rotateY(15deg);
}

.portal:hover .portal-inner {
    background: rgba(30, 30, 60, 1);
    box-shadow: inset 0 0 40px rgba(255,255,255,0.2), 0 0 50px rgba(255,255,255,0.3);
}

.portal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    z-index: 2;
    position: relative;
}

.portal-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    z-index: 2;
    position: relative;
}

.portal-projects .portal-icon { color: #ff6b6b; }
.portal-skills .portal-icon { color: #4ecdc4; }
.portal-about .portal-icon { color: #45b7d1; }

/* Additional Info Section */
.info-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: rgba(20, 20, 40, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.info-card h3 {
    color: #4ecdc4;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.9);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.link-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.social-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.link-name {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Warp Overlay */
.warp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 0%, rgba(10, 10, 10, 0.9) 100%);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.warp-overlay.active {
    opacity: 1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(10, 10, 10, 1) 80%);
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .header {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .portals-container {
        gap: 3rem;
    }
    
    .portal {
        width: 180px;
        height: 180px;
    }
    
    .portal-icon {
        font-size: 2.5rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.8rem 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item a {
        font-size: 0.9rem;
    }
    
    .hero-section {
        padding: 120px 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
        margin-bottom: 1.5rem;
    }
    
    .portals-container {
        gap: 2rem;
        margin-top: 1.5rem;
    }
    
    .portal {
        width: 140px;
        height: 140px;
    }
    
    .portal-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .portal-text {
        font-size: 1rem;
    }
    
    .info-section {
        padding: 3rem 1rem;
    }
    
    .info-section h2 {
        font-size: 2rem !important;
    }
    
    .info-section p {
        font-size: 1rem !important;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-card h3 {
        font-size: 1.2rem;
    }
    
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .social-link {
        min-width: 100px;
        padding: 10px 16px;
    }
    
    .link-name {
        font-size: 0.8rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.6rem 0.8rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        gap: 0.8rem;
    }
    
    .nav-item a {
        font-size: 0.8rem;
    }
    
    .hero-section {
        padding: 100px 0.8rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .portals-container {
        gap: 1.5rem;
        margin-top: 1rem;
    }
    
    .portal {
        width: 110px;
        height: 110px;
    }
    
    .portal-icon {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .portal-text {
        font-size: 0.8rem;
    }
    
    .info-section {
        padding: 2rem 0.8rem;
    }
    
    .info-section h2 {
        font-size: 1.6rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .info-section p {
        font-size: 0.9rem !important;
    }
    
    .info-card {
        padding: 1.2rem;
    }
    
    .info-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .info-card p {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 1.5rem 0.8rem 1rem;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        min-width: 80px;
        padding: 8px 12px;
    }
    
    .social-icon {
        width: 16px;
        height: 16px;
    }
    
    .link-name {
        font-size: 0.7rem;
    }
    
    .footer-text {
        font-size: 0.7rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .portal {
        width: 90px;
        height: 90px;
    }
    
    .portal-icon {
        font-size: 1.2rem;
    }
    
    .portal-text {
        font-size: 0.7rem;
    }
    
    .portals-container {
        gap: 1rem;
    }
    
    .info-section h2 {
        font-size: 1.4rem !important;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .social-link {
        width: 100px;
    }
}