/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2E8B57;
    --primary-dark: #228B22;
    --secondary-color: #1a1a1a;
    --accent-color: #3CB371;
    --success-color: #2E8B57;
    --warning-color: #ffaa00;
    --error-color: #ff073a;

    --text-primary: #aaaaaa;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;

    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-accent: #1a1a1a;

    --border-color: #333333;
    --shadow-sm: 0 1px 2px 0 rgba(0, 255, 65, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 255, 65, 0.3), 0 2px 4px -1px rgba(0, 255, 65, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 255, 65, 0.3), 0 4px 6px -2px rgba(0, 255, 65, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 255, 65, 0.3), 0 10px 10px -5px rgba(0, 255, 65, 0.2);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    font-size: 16px;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(32, 32, 32, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 400;
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 2px;
    padding: 2px 6px;
    letter-spacing: 1px;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.6;
    font-weight: 400;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 30%, #1a1a1a 70%, #0a0a0a 100%);
    color: #aaaaaa;
    padding: 140px 0 60px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(46, 139, 87, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(60, 179, 113, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 255, 65, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 255, 65, 0.3);
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="1"/></g></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
}


@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}


.highlight {
    background: linear-gradient(135deg, #2E8B57, #228B22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
}

.image-container {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color)) border-box;
    box-shadow:
        0 0 30px rgba(46, 139, 87, 0.3),
        0 0 60px rgba(60, 179, 113, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.image-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: glow 4s ease-in-out infinite alternate;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

@keyframes glow {
    0% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 0.4; transform: scale(1.05); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    min-width: 160px;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #000000;
    border: 2px solid rgba(46, 139, 87, 0.8);
    box-shadow:
        0 4px 20px rgba(46, 139, 87, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(46, 139, 87, 0.5),
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #228B22, #2E8B57);
    border-color: #228B22;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.2), rgba(60, 179, 113, 0.2));
    color: #000000;
    border: 2px solid rgba(46, 139, 87, 0.7);
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 20px rgba(46, 139, 87, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.3), rgba(60, 179, 113, 0.3));
    border-color: rgba(46, 139, 87, 0.9);
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(46, 139, 87, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.1), rgba(60, 179, 113, 0.1));
    color: #000000;
    border: 2px solid rgba(46, 139, 87, 0.8);
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 20px rgba(46, 139, 87, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.2), rgba(60, 179, 113, 0.2));
    border-color: rgba(46, 139, 87, 0.9);
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(46, 139, 87, 0.35),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* About Section */
.about {
    background: var(--bg-primary);
}

.about-intro {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
}

.about-experience {
    margin-bottom: 3rem;
}

.experience-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.experience-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 255, 255, 0.1));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 255, 65, 0.3);
    transition: transform 0.3s ease;
}

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

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.highlight-text h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.highlight-text p {
    font-size: 0.9rem;
}

/* Expertise Section */
.expertise {
    background: var(--bg-secondary);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.expertise-card {
    --card-row-gap: clamp(0.75rem, 1vw, 1.25rem);
    --description-min-height: clamp(6.5rem, 8vw, 8.5rem);
    --tags-min-height: clamp(3.5rem, 5vw, 4.75rem);
    background: linear-gradient(145deg, var(--bg-primary), var(--bg-secondary));
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(46, 139, 87, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(46, 139, 87, 0.2);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(var(--description-min-height), 1fr) minmax(var(--tags-min-height), auto);
    row-gap: var(--card-row-gap);
    align-content: stretch;
    min-height: 340px;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.expertise-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(46, 139, 87, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
    flex-wrap: nowrap;
}

.card-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(46, 139, 87, 0.5));
    transition: all 0.3s ease;
}

.expertise-card:hover .card-icon {
    filter: drop-shadow(0 0 15px rgba(46, 139, 87, 0.8));
    transform: scale(1.1);
}

.card-header h3 {
    margin: 0;
}

.expertise-card p {
    margin: 0;
    line-height: 1.5;
    min-height: var(--description-min-height);
    display: flex;
    align-items: flex-start;
}

.expertise-card .skill-tags {
    --keyword-gap: 0.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--keyword-gap);
    margin-top: 0;
    min-height: var(--tags-min-height);
    align-content: start;
    row-gap: var(--keyword-gap);
}


.skill-tag {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.9), rgba(60, 179, 113, 0.9));
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(46, 139, 87, 0.3);
    box-shadow:
        0 2px 8px rgba(46, 139, 87, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(46, 139, 87, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #228B22, #2E8B57);
}

/* Projects Section */
.projects {
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.project-card {
    background: linear-gradient(145deg, var(--bg-primary), var(--bg-secondary));
    border-radius: var(--radius-xl);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(46, 139, 87, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(46, 139, 87, 0.2);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(46, 139, 87, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.9) contrast(1.1);
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.2);
}

.project-content {
    padding: 2rem;
    background: linear-gradient(145deg, rgba(10, 10, 10, 0.8), rgba(17, 17, 17, 0.8));
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.project-tech {
    --keyword-gap: 0.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--keyword-gap);
    justify-items: stretch;
    align-items: stretch;
    margin-top: auto;
    padding: 0;
    background: var(--bg-secondary);
}

.tech-tag {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.9), rgba(60, 179, 113, 0.9));
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(46, 139, 87, 0.3);
    box-shadow:
        0 2px 8px rgba(46, 139, 87, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.tech-tag:hover::before {
    left: 100%;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(46, 139, 87, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #228B22, #2E8B57);
}

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

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-link:hover {
    background: var(--primary-color);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
}

/* Passion Projects Section */
.passion-projects {
    background: var(--bg-secondary);
}

/* Passion project card hover links */
.passion-project-card {
    --link-offset: 1.5rem;
    --link-height: 2.2rem;
    --link-gap: 1.5rem;
    --card-row-gap: clamp(0.75rem, 1vw, 1.25rem);
    --description-min-height: clamp(7rem, 9vw, 9rem);
    --tags-min-height: clamp(3.75rem, 5vw, 5rem);
    position: relative;
    min-height: 400px;
    padding-bottom: calc(var(--link-offset) + var(--link-height) + var(--link-gap));
    display: grid;
    grid-template-rows: auto minmax(var(--description-min-height), 1fr) minmax(var(--tags-min-height), auto);
    row-gap: var(--card-row-gap);
    align-content: stretch;
}

.passion-project-card .card-header {
    align-items: center;
    gap: 0.85rem;
    flex-wrap: nowrap;
}

.passion-project-card .card-header h3 {
    margin: 0;
}

.passion-project-card p {
    margin: 0;
    line-height: 1.5;
    min-height: var(--description-min-height);
    display: flex;
    align-items: flex-start;
}

.passion-project-card .skill-tags {
    margin-top: 0;
    min-height: var(--tags-min-height);
    align-content: start;
    align-self: stretch;
    row-gap: var(--keyword-gap);
}

.passion-project-card .project-links {
    position: absolute;
    bottom: var(--link-offset);
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--link-gap);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    min-height: var(--link-height);
}

.passion-project-card:hover .project-links {
    opacity: 1;
    pointer-events: auto;
}

.project-details-link,
.project-github-link {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    background: rgba(46, 139, 87, 0.1);
    color: var(--primary-color);
}

.project-details-link:hover,
.project-github-link:hover {
    background: var(--primary-color);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
}

/* Featured project card hover links */
.project-card {
    --link-offset: 1.5rem;
    --link-height: 2.2rem;
    position: relative;
    min-height: 360px;
    padding-bottom: calc(var(--link-offset) + var(--link-height) + var(--keyword-gap));
}

.project-card .project-links {
    position: absolute;
    bottom: var(--link-offset);
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover .project-links {
    opacity: 1;
    pointer-events: auto;
}

/* Project Detail Pages */
.project-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 30%, #1a1a1a 70%, #0a0a0a 100%);
    color: #aaaaaa;
    padding: 120px 0 80px;
    text-align: center;
}

.project-hero {
    max-width: 800px;
    margin: 0 auto;
}

.project-icon-large {
    font-size: 4rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(46, 139, 87, 0.5));
}

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

.project-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-status,
.project-year {
    padding: 0.5rem 1rem;
    background: rgba(46, 139, 87, 0.1);
    border: 1px solid rgba(46, 139, 87, 0.3);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.project-overview {
    background: var(--bg-primary);
    padding: 80px 0;
}

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

.project-description h2,
.project-features h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(46, 139, 87, 0.2);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.feature-item p {
    text-align: center;
    color: var(--text-secondary);
}

.project-tech {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.project-tech h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-category {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(46, 139, 87, 0.2);
}

.tech-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tech-item {
    background: transparent;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(46, 139, 87, 0.3);
    text-align: center;
}

.project-journey {
    background: var(--bg-primary);
    padding: 80px 0;
}

.project-journey h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.journey-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.journey-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.journey-marker {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(46, 139, 87, 0.3);
    z-index: 1;
}

.journey-content {
    margin-left: 2rem;
    padding-top: 0.5rem;
}

.journey-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.journey-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-learnings {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.project-learnings h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.learning-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(46, 139, 87, 0.2);
}

.learning-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.learning-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-challenges {
    background: var(--bg-primary);
    padding: 80px 0;
}

.project-challenges h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.challenge-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(46, 139, 87, 0.2);
}

.challenge-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.challenge-item p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.challenge-item strong {
    color: var(--text-primary);
}

.project-future {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.project-future h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.future-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.future-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(46, 139, 87, 0.2);
}

.future-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.future-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-links-section {
    background: var(--bg-primary);
    padding: 60px 0;
}

.project-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Resume Section */
.resume {
    background: var(--bg-secondary);
}

.resume-download {
    text-align: center;
    margin-bottom: 3rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.resume-highlights {
    display: grid;
    gap: 2rem;
}

.resume-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.competency-list {
    list-style: none;
    padding: 0;
}

.competency-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.competency-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.competency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.competency-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.competency-item:hover {
    transform: translateX(5px);
}

.competency-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.competency-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.availability {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 255, 65, 0.05);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.availability h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.availability ul {
    list-style: none;
    padding: 0;
}

.availability li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.availability li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

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

.skill-category h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.skill-items {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Contact Section */
.contact {
    background: var(--bg-primary);
}

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

.contact-info h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-info > p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-dark);
}

/* Contact Form */
.form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: #aaaaaa;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.2);
}

/* Footer */
.footer {
    background: #000000;
    color: #aaaaaa;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 400;
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 2px;
    padding: 2px 6px;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: rgba(209, 213, 219, 0.8);
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #aaaaaa;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(209, 213, 219, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #aaaaaa;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    color: rgba(209, 213, 219, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #aaaaaa;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(51, 51, 51, 0.5);
    color: rgba(209, 213, 219, 0.8);
}

.footer-tagline {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.footer-disclaimer {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .expertise-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-card .stat-number {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat {
        min-width: auto;
        width: 100%;
    }

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

    .competency-grid {
        grid-template-columns: 1fr;
    }

    .availability ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .expertise-card,
    .project-card {
        padding: 1.5rem;
    }
}
