@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #020202;
    --card-bg: rgba(15, 15, 15, 0.4);
    --card-hover: rgba(20, 20, 20, 0.6);
    --accent-gold: #C9A050;
    --accent-blue: #00D2FF;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(201, 160, 80, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 210, 255, 0.08) 0%, transparent 40%);
}

/* Loading Screen */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.loader-content {
    text-align: center;
    filter: blur(10px);
    animation: unblur 1.5s forwards ease-out;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 2px solid var(--glass-border);
    border-top: 2px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes unblur {
    0% {
        filter: blur(10px);
        opacity: 0;
    }

    100% {
        filter: blur(0px);
        opacity: 1;
    }
}

.loaded #loader {
    opacity: 0;
    visibility: hidden;
}

.intro-section {
    padding: 6rem 2rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transition: all 1s ease-out;
}

.loaded .intro-section {
    opacity: 1;
}

/* Container & Grid */
.container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
    opacity: 0;
    transition: all 1s ease-out 0.2s;
}

.loaded .container {
    opacity: 1;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--card-hover);
}

/* Grid Mapping to eliminate gaps */
.profile-card {
    grid-area: 1 / 1 / 3 / 3;
}

.tech-card {
    grid-area: 1 / 3 / 2 / 5;
}

.cyber-card {
    grid-area: 2 / 3 / 3 / 5;
}

.osint-card {
    grid-area: 3 / 1 / 4 / 3;
}

.c21-card {
    grid-area: 3 / 3 / 4 / 5;
}

.contact-card {
    grid-area: 4 / 1 / 5 / 5;
}

/* Content Styles */
h1 {
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h2.gold {
    color: var(--accent-gold);
}

h2.blue {
    color: var(--accent-blue);
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-blue);
    border-radius: 100px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    width: fit-content;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.tag {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 0.85rem;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-btn {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: 0.3s;
}

.contact-btn:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
}

.profile-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    display: block;
}

/* Responsiveness */
@media (max-width: 1200px) {
    .intro-section {
        padding: 5rem 2rem 1rem;
    }

    .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-card,
    .tech-card,
    .cyber-card,
    .osint-card,
    .c21-card,
    .contact-card {
        grid-area: auto;
        grid-column: span 2;
    }

    .profile-card {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .intro-section {
        padding: 4rem 1.5rem 0rem;
    }

    .intro-section h1 {
        font-size: 3rem;
    }

    .intro-section p {
        font-size: 1rem;
    }

    .container {
        display: flex;
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .card {
        width: 100%;
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
        margin: 0;
    }

    h1 {
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    p {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .profile-card {
        height: 380px;
    }

    .contact-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .quote-section {
        padding: 1.5rem !important;
    }

    .quote-section p:first-child {
        font-size: 1.2rem !important;
    }
}