/* ===== VARIABLES & BASE ===== */
:root {
    --bg-dark: #0a0f18;
    --bg-card: #141c2b;
    --bg-card-hover: #1c273c;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent-blue: #00f0ff;
    --accent-purple: #bd00ff;
    --gradient-accent: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Canvas */
canvas#data-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.4;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-purple);
}

/* ===== NAVBAR ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    background: rgba(10, 15, 24, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo .highlight {
    color: transparent;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* ===== MAIN SECTIONS ===== */
section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 50px;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--accent-purple);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 150px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.greeting {
    font-family: var(--font-mono);
    color: var(--accent-blue);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.title {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    min-height: 40px;
}

.summary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

/* Buttons */
.hero-cta {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.primary-btn {
    background: var(--gradient-accent);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.primary-btn:hover {
    box-shadow: 0 4px 25px rgba(189, 0, 255, 0.4);
    transform: translateY(-2px);
    color: white;
}

.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-blue);
}

.secondary-btn:hover {
    background: rgba(0, 240, 255, 0.1);
}

/* CSS 3D Cube Animation for Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 800px;
}

.data-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 15s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(20, 28, 43, 0.8);
    border: 1px solid var(--accent-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--accent-purple);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.2);
}

.front  { transform: translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.right  { transform: rotateY(90deg) translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.top    { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotate {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.education-timeline {
    border-left: 2px solid var(--accent-blue);
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gradient-accent);
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--accent-blue);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 20px;
}

.contact-info {
    margin-top: 30px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--accent-purple);
}

/* ===== EXPERIENCE ===== */
.experience-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.exp-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition);
}

.exp-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
}

.exp-card:hover::before {
    opacity: 1;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.exp-header h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
}

.exp-header h4 {
    color: var(--accent-blue);
    font-weight: 400;
}

.exp-date {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(255,255,255,0.05);
    padding: 5px 10px;
    border-radius: 5px;
}

.exp-details {
    list-style-type: none;
    color: var(--text-secondary);
}

.exp-details li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.exp-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
}

/* ===== SKILLS ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

.skill-category h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skill-tags span {
    background: rgba(0, 240, 255, 0.1);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
     transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(189, 0, 255, 0.3);
}

.project-img {
    height: 200px;
    background: #1a2333;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 15px;
    background-image: repeating-linear-gradient(45deg, #111824 0, #111824 1px, transparent 1px, transparent 10px);
}

.project-img.data-viz-bg {
    background-image: radial-gradient(circle at 50% 50%, #1a2333, #0a0f18);
}

.project-tech-overlay {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tech-overlay span {
    background: rgba(10, 15, 24, 0.8);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.project-links {
    margin-top: auto;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
footer {
    background: #060a10;
    padding: 50px 5% 20px;
    text-align: center;
    margin-top: 100px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content .logo {
    margin-bottom: 20px;
}

.border-top {
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 30px;
    padding-top: 20px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* ===== ANIMATIONS & RESPONSIVE ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple burger menu usually goes here, hidden for simplicity */
    }
    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }
    .hero-visual {
        margin-top: 50px;
    }
    .hero-cta {
        justify-content: center;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .exp-header {
        flex-direction: column;
        gap: 10px;
    }
}
