/* Team Hero Styling */
.team-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Slight transparency for the team vibes */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.9) 100%);
    z-index: 2;
}

.team-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 900px;
}

/* Tech Badge */
.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(160, 32, 240, 0.1);
    border: 1px solid var(--accent-purple);
    border-radius: 50px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--accent-purple);
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(160, 32, 240, 0.3);
}

.hero-main-title {
    font-family: 'Audiowide', cursive;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

/* Glow Effect */
.glow-text {
    color: #fff;
    text-shadow: 
        0 0 10px rgba(160, 32, 240, 0.8),
        0 0 20px rgba(160, 32, 240, 0.5),
        0 0 30px rgba(160, 32, 240, 0.3);
    animation: textPulse 3s infinite alternate;
}

@keyframes textPulse {
    from { text-shadow: 0 0 10px rgba(160, 32, 240, 0.8), 0 0 20px rgba(160, 32, 240, 0.4); }
    to { text-shadow: 0 0 20px rgba(160, 32, 240, 1), 0 0 40px rgba(160, 32, 240, 0.6); }
}

.hero-lead {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Animated Scroll Indicator */
.hero-scroll-down {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chevron {
    width: 20px;
    height: 4px;
    background: var(--accent-purple);
    margin: 2px;
    opacity: 0;
    transform: rotate(45deg);
    animation: move-chevron 3s infinite;
}

.chevron:nth-child(2) { animation-delay: 1s; }
.chevron:nth-child(3) { animation-delay: 2s; }

@keyframes move-chevron {
    25% { opacity: 1; }
    33% { opacity: 1; transform: translateY(10px) rotate(45deg); }
    67% { opacity: 1; transform: translateY(20px) rotate(45deg); }
    100% { opacity: 0; transform: translateY(30px) rotate(45deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-main-title { font-size: 2.8rem; }
    .hero-lead { font-size: 1rem; padding: 0 20px; }
}
.team-gallery-section {
    background-color: #ffffff;
    padding: 100px 0;
    overflow: hidden;
}

.scattered-grid {
    display: grid;
    /* CHANGE THIS: From repeat(auto-fill...) to exactly 4 columns */
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; /* Reduced gap slightly to help 4 cards fit side-by-side */
    padding: 50px 0;
    perspective: 1500px;
}

/* Individual Card Wrapper */
.member-card-wrapper {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Randomized "Scattered" Rotations */
.member-card-wrapper:nth-child(odd) { transform: rotate(-3deg) translateY(10px); }
.member-card-wrapper:nth-child(even) { transform: rotate(4deg) translateY(-15px); }
.member-card-wrapper:nth-child(3n) { transform: rotate(-5deg) translateX(5px); }
.member-card-wrapper:nth-child(4n) { transform: rotate(2deg) translateY(20px); }

/* The Tech Card */
.member-card-inner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(160, 32, 240, 0.2);
    border-radius: 24px;
    padding: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    transition: 0.5s;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Hover Effect: Straighten & Glow */
.member-card-wrapper:hover {
    transform: rotate(0deg) scale(1.08) translateY(-20px) !important;
    z-index: 10;
}

.member-card-wrapper:hover .member-card-inner {
    border-color: var(--accent-purple);
    background: rgba(160, 32, 240, 0.08);
    box-shadow: 0 20px 60px rgba(160, 32, 240, 0.3);
}

/* Image Frame with Tech Corners */
.image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: 0.5s;
}

.member-card-wrapper:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Tech Corner Accents */
.frame-corners span {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid var(--accent-purple);
    opacity: 0.6;
}
.frame-corners span:nth-child(1) { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.frame-corners span:nth-child(2) { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.frame-corners span:nth-child(3) { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.frame-corners span:nth-child(4) { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* Info Section */
.member-info { text-align: center; }
.member-info h3 { font-family: 'Audiowide', cursive; color: rgb(24, 23, 23); font-size: 1.2rem; margin-bottom: 5px; }
.designation { font-family: 'Space Mono', monospace; color: var(--accent-purple); font-size: 0.85rem; margin-bottom: 12px; }

.tech-tags span {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    margin: 0 5px;
    font-family: 'Space Mono', monospace;
}

/* Responsive - Straighten for mobile */
@media (max-width: 992px) {
    .scattered-grid {
        /* This handles tablets and smaller laptops to show 3 cards */
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .scattered-grid {
        /* CHANGE THIS: Force exactly 2 columns on phones */
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; /* Smaller gap so cards don't get too tiny */
        padding: 20px 10px;
    }

    /* Reduce card padding on mobile so content doesn't look squished */
    .member-card-inner {
        padding: 12px;
    }

    .member-info h3 {
        font-size: 1rem; /* Smaller text for small cards */
    }
}
.iara-diary-section {
    background-color: #111;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Background Movements */
.diary-bg-elements .orb {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-purple);
    filter: blur(120px);
    opacity: 0.15;
    z-index: 1;
    animation: float 15s infinite alternate;
}
.orb-1 { width: 400px; height: 400px; top: -10%; left: -10%; }
.orb-2 { width: 500px; height: 500px; bottom: -10%; right: -10%; animation-delay: 2s; }

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 100px); }
}

/* Grid Logic */
.diary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on PC */
    grid-auto-rows: 200px; /* Each unit is 200px tall */
    gap: 20px;
    z-index: 2;
    position: relative;
}

.diary-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Frame Size Classes */
.item-big { grid-column: span 2; grid-row: span 2; } /* 800x600 area */
.item-tall { grid-row: span 2; } /* 400x600 area */
.item-wide { grid-column: span 2; } /* 800x400 area */

.diary-item img, .diary-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

/* Hover Effects */
.diary-item:hover {
    transform: scale(0.98);
    border-color: var(--accent-purple);
    z-index: 5;
}

.diary-item:hover img, .diary-item:hover video {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: 0.4s;
}

.item-overlay span {
    color: white;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
}

.diary-item:hover .item-overlay { opacity: 1; }

/* Responsive Grid */
@media (max-width: 992px) {
    .diary-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .diary-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .item-big { grid-column: span 2; grid-row: span 2; }
}
.join-family-section {
    background-color: #ffffff;
    padding: 120px 0;
    color: #111;
}

.join-header {
    text-align: center;
    margin-bottom: 60px;
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    transition: 0.3s;
    background: #fcfcfc;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: #fff;
    box-shadow: 0 0 15px rgba(160, 32, 240, 0.1);
}

.submit-btn {
    background: #111;
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-family: 'Audiowide', cursive;
    cursor: pointer;
    transition: 0.4s;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 auto;
}

.submit-btn:hover {
    background: var(--accent-purple);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(160, 32, 240, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-wrapper { padding: 30px 20px; }
}