/* Global Styles */
:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #00fff2;
    --accent-secondary: #7000ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-speed: 0.4s;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}



/* Typography & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.3s;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
}

.logo .dot {
    color: var(--accent-color);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.15), rgba(5, 5, 5, 0) 60%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.subtitle {
    display: block;
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 800;
}

.hero h1 .highlight {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    position: relative;
}

.hero h1 .highlight::before {
    content: 'NØYAN';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    /* Animated later via JS or keyframes */
    height: 100%;
    color: var(--accent-color);
    overflow: hidden;
    border-right: 2px solid var(--accent-color);
    -webkit-text-stroke: 0;
    animation: typing 3s steps(10) infinite alternate;
}

@keyframes typing {
    0% {
        width: 0;
    }

    40%,
    100% {
        width: 100%;
        border-color: transparent;
    }
}

.skills-ticker {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 50px;
}

.skill-item {
    color: #fff;
    transition: color 0.3s;
}

.skill-item:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 255, 242, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
    margin-bottom: 5px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 5px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* About Section */
.about {
    padding: 100px 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.glass:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-card {
    text-align: center;
}

.about-card .icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.about-card p {
    color: #aaa;
    font-size: 0.95rem;
}

/* Projects Section */
.projects {
    padding: 100px 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    display: block;
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    /* conceptually */
}

.project-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: transform 0.5s ease;
}

.project-card:hover .project-bg {
    transform: scale(1.1);
}

.project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 1;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .project-content {
    transform: translateY(0);
}

.project-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 5px;
}

.project-content p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.project-card:hover .project-content p {
    opacity: 1;
    transform: translateY(0);
}

.link-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    margin-bottom: 50px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
}

.contact-info {
    padding: 50px;
    text-align: center;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.contact-info>p {
    color: #aaa;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered layout for now, can be flex-start if side-by-side */
    gap: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 50%;
}

.info-item span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 5px;
}

.info-item a,
.info-item p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-5px);
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.copyright {
    color: #555;
    font-size: 0.9rem;
}

/* Responsiveness */
@media (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-list {
        display: none;
        /* Mobile menu needed */
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 2px;
        margin: 5px auto;
        background-color: #fff;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Browser Window Card Styles */
.browser {
    width: 100%;
    /* Adapted from 300px to 100% */
    height: 450px;
    /* Increased height for content */
    background: #1a1a1a;
    /* Darker background */
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.browser:hover {
    transform: translateY(-5px);
}

/* tabs-head */
.tabs-head {
    background-color: #0f0f0f;
    /* Darker */
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding-left: 20px;
    padding-right: 10px;
    padding-top: 5px;
    border-bottom: 1px solid #222;
}

.tabs-head .tab-open {
    width: 150px;
    /* Wider for project names */
    height: 34px;
    border-radius: 7px 7px 0 0;
    background-color: #252525;
    /* Slightly lighter than head */
    display: flex;
    gap: 5px;
    align-items: center;
    /* Center text vertically */
    justify-content: space-between;
    padding: 0 10px;
    position: relative;
    margin-bottom: -1px;
    /* smooth connection */
    z-index: 2;
}

.tabs-head .tab-open .close-tab {
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: default;
    opacity: 0.7;
}

.tabs-head .tab-open .close-tab:hover {
    background-color: #5d5d5d;
}

.tabs-head .tab-open .rounded-l {
    position: absolute;
    background-color: #252525;
    width: 20px;
    height: 24px;
    bottom: 0;
    right: 0;
    transform: translate(100%);
    overflow: hidden;
    display: none;
    /* Removing complex clipping for simpler integration if needed, but keeping user code structure mostly */
}

/* Re-implementing user's complex tab shape manually to ensure it works */
.tabs-head .tab-open .rounded-l {
    display: block;
    top: auto;
    bottom: 0px;
}

.tabs-head .tab-open .rounded-l .mask-round {
    width: 100%;
    height: 100%;
    background-color: #0f0f0f;
    border-radius: 0 0 0 7px;
}

.tabs-head .tab-open .rounded-r {
    position: absolute;
    background-color: #252525;
    width: 20px;
    height: 24px;
    bottom: 0;
    left: 0;
    transform: translate(-100%);
    overflow: hidden;
}

.tabs-head .tab-open .rounded-r .mask-round {
    width: 100%;
    height: 100%;
    background-color: #0f0f0f;
    border-radius: 0 0 7px 0;
}

.tabs-head .tab-open span {
    color: #e0e0e0;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-body);
}

.tabs-head .window-opt {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}

.tabs-head .window-opt button {
    height: 12px;
    width: 12px;
    border: none;
    background-color: #444;
    border-radius: 50%;
    color: transparent;
    cursor: pointer;
    transition: 0.2s;
    padding: 0;
}

.tabs-head .window-opt button:nth-child(1) {
    background: #ffbd2e;
}

/* minimize */
.tabs-head .window-opt button:nth-child(2) {
    background: #27c93f;
}

/* maximize */
.tabs-head .window-opt button:nth-child(3) {
    background: #ff5f56;
}

/* close */

.tabs-head .window-opt button:hover {
    opacity: 0.8;
}

/* head-browser */
.head-browser {
    /* Using normal flow instead of absolute to prevent overlap issues in grid */
    position: relative;
    top: 0;
    width: 100%;
    height: 44px;
    background-color: #252525;
    padding: 6px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.head-browser button {
    width: 24px;
    height: 24px;
    border: none;
    background-color: transparent;
    color: #aaa;
    border-radius: 4px;
    transition: 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.head-browser button:hover {
    background-color: #3a3a3a;
    color: #fff;
}

.head-browser input {
    background-color: #1a1a1a;
    border: 1px solid #333;
    height: 30px;
    border-radius: 15px;
    outline: none;
    color: #ccc;
    padding: 0 15px;
    flex: 1;
    font-size: 12px;
    font-family: 'Space Grotesk', sans-serif;
    transition: 0.2s ease-in-out;
}

.head-browser input:hover {
    background-color: #222;
    border-color: #444;
}

.head-browser input:focus {
    border-color: var(--accent-color);
    color: #fff;
}

.head-browser .star {
    position: static;
    transform: none;
    color: var(--accent-color);
}

/* Content Area */
.browser-content {
    flex: 1;
    background: #000;
    position: relative;
    overflow: hidden;
}

.browser-content-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    z-index: 0;
}

.browser:hover .browser-content-bg {
    transform: scale(1.05);
}

.browser-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    z-index: 10;
    transform: translateY(0);
}

.browser-overlay h3 {
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.browser-overlay p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.browser-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: box-shadow 0.2s;
}

.browser-link:hover {
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.5);
}

/* Button Styling from User Request */
.button {
    margin: 0;
    height: auto;
    background: transparent;
    padding: 0;
    border: none;
    cursor: pointer;
    --border-right: 6px;
    --text-stroke-color: rgba(255, 255, 255, 0.6);
    --animation-color: var(--accent-color);
    --fs-size: 1.2rem;
    letter-spacing: 3px;
    text-decoration: none;
    font-size: var(--fs-size);
    font-family: var(--font-heading);
    position: relative;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-stroke-color);
}

.button .hover-text {
    position: absolute;
    box-sizing: border-box;
    /* content: attr(data-text); removed as text is in HTML */
    color: var(--animation-color);
    width: 0%;
    inset: 0;
    border-right: var(--border-right) solid var(--animation-color);
    overflow: hidden;
    transition: 0.5s;
    -webkit-text-stroke: 1px var(--animation-color);
}

.button .actual-text {
    position: relative;
}

.button:hover .hover-text {
    width: 100%;
    filter: drop-shadow(0 0 23px var(--animation-color));
}