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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Moving Cloud Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

.cloud-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.cloud {
    position: absolute;
    background: rgba(56, 189, 248, 0.15);
    border-radius: 50px;
    filter: blur(2px);
    animation: float 15s ease-in-out infinite;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.cloud1 { top: 10%; left: 5%; width: 150px; height: 80px; animation-delay: 0s; }
.cloud2 { top: 50%; left: 20%; width: 200px; height: 100px; animation-delay: 5s; }
.cloud3 { top: 20%; right: 10%; width: 180px; height: 90px; animation-delay: 10s; }
.cloud4 { bottom: 15%; left: 40%; width: 160px; height: 85px; animation-delay: 15s; }
.cloud5 { top: 70%; right: 25%; width: 170px; height: 95px; animation-delay: 20s; }

.aws-icon {
    position: absolute;
    color: rgba(56, 189, 248, 0.8);
    font-size: 3rem;
    animation: iconFloat 25s ease-in-out infinite;
    z-index: -1;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3));
}

.aws-icon1 { top: 10%; left: 10%; animation-delay: 0s; }
.aws-icon2 { top: 30%; left: 30%; animation-delay: 5s; }
.aws-icon3 { top: 60%; right: 15%; animation-delay: 10s; }
.aws-icon4 { bottom: 20%; left: 50%; animation-delay: 15s; }
.aws-icon5 { top: 5%; right: 5%; animation-delay: 20s; }
.aws-icon6 { top: 25%; left: 80%; animation-delay: 2s; }
.aws-icon7 { top: 75%; left: 10%; animation-delay: 7s; }
.aws-icon8 { top: 15%; left: 60%; animation-delay: 12s; }
.aws-icon9 { top: 65%; right: 10%; animation-delay: 17s; }
.aws-icon10 { top: 35%; left: 90%; animation-delay: 22s; }
.aws-icon11 { top: 85%; left: 30%; animation-delay: 4s; }
.aws-icon12 { top: 5%; left: 40%; animation-delay: 9s; }
.aws-icon13 { top: 55%; right: 25%; animation-delay: 14s; }
.aws-icon14 { top: 25%; left: 20%; animation-delay: 19s; }
.aws-icon15 { top: 80%; right: 15%; animation-delay: 24s; }
.aws-icon16 { top: 40%; left: 70%; animation-delay: 6s; }
.aws-icon17 { top: 70%; left: 50%; animation-delay: 11s; }
.aws-icon18 { top: 10%; right: 40%; animation-delay: 16s; }
.aws-icon19 { top: 60%; right: 30%; animation-delay: 21s; }
.aws-icon20 { top: 30%; left: 40%; animation-delay: 26s; }
.aws-icon21 { top: 85%; left: 20%; animation-delay: 8s; }
.aws-icon22 { top: 45%; right: 50%; animation-delay: 13s; }
.aws-icon23 { top: 95%; left: 60%; animation-delay: 18s; }
.aws-icon24 { top: 5%; right: 20%; animation-delay: 23s; }
.aws-icon25 { top: 50%; left: 10%; animation-delay: 28s; }
.aws-icon26 { top: 35%; right: 70%; animation-delay: 3s; }
.aws-icon27 { top: 75%; right: 60%; animation-delay: 8s; }
.aws-icon28 { top: 20%; left: 70%; animation-delay: 13s; }
.aws-icon29 { top: 90%; right: 40%; animation-delay: 18s; }
.aws-icon30 { top: 60%; left: 90%; animation-delay: 23s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.4; }
    25% { transform: translateY(-30px) translateX(15px); opacity: 0.7; }
    50% { transform: translateY(-20px) translateX(-25px); opacity: 0.6; }
    75% { transform: translateY(-40px) translateX(10px); opacity: 0.8; }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); opacity: 0.6; }
    25% { transform: translateY(-25px) rotate(8deg) scale(1.2); opacity: 0.9; }
    50% { transform: translateY(-35px) rotate(-5deg) scale(0.8); opacity: 0.7; }
    75% { transform: translateY(-20px) rotate(3deg) scale(1.1); opacity: 0.8; }
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(20px) rotate(-1deg); }
}

/* WhatsApp icon color */
.social-links a .fa-whatsapp {
    color: #25D366;
}

.footer .social-links a .fa-whatsapp {
    color: #25D366;
}

/* Certifications Section */
.certifications {
    padding: 100px 0;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
}

.certifications-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.certification-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: transform 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-5px);
}

.certification-badge {
    flex-shrink: 0;
}

.badge-image {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    object-fit: cover;
}

.certification-info h3 {
    font-size: 1.6rem;
    color: #38bdf8;
    margin-bottom: 0.5rem;
}

.certification-issuer {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 0.3rem;
}

.certification-date {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.certification-description {
    font-size: 1rem;
    color: #e2e8f0;
    line-height: 1.7;
}

.certification-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Contact item styling */
.contact-item a {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #38bdf8;
}

.contact-item i {
    color: #38bdf8;
    font-size: 1.5rem;
    width: 25px;
}

/* Welcome Message Popup */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.5s ease;
    pointer-events: none;
}

.welcome-popup.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

.welcome-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.5s ease;
}

.welcome-popup.show .welcome-content {
    transform: scale(1);
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.welcome-header h3 {
    color: #38bdf8;
    font-size: 1.5rem;
    margin: 0;
    flex-grow: 1;
}

.close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.welcome-content p {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #0ea5e9;
}

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

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

.nav-link:hover {
    color: #38bdf8;
}

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

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-title {
    font-size: 4.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff;
    text-shadow:
        0 0 3px #fff,
        0 0 6px #fff,
        0 0 10px #fff,
        0 0 15px #e5e5e5,
        0 0 25px #d4d4d4,
        0 0 35px #a3a3a3,
        0 0 45px #737373,
        0 0 55px #525252;
    animation: neonPulse 4.5s infinite;
}

.highlight {
    background: linear-gradient(135deg, #38bdf8, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #ec4899);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0ea5e9, #db2777);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1f2937;
    transform: translateY(-2px);
}

.profile-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-image {
    font-size: 6rem;
    background: linear-gradient(135deg, #38bdf8, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

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

.social-links a {
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #ec4899);
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat h3 {
    font-size: 2rem;
    color: #38bdf8;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #cbd5e1;
    font-weight: 500;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #38bdf8, #ec4899);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 8px 32px rgba(56, 189, 248, 0.3);
}

/* Experience Section */

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

/* Hide main content during loading */
body.loading {
    overflow: hidden;
}

body.loading .hero,
body.loading .about,
body.loading .experience,
body.loading .certifications,
body.loading .skills,
body.loading .contact,
body.loading .footer,
body.loading .navbar,
body.loading .cloud-bg {
    display: none !important;
}

/* Gradual Render Animation */
.gradual-render {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradual-render.visible {
    opacity: 1;
    transform: translateY(0);
}

.gradual-render.delay-1 {
    transition-delay: 0.1s;
}

.gradual-render.delay-2 {
    transition-delay: 0.2s;
}

.gradual-render.delay-3 {
    transition-delay: 0.3s;
}

.gradual-render.delay-4 {
    transition-delay: 0.4s;
}

.gradual-render.delay-5 {
    transition-delay: 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(56, 189, 248, 0.3);
    border-top: 4px solid #38bdf8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem auto;
}

.loading-text {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #38bdf8, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 0 10px rgba(56, 189, 248, 0.5),
        0 0 20px rgba(56, 189, 248, 0.3);
}

.loading-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    color: #e2e8f0;
}

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

/* Pulsing Neon Animation */
@keyframes neonPulse {
    0%, 11.111% {
        text-shadow:
            0 0 3px #fff,
            0 0 6px #fff,
            0 0 10px #fff,
            0 0 15px #e5e5e5,
            0 0 25px #d4d4d4,
            0 0 35px #a3a3a3,
            0 0 45px #737373,
            0 0 55px #525252;
        opacity: 1;
    }
    11.112%, 22.222% {
        text-shadow: none;
        opacity: 0.3;
    }
    22.223%, 33.333% {
        text-shadow:
            0 0 3px #fff,
            0 0 6px #fff,
            0 0 10px #fff,
            0 0 15px #e5e5e5,
            0 0 25px #d4d4d4,
            0 0 35px #a3a3a3,
            0 0 45px #737373,
            0 0 55px #525252;
        opacity: 1;
    }
    33.334%, 100% {
        text-shadow: none;
        opacity: 0.3;
    }
}

/* Project Screenshot Styles */
.project-screenshot {
    margin: 2rem 0;
    text-align: center;
    width: 100%;
    display: block;
}

.screenshot-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.screenshot-fallback {
    margin: 2rem 0;
    text-align: center;
    width: 100%;
    display: block;
}

.architecture-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    min-height: 120px;
}

.aws-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    min-width: 100px;
    transition: all 0.3s ease;
}

.aws-service:hover {
    transform: translateY(-5px);
    background: rgba(56, 189, 248, 0.2);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
}

.aws-service i {
    font-size: 2rem;
    color: #38bdf8;
    margin-bottom: 0.5rem;
    display: block;
    min-height: 2rem;
    line-height: 2rem;
}

/* Fallback for missing Font Awesome icons */
.aws-service i:before {
    content: "☁️";
}

.aws-service i.fa-bolt:before {
    content: "⚡";
}

.aws-service i.fa-database:before {
    content: "🗄️";
}

.aws-service i.fa-archive:before {
    content: "📦";
}

.aws-service span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.arrow {
    font-size: 1.5rem;
    color: #38bdf8;
    font-weight: bold;
    margin: 0 0.5rem;
}

.architecture-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Mobile responsive for architecture diagram */
@media (max-width: 768px) {
    .project-architecture {
        margin: 1.5rem 0;
        padding: 0 10px;
    }
    
    .architecture-diagram {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        margin: 1.5rem auto;
        width: 100%;
        max-width: 400px;
    }
    
    .arrow {
        transform: rotate(90deg);
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }
    
    .aws-service {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .aws-service i {
        font-size: 1.8rem;
    }
    
    .aws-service span {
        font-size: 0.8rem;
    }
    
    .architecture-caption {
        font-size: 0.8rem;
        margin-top: 1rem;
    }
}


/* Flip Effect for Project Links */
.flip-container {
    perspective: 1000px;
    width: 200px;
    height: 50px;
    margin: 20px auto;
}

.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-container:hover .flipper {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.flip-front {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    transform: rotateY(0deg);
}

.flip-back {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    transform: rotateY(180deg);
}

.flip-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.flip-front:hover .flip-link,
.flip-back:hover .flip-link {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.experience {
    padding: 100px 0;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
}

/* CV Style Experience Cards */
.experience-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(56, 189, 248, 0.3);
}

.experience-header {
    background: rgba(56, 189, 248, 0.1);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.experience-content {
    padding: 2rem;
}

.experience-content h4 {
    color: #38bdf8;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.experience-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.experience-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: #e2e8f0;
}

.experience-content li::before {
    content: '▸';
    color: #38bdf8;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Company Logo Styles */
.company-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.job-info {
    flex: 1;
}

.job-info h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.job-info .company {
    color: #38bdf8;
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.3rem;
}

.job-info .period {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(56, 189, 248, 0.3);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.skill-name {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #ffffff;
}

.skill-bar {
    display: none;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #ec4899);
    border-radius: 4px;
    transition: width 1.5s ease;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.contact-center {
    text-align: center;
    max-width: 600px;
}

.contact-intro {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-details-center {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.contact-item-center {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    min-width: 300px;
}

.contact-item-center:hover {
    transform: translateY(-5px);
}

.contact-item-center i {
    color: #38bdf8;
    font-size: 1.5rem;
    width: 30px;
}

.contact-text {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #e2e8f0;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #e2e8f0;
}

.contact-item i {
    color: #38bdf8;
    font-size: 1.2rem;
    width: 20px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    color: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #38bdf8;
    background: rgba(255, 255, 255, 0.1);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    color: white;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

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

.footer .social-links a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    background: linear-gradient(135deg, #38bdf8, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        border-top: 1px solid rgba(148, 163, 184, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        display: block;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .profile-card {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .profile-image {
        font-size: 4rem;
        margin-bottom: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat h3 {
        font-size: 1.5rem;
    }
    
    /* Experience Cards Mobile */
    .experience-card {
        margin-bottom: 1.5rem;
        padding: 0;
    }
    
    .experience-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .company-logo {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .job-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .job-info .company {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .job-info .period {
        font-size: 0.9rem;
    }
    
    .experience-content {
        padding: 1.5rem;
    }
    
    .experience-content h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .experience-content li {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0.3rem 0;
    }
    
    .tech-stack {
        gap: 0.3rem;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Certifications Mobile */
    .certification-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .certification-badge {
        margin: 0 auto;
    }
    
    .badge-image {
        width: 100px;
        height: 100px;
    }
    
    .certification-info h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .certification-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .certification-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .certification-actions .btn {
        width: 100%;
        max-width: 200px;
    }
    
    /* Contact Section Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-center {
        padding: 0 15px;
    }
    
    .contact-intro {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .contact-details-center {
        gap: 1.5rem;
    }
    
    .contact-item-center {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
        min-width: auto;
        width: 100%;
    }
    
    .contact-item-center i {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-text {
        font-size: 1.1rem;
    }
    
    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    /* Section Titles Mobile */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Container Mobile */
    .container {
        padding: 0 15px;
    }
    
    /* Project Screenshot Mobile */
    .project-screenshot {
        margin: 1.5rem 0;
        padding: 0 10px;
    }
    
    .screenshot-image {
        max-width: 100%;
        height: auto;
    }
    
    .screenshot-fallback {
        margin: 1.5rem 0;
        padding: 0 10px;
    }
    
    .screenshot-fallback .architecture-diagram {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .screenshot-fallback .aws-service {
        padding: 0.8rem;
        min-width: 80px;
    }
    
    .screenshot-fallback .aws-service i {
        font-size: 1.5rem;
    }
    
    .screenshot-fallback .aws-service span {
        font-size: 0.75rem;
    }
    
    .screenshot-fallback .arrow {
        font-size: 1rem;
    }
    
    /* Flip Container Mobile */
    .flip-container {
        width: 100%;
        max-width: 250px;
        margin: 1rem auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
    }
    
    .profile-card {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .profile-image {
        font-size: 3rem;
    }
    
    .experience-card {
        margin-bottom: 1rem;
    }
    
    .experience-header {
        padding: 1rem;
    }
    
    .experience-content {
        padding: 1rem;
    }
    
    .company-logo {
        width: 50px;
        height: 50px;
    }
    
    .certification-card {
        padding: 1rem;
    }
    
    .badge-image {
        width: 80px;
        height: 80px;
    }
    
    .contact-item-center {
        padding: 1rem;
    }
    
    .contact-text {
        font-size: 1rem;
    }
    
    .nav-menu {
        padding: 1.5rem 0;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .stat {
        padding: 0.8rem;
    }
    
    .stat h3 {
        font-size: 1.3rem;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.about-content,
.timeline-item,
.skill-item {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Improve touch targets */
    .nav-link, .btn, .social-links a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Improve text readability */
    .hero-description, .about-text p, .experience-content li {
        text-align: left;
    }
    
    .contact-intro {
        text-align: center;
    }
    
    /* Better spacing for mobile */
    .section-title {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    /* Improve card readability */
    .experience-content ul {
        padding-left: 1rem;
    }
    
    .experience-content li {
        margin-bottom: 0.5rem;
    }
    
    /* Better button spacing */
    .hero-buttons {
        margin-top: 1rem;
    }
    
    /* Improve certification card layout */
    .certification-info {
        text-align: left;
    }
    
    .certification-actions {
        margin-top: 1rem;
    }
    
    /* Better contact section */
    .contact-details-center {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Improve project section */
    .timeline-item {
        margin-bottom: 2rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    /* Better tech stack display */
    .tech-stack {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    /* Improve social links */
    .social-links {
        gap: 1rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .experience-card, .certification-card {
        margin-bottom: 1rem;
    }
    
    .experience-header, .experience-content {
        padding: 0.8rem;
    }
    
    .certification-card {
        padding: 0.8rem;
    }
}
