:root {
    --primary: #2563eb;
    --dark: #0f172a;
    --light: #f8fafc;
    --terminal-bg: #1e1e1e;
    --accent: #10b981;
    --r-blue: #276DC3; /* Official R Language Color */
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
html { scroll-behavior: smooth; }
body { background: var(--light); color: var(--dark); line-height: 1.6; overflow-x: hidden; }

/* Navigation */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 10%; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky; top: 0; z-index: 1000;
}
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -1px; }
.logo span { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* Hero Section */
.hero {
    height: 70vh; display: flex; align-items: center; justify-content: center;
    text-align: center; background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    padding: 0 20px;
}
.hero h1 { font-size: 3rem; margin-bottom: 1rem; color: var(--dark); }
.highlight { color: var(--primary); }

/* Terminal Window */
.terminal-window {
    background: var(--terminal-bg); border-radius: 8px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); margin: 2rem auto; max-width: 800px;
}
.terminal-header { background: #333; padding: 10px; display: flex; align-items: center; }
.dot { height: 12px; width: 12px; border-radius: 50%; margin-right: 8px; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.terminal-header p { color: #ccc; font-size: 0.8rem; flex-grow: 1; text-align: center; }
.terminal-body { padding: 25px; color: #fff; font-family: 'Courier New', monospace; font-size: 0.95rem; text-align: left; }
.prompt { color: var(--accent); }
.skills-list { color: #38bdf8; margin: 10px 0; }
.cursor { animation: blink 1s infinite; font-weight: bold; color: var(--accent); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Grids & Containers */
.container { padding: 5rem 10%; }
.section-title { margin-bottom: 3rem; text-align: center; font-size: 2.2rem; position: relative; }
.section-title::after { content: ''; width: 50px; height: 4px; background: var(--primary); position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); }

.skills-grid, .projects-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2.5rem; 
}

/* Cards Styling */
.skill-card { 
    background: white; 
    padding: 2.5rem; 
    border-radius: 15px; 
    text-align: center; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.skill-card:hover { 
    transform: translateY(-12px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
    border-color: var(--primary);
}
.skill-card i { font-size: 3rem; color: var(--primary); margin-bottom: 1.5rem; }
.skill-card h3 { margin-bottom: 1rem; font-size: 1.4rem; }

/* Buttons */
.btn { padding: 0.8rem 2rem; border-radius: 6px; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; margin: 10px; transition: 0.3s; }
.github-btn { background-color: #24292e; color: white; border: 1px solid #24292e; }
.github-btn:hover { background-color: #444d56; transform: scale(1.05); }
.secondary { border: 2px solid var(--primary); color: var(--primary); }
.secondary:hover { background: rgba(37, 99, 235, 0.1); }

/* Footer */
footer { background: var(--dark); color: white; text-align: center; padding: 3rem; }
.socials { margin-top: 1rem; font-size: 1.5rem; }
.socials a { color: white; margin: 0 10px; transition: 0.3s; }
.socials a:hover { color: var(--primary); }

/* Mobile Optimization */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .nav-links { display: none; }
    .container { padding: 3rem 5%; }
}


/*Added section for the projects*/
/* Project Specific Styling */
.project-tag {
    font-size: 0.7rem;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: bold;
}

.project-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.project-links a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: 0.3s;
}

.project-links a:hover {
    color: var(--dark);
    text-decoration: underline;
}

.project-links .demo {
    color: var(--accent);
}
/*Added section for the projects*/