:root {
    --primary: #000000;
    --secondary: #6b7280;
    --accent: #3b82f6;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --border: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 24px;
}

.nav-brand {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--primary);
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.nav-brand:hover {
    opacity: 0.7;
    text-decoration: none;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    margin: 3px 0;
    transition: 0.3s;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

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

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

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
    font-size: 0.9375rem;
}

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

.btn-primary:hover {
    background-color: #1a1a1a;
    transform: translateY(-1px);
}

.btn-outline {
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    background-color: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    background-color: var(--bg-light);
}

/* Sections */
.section {
    padding: 96px 0;
}

.section-alt {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

/* About Section */
.profile-image {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: -2rem;
}

.profile-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 10%;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: scale(1.3);
}

.about-content {
    max-width: 740px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.personal-info {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.personal-info p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.personal-info p:last-child {
    margin-bottom: 0;
}

/* Skills Section - Clean Design */
.skills {
    margin-top: 4rem;
}

.skills h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.skill-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill-category h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.skill-tag {
    background-color: var(--bg-light);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* Services/Projects Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.service-preview-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.service-preview {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background-color: var(--bg-light);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.service-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: -0.02em;
}

.service-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.service-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.service-url {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.service-tech span {
    background-color: var(--bg-light);
    color: var(--text-secondary);
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    align-self: flex-end;
    margin-top: auto;
}

.service-link:hover {
    gap: 0.75rem;
}

.service-link svg {
    transition: transform 0.2s ease;
}

.service-link:hover svg {
    transform: translate(2px, -2px);
}

.service-link.disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Blog/NIXSENSE Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

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

.blog-thumbnail {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: var(--bg-light);
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-thumbnail-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.blog-thumbnail-placeholder[data-gradient="1"] {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
}

.blog-thumbnail-placeholder[data-gradient="2"] {
    background: linear-gradient(135deg, #1DB954 0%, #1ED760 100%);
}

.blog-thumbnail-placeholder[data-gradient="3"] {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.blog-thumbnail-placeholder[data-gradient="4"] {
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
}

.blog-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.blog-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.blog-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: var(--bg-light);
    aspect-ratio: 4/3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Resume Section */
.resume-content {
    max-width: 720px;
    margin: 0 auto;
}

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

.resume-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.resume-item {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    position: relative;
}

.resume-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 4px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 50%;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.resume-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

.resume-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.resume-company {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.resume-item ul {
    list-style-position: inside;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
    padding: 2rem 0;
}

.contact-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-item {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 700;
    transition: color 0.2s ease;
    letter-spacing: -0.02em;
}

.contact-item:hover {
    color: var(--accent);
}

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

.footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Design */
/* Tablet styles */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile specific styles for service cards */
@media (max-width: 768px) {
    .service-card {
        max-width: 100%;
    }
    
    .service-preview {
        aspect-ratio: 3 / 2 !important;
        width: 100%;
        height: auto !important;
        min-height: 200px;
    }
    
    .service-preview img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .service-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    .service-image-placeholder {
        height: 100%;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        border-top: 1px solid var(--border);
    }

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

    .nav-toggle {
        display: flex;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

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

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

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card {
        max-width: 100%;
    }

    .blog-icon {
        font-size: 2rem;
    }
    
    .blog-subtitle {
        font-size: 0.75rem;
    }

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

    .resume-header {
        flex-direction: column;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 3rem;
    }
}