/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #6b7280;
    --accent-color: #3b82f6;
    --background-color: #fafafa;
    --card-background: #ffffff;
    --border-color: #e5e7eb;
    --hover-color: #f9fafb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --max-width: 1200px;
    --section-padding: 80px 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    font-weight: 400;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%);
    position: relative;
}

.hero-content {
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.family-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--secondary-color);
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--accent-color);
}

.scroll-indicator .arrow {
    font-size: 1.2rem;
}

/* Family Section */
.family-section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

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

/* Family Cards */
.family-card {
    background: var(--card-background);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.family-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.placeholder-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

/* Unique colors for each family member */
.family-card[data-member="rishi"] .placeholder-image {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.family-card[data-member="arjun"] .placeholder-image {
    background: linear-gradient(135deg, #10b981, #059669);
}

.family-card:hover .placeholder-image {
    transform: scale(1.05);
}

.placeholder-image .initial {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.member-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.member-description {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    background: transparent;
}

/* Unique portfolio link colors for each member */
.family-card[data-member="rishi"] .portfolio-link {
    color: #3b82f6;
    border-color: #3b82f6;
}

.family-card[data-member="rishi"] .portfolio-link:hover {
    background: #3b82f6;
    color: white;
}

.family-card[data-member="arjun"] .portfolio-link {
    color: #10b981;
    border-color: #10b981;
}

.family-card[data-member="arjun"] .portfolio-link:hover {
    background: #10b981;
    color: white;
}

.portfolio-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(2px);
}

.portfolio-link .arrow {
    transition: transform 0.3s ease;
}

.portfolio-link:hover .arrow {
    transform: translateX(4px);
}

/* Add Member Card */
.add-member {
    border: 2px dashed var(--border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 280px;
    transition: all 0.3s ease;
}

.add-member:hover {
    border-color: var(--accent-color);
    background: rgba(59, 130, 246, 0.05);
    transform: none;
    box-shadow: none;
}

.add-content {
    color: var(--secondary-color);
}

.add-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--border-color);
    transition: color 0.3s ease;
}

.add-member:hover .add-icon {
    color: var(--accent-color);
}

/* About Section */
.about-section {
    padding: var(--section-padding);
    background: var(--card-background);
    border-top: 1px solid var(--border-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-content p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Footer */
.footer {
    padding: 2rem 20px;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-info a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: white;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 20px;
    }
    
    .family-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .family-grid {
        grid-template-columns: 1fr;
    }
    
    .family-card {
        padding: 1.5rem;
    }
} 