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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a0a;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(45deg, #8B5CF6, #A855F7, #C084FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

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

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, rgba(10, 10, 10, 1) 70%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: center;
    padding: 0 20px;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #c7c7c7;
}

.typed-text {
    color: #8B5CF6;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: #9ca3af;
    margin-bottom: 20px;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8B5CF6;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(139, 92, 246, 0.5);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8B5CF6;
}

.scroll-down {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: #8B5CF6;
    margin: 10px auto;
    animation: bounce 2s infinite;
}

/* Hero Avatar - Completely Redesigned */
.hero-avatar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.profile-container {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
}

/* Animated Rotating Border */
.rotating-border {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

.border-segment {
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #8B5CF6, #A855F7, #C084FC);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.segment-1 {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: segmentGlow 3s ease-in-out infinite;
}

.segment-2 {
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    animation: segmentGlow 3s ease-in-out infinite 0.75s;
}

.segment-3 {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    animation: segmentGlow 3s ease-in-out infinite 1.5s;
}

.segment-4 {
    left: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(270deg);
    animation: segmentGlow 3s ease-in-out infinite 2.25s;
}

/* Hexagonal Frame */
.hex-frame {
    position: relative;
    width: 280px;
    height: 280px;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.3));
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: hexFloat 8s ease-in-out infinite;
    border: 2px solid rgba(139, 92, 246, 0.5);
    box-shadow: 
        0 0 30px rgba(139, 92, 246, 0.4),
        inset 0 0 30px rgba(168, 85, 247, 0.2);
}

.hex-inner {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(139, 92, 246, 0.1));
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-container {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.6);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.profile-image-container:hover .profile-img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(139, 92, 246, 0.2) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image-container:hover .image-overlay {
    opacity: 1;
}

/* Floating Orbs */
.floating-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orb {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #A855F7, #8B5CF6);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.8);
    animation: orbFloat 6s ease-in-out infinite;
}

.orb-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.orb-2 {
    top: 30%;
    right: 10%;
    animation-delay: 1s;
}

.orb-3 {
    bottom: 25%;
    left: 20%;
    animation-delay: 2s;
}

.orb-4 {
    bottom: 35%;
    right: 15%;
    animation-delay: 3s;
}

.orb-5 {
    top: 60%;
    left: 5%;
    animation-delay: 4s;
}

.orb-6 {
    top: 50%;
    right: 5%;
    animation-delay: 5s;
}

/* Pulse Rings */
.pulse-rings {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    animation: pulseExpand 4s ease-out infinite;
}

.ring-1 {
    width: 320px;
    height: 320px;
    animation-delay: 0s;
}

.ring-2 {
    width: 360px;
    height: 360px;
    animation-delay: 1.3s;
}

.ring-3 {
    width: 400px;
    height: 400px;
    animation-delay: 2.6s;
}

/* Tech Icons Orbit */
.tech-orbit {
    position: absolute;
    width: 320px;
    height: 320px;
    animation: rotate 30s linear infinite reverse;
}

.tech-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    animation: iconFloat 4s ease-in-out infinite;
}

.icon-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.icon-2 {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 1s;
}

.icon-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

.icon-4 {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 3s;
}

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

@keyframes segmentGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(139, 92, 246, 1);
        transform: scale(1.1);
    }
}

@keyframes hexFloat {
    0%, 100% { transform: translateY(0px) rotateZ(0deg); }
    25% { transform: translateY(-10px) rotateZ(2deg); }
    50% { transform: translateY(0px) rotateZ(0deg); }
    75% { transform: translateY(-10px) rotateZ(-2deg); }
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.7; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

@keyframes pulseExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Floating Shapes */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #0a0a0a 0%, rgba(139, 92, 246, 0.05) 100%);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 40px;
}

.interests-section h3,
.journey-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #8B5CF6;
}

.interests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.interest-card {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.interest-card:hover {
    transform: translateY(-5px);
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
}

.interest-icon {
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: white;
}

.interest-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.interest-content p {
    color: #9ca3af;
    font-size: 0.9rem;
}

.journey-section p {
    color: #d1d5db;
    line-height: 1.7;
}

/* Code Window */
.about-visual {
    position: relative;
}

.code-window {
    background: #1f2937;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.code-header {
    background: #374151;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.filename {
    color: #d1d5db;
    font-size: 14px;
    font-weight: 500;
}

.code-content {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.code-line {
    display: flex;
    gap: 20px;
    margin-bottom: 4px;
}

.line-number {
    color: #6b7280;
    width: 20px;
    text-align: right;
}

.keyword { color: #c084fc; }
.function { color: #60a5fa; }
.parameter { color: #fbbf24; }
.string { color: #34d399; }

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.nav-btn {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #8B5CF6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: #8B5CF6;
}

/* Skills Section */
.skills-section {
    padding: 120px 0;
    background: #0a0a0a;
}

.skills-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid rgba(139, 92, 246, 0.3);
    color: #9ca3af;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    border-color: transparent;
    color: white;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.skill-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.skill-card.hidden {
    display: none;
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.skill-progress {
    width: 100%;
    height: 6px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    border-radius: 3px;
    width: 0%;
    transition: width 1s ease-in-out;
}

.skill-percentage {
    font-size: 1.1rem;
    font-weight: 600;
    color: #8B5CF6;
    margin-bottom: 10px;
    display: block;
}

.skill-category {
    color: #6b7280;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tools Section */
.tools-section {
    margin-top: 60px;
}

.tools-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #8B5CF6;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tool-item {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-3px);
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
}

.tool-item i {
    font-size: 24px;
    color: #8B5CF6;
}

.tool-item span {
    color: #d1d5db;
    font-weight: 500;
}

/* Projects Section */
.projects-section {
    padding: 120px 0;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, #0a0a0a 100%);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.project-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.project-card.hidden {
    display: none;
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(168, 85, 247, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    backdrop-filter: blur(10px);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(139, 92, 246, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.project-content {
    padding: 30px;
}

.project-category {
    color: #8B5CF6;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-description {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(139, 92, 246, 0.2);
    color: #c084fc;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.project-tech {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-item {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.rating {
    color: #fbbf24;
    font-size: 16px;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 92, 246, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    background: white;
    color: #8B5CF6;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Certifications Section */
.certifications-section {
    padding: 120px 0;
    background: #0a0a0a;
}

.certifications-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.certifications-content p {
    font-size: 1.2rem;
    color: #9ca3af;
    line-height: 1.6;
}

/* --- Certifications Grid --- */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.certification-card {
    background: rgba(30, 20, 50, 0.45);
    border: 1.5px solid rgba(139, 92, 246, 0.18);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(.4,2,.6,1);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.6s ease;
}

.certification-card:hover::before {
    left: 100%;
}

.certification-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 30px 4px #a855f7, 0 12px 40px 0 rgba(139, 92, 246, 0.2);
    border-color: #a855f7;
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.certification-card h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.cert-issuer {
    color: #c084fc;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.cert-year {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.cert-btn {
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.cert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.cert-btn.view-cert {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.cert-btn.view-cert:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

/* Contact Section */
.contact-section {
    padding: 120px 0;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, #0a0a0a 100%);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.2rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d1d5db;
}

.contact-item i {
    color: #8B5CF6;
    font-size: 18px;
}

/* --- Contact Section --- */
.contact-subtitle {
    font-size: 1.1rem;
    color: #c084fc;
    margin-bottom: 40px;
    font-weight: 500;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background: rgba(30, 20, 50, 0.45);
    border: 1.5px solid rgba(139, 92, 246, 0.18);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px 2px #a855f7;
    border-color: #a855f7;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.contact-details h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-details p {
    color: #9ca3af;
    font-size: 0.95rem;
}

.social-links h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(30, 20, 50, 0.45);
    border: 1.5px solid rgba(139, 92, 246, 0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a855f7;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px 2px #a855f7;
    border-color: #a855f7;
    color: #ffffff;
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
}

/* --- Contact Form --- */
.contact-form-section {
    background: rgba(30, 20, 50, 0.45);
    border: 1.5px solid rgba(139, 92, 246, 0.18);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.contact-form-section:hover {
    box-shadow: 0 0 30px 2px #a855f7;
    border-color: #a855f7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 15px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 15px 2px #a855f7;
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.contact-btn {
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.contact-btn:active {
    transform: translateY(0);
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr 350px;
        gap: 30px;
    }
    
    .profile-container {
        width: 350px;
        height: 350px;
    }
    
    .hex-frame {
        width: 260px;
        height: 260px;
    }
    
    .profile-image-container {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr 320px;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .profile-container {
        width: 320px;
        height: 320px;
        margin-left: 10px;
    }
    
    .hex-frame {
        width: 240px;
        height: 240px;
    }
    
    .profile-image-container {
        width: 180px;
        height: 180px;
    }
    
    .tech-orbit {
        width: 280px;
        height: 280px;
    }
    
    .ring-1 { width: 280px; height: 280px; }
    .ring-2 { width: 320px; height: 320px; }
    .ring-3 { width: 360px; height: 360px; }
    
    .about-content {
        grid-template-columns: 1fr 350px;
        gap: 40px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .skills-filter {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo {
        font-size: 20px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .about-section,
    .skills-section,
    .projects-section,
    .certifications-section,
    .contact-section {
        padding: 80px 0;
    }
    
    /* Mobile Menu */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        backdrop-filter: blur(20px);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 20px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        font-size: 18px;
        padding: 15px 30px;
        display: block;
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .profile-container {
        width: 240px;
        height: 240px;
    }
    
    .hex-frame {
        width: 180px;
        height: 180px;
    }
    
    .profile-image-container {
        width: 130px;
        height: 130px;
    }
    
    .tech-orbit {
        width: 200px;
        height: 200px;
    }
    
    .tech-icon {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .ring-1 { width: 200px; height: 200px; }
    .ring-2 { width: 240px; height: 240px; }
    .ring-3 { width: 280px; height: 280px; }
    
    .border-segment {
        width: 60px;
        height: 3px;
    }
    
    .orb {
        width: 8px;
        height: 8px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-location {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-card {
        padding: 20px;
    }
    
    .project-card .project-content {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .project-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .certification-card {
        padding: 20px;
    }
    
    .contact-form-section {
        padding: 25px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-item {
        padding: 15px;
    }
    
    .nav-logo {
        font-size: 18px;
    }
    
    .about-section,
    .skills-section,
    .projects-section,
    .certifications-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .floating-shapes .shape {
        display: none;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .skills-filter,
    .projects-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .about-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    color: #8B5CF6;
    font-size: 24px;
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Prevent Horizontal Scroll */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Container Max Width Control */
.hero-container,
.container,
.nav-container {
    max-width: 100%;
    width: 100%;
}

@media (min-width: 1200px) {
    .hero-container,
    .container,
    .nav-container {
        max-width: 1200px;
    }
}

/* Better Touch Targets for Mobile */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: rgba(139, 92, 246, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(139, 92, 246, 0.3);
        transition: all 0.3s ease;
    }
    
    .mobile-toggle:hover {
        background: rgba(139, 92, 246, 0.2);
        transform: scale(1.05);
    }
    
    .navbar {
        padding: 12px 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(139, 92, 246, 0.2);
        box-shadow: 0 2px 20px rgba(139, 92, 246, 0.1);
    }
    
    /* Hero Section Mobile Fixes */
    .hero-section {
        min-height: 100vh;
        padding: 80px 0 40px;
        display: flex;
        align-items: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding: 0 20px;
        align-items: center;
        min-height: calc(100vh - 120px);
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-avatar {
        order: 1;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        overflow: visible;
    }
    
    .profile-container {
        width: 280px;
        height: 280px;
        margin: 0 auto;
        transform: scale(0.9);
        position: relative;
    }
    
    .hex-frame {
        width: 200px;
        height: 200px;
    }
    
    .profile-image-container {
        width: 150px;
        height: 150px;
    }
    
    .tech-orbit {
        width: 240px;
        height: 240px;
    }
    
    .tech-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .floating-orbs {
        width: 260px;
        height: 260px;
    }
    
    .orb {
        width: 6px;
        height: 6px;
    }
    
    .pulse-rings {
        width: 280px;
        height: 280px;
    }
    
    .rotating-border {
        width: 280px;
        height: 280px;
    }
    
    .border-segment {
        width: 50px;
        height: 3px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 15px;
        padding: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 40px;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        min-height: 50px;
    }
    
    .btn, .filter-btn, .nav-link, .project-link, .nav-btn, .contact-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .social-icon, .contact-icon, .tech-icon {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Optimized Animations for Mobile */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Canvas Background Responsive */
#bubbles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    #bubbles-bg {
        opacity: 0.5;
    }
}

/* Performance Optimizations */
.hero-avatar,
.floating-orbs,
.tech-orbit,
.pulse-rings,
.rotating-border {
    will-change: transform;
}

/* Fix for iOS Safari */
@supports (-webkit-appearance: none) {
    .hex-frame {
        -webkit-clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
        clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    }
    
    .hex-inner {
        -webkit-clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
        clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    }
}
}

/* --- Enhanced Glassmorphism & Edge Lighting --- */
.project-card, .skill-card, .tool-item, .certifications-content, .about-visual, .code-window {
    background: rgba(30, 20, 50, 0.45);
    box-shadow: 0 4px 32px 0 rgba(139, 92, 246, 0.10), 0 0 0 2px rgba(139, 92, 246, 0.10);
    border-radius: 20px;
    border: 1.5px solid rgba(139, 92, 246, 0.18);
    backdrop-filter: blur(12px);
    position: relative;
    transition: box-shadow 0.4s cubic-bezier(.4,2,.6,1), border-color 0.3s, transform 0.2s;
}

.project-card:hover, .skill-card:hover, .tool-item:hover, .code-window:hover {
    box-shadow: 0 0 24px 4px #a855f7, 0 8px 40px 0 rgba(139, 92, 246, 0.18);
    border-color: #a855f7;
    transform: translateY(-6px) scale(1.025);
    z-index: 2;
}

/* Edge Lighting Animation */
@keyframes edgeGlow {
    0% { box-shadow: 0 0 0 0 #a855f7; }
    50% { box-shadow: 0 0 24px 4px #a855f7; }
    100% { box-shadow: 0 0 0 0 #a855f7; }
}

.project-card:active, .skill-card:active, .tool-item:active {
    animation: edgeGlow 0.6s;
}

/* --- Button & Nav Animations --- */
.btn, .filter-btn, .nav-link, .project-link, .nav-btn {
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
    will-change: transform, box-shadow;
}

.btn:active, .filter-btn:active, .nav-link:active, .project-link:active, .nav-btn:active {
    transform: scale(0.96);
    box-shadow: 0 0 16px 2px #a855f7;
}

.btn-primary, .filter-btn.active, .project-link {
    box-shadow: 0 2px 16px 0 rgba(139, 92, 246, 0.18);
}

.btn-primary:hover, .filter-btn.active:hover, .project-link:hover {
    box-shadow: 0 0 24px 4px #a855f7, 0 8px 40px 0 rgba(139, 92, 246, 0.18);
    background: linear-gradient(90deg, #a855f7 0%, #8b5cf6 100%);
    color: #fff;
}

.nav-link.active, .nav-link:hover {
    box-shadow: 0 0 12px 2px #a855f7;
    color: #a855f7;
    background: rgba(139, 92, 246, 0.10);
}

/* --- Typography & Spacing --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f3f3fa;
    background: #13101a;
    letter-spacing: 0.01em;
}

.section-title, .hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #a855f7;
    text-shadow: 0 2px 24px #a855f733, 0 1px 0 #fff1;
}

.hero-title {
    font-size: 4.2rem;
    color: #a855f7;
}

.hero-subtitle, .project-category, .skill-category {
    color: #c084fc;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.project-title, .skill-card h3 {
    color: #fff;
    font-weight: 700;
}

/* --- Subtle Background Glows --- */
body::before {
    content: '';
    position: fixed;
    z-index: 0;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 30% 20%, #a855f733 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, #8b5cf633 0%, transparent 70%);
    opacity: 0.7;
}

/* --- Prepare for Animated Bubbles Background --- */
#bubbles-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

/* --- Misc Polishes --- */
.container, .nav-container {
    z-index: 2;
    position: relative;
}

.navbar {
    box-shadow: 0 2px 24px 0 #a855f711;
    border-bottom: 1.5px solid #a855f722;
    background: rgba(19, 16, 26, 0.98);
}

::-webkit-scrollbar {
    width: 8px;
    background: #1f1b2a;
}
::-webkit-scrollbar-thumb {
    background: #a855f7;
    border-radius: 8px;
}

/* --- Responsive Design for New Elements --- */
@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-section {
        padding: 30px 20px;
    }
    
    .profile-picture {
        width: 150px;
        height: 150px;
        font-size: 60px;
    }
    
    .avatar-circle {
        width: 200px;
        height: 200px;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .certification-card {
        padding: 20px;
    }
    
    .contact-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-form-section {
        padding: 25px 15px;
    }
    
    /* Enhanced mobile profile visibility */
    .hero-section {
        padding: 70px 0 30px;
    }
    
    .hero-container {
        gap: 20px;
        padding: 0 15px;
        min-height: calc(100vh - 100px);
    }
    
    .profile-container {
        width: 260px;
        height: 260px;
        transform: scale(0.95);
    }
    
    .hex-frame {
        width: 180px;
        height: 180px;
    }
    
    .profile-image-container {
        width: 130px;
        height: 130px;
    }
    
    .tech-orbit {
        width: 220px;
        height: 220px;
    }
    
    .tech-icon {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .floating-orbs {
        width: 240px;
        height: 240px;
    }
    
    .pulse-rings {
        width: 260px;
        height: 260px;
    }
    
    .rotating-border {
        width: 260px;
        height: 260px;
    }
    
    .border-segment {
        width: 45px;
        height: 2px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        padding: 0 5px;
    }
    
    .hero-buttons {
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .btn {
        max-width: 260px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .nav-link {
        width: 220px;
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .mobile-toggle {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .nav-menu {
        padding-top: 40px;
        top: 65px;
        height: calc(100vh - 65px);
    }
    
    .nav-menu li {
        margin: 12px 0;
    }
}