/* Shared Main Stylesheet for patwardhans.net */

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

body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #000000;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    gap: 3rem;
}

.logo {
    font-family: 'Raleway', sans-serif;
    font-size: 2.7rem;
    font-weight: 300;
    color: #a0aec0;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-right: 2rem;
    flex-shrink: 0;
}

.logo:hover,
.logo:focus,
.logo:active,
.logo:visited {
    color: #cbd5e0;
    text-decoration: none !important;
    outline: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 400;
    font-size: 2.4rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links a::before {
    content: '#';
    color: #718096;
    margin-right: 0.2rem;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::before {
    color: #e2e8f0;
}

/* Parallax Sections */
.parallax-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

/* Hero Section - Reduced Height */
.parallax-section.hero {
    height: 70vh;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                    url('../images/img_6882a.png');
    margin-top: 80px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 2.4rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.8;
}

.hero-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.hero-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.hero-icon:hover {
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
    color: white;
    text-decoration: none;
}

.hero-icon:link,
.hero-icon:visited,
.hero-icon:focus,
.hero-icon:active {
    color: white;
    text-decoration: none;
}

.hero-icon-image {
    width: 96px;
    height: 96px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.hero-icon:hover .hero-icon-image {
    transform: scale(1.1);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255,255,255,0.8));
}

.hero-icon-label {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Content Sections */
.content-section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 5.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #000;
    font-weight: 300;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 2.4rem;
    margin-bottom: 4rem;
    font-weight: 300;
}

/* Research Areas Grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.research-item {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.research-item:hover {
    transform: translateY(-5px);
}

.research-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    font-size: 2.5rem;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
}

.research-icon img {
    width: 96px;
    height: 96px;
    transition: opacity 0.3s ease;
}

.research-icon .icon-default {
    opacity: 1;
}

.research-icon .icon-hover {
    position: absolute;
    opacity: 0;
}

.research-item:hover .research-icon {
    background: #000;
    color: white;
    transform: scale(1.1);
}

.research-item:hover .research-icon .icon-default {
    opacity: 0;
}

.research-item:hover .research-icon .icon-hover {
    opacity: 1;
}

.research-item h3 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #000;
    font-weight: 400;
}

.research-item p {
    color: #666;
    line-height: 1.7;
    font-weight: 300;
    font-size: 1.9rem;
}

/* Stats Section */
.stats-section {
    background: #f8f9fa;
    text-align: center;
}

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

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 300;
    color: #000;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 1.5rem;
    color: #666;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Live Feed Section */
.live-feed {
    background: white;
}

.social-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    min-height: 300px;
}

.social-card {
    background: #fff;
    border: 1px solid #e9ecef;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    width: 320px;
    min-height: 200px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.linkedin-card {
    margin-top: 0;
}

.instagram-card {
    margin-top: 80px; /* Offset by about 1/3 of card height */
}

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


.social-card h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: 400;
}

.social-card p {
    color: #666;
    font-weight: 300;
    font-size: 1.6rem;
    margin-bottom: 0;
}

/* Social Feed Content Styles */
.social-content {
    margin-top: 1rem;
}

.social-post {
    text-align: left;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
}

.post-content {
    font-size: 1.3rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

.post-date {
    font-size: 1.1rem;
    color: #999;
    font-style: italic;
}

.post-link {
    font-size: 1.1rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.post-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Quick Links Grid */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.quick-link {
    background: white;
    border: 1px solid #e9ecef;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
}

.quick-link:hover::before {
    left: 0;
}

.quick-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    color: #333;
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.quick-link:hover .quick-link-icon {
    opacity: 1;
    transform: scale(1.1);
}

.quick-link h3 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    color: #000;
    font-weight: 400;
}

.quick-link p {
    color: #666;
    font-weight: 300;
    line-height: 1.6;
    font-size: 1.8rem;
}

/* Footer */
footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

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

.social-links a {
    display: block;
    width: 40px;
    height: 40px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.social-links img {
    width: 100%;
    height: 100%;
    filter: invert(1);
}

.footer-text {
    color: #ccc;
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1.6;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Parallax Windows */
.parallax-window {
    position: relative;
    background: transparent;
}

/* Page-specific styles for sub-pages */
.page-header {
    background: #000000;
    color: white;
    padding: 6rem 0 3rem;
    margin-top: 80px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 300;
    letter-spacing: -1px;
}

.page-header p {
    font-size: 2.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.nav-back {
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 999;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-back a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 300;
}

.nav-back a:hover {
    color: #fff;
}

.section {
    background: white;
    margin-bottom: 2rem;
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #000;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: -1px;
}

/* Smooth animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .page-header h1 {
        font-size: 2.8rem;
    }

    .page-header p {
        font-size: 1.6rem;
    }

    .parallax-section {
        background-attachment: scroll;
        height: 70vh;
    }

    .research-grid,
    .stats-grid,
    .social-grid,
    .quick-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-section {
        padding: 4rem 0;
    }

    .social-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .social-card {
        width: 300px;
        margin-top: 0 !important;
    }

    .linkedin-card,
    .instagram-card {
        margin-top: 0 !important;
    }
}