/* Base Styles */
:root {
    --bg-dark: #0a0a0f;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-glow: rgba(0, 210, 255, 0.3);
    --accent-primary: #00d2ff;
    --accent-secondary: #3a7bd5;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --neon-shadow: 0 0 15px rgba(0, 210, 255, 0.5), 0 0 30px rgba(0, 210, 255, 0.3);
}

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

body.dark-theme {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Glows */
.background-effects {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
}
.glow {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}
.glow-1 {
    top: -20%; left: -10%;
    background: var(--accent-primary);
}
.glow-2 {
    bottom: -20%; right: -10%;
    background: var(--accent-secondary);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 10%) scale(1.1); }
}

/* Utilities */
.glass-element {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 5rem;
}

/* Typography & Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-shadow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-primary);
}
.btn-outline:hover {
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 100;
}
.navbar .logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    padding-top: 100px;
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1200px;
    width: 100%;
}
.hero-text {
    flex: 1;
}
.greeting {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}
.name {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 1rem 0;
}
.tagline {
    font-size: 1.4rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.8rem;
    min-height: 2rem;
}
.typing-cursor {
    display: inline-block;
    color: var(--accent-primary);
    animation: blink 0.8s infinite;
    font-weight: 300;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.7;
}
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.social-icon {
    color: var(--text-secondary);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}
.social-icon:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
}

/* Circular Profile Photo with Glow */
.profile-photo-container {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}
.photo-glow {
    position: absolute;
    top: -10px; right: -10px; bottom: -10px; left: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    z-index: 1;
    filter: blur(20px);
    opacity: 0.6;
    animation: rotateGlow 5s linear infinite;
}
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    z-index: 2;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.profile-photo-container:hover .profile-photo {
    transform: scale(1.05);
    box-shadow: var(--neon-shadow);
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1.5s ease 1s both;
}
.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    transform: rotate(45deg);
    animation: scrollBounce 1.5s infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
    50% { transform: rotate(45deg) translateY(6px); opacity: 0.5; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Nav Contact Highlight */
.nav-contact-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700 !important;
}

/* About Stats Row */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}
.stat-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about {
    padding: 5rem 5%;
    max-width: 1000px;
    margin: 0 auto;
}
.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
}
.about-photo {
    flex-shrink: 0;
}
.profile-photo-small {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}
.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.resume-section h3 {
    margin-bottom: 1rem;
    font-weight: 500;
}
.resume-actions {
    display: flex;
    gap: 1rem;
}

/* Experience Section */
.experience {
    padding: 5rem 5%;
    max-width: 900px;
    margin: 0 auto;
}
.exp-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.exp-card {
    padding: 2rem 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.exp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 210, 255, 0.1);
    border-color: rgba(0, 210, 255, 0.35);
}
.exp-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}
.exp-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.exp-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.exp-role {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}
.exp-company {
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 500;
}
.exp-type {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.15rem 0.7rem;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    width: fit-content;
}
.exp-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}
.exp-points {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.exp-points li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.6;
}
.exp-points li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.exp-projects {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.exp-projects-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}
.exp-proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.exp-proj-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.exp-proj-item:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 210, 255, 0.3);
}
.exp-proj-item ion-icon {
    font-size: 1.8rem;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 2px;
}
.exp-proj-item h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}
.exp-proj-item p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Projects Section */
.projects {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.project-card {
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.project-card:hover::before {
    transform: scaleX(1);
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 210, 255, 0.1);
    border-color: rgba(0, 210, 255, 0.3);
}
.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.project-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.5));
}
.project-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.project-link-btn:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.3);
    transform: rotate(15deg);
}
.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}
.project-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.project-tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.8rem;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: 20px;
    color: var(--accent-primary);
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Skills Section */
.skills {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2.5rem;
    perspective: 1000px;
}
.skill-card {
    position: relative;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    transform-style: preserve-3d;
}
.skill-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-primary);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.5s ease, width 0.5s ease, height 0.5s ease;
    z-index: 0;
}
.skill-card:hover .skill-glow {
    opacity: 0.2;
    width: 150px;
    height: 150px;
}
.skill-icon {
    font-size: 4rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    z-index: 1;
    position: relative;
    transform: translateZ(30px);
    transition: transform 0.3s ease, color 0.3s ease;
}
.skill-card:hover .skill-icon {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.8));
    transform: translateZ(50px) scale(1.1);
}
.skill-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    z-index: 1;
    position: relative;
    transform: translateZ(20px);
    color: #fff;
    transition: color 0.3s ease, transform 0.3s ease;
}
.skill-card:hover .skill-name {
    color: var(--accent-primary);
    transform: translateZ(30px);
}
.skill-level {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    z-index: 1;
    position: relative;
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(0, 210, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 20px;
    transform: translateZ(10px);
    transition: all 0.3s ease;
}
.skill-card:hover .skill-level {
    background: rgba(0, 210, 255, 0.15);
    border-color: rgba(0, 210, 255, 0.5);
    color: #fff;
    transform: translateZ(20px);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

/* Achievements Timeline Layout */
.achievements {
    padding: 5rem 5%;
    max-width: 800px;
    margin: 0 auto;
}
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
}
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}
.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    border: 3px solid var(--bg-dark);
}
.timeline-content {
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.timeline-content.highlight-card {
    border: 1px solid var(--accent-primary);
    box-shadow: inset 0 0 20px rgba(0, 210, 255, 0.05);
}
.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    border-color: var(--accent-primary);
}
.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Certificates Layout */
.certificates {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.cert-card {
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-origin: center;
}
.cert-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--neon-shadow);
    border-color: var(--accent-primary);
}
.cert-img-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.cert-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.cert-card:hover .cert-img-wrapper img {
    transform: scale(1.1);
}
.cert-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cert-card:hover .cert-overlay {
    opacity: 1;
}
.cert-overlay span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 500;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.cert-card:hover .cert-overlay span {
    transform: translateY(0);
}
.cert-info {
    padding: 1.5rem;
}
.cert-org {
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cert-title {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.modal.hidden {
    display: none;
}
.modal.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    padding: 10px;
    z-index: 1001;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal.active .modal-content {
    transform: scale(1);
}
.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
}
.close-modal {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--bg-dark);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.close-modal:hover {
    color: var(--accent-primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 5rem;
}
.footer-socials {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-email {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}
footer p:last-child {
    font-size: 0.85rem;
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    margin-top: -2rem;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
    gap: 1rem;
}
.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(0, 210, 255, 0.15);
    border-color: rgba(0, 210, 255, 0.4);
}
.contact-icon {
    font-size: 2.8rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
    transition: transform 0.3s ease;
}
.contact-card:hover .contact-icon {
    transform: scale(1.2);
}
.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
}
.contact-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    word-break: break-all;
}
.fade-in { opacity: 0; transition: opacity 0.8s ease; }
.slide-up { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.slide-in-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s ease; }
.slide-in-right { opacity: 0; transform: translateX(40px); transition: all 0.8s ease; }
.scale-in { opacity: 0; transform: scale(0.9) translateX(-50%); transition: all 0.8s ease; }

.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}
.scale-in.visible {
    transform: scale(1) translateX(-50%); /* Special reset for navbar */
}

/* Revert staggered for certs */
.stagger-item.visible {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes popIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .resume-actions {
        justify-content: center;
    }
    .navbar {
        width: 95%;
        padding: 1rem;
    }
    .nav-links {
        gap: 1rem;
        display: none; /* simple hide for mobile, ideally needs hamburger menu */
    }
}
