:root {
    --primary-purple: #8B5CF6;
    --light-purple: #A855F7;
    --purple-gradient: linear-gradient(135deg, #8B5CF6, #A855F7);
    --grey-primary: #6B7280;
    --grey-light: #9CA3AF;
    --grey-dark: #374151;
    --white: #FFFFFF;
    --background: #F9FAFB;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --shadow: 0 10px 25px rgba(139, 92, 246, 0.1);
    --shadow-hover: 0 20px 40px rgba(139, 92, 246, 0.2);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--purple-gradient);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.05));
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInFromTop 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--grey-primary);
    margin-bottom: 1.5rem;
    font-weight: 300;
    animation: slideInFromLeft 1s ease-out 0.3s both;
    min-height: 2.5rem;
}

.typing-text {
    display: inline-block;
    border-right: 3px solid var(--primary-purple);
    animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {
    0%, 50% { border-color: var(--primary-purple); }
    51%, 100% { border-color: transparent; }
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInFromRight 1s ease-out 0.6s both;
}

.cta-button {
    display: inline-block;
    background: var(--purple-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    animation: bounceIn 1s ease-out 0.9s both;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

@keyframes slideInFromTop {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.floating-element {
    position: absolute;
    opacity: 0.15;
    animation: complexFloat 8s ease-in-out infinite;
    font-size: 2rem;
}

.floating-element:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 25%; right: 15%; animation-delay: 2s; }
.floating-element:nth-child(3) { top: 60%; left: 8%; animation-delay: 4s; }
.floating-element:nth-child(4) { bottom: 30%; right: 12%; animation-delay: 1s; }
.floating-element:nth-child(5) { bottom: 15%; left: 20%; animation-delay: 3s; }
.floating-element:nth-child(6) { top: 40%; right: 8%; animation-delay: 5s; }

@keyframes complexFloat {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-15px) translateX(10px) rotate(5deg) scale(1.1); }
    50% { transform: translateY(-25px) translateX(-5px) rotate(-3deg) scale(0.9); }
    75% { transform: translateY(-10px) translateX(15px) rotate(8deg) scale(1.05); }
}

.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    animation: moveShape 15s linear infinite;
}

.shape:nth-child(1) { width: 80px; height: 80px; top: 20%; left: -10%; animation-duration: 20s; }
.shape:nth-child(2) { width: 60px; height: 60px; top: 60%; left: -5%; animation-duration: 25s; animation-delay: -5s; }
.shape:nth-child(3) { width: 100px; height: 100px; top: 10%; left: -8%; animation-duration: 30s; animation-delay: -10s; }

@keyframes moveShape {
    from { transform: translateX(0) translateY(0) rotate(0deg); }
    to { transform: translateX(110vw) translateY(-50px) rotate(360deg); }
}

.pulse-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-purple);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.pulse-element:nth-child(7) { top: 30%; left: 25%; animation-delay: 0s; }
.pulse-element:nth-child(8) { top: 70%; right: 30%; animation-delay: 1s; }
.pulse-element:nth-child(9) { bottom: 40%; left: 60%; animation-delay: 2s; }

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

.section {
    padding: 6rem 0;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-grid,
.contact-grid,
.edu-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-text h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.balance-wheel {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-purple), var(--light-purple), var(--grey-primary), var(--primary-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 20s linear infinite;
}

.balance-center {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.balance-icons {
    display: flex;
    gap: 1rem;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--purple-gradient);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--primary-purple);
    border: 4px solid white;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background: white;
    position: relative;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.timeline-content h3 {
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--grey-dark);
    margin-bottom: 0.5rem;
}

.timeline-content .date {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-category h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.skill-list {
    list-style: none;
    padding: 0;
}

.skill-list li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    padding: 0.3rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 15px;
    margin: 0.3rem;
    display: inline-block;
}

.edu-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.edu-cert-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.edu-cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.edu-cert-card h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

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

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--grey-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.submit-btn {
    background: var(--purple-gradient);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.contact-info {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    width: 50px;
    height: 50px;
    background: var(--purple-gradient);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .about-grid,
    .contact-grid,
    .edu-cert-grid { grid-template-columns: 1fr; gap: 2rem; }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::after { left: 21px; }
    .timeline-item:nth-child(even) { left: 0%; }
    .skills-grid { grid-template-columns: 1fr; }
    .balance-wheel { width: 250px; height: 250px; }
    .balance-center { width: 150px; height: 150px; }
    .floating-element { font-size: 1.5rem; }
}

.footer {
    background: var(--grey-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--purple-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-purple);
}
