:root {
    --primary-color: #00f7ff;
    --secondary-color: #7000ff;
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #2d2d2d;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #7000ff;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    position: relative;
    background: var(--bg-color);
}

.hero-content {
    max-width: 1200px;
    margin-left: 4rem;
    z-index: 1;
}

.glitch-text {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;  /* Reduced from 1.5rem to 0.5rem */
    position: relative;
    color: #fff;
}

.highlight {
    color: #7000ff;
}

.dynamic-text {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.text-prefix {
    color: #fff;
}

.rotating-text {
    color: white;
    min-width: 10ch;
    position: relative;
    display: inline-block;
}

.hero-message {
    font-size: 1.5rem;
    color: #666;
    margin-top: 2rem;
}



@media (max-width: 768px) {
    .hero {
        padding: 0 2rem;
    }
    
    .hero-content {
        margin-left: 0;
    }
    
    .glitch-text,
    .dynamic-text {
        font-size: 2.5rem;
    }
    
    .rotating-text {
        min-width: 8ch;
    }
    
    .scroll-line {
        left: 1rem;
    }
}



.cta-button {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary {
    background: var(--primary-color);
    color: var(--bg-color);
}

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

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.3);
}

/* Section Styles */
section {
    padding: 100px 4rem;
    min-height: 100vh;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-line {
    width: 60px;
    height: 4px;
    background: #7000ff;
    margin: 0 auto;
}

/* Code-style About Section */
.code-section {
    background: #13111c;
    font-family: 'Fira Code', monospace;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.code-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: #1e1b2e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.code-container::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

.line-numbers {
    padding: 1.5rem 1rem;
    background: #15131f;
    color: #666;
    user-select: none;
    text-align: right;
    border-right: 1px solid #2a2837;
    flex-shrink: 0;
}

.line-numbers span {
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-content {
    padding: 1.5rem;
    overflow-x: hidden;
    white-space: normal;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.code-content::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

.code-content pre {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;       /* css-3 */
    white-space: -moz-pre-wrap;  /* Mozilla */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
    max-width: 100%;
}

.code-content code {
    font-family: 'Fira Code', monospace;
    display: block;
    padding-right: 1rem;
}

/* Syntax Highlighting */
.keyword {
    color: #ff79c6;
}

.string {
    color: #50fa7b;
}

.comment {
    color: #6272a4;
    font-style: italic;
}

.function {
    color: #50fa7b;
}

.class-name {
    color: #bd93f9;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--accent-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image img {
    width: 100%;
    height: auto;
}

.project-info {
    padding: 1.5rem;
}

.project-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
}

/* Contact Section */
.contact-content {
    text-align: center;
}

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

.social-link {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #7000ff;
}

.email-link {
    color: #7000ff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.email-link i {
    font-size: 1.1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--text-color);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}
