:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --secondary: #172554;
    --accent: #F59E0B;
    --light: #F8FAFC;
    --dark: #0F172A;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--light);
    transition: background-color 0.3s, color 0.3s;
}

body.dark {
    color: var(--light);
    background-color: var(--dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    gap: 0.5rem;
}

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

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

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.dark .navbar {
    background-color: rgba(15, 23, 42, 0.9);
}

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

.logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    color: var(--primary);
}

.logo-dot {
    color: var(--gray-400);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    transition: color 0.3s;
}

.dark .nav-links a {
    color: var(--gray-300);
}

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

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--gray-700);
    transition: color 0.3s;
}

.dark .theme-toggle {
    color: var(--gray-300);
}

.theme-toggle:hover {
    color: var(--primary);
}

.moon-icon {
    display: none;
}

.dark .sun-icon {
    display: none;
}

.dark .moon-icon {
    display: block;
}

.mobile-menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-text {
    max-width: 600px;
}

.subtitle {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.title-bar {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
    margin: 1rem 0;
}

.hero h2 {
    font-size: 2rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.dark .hero h2 {
    color: var(--gray-300);
}

.description {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.dark .description {
    color: var(--gray-400);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--gray-700);
    transition: color 0.3s;
}

.dark .social-link {
    color: var(--gray-300);
}

.social-link:hover {
    color: var(--primary);
}

.hero-image {
    position: relative;
}

.profile-image {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.dark .profile-image {
    border-color: var(--gray-800);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
    animation: scale 0.5s ease-out;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--gray-500);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-divider {
    height: 5px;
    width: 80px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
    margin: 1rem auto;
}

.section-header p {
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.dark .section-header p {
    color: var(--gray-400);
}

/* About Section */
.about {
    background-color: var(--gray-50);
}

.dark .about {
    background-color: var(--gray-900);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.dark .about-text p {
    color: var(--gray-400);
}

.about-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.about-stats {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark .about-stats {
    background-color: var(--gray-800);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
}

.dark .stat-card {
    background-color: var(--gray-700);
}

.stat-card svg {
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-card h4 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.dark .stat-card p {
    color: var(--gray-400);
}

.personal-motto {
    border-top: 1px solid var(--gray-200);
    padding-top: 1.5rem;
}

.dark .personal-motto {
    border-color: var(--gray-700);
}

.personal-motto h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.personal-motto p {
    color: var(--gray-600);
    font-style: italic;
}

.dark .personal-motto p {
    color: var(--gray-400);
}

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

.skill-card {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.dark .skill-card {
    background-color: var(--gray-800);
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.skill-icon {
    width: 48px;
    height: 48px;
    margin-right: 1rem;
    padding: 0.5rem;
    background-color: var(--gray-50);
    border-radius: 0.5rem;
}

.dark .skill-icon {
    background-color: var(--gray-700);
}

.skill-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.skill-info p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.dark .skill-info p {
    color: var(--gray-400);
}

.skill-progress {
    height: 8px;
    background-color: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.dark .skill-progress {
    background-color: var(--gray-700);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.skills-note {
    text-align: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    padding: 2rem;
    border-radius: 1rem;
}

.dark .skills-note {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.skills-note h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skills-note p {
    color: var(--gray-700);
    max-width: 600px;
    margin: 0 auto;
}

.dark .skills-note p {
    color: var(--gray-300);
}

/* Projects Section */
.projects {
    background-color: var(--gray-50);
}

.dark .projects {
    background-color: var(--gray-900);
}

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

.project-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark .project-card {
    background-color: var(--gray-800);
}

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

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

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

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.dark .project-content p {
    color: var(--gray-400);
}

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

.project-tag {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.dark .project-tag {
    background-color: rgba(59, 130, 246, 0.2);
}

.project-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.project-link {
    color: var(--primary);
    transition: color 0.3s;
}

.project-link:hover {
    color: var(--primary-dark);
}

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

.certificate-card {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.dark .certificate-card {
    background-color: var(--gray-800);
}

.certificate-card:hover {
    transform: translateY(-5px);
}

.certificate-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dark .certificate-icon {
    background-color: var(--gray-700);
}

.certificate-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.certificate-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.dark .certificate-card p {
    color: var(--gray-400);
}

.certificate-year {
    display: inline-block;
    background-color: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.dark .certificate-year {
    background-color: var(--gray-700);
    color: var(--gray-300);
}

/* Experience Section */
.experience {
    background-color: var(--gray-50);
}

.dark .experience {
    background-color: var(--gray-900);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background-color: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.dark .timeline-dot {
    background-color: var(--gray-800);
}

.timeline-content {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark .timeline-content {
    background-color: var(--gray-800);
}

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

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.timeline-company {
    color: var(--gray-600);
    font-size: 1rem;
}

.dark .timeline-company {
    color: var(--gray-400);
}

.timeline-period {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.dark .timeline-period {
    background-color: rgba(59, 130, 246, 0.2);
}

.timeline-description {
    color: var(--gray-600);
}

.dark .timeline-description {
    color: var(--gray-400);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.contact-info {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark .contact-info {
    background-color: var(--gray-800);
}

.info-list {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item svg {
    color: var(--primary);
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.info-item a,
.info-item p {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s;
}

.dark .info-item a,
.dark .info-item p {
    color: var(--gray-400);
}

.info-item a:hover {
    color: var(--primary);
}

.social-connect h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    transition: all 0.3s;
}

.dark .social-icons a {
    background-color: var(--gray-700);
    color: var(--gray-300);
}

.social-icons a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.contact-form {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark .contact-form {
    background-color: var(--gray-800);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.dark .form-group label {
    color: var(--gray-300);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    background-color: white;
    color: var(--gray-900);
    transition: all 0.3s;
}

.dark .form-group input,
.dark .form-group textarea {
    background-color: var(--gray-700);
    border-color: var(--gray-600);
    color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--gray-400);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--gray-400);
}

.scroll-to-top {
    background-color: var(--gray-800);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.scroll-to-top:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes scale {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .profile-image {
        width: 280px;
        height: 280px;
    }
}

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

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 2rem;
    }

    .title-bar {
        margin: 1rem auto;
    }

    .cta-buttons,
    .social-links {
        justify-content: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }

    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--gray-700);
        margin: 5px 0;
        transition: all 0.3s;
    }

    .dark .mobile-menu-btn span {
        background-color: var(--gray-300);
    }

    .mobile-menu-open .mobile-menu-btn span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-open .mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-open .mobile-menu-btn span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .mobile-menu-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .dark .mobile-menu-open .nav-links {
        background-color: var(--gray-800);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .profile-image {
        width: 240px;
        height: 240px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-content,
    .footer-links {
        grid-template-columns: 1fr;
    }
}