:root {
    --primary: #1976d2;
    --bg-light: #ffffff;
    --bg-dark: #121212;
    --text-light: #202124;
    --text-dark: #e8eaed;
    --card-light: #f8f9fa;
    --card-dark: #1e1e1e;
}

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

body {
    font-family: 'Google Sans', sans-serif;
    line-height: 1.6;
    background: var(--bg-light);
    color: var(--text-light);
    transition: all 0.3s ease;
}

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

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

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

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

.animate { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: all 0.6s ease; 
}

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

.floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

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

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.header h1 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--primary);
    animation: fadeInUp 1s ease;
}

.header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

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

.card {
    background: var(--card-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

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

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

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

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    display: block;
}

.contact {
    text-align: center;
    background: var(--card-light);
    margin: 2rem 0;
    padding: 3rem;
    border-radius: 12px;
}

body.dark .contact {
    background: var(--card-dark);
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

footer {
    text-align: center;
    padding: 2rem 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .header h1 { font-size: 2.5rem; }
    .section { padding: 40px 0; }
    .grid { grid-template-columns: 1fr; }
}