:root {
    --primary: #0a0a0a;
    --secondary: #1a1a2e;
    --accent-blue: #16213e;
    --accent-red: #e94560;
    --text: #ffffff;
    --text-secondary: #b8b8b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

.n-loader {
    position: relative;
    width: 200px;
    height: 200px;
}

.n-stick {
    position: absolute;
    background: linear-gradient(to bottom, var(--accent-red), var(--accent-blue));
    width: 20px;
    border-radius: 10px;
    transform-origin: bottom;
    opacity: 0;
}

.stick-1 {
    height: 180px;
    left: 40px;
    animation: slideIn1 1.5s ease forwards 0.2s;
    transform: skewX(-20deg);
}

.stick-2 {
    height: 140px;
    left: 150px;
    top: 26px;
    animation: slideIn2 1.5s ease forwards 0.5s;
    transform: skewX(20deg);
}

.stick-3 {
    height: 180px;
    left: 140px;
    animation: slideIn3 1.5s ease forwards 0.8s;
    transform: skewX(-20deg);
}

@keyframes slideIn1 {
    0% {
        transform: translateY(-100px) skewX(-20deg);
        opacity: 0;
    }

    100% {
        transform: translateY(0) skewX(-20deg);
        opacity: 1;
    }
}

@keyframes slideIn2 {
    0% {
        transform: translateX(-100px) skewX(20deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) skewX(20deg);
        opacity: 1;
    }
}

@keyframes slideIn3 {
    0% {
        transform: translateY(100px) skewX(-20deg);
        opacity: 0;
    }

    100% {
        transform: translateY(0) skewX(-20deg);
        opacity: 1;
    }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.5s;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
}

header.sticky {
    padding: 15px 100px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    color: var(--text);
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-red);
}

.nav-links ul {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    display: flex;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 15px;
    border-radius: 20px;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--accent-red);
    color: var(--text);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--primary), transparent);
    z-index: 10;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.2s;
}

.hero-content h1 span {
    color: var(--accent-red);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.5s;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.8s;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-red);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    border-radius: 40px;
    letter-spacing: 1px;
    transition: 0.5s;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-red);
}

.btn:hover {
    background: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(233, 69, 96, 0.3);
}

.btn-secondary:hover {
    background: var(--accent-red);
}

.hero-stats {
    display: flex;
    gap: 40px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 2.1s;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5em;
    color: var(--accent-red);
    margin-bottom: 5px;
}

.stat p {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-animation span {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(var(--accent-blue), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.bg-animation span:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.bg-animation span:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.bg-animation span:nth-child(3) {
    top: 80%;
    left: 40%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.7;
    }

    50% {
        transform: translate(-50%, -60%) scale(1);
        opacity: 0.3;
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
section {
    padding: 100px;
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-red);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--secondary);
}

.about-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
}

.availability {
    margin-top: 30px;
    padding: 20px;
    background: var(--accent-blue);
    border-radius: 10px;
}

.availability h3 {
    margin-bottom: 15px;
    color: var(--accent-red);
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-indicator.available {
    background: #4CAF50;
    box-shadow: 0 0 10px #4CAF50;
}

.about-workflow {
    flex: 1;
    min-width: 300px;
}

.about-workflow h3 {
    margin-bottom: 30px;
    color: var(--accent-red);
}

.workflow-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.step {
    background: var(--accent-blue);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: 0.5s;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
}

.step-icon i {
    font-size: 24px;
}

.step h4 {
    margin-bottom: 10px;
}

.step p {
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* Skills Section */
.skills {
    background: var(--primary);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.skill-category {
    flex: 1;
    min-width: 300px;
}

.skill-category h3 {
    margin-bottom: 30px;
    color: var(--accent-red);
}

.skill-bars {
    margin-bottom: 30px;
}

.skill {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-bar {
    height: 10px;
    background: var(--secondary);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease;
}

.skill-cards {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    min-width: 300px;
}

.skill-card {
    background: var(--secondary);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: 0.5s;
    border-bottom: 3px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--accent-red);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.skill-card i {
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--accent-red);
}

.skill-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.skill-card p {
    color: var(--text-secondary);
}

/* Services Section */
.services {
    background: var(--secondary);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--primary);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: 0.5s;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--accent-red);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    transition: 0.5s;
}

.service-card:hover .service-icon {
    background: var(--accent-red);
    transform: rotateY(180deg);
}

.service-icon i {
    font-size: 36px;
    color: var(--text);
}

.service-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    margin-bottom: 25px;
    text-align: left;
}

.service-card ul li {
    padding: 5px 0;
    color: var(--text-secondary);
}

.service-card ul li:before {
    content: '✓';
    color: var(--accent-red);
    font-weight: bold;
    margin-right: 10px;
}

.service-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--accent-red);
    color: var(--text);
    text-decoration: none;
    border-radius: 30px;
    transition: 0.3s;
    font-weight: 500;
}

.service-btn:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}

/* Projects Section */
.projects {
    background: var(--primary);
}

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--secondary);
    color: var(--text);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-red);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--secondary);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.project-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(233, 69, 96, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.5s;
}

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

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    width: 50px;
    height: 50px;
    background: var(--text);
    color: var(--accent-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: 0.3s;
}

.project-links a:hover {
    background: var(--primary);
    transform: rotate(15deg);
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.project-tags span {
    background: var(--accent-blue);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
}

/* Testimonials Section */
.testimonials {
    background: var(--secondary);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--primary);
    padding: 30px;
    border-radius: 10px;
    transition: 0.5s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.6;
}

.testimonial-content:before {
    content: '"';
    font-size: 60px;
    color: var(--accent-red);
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.discord-section {
    background: var(--accent-blue);
    padding: 80px 100px;
    text-align: center;
}

.discord-container {
    max-width: 800px;
    margin: 0 auto;
}

.discord-container h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.discord-container p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.discord-btn {
    display: inline-block;
    padding: 12px 35px;
    background: #5865F2;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    border-radius: 40px;
    letter-spacing: 1px;
    transition: 0.5s;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

/* Contact Section */
.contact {
    background: var(--primary);
}

.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-info-item i {
    font-size: 24px;
    color: var(--accent-red);
    margin-right: 20px;
    width: 30px;
}

.contact-info-text h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.contact-info-text p {
    color: var(--text-secondary);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--secondary);
    padding: 30px;
    border-radius: 10px;
}

.input-box {
    position: relative;
    margin-bottom: 30px;
}

.input-box input,
.input-box textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: var(--text);
    border: none;
    border-bottom: 2px solid var(--accent-blue);
    outline: none;
    background: transparent;
    resize: none;
}

.input-box label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: 0.5s;
}

.input-box input:focus~label,
.input-box textarea:focus~label,
.input-box input:valid~label,
.input-box textarea:valid~label {
    top: -20px;
    left: 0;
    color: var(--accent-red);
    font-size: 12px;
}

.input-box input:focus,
.input-box textarea:focus {
    border-bottom: 2px solid var(--accent-red);
}

.contact-form .btn {
    width: 100%;
}

/* Footer */
footer {
    background: var(--secondary);
    padding: 70px 100px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: var(--accent-red);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent-red);
    padding-left: 5px;
}

.footer-section ul li i {
    margin-right: 10px;
    color: var(--accent-red);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--text);
    border-radius: 50%;
    text-decoration: none;
    transition: 0.5s;
}

.social-links a:hover {
    background: var(--accent-red);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 1200px) {
    section {
        padding: 80px 50px;
    }

    .hero {
        padding: 80px 50px;
    }

    .discord-section {
        padding: 60px 50px;
    }

    footer {
        padding: 50px 50px 20px;
    }
}

@media (max-width: 991px) {

    header,
    header.sticky {
        padding: 15px 50px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 999;
    }

    .nav-links ul.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.5em;
        padding: 10px 20px;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .skill-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }

    .section-title {
        font-size: 2em;
    }

    .about-content,
    .contact-container {
        flex-direction: column;
    }

    .about-text {
        margin-bottom: 30px;
    }

    .contact-info {
        margin-bottom: 30px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .skills-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {

    header,
    header.sticky {
        padding: 15px 20px;
    }

    section {
        padding: 60px 20px;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .discord-section {
        padding: 60px 20px;
    }

    footer {
        padding: 40px 20px 20px;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.notification.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-red);
    color: white;
    padding: 8px;
    z-index: 10000;
    text-decoration: none;
    border-radius: 0 0 5px 0;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* Print styles */
@media print {

    .bg-animation,
    .menu-toggle,
    .hero-btns,
    .discord-section,
    .social-links,
    .project-overlay {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .section-title::after {
        background: black !important;
    }

    a {
        color: black !important;
        text-decoration: underline !important;
    }
}