:root {
    --primary-color: #00b8d4;
    --secondary-color: #7c4dff;
    --text-color: #e0e0e0;
    --bg-color: #121212;
    --card-bg: rgba(30, 30, 30, 0.7);
    --terminal-bg: rgba(16, 16, 16, 0.9);
    --terminal-header: #2d2d2d;
    --glow-color: rgba(0, 184, 212, 0.7);
}

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

body {
    font-family: 'Consolas', 'Monaco', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.stars {
    background: #000 url('https://i.imgur.com/YKY28eT.png') repeat top center;
}

.twinkling {
    background: transparent url('https://i.imgur.com/XYMF4ca.png') repeat top center;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 3rem 0;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-image-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--glow-color);
    animation: pulse 3s infinite;
}

.profile-image i {
    font-size: 70px;
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px var(--glow-color);
    }
    50% {
        box-shadow: 0 0 30px var(--glow-color), 0 0 40px var(--glow-color);
    }
    100% {
        box-shadow: 0 0 20px var(--glow-color);
    }
}

.glitch {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    color: var(--text-color);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: var(--primary-color);
    z-index: -1;
    animation: glitch-effect 3s infinite;
}

.glitch::after {
    color: var(--secondary-color);
    z-index: -2;
    animation: glitch-effect 2s infinite reverse;
}

@keyframes glitch-effect {
    0% {
        transform: none;
        opacity: 0.8;
    }
    7% {
        transform: translate(2px, 3px);
    }
    10% {
        transform: none;
    }
    27% {
        transform: none;
        opacity: 0.8;
    }
    30% {
        transform: translate(-5px, -2px);
        opacity: 0.6;
    }
    35% {
        transform: none;
        opacity: 0.8;
    }
    52% {
        transform: none;
        opacity: 0.8;
    }
    55% {
        transform: translate(5px, -1px);
        opacity: 0.6;
    }
    50% {
        transform: none;
        opacity: 0.8;
    }
    100% {
        transform: none;
        opacity: 0.8;
    }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.blink {
    animation: blink 1s step-end infinite;
}

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


main {
    display: grid;
    gap: 2rem;
}

.about {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 2px solid var(--primary-color);
    margin-bottom: 2.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.about h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--glow-color);
}

.about .terminal {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.about .response {
    color: #ffffff;
    font-size: 1rem;
}

section {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 1.8rem;
}

section h2 i {
    margin-right: 0.5rem;
}

.terminal {
    background-color: var(--terminal-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', monospace;
}

.terminal-header {
    background-color: var(--terminal-header);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.terminal-button.red { background-color: #ff5f56; }
.terminal-button.yellow { background-color: #ffbd2e; }
.terminal-button.green { background-color: #27c93f; }

.terminal-title {
    color: #aaa;
    font-size: 0.8rem;
    margin-left: 1rem;
}

.terminal-content {
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.prompt {
    color: var(--primary-color);
    font-weight: bold;
}

.command {
    color: white;
}

.response {
    color: #aaa;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

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

.project-card {
    background-color: rgba(40, 40, 40, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.project-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.blog-posts {
    display: grid;
    gap: 1.5rem;
}

.blog-post {
    background-color: rgba(40, 40, 40, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.blog-post h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.post-meta {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more i {
    margin-left: 0.3rem;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(3px);
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.9rem;
    color: #aaa;
}

.fun-fact {
    font-style: italic;
    color: var(--primary-color);
}

.floating-objects {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.ufo, .satellite {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    filter: drop-shadow(0 0 5px var(--glow-color));
}

.ufo {
    top: 15%;
    right: 10%;
    animation: float 15s ease-in-out infinite, rotate 30s linear infinite;
}

.satellite {
    bottom: 20%;
    left: 5%;
    animation: float 20s ease-in-out infinite reverse, rotate 40s linear infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg) translateX(50px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(50px) rotate(-360deg);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header {
        padding: 2rem 0;
    }
    
    .glitch {
        font-size: 2.5rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-image-container {
        width: 120px;
        height: 120px;
    }
    
    .profile-image i {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 2rem;
    }
    
    .about {
        padding: 1.5rem;
    }
    
    .about h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .about .terminal {
        margin-top: 1rem;
    }

section {
        padding: 1.5rem;
    }
    
    .profile-image-container {
        width: 100px;
        height: 100px;
    }
    
    .profile-image i {
        font-size: 50px;
    }
}