:root {
    --bg-color: #171923;
    --card-bg: #1e2029;
    --card-border: #2d313f;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --grad-start: #ff0000;
    --grad-end: #00ff00;
    --btn-secondary-bg: #222530;
    --btn-secondary-hover: #2d3142;
}

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

body {
    font-family: 'Fira Code', monospace;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-bottom: 2rem;
}

/* LED Ambient Background */
.led-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(255, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

.led-light {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: drift 15s infinite alternate ease-in-out;
}

.led-red {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--grad-start), transparent 60%);
}

.led-green {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--grad-end), transparent 60%);
    animation-delay: -7.5s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    100% { transform: translate(10%, 10%) scale(1.1); opacity: 0.5; }
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 4rem;
}

/* Left Section */
.left-section {
    flex: 1;
    max-width: 600px;
}

.greeting {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor {
    display: inline-block;
    width: 12px;
    height: 3.5rem;
    background-color: #4a5568;
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.subtitle {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.actions {
    display: flex;
    gap: 1.5rem;
}

.btn {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-primary {
    position: relative;
    padding: 3px;
    background: linear-gradient(90deg, #ff3333, #33ff33);
    border-radius: 14px;
}

.btn-primary .btn-content {
    background: linear-gradient(90deg, #ff6666, #66ff66); /* Lighter version for hover */
    padding: 0.8rem 1.5rem;
    border-radius: 11px;
    display: block;
    color: #000;
    font-weight: 700;
    width: 100%;
    height: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.2);
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover);
    transform: translateY(-2px);
}

/* Right Section */
.right-section {
    flex: 1;
    max-width: 500px;
}

.profile-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid var(--card-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.shield-icon {
    position: relative;
    width: 60px;
    height: 70px;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.4));
}

.shield-icon svg {
    width: 100%;
    height: 100%;
}

.code-brackets {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.profile-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.profile-stats {
    display: flex;
    justify-content: space-between;
    text-align: left;
    border-top: 1px solid var(--card-border);
    padding-top: 1.5rem;
    gap: 1rem;
}

.stat-group {
    flex: 1;
}

.stat-label {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}


/* --- Discord Live Status Card --- */
.discord-card {
    margin-top: 1.8rem;
    padding: 1.2rem;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    background: rgba(23, 25, 35, 0.55);
    text-align: left;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.discord-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.discord-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
}

.discord-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 18px rgba(0, 255, 0, 0.12);
}

.discord-status-dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    background: #747f8d;
}

.status-online { background: #23a55a; }
.status-idle { background: #f0b232; }
.status-dnd { background: #f23f43; }
.status-offline { background: #80848e; }

.discord-user {
    min-width: 0;
}

.discord-label,
.activity-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.discord-user h3 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-user p,
.activity-info p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.4;
}

.discord-activity {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.activity-icon,
.activity-cover {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 14px;
}

.activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ff6666, #66ff66);
}

.activity-cover {
    object-fit: cover;
    box-shadow: 0 0 16px rgba(0, 255, 0, 0.15);
}

.activity-info {
    min-width: 0;
}

.activity-info strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-activity.is-spotify .activity-label {
    color: #1db954;
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        flex-direction: column;
        gap: 3rem;
    }
    
    .greeting {
        font-size: 2.5rem;
    }
    
    .cursor {
        height: 2.5rem;
    }
    
    .left-section, .right-section {
        max-width: 100%;
    }
    
    .profile-card {
        padding: 2rem;
    }
}

/* --- Sections --- */
.section-container {
    flex-direction: column;
    padding: 12rem 2rem; /* Massive padding to create more scroll distance */
    gap: 6rem;
    align-items: stretch;
    min-height: 80vh; /* Make section taller */
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* --- About Section --- */
.about-section {
    background-color: transparent;
    width: 100%;
    display: flex;
    justify-content: center;
}

.about-content {
    display: flex;
    gap: 2rem;
    width: 100%;
}

.about-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    flex: 1;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

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

.about-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.about-desc strong {
    color: var(--text-primary);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: var(--grad-end);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    transform: translateY(-2px);
}

.timeline-item {
    border-left: 2px solid var(--grad-end);
    padding-left: 1.5rem;
    position: relative;
    margin-top: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--grad-start);
    border-radius: 50%;
}

/* --- Contact Section --- */
.contact-section {
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle border */
    padding-bottom: 5rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.contact-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.form-group input, 
.form-group textarea {
    background-color: var(--bg-color);
    border: 1px solid var(--card-border);
    padding: 1rem;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--grad-start);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.15);
}

.contact-form .submit-btn {
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    width: 100%;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    .contact-form {
        padding: 2rem;
    }
}

