/* Base Styles */
:root {
    --bg-dark: #0a0e27;
    --bg-darker: #050812;
    --text-light: #ffffff;
    --text-muted: #b8bfc9;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.35);
    --surface: #1a1f3a;
    --surface-light: #232946;
    --border: #2d3561;
    --glass-bg: rgba(26, 31, 58, 0.4);
    --glass-border: rgba(228, 230, 235, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.55;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Canvas Background */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .admin-link {
    color: var(--accent);
    opacity: 0.6;
}

.nav-links .admin-link:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 40px;
}

.hero-card-center {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glass Card */
.hero-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3.5rem 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(6, 182, 212, 0.2) 0%,
        rgba(228, 230, 235, 0.05) 50%,
        rgba(6, 182, 212, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hero-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.4;
    font-family: 'Courier New', Courier, monospace;
    min-height: 1.75rem;
}

.typewriter-text {
    color: var(--text-light);
}

.typewriter-cursor {
    color: var(--text-light);
    animation: blink 1s step-end infinite;
}

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

.hero-bio {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

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

.pill-btn {
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pill-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.pill-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-1px);
}

.pill-btn:hover::before {
    opacity: 1;
}

/* Identity Image */
.hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.identity-photo {
    width: 340px;
    height: 340px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.hero-tagline {
    font-size: 0.85rem;
    color: rgba(228, 230, 235, 0.5);
    font-style: italic;
    text-align: center;
    font-weight: 400;
}

/* Section Styles */
section {
    padding: 6rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Liquid Glass Tile */
.glass-tile {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                rgba(6, 182, 212, 0.08) 0%,
                transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.glass-tile:hover::before {
    opacity: 1;
}

.glass-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(6, 182, 212, 0.3);
}

/* Clickable project cards */
.projects-grid .glass-tile {
    cursor: pointer;
}

.projects-grid .glass-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    border-color: rgba(6, 182, 212, 0.5);
}

.projects-grid .glass-tile:hover h3 {
    color: var(--accent);
}


.glass-tile h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.glass-tile p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.glass-tile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.glass-tile li {
    color: var(--text-muted);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.glass-tile li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* About Section */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.about-photo {
    width: 300px;
    height: 300px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    flex-shrink: 0;
}

.about-text-large {
    flex: 1;
}

.about-text-large p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.glass-tile p strong {
    color: var(--text-light);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.skills-grid .glass-tile {
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.skills-grid .glass-tile h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-content: flex-start;
}

.skill-tag {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.skill-tag:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

/* Experience Carousel */
.carousel-wrapper {
    position: relative;
}

.carousel-fade {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.5rem calc(50% - min(325px, 42.5vw));
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    flex: 0 0 min(650px, 85vw);
    scroll-snap-align: center;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    flex-shrink: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.carousel-btn:hover {
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
}

@media (max-width: 768px) {
    .carousel-track {
        padding: 0.5rem calc(50% - 42.5vw);
    }
}

.exp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-meta .company {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
}

.exp-meta .date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Project Controls */
.projects-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.project-filters {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.project-filters::-webkit-scrollbar {
    height: 6px;
}

.project-filters::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.filter-btn {
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    white-space: nowrap;
    flex: 0 0 auto;
}

.filter-btn:hover {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.1);
}

.filter-btn.active {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

.project-view-toggle {
    display: inline-flex;
    align-self: flex-start;
    gap: 0.4rem;
    padding: 0.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
}

.view-btn {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.view-btn:hover {
    color: var(--text-light);
}

.view-btn.active {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.35);
    color: var(--accent);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.projects-grid.is-hidden {
    display: none;
}

.projects-grid .glass-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 0.8rem;
    min-height: 185px;
    transition: all 0.3s;
}

.projects-grid .glass-tile.hidden {
    display: none;
}

.projects-grid .glass-tile h3 {
    font-size: 1.05rem;
    margin-bottom: 0;
    line-height: 1.35;
}

.card-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s, transform 0.25s;
}

.projects-grid .glass-tile:hover .card-hint {
    opacity: 1;
    transform: translateY(0);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.projects-grid .tech-tags {
    margin-top: 0;
}

.projects-graph {
    position: relative;
    width: 100%;
    min-height: 520px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.08), transparent 55%), rgba(10, 14, 39, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.projects-graph canvas {
    width: 100%;
    height: 520px;
    display: block;
}

.projects-graph.is-hidden {
    display: none;
}

.graph-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-9999px, -9999px);
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    background: rgba(5, 8, 18, 0.92);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: var(--text-light);
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .project-view-toggle,
    .projects-graph {
        display: none;
    }
}

.tech-tag {
    background: rgba(56, 189, 248, 0.14);
    color: #67e8f9;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    border: 1px solid rgba(56, 189, 248, 0.4);
    transition: all 0.2s;
    white-space: nowrap;
}

.tech-tag:hover {
    background: rgba(56, 189, 248, 0.24);
    border-color: rgba(56, 189, 248, 0.6);
}

/* Blog Grid */
.blog-scroll-wrapper {
    position: relative;
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem 4px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 40px, black calc(100% - 60px), transparent);
    mask-image: linear-gradient(to bottom, transparent, black 40px, black calc(100% - 60px), transparent);
}

.blog-scroll-wrapper::-webkit-scrollbar {
    width: 6px;
}

.blog-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.blog-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

.blog-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

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

@media (max-width: 1100px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.blog-card-link:hover .blog-card {
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.blog-card .date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.blog-tag {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.blog-card .excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Project Modal */
.project-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 18, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.project-modal-overlay.active {
    display: flex;
}

.project-modal {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    animation: modalSlideIn 0.25s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 0.25rem;
}

.modal-close:hover {
    color: var(--accent);
}

.project-modal h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    padding-right: 2rem;
    color: var(--text-light);
}

.project-modal h2::after {
    display: none;
}

.modal-meta {
    margin-bottom: 1rem;
}

.modal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.modal-tags .tech-tag {
    font-size: 0.8rem;
}

.modal-description {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Modal Media */
.modal-media {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.modal-media:empty {
    display: none;
}

.modal-media-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-image {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.modal-media-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #67e8f9;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.modal-link:hover {
    background: rgba(56, 189, 248, 0.24);
    border-color: rgba(56, 189, 248, 0.65);
    transform: translateY(-1px);
}

.modal-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Scrollbar styling for modal */
.project-modal::-webkit-scrollbar {
    width: 6px;
}

.project-modal::-webkit-scrollbar-track {
    background: transparent;
}

.project-modal::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .project-modal {
        padding: 1.75rem;
        margin: 1rem;
        max-height: 90vh;
    }

    .project-modal h2 {
        font-size: 1.3rem;
    }
}

/* Contact Section */
.contact-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
}

.contact-link:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: rgba(6, 182, 212, 0.1);
}

.contact-link span {
    display: block;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-card {
        padding: 2.5rem 2rem;
    }

    .hero-name {
        font-size: 2.75rem;
    }

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

    .hero-bio {
        font-size: 1rem;
    }

    .identity-photo {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    section {
        padding: 4rem 0;
    }

    section h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-card {
        padding: 2rem 1.5rem;
    }

    .hero-name {
        font-size: 2.25rem;
    }

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

    .hero-bio {
        font-size: 0.95rem;
    }

    .identity-photo {
        width: 240px;
        height: 240px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .pill-btn {
        padding: 0.55rem 1.25rem;
        font-size: 0.875rem;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .about-photo {
        width: 240px;
        height: 240px;
    }

    .about-text-large p {
        font-size: 1rem;
    }

    .skills-grid,
    .projects-grid,
    .blog-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
