@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #030014;
    --card-bg: #110c2e;
    --card-border: rgba(168, 85, 247, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --primary-color: #a855f7;
    --secondary-color: #3b82f6;
    --gradient-primary: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    zoom: 0.75;
}

body::before, body::after {
    content: '';
    position: fixed;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

body::before {
    top: -20vw;
    left: -20vw;
    background: var(--primary-color);
}

body::after {
    bottom: -20vw;
    right: -20vw;
    background: var(--secondary-color);
}

/* Typography Utilities */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(3, 0, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--primary-color);
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 133.33vh;
    padding: 0 10%;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero .typing-text {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.cursor {
    color: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 90%;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(168, 85, 247, 0.2);
    color: var(--primary-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible !important;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    animation: float 6s ease-in-out infinite;
}

.spline-iframe {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-20%) scale(1.6);
    width: 100%;
    min-width: 600px;
    height: calc(100% + 75px);
    pointer-events: auto;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), calc(100% - 160px) calc(100% - 60px), calc(100% - 160px) 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), calc(100% - 160px) calc(100% - 60px), calc(100% - 160px) 100%, 0 100%);
}

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

/* Section Header Shared */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header .subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 100px 10%;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 80px;
}

.about-text {
    flex: 1;
}

.hello-text {
    font-size: 2rem;
    margin-bottom: 5px;
}

.name-text {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.quote-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 30px;
    position: relative;
    border-left: 3px solid var(--primary-color);
}

.about-buttons {
    display: flex;
    gap: 15px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-glow {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    padding: 10px;
    background: var(--gradient-primary);
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.3);
}

.profile-glow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: var(--bg-color);
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.3);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-info h4 {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.stat-link-icon {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 10%;
}

.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 30px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
    background: rgba(168, 85, 247, 0.1);
    color: var(--text-primary);
    border-color: rgba(168, 85, 247, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

/* Contact Section */
.contact {
    padding: 100px 10%;
}

.contact-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-left: 20px;
}

.contact-card {
    background: #110c2e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.input-group.align-top i {
    top: 20px;
    transform: none;
}

.input-group input, .input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 15px 15px 45px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--primary-color);
}

.full-width {
    width: 100%;
}

/* Socials */
.card-title-line {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-weight: 600;
}

.card-title-line .line {
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    margin-bottom: 15px;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.linkedin-btn i {
    font-size: 1.8rem;
    color: #0a66c2;
}

.social-text {
    display: flex;
    flex-direction: column;
}

.social-text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.small-btn {
    margin-bottom: 0;
    padding: 12px 15px;
}

.small-btn i {
    font-size: 1.5rem;
}

/* Comments */
.comments-card {
    background: #151136;
}
.comment-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.comment-title i {
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary-color);
    padding: 10px;
    border-radius: 50%;
}
.comment-count {
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.required {
    color: red;
}

.optional {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
}

.upload-btn {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    background: rgba(168, 85, 247, 0.1);
    border: 1px dashed rgba(168, 85, 247, 0.5);
    border-radius: 8px;
    color: var(--primary-color);
    cursor: pointer;
    margin-bottom: 5px;
}

.file-hint {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.comments-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.comment-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid transparent;
}

.comment-item.pinned {
    border-left-color: var(--primary-color);
    background: rgba(168, 85, 247, 0.05);
}

.pinned-label {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-body {
    display: flex;
    gap: 15px;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.dummy-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.comment-content {
    flex: 1;
}

.comment-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.comment-header-row h4 {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-badge {
    background: rgba(168, 85, 247, 0.2);
    color: var(--primary-color);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.comment-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Project Links */
.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.btn-link {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.text-primary {
    color: var(--primary-color);
}

.btn-details {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-details:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 5% auto;
    width: 80%;
    max-width: 1000px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-back {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 6px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.modal-body {
    display: flex;
    gap: 40px;
    padding: 40px 30px;
}

.modal-left {
    flex: 1;
}

.modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.title-line {
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 15px 0 20px 0;
}

.modal-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.m-stat-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 12px;
    flex: 1;
}

.m-icon {
    width: 40px;
    height: 40px;
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.m-stat-box strong {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.t-tag {
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-main-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.features-box {
    background: #0f0a24;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
}

.features-box ul {
    list-style: none;
}

.features-box ul li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-box ul li::before {
    content: '\2022';
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Tech Stack Grid */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.tech-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card:hover {
    transform: translateY(-5px);
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.tech-icon {
    font-size: 3rem;
}

.tech-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        position: relative !important;
        overflow: hidden !important;
        min-height: 500px !important;
        width: 100% !important;
        margin-top: 30px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 12px;
    }

    .spline-iframe {
        position: absolute !important;
        top: -30px !important;
        left: 50% !important;
        transform: translateX(-43%) scale(1.15) !important;
        transform-origin: center center !important;
        min-width: unset !important;
        width: 150% !important;
        height: 550px !important;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), calc(100% - 180px) calc(100% - 70px), calc(100% - 180px) 100%, 0 100%) !important;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), calc(100% - 180px) calc(100% - 70px), calc(100% - 180px) 100%, 0 100%) !important;
    }

    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .hero p {
        text-align: center;
    }

    .skills-tags {
        justify-content: center;
    }

    .about-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }
    
    .about-buttons {
        justify-content: center;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-left, .contact-right {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        max-width: 600px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* simple mobile nav hide for now or you can implement hamburger */
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero .typing-text {
        font-size: 1.2rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .profile-glow {
        width: 250px;
        height: 250px;
    }
    .name-text {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-image {
        position: relative !important;
        overflow: hidden !important;
        min-height: 460px !important;
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 12px;
    }
    .spline-iframe {
        position: absolute !important;
        top: -20px !important;
        left: 50% !important;
        transform: translateX(-42%) scale(1.1) !important;
        transform-origin: center center !important;
        min-width: unset !important;
        width: 150% !important;
        height: 500px !important;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), calc(100% - 180px) calc(100% - 70px), calc(100% - 180px) 100%, 0 100%) !important;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), calc(100% - 180px) calc(100% - 70px), calc(100% - 180px) 100%, 0 100%) !important;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .project-card img {
        height: 220px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Preloader & Page Transition */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, visibility;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* No-typing preloader display for return visits */
.preloader.no-typing .type-writer-1,
.preloader.no-typing .type-writer-2 {
    width: fit-content !important;
    opacity: 1 !important;
    border-right: none !important;
    animation: none !important;
}

.preloader-content {
    text-align: center;
}

.preloader-glow-1, .preloader-glow-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    animation: pulseGlow 4s infinite alternate;
}

.preloader-glow-1 {
    top: -50px;
    left: -50px;
    background: var(--primary-color);
}

.preloader-glow-2 {
    bottom: -50px;
    right: -50px;
    background: var(--secondary-color);
}

@keyframes pulseGlow {
    0% { opacity: 0.2; transform: scale(0.8); }
    100% { opacity: 0.5; transform: scale(1.2); }
}

.type-writer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.type-writer-1, .type-writer-2 {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary-color);
    margin: 0 auto;
}

.type-writer-1 {
    width: 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    animation: typing-1 0.8s steps(14, end) forwards, blink-caret-1 0.4s step-end 2 forwards;
}

.type-writer-2 {
    width: 0;
    opacity: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    animation: typing-2 0.8s steps(20, end) 0.8s forwards, blink-caret-2 0.4s step-end infinite 0.8s;
}

@keyframes typing-1 {
    from { width: 0 }
    to { width: 14ch }
}

@keyframes blink-caret-1 {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color); }
    100% { border-color: transparent; }
}

@keyframes typing-2 {
    from { width: 0; opacity: 1; }
    to { width: 21ch; opacity: 1; }
}

@keyframes blink-caret-2 {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color); }
}

.creative-loader {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.creative-loader .dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--gradient-primary);
    animation: bounceDot 0.6s infinite alternate;
}

.creative-loader .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.creative-loader .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounceDot {
    to {
        transform: translateY(-15px);
        opacity: 0.5;
    }
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

.certificate-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    border-color: rgba(168, 85, 247, 0.4);
}

.certificate-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.cert-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(3, 0, 20, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-card:hover .cert-overlay {
    opacity: 1;
}

.cert-overlay p {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    padding: 0 15px;
}

.cert-overlay i {
    font-size: 2rem;
    color: #a855f7;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.image-modal .modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
    animation: zoomIn 0.3s;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #a855f7;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {transform:scale(0.9); opacity:0;}
    to {transform:scale(1); opacity:1;}
}
