:root {
    --bg-primary: #0a0c10;
    --bg-secondary: #161b22;
    --accent: #58a6ff;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --card-bg: #21262d;
    --hover: #2f353d;
    --bg-secondary-rgb: 30, 30, 30;
    --accent-rgb: 100, 100, 255;
    --accent-dark-rgb: 80, 80, 200;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
}

/* Improved Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

.navigation {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

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

main {
    position: relative;
    z-index: 2;
}

section {
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#home h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

#home p {
    font-size: 1.5rem;
}

/* Section Styles */
section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Work Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    font-size: 0.85rem;
    color: var(--accent);
}

/* About Section */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.about-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.experience {
    margin-bottom: 3rem;
}

.experience h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.experience-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.exp-header {
    margin-bottom: 1rem;
}

.exp-header h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.company {
    color: var(--accent);
    font-weight: 500;
    margin-right: 1rem;
}

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

.exp-details {
    list-style: none;
}

.exp-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

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

.skills-section {
    margin-bottom: 3rem;
}

.skills-section h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.skill-category li::before {
    content: "▹";
    color: var(--accent);
    margin-right: 0.5rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #fff;
}

/* Contact Section Styles */
.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-content h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent);
    font-size: 2.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-link:hover {
    transform: translateX(10px);
    background: var(--hover);
    border-color: var(--accent);
}

.contact-link i {
    color: var(--accent);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.1);
}

.contact-form button {
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, var(--accent), var(--accent-dark));
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
}

.contact-form button:active {
    transform: translateY(0);
}

/* Optional: Add loading state */
.contact-form button.loading {
    opacity: 0.7;
    cursor: wait;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    section h2 {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-text {
        font-size: 1.1rem;
    }

    .contact-link {
        padding: 0.75rem;
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-greeting {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-description {
    max-width: 600px;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

/* Button Styles */
.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--accent);
    color: var(--bg-primary);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(88, 166, 255, 0.3);
}

.secondary-btn {
    border: 1px solid var(--accent);
    color: var(--accent);
}

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

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.hero-greeting { animation-delay: 0.2s; }
.hero-title { animation-delay: 0.4s; }
.hero-subtitle { animation-delay: 0.6s; }
.hero-description { animation-delay: 0.8s; }
.hero-cta { animation-delay: 1s; }

/* Smooth section transitions */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add translucency to cards/sections */
.card, 
.about-me, 
.skills-container, 
.projects-container,
.contact-form {
    background-color: rgba(var(--bg-secondary-rgb), 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
}

/* Update form elements to be translucent */
.contact-form input,
.contact-form textarea {
    background-color: rgba(var(--bg-secondary-rgb), 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Make buttons translucent */
button,
.contact-form button {
    background: linear-gradient(45deg, 
        rgba(var(--accent-rgb), 0.8), 
        rgba(var(--accent-dark-rgb), 0.8));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.about-me {
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 800px;
}

.hero-content {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.details {
    line-height: 1.6;
}

.skills-section {
    margin: 1.5rem 0;
}

.social-links {
    margin-top: 1.5rem;
}

.social-links span {
    margin-right: 1.5rem;
}

.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
    background-color: rgba(var(--bg-secondary-rgb), 0.7);
    backdrop-filter: blur(10px);
}

.home-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 2rem;
}

.text-content {
    flex: 1;
}

.animate-text {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.typing-container {
    font-size: 2rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
}

.static-text {
    color: var(--text-secondary);
    white-space: nowrap;
}

.dynamic-text {
    color: var(--accent);
    font-weight: 600;
    margin-left: 4px;
}

/* Typed.js cursor styling */
.typed-cursor {
    color: var(--accent);
    font-size: 2rem;
    margin-left: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .typing-container {
        font-size: 1.5rem;
        justify-content: center;
    }
    
    .typed-cursor {
        font-size: 1.5rem;
    }
}

/* Profile image adjustments */
.profile-image {
    flex: 0.6;  /* Reduced from 0.8 */
    max-width: 300px;  /* Reduced from 400px */
    margin: 0 auto;  /* Center the image */
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* CTA buttons adjustments */
.cta-buttons {
    display: flex;
    gap: 1rem;  /* Reduced from 1.5rem */
    margin-top: 1.5rem;  /* Reduced from 2.5rem */
}

.primary-btn, .secondary-btn {
    padding: 0.8rem 1.5rem;  /* Reduced padding */
    font-size: 1rem;  /* Slightly smaller font */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-image {
        max-width: 220px;  /* Even smaller on mobile */
    }
    
    .cta-buttons {
        gap: 0.8rem;
        justify-content: center;
    }
}

/* About Section Styling */
.about-section {
    padding: 6rem 2rem;
    background-color: rgba(var(--bg-secondary-rgb), 0.7);
    backdrop-filter: blur(10px);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    text-align: center;
    background: linear-gradient(45deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--accent), transparent);
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 2rem;
    margin: 0 auto;
    max-width: 1100px;
}

.skill-box {
    background: rgba(var(--bg-secondary-rgb), 0.5);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    border-radius: 15px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(var(--accent-rgb), 0.15);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
}

.skill-icon {
    font-size: 1.8rem;
}

.skill-header h3 {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-list span {
    background: rgba(var(--accent-rgb), 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--accent-rgb), 0.05);
}

.skill-list span:hover {
    background: rgba(var(--accent-rgb), 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-section {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .about-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .skill-box {
        padding: 2rem;
    }

    .skill-header h3 {
        font-size: 1.2rem;
    }
}

.footer {
    flex-shrink: 0;
    background: rgba(22, 22, 22, 0.9);  /* Matching navbar background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(var(--accent-rgb), 0.1);
    width: 100%;
    padding: 1rem 0;
    position: relative;
    z-index: 100;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Base styles to ensure proper layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--bg-primary);
}

.main-content {
    flex: 1 0 auto;
}