:root {
    --bg-color: #FAFAFA;
    --surface-color: #FFFFFF;
    --border-color: #EAEAEA;
    --text-primary: #111111;
    --text-secondary: #666666;
    --accent-color: #0070F3;
    --accent-hover: #0051B3;
    --success-color: #0070F3;
    --gradient-accent: linear-gradient(90deg, #0070F3, #F81CE5);
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Smooth Animated Aurora Background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(-45deg, #e6f0ff, #ffe6f0, #e6fffa, #f0e6ff);
    background-size: 400% 400%;
    animation: smoothAurora 15s ease infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes smoothAurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Subtle grid overlay to keep the tech vibe */
.grid-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

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

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 1.5rem;
    }
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 112, 243, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 112, 243, 0.4);
    transform: translateY(-2px);
    color: white;
}

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

.btn-secondary:hover {
    border-color: var(--text-secondary);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Hero Section */
.hero {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr 1.1fr;
    }
}

.greeting {
    color: var(--accent-color);
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.name {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 1.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links-hero {
    display: flex;
    gap: 1.2rem;
    font-size: 1.5rem;
}

.social-links-hero a {
    color: var(--text-secondary);
}

.social-links-hero a:hover {
    color: var(--text-primary);
}

/* Terminal SystemCTL styled */
.terminal-window {
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.terminal-header {
    background-color: #161b22;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30363d;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    color: #8b949e;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    padding-right: 60px;
}

.terminal-body {
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.cmd {
    color: #e6edf3;
    margin-bottom: 0.5rem;
}

.prompt {
    color: #3fb950;
    margin-right: 0.5rem;
}

.terminal-output {
    color: #8b949e;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.success {
    color: #3fb950;
}

.active-status {
    color: #3fb950;
    font-weight: bold;
}

.cursor {
    display: inline-block;
    width: 8px;
    background: #e6edf3;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Skills Matrix */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.tech-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.tech-item i {
    font-size: 2.2rem;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.tech-item:hover i {
    transform: scale(1.1);
}

.tech-item span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Experience */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exp-card {
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.exp-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .exp-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.exp-role {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.exp-company {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.exp-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-color);
    background: rgba(47, 129, 247, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    align-self: flex-start;
}

.exp-details {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.exp-details li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.project-top {
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-color);
    background: rgba(47, 129, 247, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.project-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

.project-body p {
    margin-bottom: 1rem;
}

/* Certifications */
.cert-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.cert-item {
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.cert-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.cert-img-fallback {
    font-size: 3rem;
}

.cert-info h4 {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.cert-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-flex {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-flex {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-left h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.footer-left p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-info {
    margin-top: 0.5rem;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-right {
        flex-direction: row;
        gap: 4rem;
    }
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media(max-width: 768px) {
    .name {
        font-size: 2.5rem;
    }

    .title {
        font-size: 1.25rem;
    }
}