:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --accent-light: #f39c12;
    --accent-blue: #3498db;
    --accent-green: #2ecc71;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --background: #ffffff;
    --surface: #f8f9fa;
    --border: #e9ecef;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Grid Layout */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: auto auto auto auto auto auto;
    grid-template-areas:
        "header header contact"
        "about about skills"
        "experience experience skills"
        "projects projects projects"
        "certs certs certs";
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Section */
.header-section {
    grid-area: header;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4rem 3rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-name {
    font-size: 4rem;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 1rem;
}

.hero-name .accent {
    color: var(--accent);
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.experience-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Contact Section */
.contact-section {
    grid-area: contact;
    background: var(--surface);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border);
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.contact-value {
    font-weight: 600;
}

/* About Section */
.about-section {
    grid-area: about;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--surface);
    border-radius: 12px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Skills Section */
.skills-section {
    grid-area: skills;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.skills-grid {
    display: grid;
    gap: 1.5rem;
}

.skill-category {
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.skill-category.ai { border-color: var(--accent); background: rgba(233, 69, 96, 0.05); }
.skill-category.cloud { border-color: var(--accent-blue); background: rgba(52, 152, 219, 0.05); }
.skill-category.programming { border-color: var(--accent-light); background: rgba(243, 156, 18, 0.05); }
.skill-category.data { border-color: var(--accent-green); background: rgba(46, 204, 113, 0.05); }

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

.skill-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.skill-list span {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Experience Section */
.experience-section {
    grid-area: experience;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 12px;
    border-left: 4px solid var(--border);
    transition: all 0.3s ease;
}

.experience-item.current {
    border-left-color: var(--accent);
}

.experience-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.exp-period {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-align: center;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    height: fit-content;
}

.exp-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.exp-company {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.exp-achievements {
    list-style: none;
}

.exp-achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.exp-achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Projects Section */
.projects-section {
    grid-area: projects;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

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

.project-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.project-card.featured {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.03);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

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

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.project-status {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.tech-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.tech-tag.python { background: #3776ab; }
.tech-tag.ai { background: var(--accent); }
.tech-tag.ui { background: var(--accent-light); }
.tech-tag.docker { background: #2496ed; }
.tech-tag.aws { background: #ff9900; }
.tech-tag.lambda { background: #ff9900; }

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

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

.project-link::after {
    content: '→';
}

/* Certifications Section */
.certs-section {
    grid-area: certs;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.cert-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 12px;
    border: 2px solid var(--border);
}

.cert-provider {
    background: var(--accent-light);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.cert-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cert-id {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.cert-badge {
    background: var(--accent-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    background: var(--surface);
    border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .layout-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "header header"
            "contact about"
            "skills skills"
            "experience experience"
            "projects projects"
            "certs certs";
    }
}

@media (max-width: 768px) {
    .layout-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "contact"
            "about"
            "skills"
            "experience"
            "projects"
            "certs";
        padding: 1rem;
        gap: 1rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .header-section {
        padding: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cert-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}