* {
    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 - Mobile First */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.2rem;
    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;
    text-align: center;
}

@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;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
}

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

.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: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    transition: width 0.3s ease;
}

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

/* Main Content - Mobile First */
.main-content {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* Hero Section - Mobile Optimized */
.contact-hero {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    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%);
}

.hero-title {
    font-size: 2.2rem;
    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;
    line-height: 1.2;
}

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

.hero-description {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.5s both;
    padding: 0 0.5rem;
}

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

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

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

/* Contact Methods Section - Mobile First */
.contact-methods {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.methods-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: rgba(20, 20, 40, 0.8);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    border-radius: 15px;
    opacity: 0;
    z-index: -1;
    animation: borderGlow 4s ease infinite;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before,
.contact-card:active::before {
    opacity: 1;
}

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

.contact-card::after {
    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;
}

.contact-card:hover::after,
.contact-card:active::after {
    left: 100%;
}

.contact-card:hover,
.contact-card:active {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

.contact-card:nth-child(1) .contact-icon {
    color: #ff6b6b;
    animation-delay: 0s;
}

.contact-card:nth-child(2) .contact-icon {
    color: #4ecdc4;
    animation-delay: 0.5s;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(1deg); }
    75% { transform: translateY(3px) rotate(-1deg); }
}

.contact-title {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 0.8rem;
    font-weight: bold;
}

.contact-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.2), rgba(78, 205, 196, 0.2));
    border: 2px solid transparent;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    justify-content: center;
}

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

.contact-link:hover::before,
.contact-link:active::before {
    opacity: 1;
}

.contact-link span {
    position: relative;
    z-index: 2;
}

.contact-link:hover,
.contact-link:active {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

/* Social Media Section - Mobile Optimized */
.social-section {
    padding: 2rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    color: #4ecdc4;
    margin-bottom: 0.8rem;
    animation: fadeInUp 1s ease-out;
    line-height: 1.2;
}

.section-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    line-height: 1.5;
    padding: 0 0.5rem;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-card {
    background: rgba(20, 20, 40, 0.6);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.social-card:hover::before,
.social-card:active::before {
    transform: translateX(100%);
}

.social-card:hover,
.social-card:active {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.social-link {
    display: block;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover,
.social-link:active {
    transform: scale(1.02);
}

.social-icon-large {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.social-card:nth-child(1) .social-icon-large { color: #0077b5; }
.social-card:nth-child(2) .social-icon-large { color: #333; }
.social-card:nth-child(3) .social-icon-large { color: #1da1f2; }

.social-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.social-handle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Floating Elements - Reduced for mobile */
.floating-element {
    position: absolute;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
    opacity: 0.3;
}

.floating-element:nth-child(1) {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 50%;
    right: 8%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 25%;
    left: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(3deg); }
    66% { transform: translateY(8px) rotate(-2deg); }
}

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

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 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);
    width: 140px;
}

.social-link-footer::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-footer:hover::before,
.social-link-footer:active::before {
    opacity: 1;
}

.social-link-footer:hover,
.social-link-footer:active {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

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

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

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

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0 0.5rem;
}

/* Tablet Styles */
@media (min-width: 481px) and (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-item a {
        font-size: 0.9rem;
    }
    
    .main-content {
        padding-top: 100px;
    }
    
    .contact-hero {
        padding: 3rem 2rem 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        max-width: 600px;
    }
    
    .methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }
    
    .contact-card {
        padding: 2.5rem 2rem;
    }
    
    .contact-icon {
        font-size: 3.5rem;
    }
    
    .contact-title {
        font-size: 1.6rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
    
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .header {
        padding: 1rem 2rem;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 2rem;
    }
    
    .nav-item a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .main-content {
        padding-top: 100px;
    }
    
    .contact-hero {
        padding: 4rem 2rem 2rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
        max-width: 800px;
    }
    
    .contact-methods {
        padding: 4rem 2rem;
    }
    
    .methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 3rem;
    }
    
    .contact-card {
        padding: 3rem 2rem;
    }
    
    .contact-card:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    }
    
    .contact-icon {
        font-size: 4rem;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-description {
        font-size: 1.1rem;
    }
    
    .social-section {
        padding: 4rem 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-description {
        font-size: 1.1rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
    
    .social-card {
        padding: 2rem 1.5rem;
    }
    
    .social-card:hover {
        transform: translateY(-10px);
    }
    
    .social-icon-large {
        font-size: 3rem;
    }
    
    .social-name {
        font-size: 1.2rem;
    }
    
    .footer {
        padding: 3rem 2rem 1rem;
    }
    
    .social-links {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    
    .social-link-footer {
        width: 120px;
        padding: 12px 20px;
    }
    
    .social-link-footer:hover {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    }
    
    .floating-element {
        opacity: 1;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0px) rotate(0deg); }
        33% { transform: translateY(-20px) rotate(5deg); }
        66% { transform: translateY(10px) rotate(-3deg); }
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}