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

:root {
    --primary-color: #1d4ed8;
    --primary-dark: #1e40af;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-muted: #f3f4f6;
    --border-color: #e5e7eb;
    --card-bg: #fafafa;
    --card-border: #f0f0f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('solid_black_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

.profile-photo {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    margin: 0 auto 2rem;
    border: 4px solid rgba(255,255,255,0.2);
    object-fit: cover;
}

@media (min-width: 1024px) {
    .profile-photo {
        width: 10rem;
        height: 10rem;
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-company {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
    font-weight: 500;
}

@media (min-width: 1024px) {
    .hero-company {
        font-size: 1.875rem;
    }
}

.hero-tagline {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .hero-tagline {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: color 0.3s;
}

.scroll-indicator:hover {
    color: white;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-dark);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(12px);
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

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

/* Sections */
.section {
    padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 8rem 1.5rem;
    }
}

.section-muted {
    background-color: var(--bg-muted);
}

.container {
    max-width: 80rem;
    margin: 0 auto;
}

.container-narrow {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 2.25rem;
        margin-bottom: 4rem;
    }
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: -1rem;
    margin-bottom: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .section-subtitle {
        font-size: 1.125rem;
        margin-top: -2rem;
        margin-bottom: 4rem;
    }
}

/* Summary */
.summary-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-primary);
}

@media (min-width: 1024px) {
    .summary-text {
        font-size: 1.125rem;
    }
}

/* Timeline */
.timeline {
    max-width: 64rem;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

@media (max-width: 767px) {
    .timeline::before {
        display: none;
    }
}

.timeline-item {
    position: relative;
    padding-left: 0;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .timeline-item {
        padding-left: 5rem;
    }
}

.timeline-dot {
    position: absolute;
    left: 1.5rem;
    top: 2rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid var(--bg-primary);
    z-index: 1;
}

@media (max-width: 767px) {
    .timeline-dot {
        display: none;
    }
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

@media (min-width: 1024px) {
    .card {
        padding: 2rem;
    }
}

.experience-card {
    margin-bottom: 0;
}

.experience-card.current {
    border: 2px solid var(--primary-color);
}

.card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.company-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

@media (min-width: 1024px) {
    .company-info h3 {
        font-size: 1.5rem;
    }
}

.icon {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.role {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.period {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.achievements {
    list-style: none;
    margin-top: 1rem;
}

.achievements li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
}

@media (min-width: 1024px) {
    .achievements li {
        font-size: 1rem;
    }
}

.achievements li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.375rem;
}

/* Certifications */
.certifications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.cert-card {
    text-align: center;
    transition: transform 0.3s;
}

.cert-card:hover {
    transform: scale(1.05);
}

.cert-badge {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 1rem;
    object-fit: contain;
}

.cert-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .cert-card h3 {
        font-size: 1.5rem;
    }
}

.cert-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.cert-info span {
    font-size: 0.875rem;
    font-weight: 500;
}

.cert-credential,
.cert-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.skill-card {
    padding: 1.5rem;
}

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

.skill-icon {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: rgba(29, 78, 216, 0.1);
    color: var(--primary-color);
    flex-shrink: 0;
}

.skill-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

@media (min-width: 1024px) {
    .skill-card h3 {
        font-size: 1.5rem;
    }
}

.skill-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 9999px;
    font-size: 0.875rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.3s;
    color: var(--text-primary);
}

.social-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.social-icon:nth-child(1):hover {
    color: #0A66C2;
}

.social-icon:nth-child(2):hover {
    color: #181717;
}

.social-icon:nth-child(3):hover {
    color: #FFA116;
}

.social-icon:nth-child(4):hover {
    color: #000000;
}

.social-icon:nth-child(5):hover {
    color: #000000;
}

.download-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    padding: 3rem 1.5rem;
    background-color: var(--bg-muted);
    border-top: 1px solid var(--border-color);
}

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

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

.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.footer-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.footer-icon:hover {
    transform: translateY(-2px);
}

.footer-icon:nth-child(1):hover {
    color: #0A66C2;
}

.footer-icon:nth-child(2):hover {
    color: #181717;
}

.footer-icon:nth-child(3):hover {
    color: #FFA116;
}

.footer-icon:nth-child(4):hover {
    color: #000000;
}

.footer-icon:nth-child(5):hover {
    color: #000000;
}

.footer-text {
    text-align: center;
}

.footer-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0;
}

.footer-built {
    font-size: 0.75rem !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-company {
        font-size: 1.25rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}
