/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Better touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    a, button, .project-card, .service-item, .contact-card, .skill-tag {
        min-height: 44px;
        min-width: 44px;
    }
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-card: #1a1a1a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-silver: #c0c0c0;
    --accent-light: #e8e8e8;
    --glow-silver: rgba(192, 192, 192, 0.3);
    --glow-intense: rgba(220, 220, 220, 0.5);
    --border-color: #2a2a2a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation Menu */
.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;
    padding: 1rem 0;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-silver) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    filter: brightness(1.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    position: relative;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--accent-light);
    background: rgba(192, 192, 192, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--accent-light);
    background: rgba(192, 192, 192, 0.15);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--accent-silver);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Container */
.container {
    padding-top: 80px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.header {
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

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

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--glow-silver) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.name {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-silver) 50%, var(--accent-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px var(--glow-silver);
}

.tagline {
    font-size: 1.5rem;
    color: var(--accent-silver);
    margin-top: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
}

/* About Section */
.about {
    margin: 4rem 0;
}

.profile-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.profile-card:hover {
    border-color: var(--accent-silver);
    box-shadow: 0 8px 40px var(--glow-silver);
    transform: translateY(-5px);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow-silver) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.profile-card:hover .card-glow {
    opacity: 0.3;
}

.profile-content h2 {
    font-size: 2rem;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    position: relative;
}

.profile-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-silver), transparent);
}

.profile-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin: 4rem 0 3rem 0;
    color: var(--accent-light);
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-silver), transparent);
}

/* Services Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glow-silver), transparent);
    transition: left 0.5s ease;
}

.service-item:hover::before {
    left: 100%;
}

.service-item:hover {
    border-color: var(--accent-silver);
    box-shadow: 0 5px 30px var(--glow-silver);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(100%) brightness(1.5);
}

.service-item h3 {
    font-size: 1.5rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.service-item p {
    color: var(--text-secondary);
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: block;
}

.project-card:hover {
    border-color: var(--accent-silver);
    box-shadow: 0 10px 50px var(--glow-intense);
    transform: translateY(-10px) scale(1.02);
}

.project-card:hover .card-glow {
    opacity: 0.4;
}

.project-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--accent-silver);
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px var(--glow-silver));
}

.project-card h3 {
    font-size: 1.8rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-link {
    color: var(--accent-silver);
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.project-card:hover .project-link {
    transform: translateX(10px);
    color: var(--accent-light);
}

.project-card.coming-soon {
    opacity: 0.7;
    cursor: default;
}

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

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0;
}

.skill-tag {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: var(--accent-silver);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: var(--glow-silver);
    border-radius: 50%;
    transition: width 0.4s ease, height 0.4s ease;
}

.skill-tag:hover {
    border-color: var(--accent-silver);
    box-shadow: 0 5px 20px var(--glow-silver);
    transform: translateY(-3px);
    color: var(--accent-light);
}

.skill-tag:hover::before {
    width: 200%;
    height: 200%;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-card:hover {
    border-color: var(--accent-silver);
    box-shadow: 0 5px 30px var(--glow-silver);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(100%) brightness(1.5);
}

.contact-card h3 {
    font-size: 1.3rem;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-secondary);
}

.availability {
    text-align: center;
    color: var(--accent-silver);
    font-style: italic;
    margin-top: 2rem;
    font-size: 1.1rem;
}

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

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(192, 192, 192, 0.1);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(192, 192, 192, 0.1);
    }

    .container {
        padding: 1rem;
        padding-top: 90px;
    }

    .header {
        padding: 3rem 0;
    }

    .name {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

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

    .profile-card {
        padding: 2rem;
    }

    .profile-content h2 {
        font-size: 1.6rem;
    }

    .profile-content p {
        font-size: 1rem;
    }

    .service-grid,
    .project-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-item,
    .project-card,
    .contact-card {
        padding: 1.5rem;
    }

    .service-item h3,
    .project-card h3 {
        font-size: 1.3rem;
    }

    .skills-grid {
        gap: 0.8rem;
    }

    .skill-tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .nav-container {
        padding: 0 0.5rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        width: 100%;
    }

    .nav-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .container {
        padding: 0.5rem;
        padding-top: 80px;
    }

    .header {
        padding: 2rem 0;
    }

    .logo-glow {
        width: 200px;
        height: 200px;
    }

    .name {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .section-title {
        font-size: 1.4rem;
        margin: 2rem 0 1.5rem 0;
    }

    .section-title::before {
        width: 60px;
        top: -15px;
    }

    .profile-card {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .profile-content h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .profile-content h2::after {
        width: 40px;
        bottom: -8px;
    }

    .profile-content p {
        font-size: 0.95rem;
    }

    .service-grid,
    .project-grid,
    .contact-grid {
        gap: 1rem;
    }

    .project-card,
    .service-item,
    .contact-card {
        padding: 1.2rem;
        border-radius: 12px;
    }

    .service-item h3,
    .project-card h3,
    .contact-card h3 {
        font-size: 1.2rem;
    }

    .service-item p,
    .project-card p,
    .contact-card p {
        font-size: 0.9rem;
    }

    .service-icon,
    .contact-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .project-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .project-link {
        font-size: 0.9rem;
    }

    .skills-grid {
        gap: 0.6rem;
    }

    .skill-tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .availability {
        font-size: 1rem;
        margin-top: 1.5rem;
    }

    .footer {
        padding: 2rem 0;
        margin-top: 3rem;
        font-size: 0.9rem;
    }
}
