/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #9a9a9a;
    background-color: #1a1a1a;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: auto;
    cursor: default;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevent text cursor on interactive elements and containers */
.skill-item, .skill-icon-container, .skill-icon, .skill-label,
.service-item, .service-background, .service-bg-image,
.portfolio-image-container, .portfolio-image,
.hero-image, .nav-logo, .social-links, .social-link,
.navbar, .hamburger, .bar,
.aws-project-card, .project-card-image, .architecture-diagram,
.diagram-overlay, .result-metric, .tech-tag {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

/* Ensure proper cursor for clickable elements */
button, .submit-btn, .contact-btn, a, .nav-link,
.btn-deep-dive, .btn-linkedin, .modal-close, .lightbox-close,
.diagram-overlay, .architecture-diagram, .modal-diagram {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection and proper cursor for form elements and selectable content */
input, textarea, input[type="text"], input[type="email"], 
input:focus, textarea:focus {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    cursor: text !important;
}

/* Allow text selection for readable content */
p, .about-text p, .portfolio-description, .contact-description,
.hero-greeting, .hero-title, .problem-text, .solution-list li,
.modal-title, .modal-subtitle, .deep-dive-section p,
.project-highlights li, .iac-intro, .code-block code,
.metric-label, .metric-detail, .aws-section-description {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    cursor: text;
}

/* Ensure sections and containers don't show text cursor */
section, div, .hero, .about, .skills, .portfolio, .contact, .footer,
.hero-container, .container, .nav-container, .hero-content {
    cursor: default !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.nav-logo a {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo a:hover {
    transform: scale(1.05);
}

.nav-logo img {
    height: 40px;
    width: auto;
    max-height: 40px;
    display: block;
}

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

.nav-link {
    text-decoration: none;
    color: #808080;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.contact-btn {
    background: transparent;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: none;
}

.contact-btn:hover {
    background: #ffffff;
    color: #0d0d0d !important;
    transform: translateY(-2px);
    box-shadow: none;
}

.contact-btn::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: #808080;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #1a1a1a;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: #1f1f1f;
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-greeting {
    font-size: 1.2rem;
    color: #606060;
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title {
    font-size: 1.3rem;
    color: #707070;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #707070;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #ffffff;
    color: #0d0d0d;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: none;
}

.hero-image {
    position: relative;
    padding-left: 100px;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px; 
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-image:hover img {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

/* About Section */
.about {
    padding: 80px 0;
    background: #1a1a1a;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 2px;
    margin: auto;
    margin-bottom: 2rem;
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #b8b8b8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.service-item:nth-child(3) {
    grid-column: 1 / 3;
    justify-self: center;
    max-width: 450px;
}

.service-tagline {
    font-style: italic;
    color: #606060 !important;
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
}

.service-item {
    position: relative;
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: #222222;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-background {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.1;
    z-index: 1;
}

.service-bg-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    opacity: 0.6;
}

.service-content {
    position: relative;
    z-index: 2;
}

.service-item:hover .service-background {
    opacity: 0.25;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-item p {
    color: #b8b8b8;
    font-size: 0.95rem;
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background: #1a1a1a;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.skill-icon-container {
    width: 70px;
    height: 70px;
    background: #e8e8e8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.skill-icon-container:hover {
    transform: translateY(-5px);
}

.skill-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.skill-label {
    font-size: 0.85rem;
    color: #9a9a9a;
    font-weight: 500;
}

/* Skills Marquee */
.skills-marquee {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    margin-top: 30px;
    background: #1a1a1a;
    position: relative;
}

.skills-marquee::before,
.skills-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.skills-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #1a1a1a 0%, transparent 100%);
}

.skills-marquee::after {
    right: 0;
    background: linear-gradient(270deg, #1a1a1a 0%, transparent 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 0 1.5rem;
}

.marquee-content img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    padding: 12px;
    background: #333333;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: none;
    opacity: 0.5;
    filter: grayscale(100%);
}

.marquee-content img:hover {
    transform: scale(1.1);
    background: #ffffff;
    border-color: transparent;
    box-shadow: none;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    padding-top: 60px;
    margin-top: 40px;
    background: #1a1a1a;
}

.portfolio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-left {
    display: flex;
    justify-content: center;
}

.portfolio-image-container {
    max-width: 400px;
    overflow: hidden;
    margin-bottom: 50px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.portfolio-image-container:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.portfolio-image {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-right {
    padding: 2rem 0;
}

.portfolio-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.portfolio-description {
    font-size: 1.1rem;
    color: #707070;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #1e1e1e;
}

.contact-description {
    text-align: center;
    font-size: 1.1rem;
    color: #606060;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #1a1a1a;
    color: #a0a0a0;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #6b6b6b;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #ffffff;
    color: #0d0d0d;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: none;
}

.submit-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.response-msg {
    margin-top: 1rem;
    text-align: center;
    font-size: 1rem;
    min-height: 1.5rem;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #606060;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    flex: 1;
    min-width: 200px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer .social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #505050;
}

.footer .social-link:hover {
    background: #ffffff;
    color: #0d0d0d;
    border-color: #ffffff;
}

/* Resume Download Button */
.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
    padding: 12px 24px;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resume-btn:hover {
    background: #ffffff;
    color: #0d0d0d;
    transform: translateY(-2px);
}

.resume-btn i {
    font-size: 0.85rem;
}

/* Footer Resume Download Icon */
.footer .resume-download {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.footer .resume-download:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* Project Status Indicator (in AWS project cards) */
.project-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 1rem;
    padding: 8px 0;
    cursor: default;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.status-text {
    font-size: 0.75rem;
    color: #808080;
}

.status-text strong {
    color: #4ade80;
}

.status-separator {
    color: #404040;
    font-size: 0.75rem;
}

.status-region {
    font-size: 0.75rem;
    color: #606060;
}

/* AWS Projects Section */
.aws-projects {
    padding: 80px 0;
    background: #1a1a1a;
}

.aws-section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #808080;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.aws-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Project Card Styles */
.aws-project-card {
    background: #222222;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.aws-project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.project-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #1a1a1a;
}

.architecture-diagram {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card-image:hover .architecture-diagram {
    transform: scale(1.05);
}

.diagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

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

.diagram-overlay span {
    color: #ffffff;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
}

.project-card-content {
    padding: 1.5rem;
}

.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.project-github-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #606060;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-github-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.project-github-link i {
    font-size: 1rem;
}

.project-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
}

.project-card-subtitle {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 1.2rem;
}

.project-highlights {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.5;
}

.project-highlights li i {
    color: #4ade80;
    margin-top: 3px;
    flex-shrink: 0;
}

.project-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-deep-dive {
    width: 100%;
    padding: 12px 20px;
    background: #ffffff;
    color: #0d0d0d;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-deep-dive:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    color: #0a66c2;
    border: 1px solid #0a66c2;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-linkedin:hover {
    background: #0a66c2;
    color: #ffffff;
}

/* Project Modal Styles */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem;
}

.project-modal.active {
    display: block;
}

.modal-content {
    max-width: 900px;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.deep-dive-section {
    margin-bottom: 2.5rem;
}

.deep-dive-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.deep-dive-section h3 i {
    color: #666666;
    font-size: 1.1rem;
}

.problem-text {
    font-size: 1.05rem;
    color: #b0b0b0;
    line-height: 1.8;
    padding: 1.2rem;
    background: rgba(239, 68, 68, 0.08);
    border-left: 3px solid #ef4444;
    border-radius: 0 8px 8px 0;
}

.problem-text strong {
    color: #ef4444;
}

.solution-list {
    list-style: none;
    margin-top: 1rem;
}

.solution-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.8rem;
    color: #a0a0a0;
    line-height: 1.6;
}

.solution-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4ade80;
}

.modal-diagram-container {
    background: #151515;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.modal-diagram {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.modal-diagram:hover {
    transform: scale(1.02);
}

/* Code Block Styles */
.iac-intro {
    color: #808080;
    margin-bottom: 1rem;
}

.code-block {
    background: #0d0d0d;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-lang {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-file {
    font-size: 0.8rem;
    color: #666666;
    font-family: monospace;
}

.code-block pre {
    margin: 0;
    padding: 1.2rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e0e0e0;
    display: block;
    white-space: pre;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.result-metric {
    background: #252525;
    padding: 1.2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.result-metric:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 0.3rem;
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.metric-detail {
    display: block;
    font-size: 0.75rem;
    color: #666666;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #a0a0a0;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Tech List (categorized format) */
.tech-list {
    background: #1a1a1a;
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    border-radius: 8px;
    list-style-type: disc;
    margin: 0;
}

.tech-list li {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.tech-list li:last-child {
    margin-bottom: 0;
}

.tech-list li strong {
    color: #ffffff;
}

/* Certifications Carousel Section */
.certifications-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.certifications-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.5rem;
}

.certifications-description {
    text-align: center;
    color: #707070;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Carousel Container */
.cert-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Navigation Buttons */
.cert-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #808080;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.05);
}

.cert-nav:active {
    transform: scale(0.95);
}

.cert-nav i {
    font-size: 1rem;
}

/* Slider Container */
.cert-slider {
    position: relative;
    width: 500px;
    height: 360px;
    overflow: hidden;
}

/* Individual Slide */
.cert-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    padding-top: 1rem;
}

.cert-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.cert-slide.prev {
    opacity: 0;
    transform: translateX(-50px);
}

/* Landscape Certificate Container */
.cert-landscape-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 16 / 11;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
    margin-bottom: 1rem;
}

.cert-landscape-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 153, 0, 0.1) 0%,
        rgba(146, 73, 217, 0.1) 25%,
        rgba(66, 153, 225, 0.1) 50%,
        rgba(72, 187, 120, 0.1) 75%,
        rgba(255, 153, 0, 0.1) 100%
    );
    background-size: 400% 400%;
    animation: colorBlend 8s ease infinite;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cert-landscape-container:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cert-landscape-container:hover::before {
    opacity: 1;
}

/* Landscape Certificate Image */
.cert-landscape-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.cert-landscape-container:hover .cert-landscape-image {
    transform: scale(1.02);
}

/* Glowing Effect */
.cert-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 153, 0, 0.25) 0%,
        rgba(146, 73, 217, 0.15) 30%,
        rgba(66, 153, 225, 0.1) 60%,
        transparent 80%
    );
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

.cert-landscape-container:hover .cert-glow {
    opacity: 1;
}

@keyframes colorBlend {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

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

/* Certification Name */
.cert-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin: 0;
    padding: 0 1rem;
}

/* Pagination Dots */
.cert-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.cert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.cert-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.cert-dot.active {
    background: linear-gradient(135deg, #ff9900 0%, #9249d9 50%, #4299e1 100%);
    background-size: 200% 200%;
    animation: dotGradient 3s ease infinite;
    transform: scale(1.2);
}

@keyframes dotGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Badges Section */
.badges-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.badges-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1.5rem;
}

.badges-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.badge-item {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.badge-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    border-radius: 12px;
}

/* Responsive Certifications */
@media (max-width: 768px) {
    .cert-carousel {
        gap: 0.75rem;
    }
    
    .cert-nav {
        width: 40px;
        height: 40px;
    }
    
    .cert-slider {
        width: 320px;
        height: 280px;
    }
    
    .cert-landscape-container {
        max-width: 300px;
    }
    
    .cert-name {
        font-size: 0.95rem;
    }
    
    .badge-item {
        width: 65px;
        height: 65px;
    }
}

@media (max-width: 480px) {
    .cert-carousel {
        gap: 0.5rem;
    }
    
    .cert-nav {
        width: 36px;
        height: 36px;
    }
    
    .cert-nav i {
        font-size: 0.85rem;
    }
    
    .cert-slider {
        width: 260px;
        height: 240px;
    }
    
    .cert-landscape-container {
        max-width: 240px;
    }
    
    .cert-name {
        font-size: 0.85rem;
    }
    
    .badge-item {
        width: 55px;
        height: 55px;
    }
}

/* Image Lightbox */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    padding: 2rem;
    align-items: center;
    justify-content: center;
}

.image-lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 3001;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero::before {
        clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%); /* ADJUST: Tablet diagonal angle (30% = less steep for smaller screens) */
    }
    
    .hero-content {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1a1a1a;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: none;
        padding: 2rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero::before {
        display: none;
    }

    .hero {
        background: #1a1a1a;
    }

    .hero-name {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .service-item:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
    }
    
    .skills-grid {
        gap: 25px;
    }
    
    .hero-image {
        padding-left: 0;
        display: flex;
        justify-content: center;
    }
    
    .hero-image img {
        max-width: 300px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .portfolio-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .portfolio-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column-reverse;
        gap: 1rem;
        text-align: center;
    }

    .resume-btn {
        width: 100%;
        justify-content: center;
    }

    /* AWS Projects Responsive */
    .aws-projects-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

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

    .modal-content {
        padding: 1.5rem;
        margin: 0;
    }

    .modal-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        gap: 1.5rem;
    }
    
    .service-item:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
    }
    
    .hero-image img {
        max-width: 250px;
    }
    
    .service-background {
        top: 0.5rem;
    }
    
    .service-bg-image {
        width: 50px;
        height: 50px;
    }
    
    .skills-grid {
        gap: 20px;
    }

    /* AWS Projects Small Screen */
    .results-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .project-card-image {
        height: 160px;
    }

    .code-block code {
        font-size: 0.75rem;
    }

    /* Project Status Small Screen */
    .project-status {
        flex-wrap: wrap;
        justify-content: flex-end;
        padding: 8px 0;
    }

    .status-separator {
        display: none;
    }

    .status-region {
        width: 100%;
        text-align: right;
        margin-top: 4px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}
