@font-face {
    font-family: 'Roboto';
    font-weight: 400;
    font-style: normal;
    src: url('Roboto-Regular.ttf') format('truetype');
    font-display: fallback;
}

@font-face {
	font-family: 'Material Symbols Outlined';
	src: url('material.symbols.outlined.woff2') format('woff2');
	font-style: normal;
	font-weight: 100 700;
	font-display: block;
}

.material-icons-outlined {
	font-family: 'Material Symbols Outlined' !important;
	font-style: normal;
	font-weight: 400;
	font-size: 24px;
	line-height: 1;
	display: inline-block;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;

	font-variant-ligatures: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

	font-variation-settings:
		'FILL' 0,
		'wght' 400,
		'GRAD' 0,
		'opsz' 24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #8b5cf6;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #94a3b8;
    --success: #10b981;
}

body {
    background: linear-gradient(135deg, #181a21 0%, #000000 100%);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Neural Network Animation */
.neural-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1;
    opacity: 0.2;
    transition: opacity 0.5s ease;
}

.neural-network canvas {
    width: 100vw !important;
    height: 100vh !important;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.neural-network.active {
    opacity: 0.35;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(37, 99, 235, 0.3);
    z-index: -1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    border: none;
    cursor: pointer;
    padding-right: 55px;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
}

.cta-wrapper {
    display: inline-block;
    position: relative;
}

.cta-portrait {
    position: absolute;
    top: -35px;
    right: -35px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.cta-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-avatar {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.avatar-container {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(139, 92, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* 
animation: float 4s ease-in-out infinite;
*/
}

.avatar-placeholder {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.5);
}

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

.feature-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(37, 99, 235, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.github-link:hover {
    color: var(--primary);
}

footer {
    text-align: center;
    color: var(--gray);
    margin-top: 3rem;
}

.contact-info {
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    margin: 20px 0px 5px 0px;
}

/* ===== Mobile & small tablets ===== */
@media (max-width: 900px) {

    /* Header: logo on first line, menu below (horizontal) */
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* IMPORTANT: don't hide the menu on mobile */
    nav ul {
        display: flex;
        /* show it */
        flex-direction: row;
        /* horizontal */
        gap: 1rem;
        flex-wrap: wrap;
        /* wrap if too narrow */
        margin-top: 0.5rem;
    }

    /* Hero: stack, but put the avatar FIRST */
    .hero {
        flex-direction: column;
        /* we're stacking */
        text-align: center;
        gap: 1.2rem;
        /* slightly tighter */
        margin: 1.5rem 0;
        /* reduce top/bottom spacing */
    }

    .hero-avatar {
        order: -1;
        /* move the image above the text */
        margin: 0;
        /* kill extra margins */
    }

    /* Reasonable mobile sizes */
    .avatar-container {
        width: 220px;
        height: 220px;
    }

    .avatar-placeholder {
        width: 180px;
        height: 180px;
        font-size: 3.5rem;
    }
}

/* ===== Phones (optional finer tweaks) ===== */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

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

    .hero h1 span::after {
        height: 2px;
        /* even thinner underline */
        opacity: 0.8;
        /* slightly stronger so it stays visible */
    }

    .cta-button {
        font-size: 1.0rem;
        /* smaller text */
        padding: 0.75rem 1.5rem;
        /* tighter padding */
    }

    .cta-portrait {
        top: -35px;
        /* raise it higher */
        right: -10px;
        /* optional: bring closer to text */
        width: 50px;
        /* slightly smaller so it doesn’t cover text */
        height: 50px;
    }

    /* Keep sizes <= the ones above so we don't "grow" again */
    .avatar-container {
        width: 200px;
        height: 200px;
    }

    .avatar-placeholder {
        width: 160px;
        height: 160px;
        font-size: 3.25rem;
    }
}

/* Diagonal "COMING SOON" overlay for panels */
.feature-card {
	position: relative; /* ensure the overlay positions correctly */
}

.feature-card.coming-soon {
	overflow: hidden; /* hide edges of rotated text */
}

/* Ensure the overlay sits above everything inside the card */
.feature-card {
	position: relative;
	isolation: isolate; /* new stacking context so ::after can be on top */
}

/* Diagonal COMING SOON overlay */
.feature-card.coming-soon {
	overflow: hidden; /* trim rotated edges */
}

.feature-card.coming-soon::after {
	content: "COMING SOON";
	position: absolute;
	inset: 0;                 /* fill card, then we center with transform */
	top: 68%;
	left: 55%;
	transform: translate(-50%, -50%) rotate(-70deg);
	white-space: nowrap;
	font-weight: 900;
	font-size: clamp(16px, 5vw, 60px);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1;

	/* High-contrast, works on busy backgrounds */
	color: rgba(0, 0, 0, 0.68);               /* main fill */
	-webkit-text-stroke: 2px rgba(255,255,255,0.75); /* outline for light/dark sections */
	text-shadow:
		0 1px 2px rgba(0,0,0,0.25),
		0 0 1px rgba(0,0,0,0.35);

	/* Important: keep it above other content and clickable elements */
	z-index: 1000;
	pointer-events: none;  /* don’t block buttons/links beneath */
	user-select: none;

	/* Make sure we don't accidentally dim it */
	mix-blend-mode: normal;        /* was causing it to disappear on some backgrounds */
	font-variant-ligatures: normal;
}

/* Optional dark theme tweak */
.dark .feature-card.coming-soon::after,
[data-theme="dark"] .feature-card.coming-soon::after {
	color: rgba(255,255,255,0.22);
	-webkit-text-stroke: 2px rgba(0,0,0,0.7);
	text-shadow:
		0 1px 2px rgba(0,0,0,0.6),
		0 0 1px rgba(0,0,0,0.6);
}
