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

:root {
    --primary: #F97316;
    --primary-dark: #EA580C;
    --primary-light: #FB923C;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border: #e5e7eb;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --bg-light: #111827;
    --bg-white: #1f2937;
    --border: #374151;
}

body.dark-mode nav {
    background: rgba(31, 41, 55, 0.95);
    border-bottom-color: #374151;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #0f172a 100%);
}

body.dark-mode .hero-text h1 {
    color: #f9fafb;
}

body.dark-mode .hero-text p {
    color: #d1d5db;
}

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

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

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

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

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

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

.theme-toggle {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.2em;
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: rotate(20deg);
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.resume-btn {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.resume-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #f3f4f6 100%);
}

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

.hero-text h1 {
    font-size: 4em;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #374151;
}

.hero-text p {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 32px;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.visual-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.visual-card:hover {
    transform: translateY(-24px) !important;
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.2);
}

.visual-card:nth-child(1) {
    top: 0;
    right: 0;
    width: 200px;
    border-left: 4px solid var(--primary);
}

.visual-card:nth-child(2) {
    bottom: 100px;
    left: 0;
    width: 220px;
    border-left: 4px solid var(--primary);
    animation-delay: 2s;
}

.visual-card:nth-child(3) {
    bottom: 0;
    right: 60px;
    width: 180px;
    border-left: 4px solid var(--primary);
    animation-delay: 4s;
}

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

section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

.section-header h2 {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.about-text h3 {
    font-size: 2em;
    margin-bottom: 24px;
    color: var(--primary);
}

.about-text p {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 20px;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.skill-icon.red { background: var(--primary-dark); }
.skill-icon.blue { background: var(--primary); }
.skill-icon.purple { background: var(--primary-light); }
.skill-icon.teal { background: var(--text-dark); }

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 12px 32px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:nth-child(1).visible {
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.project-card:nth-child(2).visible {
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.project-card:nth-child(3).visible {
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.project-image {
    height: 200px;
    background: var(--bg-light);
    border-bottom: 3px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.project-type {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.project-type.red-team { color: #ef4444; background: #fef2f2; }
.project-type.blue-team { color: var(--primary); background: #eff6ff; }

.project-content {
    padding: 28px;
}

.project-content h3 {
    font-size: 1.4em;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    color: var(--text-dark);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

.blog-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-card:nth-child(1).visible {
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.blog-card:nth-child(2).visible {
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.blog-card:nth-child(3).visible {
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.blog-image {
    height: 220px;
    background: var(--bg-light);
    border-bottom: 3px solid var(--primary);
}

.blog-content {
    padding: 28px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.9em;
    color: var(--text-light);
}

.blog-content h3 {
    font-size: 1.4em;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    gap: 12px;
}

.contact-section {
    background: white;
    border-radius: 24px;
    padding: 80px 60px;
    text-align: center;
    box-shadow: 0 4px 40px rgba(0,0,0,0.08);
}

.contact-section h2 {
    font-size: 3em;
    margin-bottom: 24px;
}

.contact-section p {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s;
    display: inline-block;
}

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

.contact-btn.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.contact-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
}

footer {
    text-align: center;
    padding: 60px 0 40px 0;
    color: var(--text-light);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .hero-content, .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-visual {
        display: none;
    }

    nav ul {
        gap: 20px;
    }

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

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