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

body {
    font-family: 'Exo 2', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(79, 195, 247, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(41, 182, 246, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(3, 169, 244, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(2, 136, 209, 0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(2, 119, 189, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
}

.twinkling {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    background-image: 
        radial-gradient(1px 1px at 25px 25px, rgba(129, 212, 250, 0.2), transparent),
        radial-gradient(1px 1px at 50px 50px, rgba(79, 195, 247, 0.2), transparent),
        radial-gradient(1px 1px at 75px 75px, rgba(41, 182, 246, 0.2), transparent),
        radial-gradient(1px 1px at 100px 100px, rgba(3, 169, 244, 0.2), transparent);
    background-repeat: repeat;
    background-size: 150px 150px;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes sparkle {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}

@keyframes twinkle {
    0% { opacity: 0.2; }
    100% { opacity: 0.6; }
}

/* Header Styles */
.header {
    text-align: center;
    padding: 1px 0 2px;
    position: relative;
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 10px 0;
}

.logo-image {
    max-width: 1000px;
    max-height: 300px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(79, 195, 247, 0.5));
    transition: all 0.3s ease;
    margin: 0 auto;
}

.logo-image:hover {
    filter: drop-shadow(0 0 30px rgba(79, 195, 247, 0.8));
    transform: scale(1.05);
}

/* Header Tagline - Innovative Design */
.header-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: -65px;
    flex-wrap: wrap;
}

.tagline-word {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
    position: relative;
    opacity: 0;
    animation: taglineFadeIn 0.8s ease-out forwards, taglinePulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.tagline-word-1 {
    animation-delay: 0.2s, 1.5s;
}

.tagline-word-2 {
    animation-delay: 0.5s, 1.8s;
}

.tagline-word-3 {
    animation-delay: 0.8s, 2.1s;
}

.tagline-word::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.3), rgba(41, 182, 246, 0.3));
    filter: blur(15px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tagline-word:hover {
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 0 15px rgba(79, 195, 247, 0.8));
}

.tagline-word:hover::before {
    opacity: 1;
}

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

@keyframes taglinePulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(79, 195, 247, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(79, 195, 247, 0.8));
    }
}

/* Main Content */
.main-content {
    padding: 20px 0 0;
}

/* Category Sections */
.category-section {
    margin-bottom: 80px;
}

.category-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: #4fc3f7;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: rgba(79, 195, 247, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.category-title i {
    font-size: 1.8rem;
    color: #4fc3f7;
    filter: drop-shadow(0 0 10px rgba(79, 195, 247, 0.5));
}

/* Projects Grid */
.projects-grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.blockchain-grid {
    grid-template-columns: repeat(3, 1fr);
}

.ai-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Project Cards - Glassmorphism */
.project-card {
    min-height: 320px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

/* Blockchain cards - fixed height for symmetry */
.blockchain-grid .project-card {
    min-height: 600px;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(79, 195, 247, 0.3), 
        rgba(33, 150, 243, 0.2),
        rgba(79, 195, 247, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-8px);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Blockchain cards - ensure inner structure */
.blockchain-grid .card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-front {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    background: rgba(79, 195, 247, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 195, 247, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

/* Blockchain cards - specific padding for alignment */
.blockchain-grid .card-front {
    padding: 30px 25px 30px 25px;
    justify-content: flex-start;
}

.project-card:hover .card-front {
    background: rgba(79, 195, 247, 0.06);
    border-color: rgba(79, 195, 247, 0.3);
    box-shadow: 
        0 12px 48px rgba(79, 195, 247, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Featured Card (Betswave) */
.featured-card {
    grid-column: span 1;
    min-height: 600px;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.featured-card .card-front {
    background: linear-gradient(135deg, 
        rgba(79, 195, 247, 0.08) 0%, 
        rgba(33, 150, 243, 0.06) 50%, 
        rgba(79, 195, 247, 0.08) 100%);
    border: 2px solid rgba(79, 195, 247, 0.4);
    box-shadow: 
        0 12px 48px rgba(79, 195, 247, 0.3),
        0 0 60px rgba(79, 195, 247, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: featuredGlow 3s ease-in-out infinite;
}

.featured-card:hover .card-front {
    background: linear-gradient(135deg, 
        rgba(79, 195, 247, 0.12) 0%, 
        rgba(33, 150, 243, 0.1) 50%, 
        rgba(79, 195, 247, 0.12) 100%);
    border-color: rgba(79, 195, 247, 0.6);
    box-shadow: 
        0 16px 64px rgba(79, 195, 247, 0.4),
        0 0 80px rgba(79, 195, 247, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

@keyframes featuredGlow {
    0%, 100% { 
        box-shadow: 
            0 12px 48px rgba(79, 195, 247, 0.3),
            0 0 60px rgba(79, 195, 247, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 12px 48px rgba(79, 195, 247, 0.4),
            0 0 80px rgba(79, 195, 247, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(33, 150, 243, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 195, 247, 0.4);
    color: #4fc3f7;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(79, 195, 247, 0.2);
    animation: pulseBadge 2s ease-in-out infinite;
}

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

.card-icon {
    font-size: 3rem;
    color: #4fc3f7;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    min-height: 160px;
    flex-shrink: 0;
}

/* Blockchain section - fixed logo sizes for alignment */
.blockchain-grid .card-icon {
    height: 160px;
    min-height: 160px;
    margin-bottom: 20px;
}

.project-logo {
    max-width: 160px;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(79, 195, 247, 0.4));
    transition: all 0.4s ease;
}

/* Standardize all blockchain logos to same size */
.blockchain-grid .project-logo {
    max-width: 160px;
    max-height: 160px;
}

/* Decrease Betswave logo size */
.project-card[data-project="betswave"] .project-logo {
    max-width: 100px;
    max-height: 100px;
}

/* Increase Trakor and GTD-HealUp Life logo sizes */
.project-card[data-project="trakor"] .project-logo,
.project-card[data-project="gtd-healup-life"] .project-logo {
    max-width: 280px;
    max-height: 280px;
}

.project-card:hover .project-logo {
    filter: drop-shadow(0 0 30px rgba(79, 195, 247, 0.7));
    transform: scale(1.08);
}

.featured-card .project-logo {
    filter: drop-shadow(0 0 25px rgba(79, 195, 247, 0.6));
}

/* Blockchain cards - fixed title height for alignment */
.blockchain-grid .project-title {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    text-align: center;
}

/* Larger logos for NERDS Website and Vigibelt (2x size) */
.project-card[data-project="nerds-website"] .project-logo,
.project-card[data-project="iron-ore-monitoring"] .project-logo {
    max-width: 280px;
    max-height: 280px;
}

/* NerdsTV logo - 4x size (2x larger than the other two) */
.project-card[data-project="ai-ad-detection"] .project-logo {
    max-width: 560px;
    max-height: 560px;
}

/* Match Betswave font styling for Trakor and GTD-HealUp Life */
.project-card[data-project="trakor"] .project-title,
.project-card[data-project="gtd-healup-life"] .project-title {
    font-size: 1.6rem;
    color: #4fc3f7;
    text-shadow: 0 0 15px rgba(79, 195, 247, 0.5);
}

.project-card[data-project="trakor"] .project-description,
.project-card[data-project="gtd-healup-life"] .project-description {
    color: #e1f5fe;
    font-size: 1rem;
}

/* Project points styling for Trakor - Enhanced */
.project-point {
    color: #e1f5fe;
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.95;
    margin: 6px 0;
    position: relative;
    padding-left: 24px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.project-point::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #4fc3f7;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(79, 195, 247, 0.6);
}

.project-card[data-project="trakor"]:hover .project-point,
.project-card[data-project="gtd-healup-life"]:hover .project-point {
    color: #ffffff;
    padding-left: 28px;
}

.project-card[data-project="trakor"]:hover .project-point::before,
.project-card[data-project="gtd-healup-life"]:hover .project-point::before {
    color: #81d4fa;
    text-shadow: 0 0 12px rgba(79, 195, 247, 0.8);
}

.project-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
}

.featured-card .project-title {
    font-size: 1.6rem;
    color: #4fc3f7;
    text-shadow: 0 0 15px rgba(79, 195, 247, 0.5);
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
}

/* Blockchain cards - fixed content area for alignment */
.blockchain-grid .card-front {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.blockchain-grid .project-content {
    flex: 1;
    overflow-y: auto;
    padding-top: 0;
    max-height: 320px;
}

/* Adjust specific content for better alignment */
.blockchain-grid .launch-date,
.blockchain-grid .project-tagline,
.blockchain-grid .project-cta {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 2px 0;
}

.project-description {
    color: #b3e5fc;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Blockchain cards - adjust text sizes for better fit */
.blockchain-grid .project-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 4px;
}

.blockchain-grid .project-point {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 4px 0;
}

.featured-card .project-description {
    color: #e1f5fe;
    font-size: 1rem;
}

.launch-date {
    color: #4fc3f7;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-tagline {
    color: #81d4fa;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 4px;
}

.project-url {
    color: #4fc3f7;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
    text-decoration: underline;
    text-decoration-color: rgba(79, 195, 247, 0.5);
}

.project-cta {
    color: #b3e5fc;
    font-size: 0.85rem;
    margin-top: 8px;
    opacity: 0.8;
}

/* Footer - Glassmorphism */
.footer {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(79, 195, 247, 0.2);
    padding: 10px 0 5px;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.footer-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-container {
    margin-bottom: 0;
    margin-right: -10px;
}

.footer-logo {
    max-width: 800px;
    max-height: 200px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(79, 195, 247, 0.4));
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: drop-shadow(0 0 25px rgba(79, 195, 247, 0.6));
    transform: scale(1.05);
}

.footer-tagline {
    color: #b3e5fc;
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 2px;
    margin-left: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(79, 195, 247, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 50%;
    color: #4fc3f7;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: rgba(79, 195, 247, 0.2);
    border-color: #4fc3f7;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(79, 195, 247, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(79, 195, 247, 0.1);
}

.footer-bottom p {
    color: #81d4fa;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blockchain-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .blockchain-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-card {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 20px 0 15px;
    }
    
    .main-title {
        font-size: 2.5rem;
        gap: 5px;
        padding: 5px 0;
    }
    
    .logo-image {
        max-width: 750px;
        max-height: 225px;
    }
    
    .header-tagline {
        gap: 15px;
        margin-top: -58px;
    }
    
    .tagline-word {
        font-size: 1rem;
    }
    
    .category-title {
        font-size: 1.8rem;
        padding: 15px 20px;
    }
    
    .category-title i {
        font-size: 1.4rem;
    }
    
    .projects-grid {
        gap: 20px;
    }
    
    .ai-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-logo {
        max-width: 500px;
        max-height: 150px;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
        gap: 5px;
        padding: 5px 0;
    }
    
    .logo-image {
        max-width: 600px;
        max-height: 200px;
    }
    
    .header {
        padding: 15px 0 10px;
    }
    
    .main-title {
        gap: 15px;
        padding: 10px 0;
    }
    
    .header-tagline {
        gap: 10px;
        margin-top: -50px;
    }
    
    .tagline-word {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .project-card {
        min-height: 280px;
    }
    
    .card-front {
        padding: 30px 20px;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .project-logo {
        max-width: 100px;
        max-height: 100px;
    }
    
    .project-card[data-project="betswave"] .project-logo {
        max-width: 80px;
        max-height: 80px;
    }
    
    .project-card[data-project="trakor"] .project-logo {
        max-width: 200px;
        max-height: 200px;
    }
    
    .project-card[data-project="gtd-healup-life"] .project-logo {
        max-width: 200px;
        max-height: 200px;
    }
    
    .project-card[data-project="nerds-website"] .project-logo,
    .project-card[data-project="iron-ore-monitoring"] .project-logo {
        max-width: 200px;
        max-height: 200px;
    }
    
    .project-card[data-project="ai-ad-detection"] .project-logo {
        max-width: 400px;
        max-height: 400px;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .featured-card .project-title {
        font-size: 1.3rem;
    }
    
    .footer-logo {
        max-width: 400px;
        max-height: 120px;
    }
}
