:root {
    --primary-color: #95c900;
    --secondary-color: #ffffff;
    --background-color: #232323;
    --text-color: #f0f0f0;
    --card-background: rgba(50, 50, 50, 0.4);
    --border-color: rgba(149, 201, 0, 0.3);
    --glow-color: rgba(149, 201, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: #1a1a1a;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.08);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

header:hover {
    padding: 0.5rem 3rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: 'Fira Code', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--glow-color);
}

.logo img {
    height: 40px;
    width: auto;
    vertical-align: middle;
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

header:hover .logo img {
    height: 48px;
}



main {
    padding: 0 5%;
}

section {
    padding: 8rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-family: 'Fira Code', monospace;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    border-right: .25em solid var(--secondary-color);
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--secondary-color); }
}


.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0;
    animation: fadeIn 2s ease 3.7s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

h2 {
    font-family: 'Fira Code', monospace;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.service-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--glow-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.about-section {
    max-width: 1000px;
    margin: 0 auto;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-title {
    flex: 1;
}

.about-title h2 {
    text-align: right;
    margin-bottom: 0;
}

.about-divider {
    width: 8px;
    height: 100px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: scaleY(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.about-section.visible .about-divider {
    opacity: 1;
    transform: scaleY(1);
    animation: blink 1.4s step-end infinite 0.5s;
}

.about-content {
    flex: 2;
}

.about-content p {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.about-section.visible .about-content p {
    opacity: 1;
    transform: translateX(0);
}

.contact-section {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    padding: 4rem;
    border-radius: 10px;
}

.contact-main h2 {
    text-align: left;
}

.contact-steps ul {
    list-style: none;
}

.contact-steps li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact-section.visible .contact-steps li:nth-child(1) { transition-delay: 0.2s; }
.contact-section.visible .contact-steps li:nth-child(2) { transition-delay: 0.4s; }
.contact-section.visible .contact-steps li:nth-child(3) { transition-delay: 0.6s; }
.contact-section.visible .contact-steps li:nth-child(4) { transition-delay: 0.8s; }

.contact-section.visible .contact-steps li {
    opacity: 1;
    transform: translateX(0);
}

.step-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--background-color);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
}

.contact-steps h4 {
    color: var(--secondary-color);
    margin-bottom: 0.2rem;
}

.contact-steps p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--background-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--glow-color);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--background-color);
}

.cta-button svg {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.site-footer {
    background-color: #1a1a1a;
    padding: 4rem 5% 2rem;
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-about p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    max-width: 300px;
}

.footer-social h4 {
    font-family: 'Fira Code', monospace;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.social-links svg {
    width: 28px;
    height: 28px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--background-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    position: relative;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 3rem;
    width: 90%;
    max-width: 700px;
    z-index: 101;
    display: none;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active {
    display: block;
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.modal-close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal p {
    font-size: 1.1rem;
    line-height: 1.7;
}


@media (max-width: 1024px) {
    .about-container, .contact-container {
        gap: 2rem;
    }
    .contact-container {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 6rem 0;
    }

    h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    .hero .subtitle {
        font-size: 1rem;
    }

    .about-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-title h2 {
        text-align: center;
    }

    .about-divider {
        height: 4px;
        width: 100px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }

    .contact-main h2 {
        text-align: center;
    }
    .contact-main {
        text-align: center;
    }

    .modal {
        width: 95%;
        padding: 2rem;
    }

    .modal h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.4rem 1rem;
    }
    header:hover {
        padding: 0.4rem 1.5rem;
    }
    .logo img {
        height: 30px;
    }
    header:hover .logo img {
        height: 35px;
    }

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

@keyframes blink {
    50% { opacity: 0; }
}

/* Terminal Styles */
#terminal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background-color: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    z-index: 200;
    display: flex;
    flex-direction: column;
    font-family: 'Fira Code', monospace;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
    visibility: visible;
}

#terminal.terminal-hidden {
    transform: translateY(100%);
    visibility: hidden;
}

#terminal-header {
    background-color: #333;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    font-weight: bold;
    cursor: move;
}

#terminal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

#terminal-body {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
}

#terminal-output .terminal-line {
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
    word-break: break-all;
}

#terminal-output .terminal-line .command {
    color: var(--primary-color);
}

#terminal-input-line {
    display: flex;
}

#terminal-prompt {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

#terminal-input {
    flex-grow: 1;
    background: none;
    border: none;
    color: #fff;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
}

#terminal-input:focus {
    outline: none;
}

@media (max-width: 768px) {
    #terminal {
        height: 60vh;
    }
    #terminal-body, #terminal-input {
        font-size: 0.9rem;
    }
}


/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b2f000;
}

/* Woznix Section */
.woznix-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10rem 0;
    overflow: hidden;
}

.woznix-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.woznix-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.woznix-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(35, 35, 35, 0.6) 0%, rgba(35, 35, 35, 0.9) 70%, var(--background-color) 100%);
    z-index: 2;
}

.woznix-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.woznix-logo {
    width: 150px;
    height: auto;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woznix-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--glow-color);
}

.woznix-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.woznix-buttons .cta-button {
    margin-top: 0; /* Reset margin from default .cta-button */
    display: inline-flex;
    align-items: center;
}

.woznix-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.woznix-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 800px;
}

@media (max-width: 768px) {
    .woznix-section {
        padding: 8rem 0;
    }
    .woznix-content h2 {
        font-size: 2.2rem;
    }
    .woznix-logo {
        width: 120px;
    }
}
