:root {
    --primary-color: #64ffda;
    --secondary-color: #0a192f;
    --text-light: #8892b0;
    --text-lighter: #a8b2d1;
    --text-lightest: #ccd6f6;
    --text-white: #e6f1ff;
    --bg-dark: #0a192f;
    --bg-darker: #020c1b;
    --bg-light: #112240;
    --bg-lighter: #233554;
    --shadow: rgba(2, 12, 27, 0.7);
    --green-tint: rgba(100, 255, 218, 0.1);
    --font-mono: 'Fira Code', 'Monaco', 'Consolas', monospace;
    --font-sans: 'Poppins', system-ui, sans-serif;
    --border-radius: 8px;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-dark);
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.custom-cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.05s ease;
}

/* Navigation */
.navbar {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 25, 47, 0.95);
    box-shadow: 0 10px 30px -10px var(--shadow);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 2rem;
    text-decoration: none;
}

.brand-text {
    border: 2px solid var(--primary-color);
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
}

.brand-text:hover {
    background: var(--green-tint);
}

.navbar-nav .nav-link {
    color: var(--text-lightest) !important;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0 1rem;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 100%;
}

.hamburger {
    display: flex;
    flex-direction: column;
    width: 20px;
    height: 15px;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border: 1px solid var(--primary-color);
    opacity: 0.1;
}

.shape-1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 15%;
    transform: rotate(45deg);
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    bottom: 30%;
    right: 30%;
    animation: float 7s ease-in-out infinite;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 5%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: float 9s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-greeting {
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: var(--text-lightest);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 500px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--green-tint);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

/* Code Window */
.hero-visual {
    position: relative;
    max-width: 600px;
    margin-left: auto;
}

.code-window {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.window-header {
    background: var(--bg-lighter);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close { background: #ff5f56; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #27ca3f; }

.window-title {
    color: var(--text-lighter);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.code-content {
    padding: 2rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto;
}

.keyword { color: #c792ea; }
.variable { color: #82aaff; }
.property { color: #e2777a; }
.string { color: #c3e88d; }
.function { color: #82aaff; }
.boolean { color: #ff9cac; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-text {
    color: var(--text-light);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--text-light);
    animation: scroll-animation 2s infinite;
}

@keyframes scroll-animation {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-number {
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 500;
}

.section-title {
    color: var(--text-lightest);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    white-space: nowrap;
}

.section-line {
    height: 1px;
    background: var(--bg-lighter);
    flex: 1;
    max-width: 300px;
}

/* About Section */
.about-section {
    background: var(--bg-darker);
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 2rem;
}

.tech-item {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-light);
}

.about-image {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.about-image img {
    border-radius: var(--border-radius);
    filter: grayscale(100%) contrast(1) brightness(90%);
    transition: var(--transition);
}

.about-image:hover img {
    filter: grayscale(0%);
}

.image-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    z-index: -1;
    transition: var(--transition);
}

.about-image:hover .image-overlay {
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--bg-lighter);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--green-tint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.skill-category h3 {
    color: var(--text-lightest);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item span {
    display: block;
    color: var(--text-lighter);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    height: 6px;
    background: var(--bg-darker);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #00d9ff);
    width: 0%;
    transition: width 2s ease-in-out;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Experience Section */
.experience-section {
    background: var(--bg-darker);
}

.experience-content {
    display: flex;
    gap: 2rem;
}

.experience-tabs {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 200px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-light);
    padding: 1rem 1.5rem;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-left: 2px solid var(--bg-lighter);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    background: var(--green-tint);
    border-left-color: var(--primary-color);
}

.experience-panels {
    flex: 1;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    color: var(--text-lightest);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.company {
    color: var(--primary-color);
}

.duration {
    color: var(--text-light);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.responsibilities {
    list-style: none;
    padding: 0;
}

.responsibilities li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
}

.responsibilities li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Projects Section */
.projects-grid {
    display: grid;
    gap: 3rem;
}

.project-card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.project-card.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.project-card:nth-child(even) {
    grid-template-columns: 1fr 2fr;
}

.project-card:nth-child(even) .project-content {
    order: -1;
    text-align: right;
}

.project-card:nth-child(even) .project-tech-list {
    justify-content: flex-end;
}

.project-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1) brightness(80%);
    transition: var(--transition);
}

.project-card:hover .project-image img {
    filter: grayscale(0%);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 25, 47, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-lightest);
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.project-content {
    position: relative;
}

.project-overline {
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-title {
    color: var(--text-lightest);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-description {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    line-height: 1.6;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-tech-list li {
    color: var(--text-light);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* Contact Section */
.contact-section {
    background: var(--bg-darker);
    text-align: center;
}

.contact-content {
    margin-bottom: 4rem;
}

.contact-description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.contact-info {
    margin-top: 4rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--green-tint);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.contact-item h4 {
    color: var(--text-lightest);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 2rem 0;
    border-top: 1px solid var(--bg-lighter);
}

.footer-content {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.footer p {
    color: var(--text-light);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-line {
        display: none;
    }
    
    .experience-content {
        flex-direction: column;
    }
    
    .experience-tabs {
        flex-direction: row;
        overflow-x: auto;
        min-width: auto;
    }
    
    .tab-btn {
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid var(--bg-lighter);
    }
    
    .tab-btn:hover,
    .tab-btn.active {
        border-bottom-color: var(--primary-color);
    }
    
    .project-card {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .project-card:nth-child(even) .project-content {
        order: 0;
        text-align: center;
    }
    
    .project-card:nth-child(even) .project-tech-list {
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
    
    .custom-cursor,
    .custom-cursor-dot {
        display: none;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .code-window {
        margin-top: 2rem;
    }
    
    .skill-category {
        padding: 2rem 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4fd1c7;
}

/* Selection */
::selection {
    background: var(--green-tint);
    color: var(--primary-color);
}
