:root {
    --bg-dark: #020617;
    --bg-darker: #000000;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #06b6d4;
    /* Cyan */
    --accent-secondary: #8b5cf6;
    /* Violet */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --card-hover-shadow: 0 20px 40px -5px rgba(6, 182, 212, 0.15);
}

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

#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
}

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

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

.hero-content {
    background: rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.1);
}

.profile-img-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    position: relative;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-dark);
}

.name {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff 20%, var(--accent-primary) 50%, var(--accent-secondary) 80%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.title-wrapper {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    display: inline-block;
}

.typing-text {
    border-right: 3px solid var(--accent-primary);
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.contact-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--accent-primary);
    border-radius: 50px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6, 182, 212, 0.05);
}

.contact-btn:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px var(--accent-primary);
    transform: translateY(-3px);
}

/* Sections General */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: #fff;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-secondary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Glass Card Style */
.tilt-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.1s ease-out;
    /* Smooth tilt */
    transform-style: preserve-3d;
}

.glossy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

/* Summary */
.summary-content {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: justify;
    line-height: 1.8;
}

/* Skills Grid */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.skill-item i {
    font-size: 2rem;
    color: #67e8f9;
    /* Bright Cyan for visibility */
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(103, 232, 249, 0.5);
}

.skill-item span {
    color: #67e8f9;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(103, 232, 249, 0.3);
}

.skill-item:hover {
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.2);
}

/* Zigzag Timeline */
.timeline-section {
    position: relative;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-secondary), transparent);
    transform: translateX(-50%);
}

.timeline-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.timeline-content {
    width: 45%;
    position: relative;
}

.timeline-date {
    width: 45%;
    text-align: right;
    font-family: 'Roboto Mono', monospace;
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.timeline-block:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-block:nth-child(even) .timeline-date {
    text-align: left;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 4px solid var(--accent-secondary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px var(--accent-secondary);
}

.job-role {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.company-name {
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.job-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    list-style: none;
}

.job-desc li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.job-desc li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-family: monospace;
}

/* Education */
.education-grid-v2 {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.edu-card {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.from-left {
    transform: translateX(-100px);
}

.from-right {
    transform: translateX(100px);
}

.scroll-reveal.visible.from-left,
.scroll-reveal.visible.from-right {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .name {
        font-size: 3rem;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-block {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 1rem;
    }

    .timeline-content {
        width: 100%;
        padding-left: 3rem;
    }

    .timeline-date {
        width: 100%;
        padding-left: 3rem;
        text-align: left !important;
        margin-bottom: -0.5rem;
    }

    .timeline-marker {
        left: 11px;
        position: absolute;
    }

    .cursor,
    .cursor-dot {
        display: none;
    }

    /* Disable custom cursor on touch */
}

/* Top Right Social Icons */
.social-icons-top-right {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1.5rem;
    z-index: 100;
}

.social-icon {
    color: var(--text-secondary);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--accent-primary);
    transform: translateY(-3px) scale(1.1);
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}
