* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: transparent;
    color: white;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -100;
    background-color: #05020a;
    overflow: hidden;
}

.moving-grid {
    position: absolute;
    top: -50px; 
    left: 0; 
    width: 100%; 
    height: calc(100% + 50px);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: flatGridMove 8s linear infinite;
    pointer-events: none;
}

@keyframes flatGridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.bg-animation::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, #05020a 75%);
    pointer-events: none;
}

.glow-1, .glow-2, .glow-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: floatGlow 15s infinite alternate ease-in-out;
}

.glow-1 {
    width: 45vw; height: 45vw;
    background: #8d35df;
    opacity: 0.15;
    top: -10%; left: -10%;
}
.glow-2 {
    width: 40vw; height: 40vw;
    background: #5c1b98;
    opacity: 0.15;
    bottom: -10%; right: -10%;
    animation-delay: -5s; animation-duration: 25s;
}
.glow-3 {
    width: 50vw; height: 50vw;
    background: #8d35df;
    opacity: 0.1;
    top: 25%; left: 25%;
    animation-delay: -10s; animation-duration: 30s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5vw, 5vh) scale(1.1); }
    100% { transform: translate(-5vw, 10vh) scale(0.9); }
}

header {
    margin-top: 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

nav.glass-pill {
    display: flex;
    align-items: center;
    background: rgba(8, 8, 8, 0.75);
    border: 1px solid rgba(141, 53, 223, 0.3);
    border-radius: 5rem;
    padding: 1.2rem 3rem;
    box-shadow: 0 10px 30px rgba(141, 53, 223, 0.15);
    backdrop-filter: blur(15px);
}

.glass-pill a.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
    letter-spacing: 2px;
}

.glass-pill a.logo .dot {
    width: 8px;
    height: 8px;
    background: #8d35df;
    border-radius: 50%;
    box-shadow: 0 0 12px #8d35df;
}

.glass-pill .separator {
    width: 1px;
    height: 1.6rem;
    background: #252525;
    margin: 0 2.5rem;
}

.glass-pill .nav-links {
    display: flex;
    gap: 3rem;
}

.glass-pill .nav-links a {
    font-size: 1.1rem;
    color: #888;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.glass-pill .nav-links a:hover,
.glass-pill .nav-links a.active {
    color: #8d35df;
    text-shadow: 0 0 15px rgba(141, 53, 223, 0.5);
}

@media(max-width:995px) {
    nav.glass-pill { padding: 1rem 2rem; }
    .glass-pill .separator { margin: 0 1.5rem; }
    .glass-pill .nav-links { gap: 1.5rem; }
    .glass-pill a.logo, .glass-pill .nav-links a { font-size: 1rem; }
}

@media(max-width:480px) {
    .glass-pill a.logo { display: none; }
    .glass-pill .separator { display: none; }
}

section {
    min-height: 100vh;
    padding: 10rem 9% 5rem;
}

.home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15rem 9% 5rem;
    background-color: transparent;
}

.home-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    width: 100%;
    margin-bottom: 6rem;
}

.home .home-content h1 {
    font-size: 6.5rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -3px; 
    color: white;
}

.home .home-content h1 span {
    font-weight: 700;
    color: #8d35df;
}

.home-content h3 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: -1px;
}

.home-content p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #bbb;
    font-weight: 300;
}

.home-img {
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    position: relative;
    width: 25vw;
    min-width: 250px;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(141, 53, 223, 0.8);
    cursor: pointer;
    transition: 0.3s ease;
}

.home-img img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(141, 53, 223, 1);
}

.home-buttons {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-top: 3rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 4rem;
    font-size: 1.4rem;
    color: #8d35df;
    letter-spacing: 2px;
    font-weight: 500;
    border: 2px solid #8d35df;
    transition: 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.btn:hover {
    transform: scale(1.03);
    background-color: #8d35df;
    color: black;
    box-shadow: 0 0 25px #8d35df;
}

.home-gh {
    color: #555;
    font-size: 2.6rem;
    transition: 0.3s ease;
    display: flex;
    margin-top: 5px;
}

.home-gh:hover {
    color: white;
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

.home-bottom {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
}

.home-bottom-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.home-bottom-title .line {
    width: 50px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.home-bottom-title .text {
    font-size: 0.95rem;
    letter-spacing: 3px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.skills-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    overflow: hidden;
    width: 100%;
}

.skill-box {
    background: rgba(8, 6, 12, 0.7);
    backdrop-filter: blur(15px);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 160px;
    transition: 0.3s ease;
    cursor: default;
}

.skill-box:hover {
    background: rgba(20, 16, 26, 0.95);
}

.skill-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2.5rem;
}

.icon-circle {
    width: 4.5rem;
    height: 4.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255, 0.01);
    transition: 0.3s ease;
}

.skill-box:hover .icon-circle {
    border-color: rgba(141, 53, 223, 0.4);
    background: rgba(141, 53, 223, 0.05);
}

.icon-circle i {
    font-size: 2.2rem;
    color: #555;
    transition: 0.3s ease;
}

.skill-box:hover .icon-circle i {
    color: white;
    filter: drop-shadow(0 0 8px #8d35df);
}

.skill-top .dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin-top: 5px;
    transition: 0.3s ease;
}

.skill-box:hover .skill-top .dot {
    background: #8d35df;
    box-shadow: 0 0 8px #8d35df;
}

.skill-bottom h3 {
    font-size: 0.85rem;
    color: #555;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.skill-box:hover .skill-bottom h3 {
    color: white;
}

.typing-text {
    font-size: 3.5rem;
    font-weight: 300; 
    letter-spacing: -1px;
    min-width: 280px;
}

.typing-text span {
    position: relative;
    display: inline-block;
}

.typing-text span::before {
    content: "Web Developer";
    color: #8d35df;
    font-weight: 600;
    animation: words 12s infinite;
}

.typing-text span::after {
    content: "";
    background-color: transparent;
    position: absolute;
    top: 0;
    right: -4px;
    width: 100%;
    height: 100%;
    border-left: 3px solid #8d35df;
    animation: typing 4s steps(14) infinite, cursor 0.6s infinite;
}

@keyframes cursor {
    to { border-left-color: transparent; }
}

@keyframes typing {
    0%, 10% { width: 100%; background: #05020a; }
    40%, 60% { width: 0%; background: transparent; }
    90%, 100% { width: 100%; background: #05020a; }
}

@keyframes words {
    0%, 33.33% { content: "Web Developer"; }
    33.34%, 66.66% { content: "FiveM Developer"; }
    66.67%, 100% { content: "Web Designer"; }
}

@media (max-width:995px) {
    .home-top { flex-direction: column; margin-bottom: 5rem; }
    .home .home-content h3 { font-size: 2.5rem; }
    .home-content p { font-size: 1.6rem; }
    .home .home-content h1 { font-size: 5rem; }
    .home-img img { width: 60vw; margin-top: 4rem; }
}

.projects {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.project-cta-box {
    background: rgba(10, 8, 12, 0.6); 
    border: 1px solid rgba(255, 255, 255, 0.03); 
    border-radius: 2rem;
    padding: 8rem 5rem;
    text-align: center;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
}

.project-cta-box .eyebrow {
    font-size: 1rem;
    letter-spacing: 4px;
    color: #666;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2rem;
    font-weight: 600;
}

.project-cta-box h2 {
    font-size: 6.5rem;
    font-weight: 300;
    color: white;
    margin-bottom: 5rem;
    line-height: 1.1;
    letter-spacing: -4px; 
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.cta-btn-white {
    background: white;
    color: black;
    padding: 1.6rem 3.5rem;
    border-radius: 4rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: 0.3s ease;
}

.cta-btn-white:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.cta-btn-dark {
    background: rgba(0,0,0,0.3);
    color: #888;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.6rem 3.5rem;
    border-radius: 4rem;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: 0.3s ease;
}

.cta-btn-dark:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: white;
}

.cta-btn-dark .separator { color: #444; }
.cta-btn-dark .discord-handle { color: white; font-weight: 600; }

.response-time {
    font-size: 1rem;
    letter-spacing: 2px;
    color: #555;
    text-transform: uppercase;
    font-weight: 600;
}

@media(max-width: 768px) {
    .project-cta-box { padding: 5rem 3rem; }
    .project-cta-box h2 { font-size: 4rem; }
    .cta-buttons { flex-direction: column; gap: 1.5rem; }
    .cta-btn-white, .cta-btn-dark { width: 100%; justify-content: center; }
}

.contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-color: transparent;
}

.contact-header {
    margin-bottom: 4rem;
}

.contact-header .sub-title {
    color: #666;
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.contact-header h2 {
    font-size: 5.5rem;
    font-weight: 500;
    margin-top: 1rem;
    line-height: 1.1;
    color: white;
    letter-spacing: -2px;
}

.contact-header p {
    font-size: 1.6rem;
    color: #bbb;
    margin-top: 1.5rem;
    font-weight: 300;
}

.contact-box {
    width: 100%;
    max-width: 800px;
    background: rgba(13, 8, 20, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(141, 53, 223, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: rgba(21, 16, 28, 0.6);
    border: 1px solid rgba(141, 53, 223, 0.1);
    border-radius: 1rem;
    text-decoration: none;
    transition: 0.3s ease;
}

.contact-card:hover {
    background: rgba(29, 21, 38, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(141, 53, 223, 0.2);
    border-color: rgba(141, 53, 223, 0.4);
}

.contact-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(13, 8, 20, 0.8);
    border: 1px solid rgba(141, 53, 223, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    margin-right: 2rem;
}

.contact-info { flex-grow: 1; }

.contact-info h3 {
    font-size: 1.8rem;
    color: white;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.contact-info p {
    font-size: 1.4rem;
    color: #999;
    margin-top: 0.5rem;
    font-weight: 400;
}

.arrow-icon {
    font-size: 1.6rem;
    color: #aaa;
    transition: 0.3s ease;
}

.contact-card:hover .arrow-icon {
    color: white;
    transform: translate(3px, -3px);
}

@media(max-width: 768px) {
    .contact-header h2 { font-size: 4rem; }
}

.bottom-footer {
    width: 100%;
    background-color: rgba(3, 1, 5, 0.85);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(141, 53, 223, 0.15);
    padding: 3rem 9%;
    position: relative;
    overflow: hidden;
}

.bottom-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 50%; height: 1px;
    background: linear-gradient(90deg, transparent, #8d35df, transparent);
    box-shadow: 0 0 15px #8d35df;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left, .footer-right {
    margin: 0;
    color: #888;
    font-size: 1.3rem;
    font-weight: 500;
}

.bottom-footer .highlight {
    color: #8d35df;
    font-weight: 600;
    transition: 0.3s ease;
}
.bottom-footer .highlight:hover { color: white; }

.beating-heart {
    color: #ff3366;
    margin: 0 0.5rem;
    display: inline-block;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.25); }
    60% { transform: scale(1); }
}

@media(max-width: 768px) {
    .footer-content { justify-content: center; text-align: center; }
}
