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

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-cyan-light: #22d3ee;
    --accent-emerald-light: #34d399;
    --border-color: #334155;
    --shadow-cyan: rgba(6, 182, 212, 0.2);
    --shadow-emerald: rgba(16, 185, 129, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 16px 0;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-emerald));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-brand a:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

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

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s ease;
}

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

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 4s ease-in-out infinite;
}

.orb-1 {
    top: 80px;
    left: 80px;
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.2);
}

.orb-2 {
    bottom: 80px;
    right: 80px;
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.2);
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 24px;
    color: var(--accent-cyan);
    font-size: 14px;
    margin-bottom: 32px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    background: linear-gradient(to right, var(--accent-cyan-light), var(--accent-emerald-light), var(--accent-cyan-light));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    animation: fadeInUp 1s ease 0.1s both, gradient 6s ease infinite;
}

@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(24px, 4vw, 36px);
    color: var(--text-secondary);
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 16px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 48px;
    animation: fadeInUp 1s ease 0.3s both;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 1s ease 0.4s both;
}

.social-link {
    padding: 12px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    border-color: var(--accent-cyan);
    background: var(--bg-secondary);
    color: var(--accent-cyan);
    transform: translateY(-4px);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 1s ease 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(to right, #0891b2, #059669);
    color: white;
    box-shadow: 0 10px 15px -3px var(--shadow-cyan);
}

.btn-primary:hover {
    background: linear-gradient(to right, #06b6d4, #10b981);
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px var(--shadow-cyan);
}

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

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: scale(1.05);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

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

.section-alt {
    background: rgba(30, 41, 59, 0.3);
}

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

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-emerald));
    border-radius: 2px;
    margin: 0 auto;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    margin-top: 16px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.text-highlight {
    color: var(--accent-cyan);
    font-weight: 600;
}

.text-accent {
    color: var(--accent-emerald);
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.stat-card {
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.highlights {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.highlight-card {
    padding: 24px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    gap: 16px;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-4px);
}

.highlight-icon {
    padding: 12px;
    background: linear-gradient(to bottom right, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.2));
    border-radius: 8px;
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.1);
}

.highlight-content h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.highlight-content p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Experience Section */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.experience-card {
    padding: 32px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.5s ease;
}

.experience-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 20px 25px -5px var(--shadow-cyan);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.company-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.experience-card:hover .company-name {
    color: var(--accent-cyan);
}

.current-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(to right, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent-cyan);
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 12px;
}

.role-title {
    font-size: 20px;
    color: var(--accent-emerald);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.experience-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.responsibilities {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.responsibilities li {
    display: flex;
    align-items: start;
    gap: 12px;
    color: var(--text-secondary);
    padding-left: 8px;
}

.responsibilities li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    margin-top: 10px;
    flex-shrink: 0;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.skill-category {
    animation: fadeInUp 0.5s ease both;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-emerald));
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-cyan {
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--accent-cyan);
}

.skill-cyan:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-cyan);
    transform: scale(1.05);
}

.skill-emerald {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
}

.skill-emerald:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--accent-emerald);
    transform: scale(1.05);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    padding: 24px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.5s ease;
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px var(--shadow-cyan);
}

.project-icon {
    display: inline-flex;
    padding: 12px;
    background: linear-gradient(to bottom right, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.2));
    border-radius: 8px;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

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

.project-category {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 4px 12px;
    background: rgba(30, 41, 59, 0.8);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 12px;
    border-radius: 12px;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--accent-cyan);
}

.project-description {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tech-tag {
    padding: 4px 8px;
    background: rgba(30, 41, 59, 0.5);
    color: var(--text-secondary);
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-family: 'Roboto Mono', monospace;
}

.tech-more {
    color: var(--text-muted);
    font-size: 12px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-cyan);
    font-size: 14px;
    font-weight: 500;
}

.project-link svg {
    transition: transform 0.3s ease;
}

.project-card:hover .project-link svg {
    transform: translateX(4px);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 32px;
}

.contact-card {
    padding: 32px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 24px;
}

.contact-card h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    padding: 12px;
    background: linear-gradient(to bottom right, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.2));
    border-radius: 8px;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-value {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-quote {
    padding: 24px;
    background: linear-gradient(to bottom right, rgba(6, 182, 212, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 8px;
}

.contact-quote p {
    color: var(--text-secondary);
    font-style: italic;
}

.contact-form-wrapper {
    padding: 32px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group textarea {
    resize: none;
}

.form-message {
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    text-align: center;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Footer */
.footer {
    padding: 48px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand h3 {
    font-size: 24px;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-emerald));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links h4,
.footer-social h4 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-social .social-links {
    justify-content: flex-start;
    margin: 0;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    animation: slideUp 0.3s ease;
    margin: 20px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.modal-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-emerald));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.modal-description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.modal-section {
    margin-bottom: 32px;
}

.modal-section h4 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.modal-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-section li {
    display: flex;
    align-items: start;
    gap: 12px;
    color: var(--text-secondary);
}

.modal-section li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.modal-tag {
    padding: 8px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent-cyan);
    font-size: 14px;
    border-radius: 8px;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .modal-content {
        padding: 24px;
    }

    .section {
        padding: 64px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 32px;
    }
}
