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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    /* background: #0a0a0a; */
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    /* background: #1a1a1a; */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4a4a4a, #6a6a6a);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6a6a6a, #8a8a8a);
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #4a4a4a #1a1a1a;
}

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

.pinnacle-link {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
}

.pinnacle-link a {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.pinnacle-link a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(-100px);
    transition: all 0.5s ease;
}

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-item {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
    cursor: pointer;
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    color: #e5e7eb;
}

.nav-underline {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #4a4a4a, #6a6a6a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-item.active .nav-underline {
    transform: scaleX(1);
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.section {
    padding: 4rem 0;
    position: relative;
    /* background: #0a0a0a; */
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    z-index: 10;
}

.terminal-container {
    position: relative;
    width: 100%;
    max-width: 800px;
}

.terminal-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, #10b981, #3b82f6, #10b981);
    border-radius: 8px;
    filter: blur(8px);
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite alternate;
}

.terminal {
    position: relative;
    background: #111111;
    border: 2px solid #222222;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95);
}

.terminal-header {
    background: linear-gradient(to right, #111111, #1a1a1a);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-family: 'Monaco', 'Courier New', monospace;
}

.terminal-icon {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.minimize {
    background: #6b7280;
}

.terminal-button.maximize {
    background: #6b7280;
}

.terminal-button.close {
    background: #ef4444;
}

.terminal-body {
    padding: 1.5rem;
    min-height: 200px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    background: #111111;
}

.terminal-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-prompt {
    color: #10b981;
    font-weight: bold;
}

.terminal-text {
    color: #ffffff;
}

.terminal-link {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.terminal-link:hover {
    color: #60a5fa;
}

.terminal-cursor {
    color: #10b981;
    animation: blink 1s infinite;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: #22c55e;
}

.flip-card {
    background-color: transparent;
    width: 200px;
    height: 80px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.75rem;
    color: #9ca3af;
    font-family: 'Monaco', 'Courier New', monospace;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card-front .time-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flip-card-back .info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.clock-icon {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.time-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #9ca3af;
    font-family: 'Monaco', 'Courier New', monospace;
}

.info-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-label {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.7);
}

.info-value {
    color: #ffffff;
    font-weight: 500;
}

.info-subtext {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.8);
    margin-top: 0.25rem;
}

.info-link {
    font-size: 0.75rem;
    color: #3b82f6;
    text-decoration: none;
    margin-top: 0.25rem;
    transition: color 0.3s ease;
}

.info-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.timezone {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.7);
}

.scroll-down {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.scroll-down:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    transform: translateY(-2px);
}

.chevron-down {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
}

.gradient-orb-1 {
    top: 25%;
    left: 25%;
    width: 16rem;
    height: 16rem;
    background: radial-gradient(circle, #1a1a1a, transparent);
}

.gradient-orb-2 {
    bottom: 25%;
    right: 25%;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, #262626, transparent);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.title-text {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(to right, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #4a4a4a, #6a6a6a);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.section-subtitle {
    text-align: center;
    color: #9ca3af;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.about-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(40, 40, 40, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.about-card:hover::before {
    left: 100%;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-card-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
    overflow: hidden;
}

.about-card:hover .about-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.1);
}

.about-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.about-card-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

.about-card:hover h3 {
    color: #22c55e;
}

.about-card p {
    color: #d1d5db;
    line-height: 1.6;
    font-size: 0.95rem;
}

.about-text {
    position: relative;
}

.about-text::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #8b5cf6, #ec4899);
    opacity: 0.5;
}

.text-line {
    padding-left: 2rem;
    border-left: 1px solid rgba(139, 92, 246, 0.5);
    margin-bottom: 1.5rem;
}

.animated-text {
    color: #d1d5db;
    font-size: 1rem;
    overflow: hidden;
}

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

.skill-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(30, 30, 30, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

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

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
    color: #22c55e;
}

.skill-card:hover h3 {
    color: #22c55e;
}

.skill-card:hover p {
    color: #d1d5db;
}

.skill-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 1rem;
    color: #6b7280;
    transition: all 0.3s ease;
}

.skill-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.skill-card h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    color: #ffffff;
}

.skill-card p {
    color: #d1d5db;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

.project-card {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transform: translateY(-5px);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.6), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-overlay h3 {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: bold;
}

.project-content {
    padding: 1.5rem;
}

.project-content p {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.project-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.project-stat svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.project-links a {
    color: #6b7280;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: #e5e7eb;
}

.project-links svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

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

.stat-card {
    background: linear-gradient(135deg, #141414, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    color: #22c55e;
}

.stat-card:hover h3 {
    color: #22c55e;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.2), transparent);
    opacity: 0;
    filter: blur(4px);
    transition: opacity 1s ease;
    animation: gradient-x 3s ease infinite;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #6b7280;
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.stat-card h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffffff;
    position: relative;
    z-index: 10;
    transition: color 0.3s ease;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(to right, #9ca3af, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease;
}

footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    background: rgba(10, 10, 10, 0.9);
}

footer h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #ffffff;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #d1d5db;
    transition: color 0.3s ease;
}

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

.social-icon {
    width: 3rem;
    height: 3rem;
    padding: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link:hover .social-icon {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.5);
    transform: translateY(-3px) scale(1.05);
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

footer p {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    25% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
    75% {
        opacity: 0.8;
    }

@keyframes gradient-x {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

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

.typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #10b981;
    animation: typewriter 3s steps(30) 1s both, blink 1s step-end infinite;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-item {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    .title-text {
        font-size: 1.5rem;
    }
    
    .terminal-container {
        max-width: 100%;
    }
    
    .terminal-header {
        padding: 0.75rem;
    }
    
    .terminal-body {
        padding: 1rem;
        min-height: 150px;
        font-size: 0.75rem;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .about-text::before {
        left: -1rem;
    }
    
    .text-line {
        padding-left: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skill-card {
        padding: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .social-links {
        gap: 2rem;
    }
    
    .social-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .terminal-body {
        font-size: 0.625rem;
    }
    
    .time-display {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}