/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a0a0a;
    --secondary: #0d1b2a;
    --accent: #e63946;
    --accent-light: #ff6b7a;
    --text: #f8f9fa;
    --text-light: #adb5bd;
    --card-bg: rgba(30, 30, 46, 0.7);
    --glass: rgba(255, 255, 255, 0.05);
    --shadow: rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title span {
    color: var(--accent);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--text), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-role {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--text);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glowing-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent), #ff9e00, var(--accent));
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }

}
/* Update Hero Section to position particles */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    z-index: 2;
}

/* Add a subtle background pattern to hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(230, 57, 70, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.03) 0%, transparent 50%),
        linear-gradient(45deg, rgba(10, 10, 10, 0.9) 0%, rgba(13, 27, 42, 0.9) 100%);
    z-index: 1;
}

/* About Section */
.about {
    padding: 5rem 0;
}

.about-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.about-content {
    flex: 2;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.skills-container {
    margin-top: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.skill-item {
    background: var(--card-bg);
    padding: 1.2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.skill-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.skill-item i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.skill-item span {
    font-weight: 500;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.stat-card h4 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.2);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.project-tech {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-stack span {
    background: rgba(230, 57, 70, 0.2);
    color: var(--accent-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.project-link:hover {
    color: var(--accent-light);
}

.section-note {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-light);
    font-style: italic;
}

/* Certificates Section */
/* Certificates Section Updated */
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Institution Logos */
.institution-logo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cambridge-logo {
    background: linear-gradient(135deg, #a41e34, #0072ce);
}

.infosys-logo {
    background: linear-gradient(135deg, #1386d3, #0033a0);
}

.freelance-logo {
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
}

/* Certificate Cards Enhanced */
.certificate-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.4));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--accent) 0%,
        #4361ee 50%,
        var(--accent) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s linear infinite;
}

.certificate-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(230, 57, 70, 0.1),
        0 0 30px rgba(230, 57, 70, 0.1);
}

/* Certificate Header */
.certificate-header {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.certificate-icon {
    padding: 0.9rem;
    background: linear-gradient(135deg, 
        rgba(230, 57, 70, 0.15), 
        rgba(67, 97, 238, 0.15));
    border-radius: 14px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 1.4rem;
    min-width: 56px;
    min-height: 56px;
}

.certificate-info {
    flex: 1;
}

.certificate-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.certificate-issuer {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.certificate-meta {
    display: flex;
    gap: 1.2rem;
    font-size: 0.8rem;
}

.certificate-date,
.certificate-score {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
}

.certificate-score {
    color: #10b981;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* Certificate Details */
.certificate-details {
    background: rgba(0, 0, 0, 0.25);
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-grow: 1;
}

.module-details h4 {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.module-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-details li {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.module-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Verification */
.certificate-verification {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.verification-badge,
.verification-id {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: rgba(30, 41, 59, 0.5);
}

.verification-badge {
    color: #60a5fa;
}

.verification-id {
    color: #c084fc;
}

.verification-badge i,
.verification-id i {
    font-size: 0.8rem;
}

/* Actions */
.certificate-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.certificate-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-height: 44px;
}

.certificate-btn:hover {
    background: rgba(230, 57, 70, 0.2);
    color: white;
    border-color: rgba(230, 57, 70, 0.3);
    transform: translateY(-2px);
}

.certificate-btn i {
    font-size: 0.8rem;
}

/* Transcript Modal Enhanced */
.transcript-modal {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    text-align: center;
}

.transcript-header {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cambridge-logo-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--accent);
}

.cambridge-logo-large i {
    font-size: 2rem;
}

.institution-name {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

.institution-country {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Course Details Section */
.course-details-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.course-details-section h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    color: #94a3b8;
    font-size: 0.85rem;
}

.detail-value {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Grades Section */
.grades-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.grades-section h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.grades-table-container {
    overflow-x: auto;
}

.grades-table-container table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.grades-table-container th {
    background: rgba(230, 57, 70, 0.2);
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
}

.grades-table-container td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.9rem;
}

.grades-table-container tfoot td {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-weight: 600;
    border-bottom: none;
}

/* Transcript Footer */
.transcript-footer {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.signature-section {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.signature-line {
    width: 200px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 1rem auto;
}

.signature-name {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.signature-title,
.signature-company {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.verification-section {
    flex: 2;
}

.verification-badge-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(96, 165, 250, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    margin-bottom: 1rem;
}

.verification-badge-large i {
    font-size: 2rem;
    color: #60a5fa;
}

.verification-title {
    display: block;
    color: #60a5fa;
    font-weight: 600;
}

.verification-id {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
}

.verification-note {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.institution-affiliation {
    color: #64748b;
    font-size: 0.8rem;
    font-style: italic;
}

/* Certificate Viewer Modal */
.certificate-viewer-modal {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.certificate-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Cambridge Certificate Template */
.cambridge-certificate {
    text-align: center;
    color: #333;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.certificate-header-template {
    border-bottom: 2px solid #a41e34;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.certificate-header-template h2 {
    color: #a41e34;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.certificate-header-template p {
    color: #666;
    font-size: 0.9rem;
}

.certificate-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.certificate-body h3 {
    color: #a41e34;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.certificate-body h2 {
    color: #333;
    font-size: 2rem;
    margin: 1rem 0;
    font-weight: bold;
}

.certificate-body h4 {
    color: #0072ce;
    font-size: 1.3rem;
    margin: 1rem 0;
}

.certificate-footer-template {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    margin-top: 2rem;
}

.signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.signature-block {
    text-align: center;
}

.signature-line-long {
    width: 200px;
    height: 1px;
    background: #333;
    margin: 0.5rem auto;
}

/* Infosys Certificate Template */
.infosys-certificate {
    text-align: center;
    color: #333;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.infosys-header {
    background: linear-gradient(135deg, #1386d3, #0033a0);
    color: white;
    padding: 1.5rem;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 15px 15px 0 0;
}

.infosys-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.infosys-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.certificate-of-completion {
    color: #1386d3;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

.student-name {
    font-size: 2.5rem;
    color: #333;
    margin: 1rem 0;
    font-weight: bold;
}

.course-name {
    color: #0033a0;
    font-size: 1.5rem;
    margin: 1rem 0;
    font-weight: 600;
}

.completion-date {
    color: #666;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.infosys-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.infosys-signature {
    text-align: center;
    margin-top: 2rem;
}

/* Certificate Actions */
.certificate-actions-modal {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .transcript-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .transcript-footer {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .certificate-actions-modal {
        flex-direction: column;
    }
    
    .signatures {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .certificate-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .certificate-icon {
        align-self: center;
    }
    
    .certificate-meta {
        justify-content: center;
    }
    
    .certificate-actions {
        flex-direction: column;
    }
    
    .certificate-btn {
        width: 100%;
    }
}
/* Snake Game Section */
.snake-game-section {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(230, 57, 70, 0.2);
    border-bottom: 1px solid rgba(230, 57, 70, 0.2);
    position: relative;
    overflow: hidden;
}

.snake-game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 49px, rgba(230, 57, 70, 0.05) 49px, transparent 50px),
        linear-gradient(transparent 49px, rgba(230, 57, 70, 0.05) 49px, transparent 50px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: 0;
}

.snake-game-section .container {
    position: relative;
    z-index: 1;
}

.snake-header {
    text-align: center;
    margin-bottom: 3rem;
}

.snake-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.snake-header h2 span {
    color: var(--accent);
}

.snake-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.game-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
    justify-content: center;
}

.game-info {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(230, 57, 70, 0.2);
}

.score-display {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.score-display span {
    font-weight: 600;
    font-size: 1.1rem;
}

.score-display span:first-child {
    color: var(--accent);
}

.score-display span:last-child {
    color: #4ade80;
}

#score, #highScore {
    font-size: 1.3rem;
    font-weight: 700;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(230, 57, 70, 0.2);
    border: 2px solid var(--accent);
    color: var(--text);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.game-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.game-btn:active {
    transform: translateY(0);
}

.game-btn i {
    font-size: 0.9rem;
}

.instructions {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.instructions h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.keyboard-keys {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.key-row {
    display: flex;
    gap: 0.5rem;
}

.key {
    width: 50px;
    height: 50px;
    background: rgba(30, 30, 46, 0.8);
    border: 2px solid var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text);
    box-shadow: 0 4px 0 rgba(230, 57, 70, 0.3);
}

.hint {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

.game-board-container {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid var(--accent);
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.3);
}

#snakeCanvas {
    display: block;
    background: #0a0a14;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.game-overlay h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.game-overlay p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Snake Game Grid */
.snake-grid {
    display: block;
    background: #0a0a14;
}

/* Responsive Design for Snake Game */
@media (max-width: 900px) {
    .game-container {
        flex-direction: column;
        align-items: center;
    }
    
    .game-info {
        width: 100%;
        max-width: 400px;
    }
    
    .game-board-container {
        width: 350px;
        height: 350px;
    }
    
    #snakeCanvas {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 480px) {
    .game-board-container {
        width: 300px;
        height: 300px;
    }
    
    #snakeCanvas {
        width: 300px;
        height: 300px;
    }
    
    .snake-header h2 {
        font-size: 2rem;
    }
    
    .key {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
/* Contact Section */
.contact {
    padding: 5rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.contact-container {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: var(--card-bg);
    border-radius: 10px;
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateX(10px);
    border: 1px solid var(--accent);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent);
    width: 40px;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-form {
    flex: 1;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-logo span {
    color: var(--accent);
}

.footer p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-role {
        font-size: 1.4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .image-wrapper {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}
/* Code Particle Background */
.code-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.code-particle {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: rgba(230, 57, 70, 0.3);
    font-size: 14px;
    user-select: none;
    animation: floatDown 15s linear infinite;
    text-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
}

.code-particle:nth-child(3n) {
    color: rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.code-particle:nth-child(3n+1) {
    color: rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes floatDown {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

