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

:root {
    --rose-petal: #FDF7F9;
    --rose-bud: #D48B9A;
    --rose-wine: #732C3F;
    --obsidian: #1A0B12;
    --obsidian-light: #2E1822;
    --gold-soft: #E6C87D;
    --border-light: #E8D5DB;
    --border-medium: #D4B8C1;
    --border-dark: #B892A2;
    --shadow-sm: 0 8px 20px rgba(26, 11, 18, 0.06);
    --shadow-md: 0 12px 28px rgba(115, 44, 63, 0.12);
    --shadow-lg: 0 20px 40px rgba(26, 11, 18, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--rose-petal);
    color: var(--obsidian);
    line-height: 1.55;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

section {
    padding: 100px 0;
    position: relative;
}

h1, h2, h3, .nav-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

h2 {
    font-size: 3rem;
    margin-bottom: 56px;
    text-align: center;
    color: var(--rose-wine);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: -0.02em;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--rose-bud), var(--rose-wine), var(--gold-soft));
    border-radius: 4px;
}

/* Navigation */
.navbar {
    background: rgba(26, 11, 18, 0.95);
    backdrop-filter: blur(14px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 139, 154, 0.35);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.nav-brand {
    font-size: 1.7rem;
    background: linear-gradient(135deg, #F7E8EC, var(--rose-bud));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
    align-items: center;
}

.nav-menu a {
    color: var(--rose-petal);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--rose-bud);
    border-bottom-color: var(--rose-bud);
}

#activitiesBtn {
    background: var(--rose-wine);
    padding: 6px 20px !important;
    border-radius: 40px;
    border-bottom: none !important;
}

#activitiesBtn:hover {
    background: var(--rose-bud);
    color: var(--obsidian) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1A0B12 0%, #2E1822 100%);
    margin-top: 72px;
    text-align: center;
    padding: 140px 32px 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "✦ ✦ ✦";
    font-size: 180px;
    opacity: 0.04;
    position: absolute;
    bottom: -40px;
    right: -20px;
    font-family: monospace;
    pointer-events: none;
}

.hero-content h1 {
    font-size: 4.2rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.25rem;
    color: #F3E1E7;
}

.hero-highlight {
    color: var(--rose-bud);
    font-weight: 600;
}

/* About Section Card */
.about-card {
    background: white;
    border-radius: 56px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid var(--border-medium);
}

.about-card:hover {
    border-color: var(--rose-bud);
    box-shadow: var(--shadow-md);
}

.about-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.about-image-area {
    flex: 1.2;
    background: linear-gradient(145deg, #FEF2F5, #FDF7F9);
    padding: 45px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid var(--border-light);
}

.profile-pic {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--rose-bud);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.profile-pic:hover {
    transform: scale(1.02);
}

.about-content-area {
    flex: 2;
    padding: 48px 48px 48px 20px;
}

.about-name {
    font-size: 2.4rem;
    color: var(--rose-wine);
    margin-bottom: 8px;
}

.about-tag {
    display: inline-block;
    background: rgba(212, 139, 154, 0.15);
    padding: 6px 18px;
    border-radius: 60px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rose-wine);
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.info-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    background: #FEFAFB;
    padding: 20px 24px;
    border-radius: 36px;
    margin: 24px 0;
    border: 1px solid var(--border-light);
}

.info-row div {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.info-row i {
    width: 28px;
    color: var(--rose-wine);
    font-size: 1.2rem;
}

.bio-text {
    background: white;
    padding: 20px 28px;
    border-radius: 32px;
    border-left: 5px solid var(--rose-bud);
    border-right: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
    line-height: 1.6;
}

.tool-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 16px;
}

.tool-pill {
    background: white;
    border-radius: 60px;
    padding: 8px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--rose-bud);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tool-pill i {
    color: var(--rose-wine);
}

.tool-pill:hover {
    background: var(--rose-wine);
    color: white;
    transform: translateY(-3px);
    border-color: var(--rose-wine);
}

.tool-pill:hover i {
    color: white;
}

.cert-badge {
    background: linear-gradient(90deg, #F7E8EC, white);
    border-radius: 50px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    border: 1px solid var(--border-medium);
}

/* Skills Cards */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
    margin-bottom: 45px;
}

.skill-card {
    background: white;
    padding: 32px 28px;
    border-radius: 40px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 2px solid var(--border-light);
    border-bottom: 4px solid var(--rose-bud);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--rose-bud);
}

.skill-card h3 {
    color: var(--rose-wine);
    margin-bottom: 20px;
    font-size: 1.7rem;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 0.95rem;
}

.skill-card li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--rose-bud);
    font-weight: 600;
}

.networking-skill {
    background: rgba(115, 44, 63, 0.04);
    padding: 32px 32px;
    border-radius: 40px;
    border: 2px solid var(--border-light);
    border-left: 6px solid var(--rose-wine);
}

.networking-skill ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
    list-style: none;
    margin-top: 15px;
}

.networking-skill li {
    padding-left: 28px;
    position: relative;
}

.networking-skill li::before {
    content: "🔹";
    position: absolute;
    left: 0;
    color: var(--rose-wine);
}

/* Projects Table */
.projects-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 40px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
}

.projects-table th {
    background: var(--obsidian);
    color: var(--rose-petal);
    padding: 20px 24px;
    font-weight: 600;
    border-bottom: 2px solid var(--rose-bud);
}

.projects-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    color: #2c1f25;
}

.projects-table tr:hover td {
    background: #FDF3F6;
}

/* Certificate Card */
.certificate-card-single {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 48px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-medium);
}

.certificate-image-wrapper {
    flex: 1.2;
    background: #FDF2F5;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-light);
}

.certificate-img {
    width: 100%;
    max-width: 460px;
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.certificate-details {
    flex: 1;
    padding: 48px 40px;
}

.certificate-details h3 {
    font-size: 2rem;
    color: var(--rose-wine);
}

.certificate-skills {
    background: var(--rose-petal);
    padding: 20px 28px;
    border-radius: 32px;
    margin-top: 28px;
    border: 1px solid var(--border-light);
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 48px 48px;
    border-radius: 56px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-light);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    font-weight: 600;
    color: var(--rose-wine);
    margin-bottom: 8px;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border-light);
    border-radius: 40px;
    font-family: 'Inter', sans-serif;
    transition: 0.2s;
}

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

.submit-btn {
    background: var(--rose-wine);
    color: white;
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: 0.2s;
}

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

/* Footer */
.footer {
    background: var(--obsidian);
    color: #EEDCE2;
    text-align: center;
    padding: 48px 24px;
    margin-top: 20px;
    border-top: 1px solid rgba(212, 139, 154, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 11, 18, 0.88);
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--rose-petal);
    margin: 60px auto;
    width: 90%;
    max-width: 1200px;
    border-radius: 48px;
    max-height: 85vh;
    overflow-y: auto;
    border: 2px solid var(--border-medium);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-bottom: 2px solid var(--rose-bud);
    background: white;
    border-radius: 46px 46px 0 0;
    flex-wrap: wrap;
}

.close-modal {
    font-size: 36px;
    cursor: pointer;
    color: var(--rose-wine);
    transition: all 0.2s;
}

.close-modal:hover {
    color: var(--obsidian);
}

/* Gallery Items */
.gallery-container {
    padding: 32px;
    max-height: 65vh;
    overflow-y: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 28px;
}

.gallery-item {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: 0.2s;
    border: 1px solid var(--border-light);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--rose-bud);
}

.gallery-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
}

.link-placeholder {
    width: 100%;
    height: 230px;
    background: linear-gradient(135deg, #732C3F, #D48B9A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    border-bottom: 1px solid var(--border-light);
}

.gallery-info {
    padding: 20px;
}

.gallery-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--rose-wine);
}

.gallery-desc {
    color: #4a3a40;
    font-size: 0.85rem;
    margin: 8px 0;
}

.gallery-date {
    font-size: 0.7rem;
    color: #aa9aa0;
    margin-top: 8px;
}

/* Activity Buttons */
.activity-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.view-images-btn,
.view-pdf-btn,
.view-link-btn,
.view-html-btn {
    border: 1px solid transparent;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.view-html-btn {
    background: rgba(40, 167, 69, 0.12);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.3);
}

.view-html-btn:hover {
    background: #28a745;
    color: white;
}

.view-images-btn {
    background: rgba(115, 44, 63, 0.12);
    color: var(--rose-wine);
    border-color: rgba(115, 44, 63, 0.3);
}

.view-images-btn:hover {
    background: var(--rose-wine);
    color: white;
}

.view-pdf-btn {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
}

.view-pdf-btn:hover {
    background: #dc3545;
    color: white;
}

.view-link-btn {
    background: rgba(23, 162, 184, 0.12);
    color: #17a2b8;
    border-color: rgba(23, 162, 184, 0.3);
}

.view-link-btn:hover {
    background: #17a2b8;
    color: white;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.tech-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}

.html-badge {
    background: #e44d26;
    color: white;
}

.css-badge {
    background: #264de4;
    color: white;
}

.js-badge {
    background: #f7df1e;
    color: #000;
}

.gallery-badge {
    background: var(--rose-petal);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin: 8px 0;
    color: var(--rose-wine);
    border: 1px solid var(--border-light);
}

.empty-message, .loading-message {
    text-align: center;
    padding: 60px;
    color: #aa9aa0;
    font-style: italic;
}

/* Full Image Modal */
.full-img-modal {
    background: rgba(0, 0, 0, 0.96) !important;
}

.full-img-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    text-align: center;
    padding-top: 8vh;
}

.full-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 24px;
    border: 2px solid var(--rose-bud);
}

.close-full {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 48px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
}

.full-prev, .full-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 2rem;
    padding: 8px 18px;
    border-radius: 50%;
    cursor: pointer;
}

.full-prev { left: -50px; }
.full-next { right: -50px; }

.full-prev:hover, .full-next:hover {
    background: var(--rose-wine);
}

.full-img-caption {
    color: white;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .about-inner { flex-direction: column; }
    .about-content-area { padding: 32px; }
    .about-image-area { border-right: none; border-bottom: 1px solid var(--border-light); }
    h2 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .nav-container { flex-direction: column; gap: 12px; }
    .nav-menu { justify-content: center; gap: 12px; }
    .full-prev { left: 10px; }
    .full-next { right: 10px; }
    .modal-header { flex-direction: column; text-align: center; }
    .close-modal { position: absolute; top: 10px; right: 20px; }
    .certificate-image-wrapper { border-right: none; border-bottom: 1px solid var(--border-light); }
}