/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #ffffff;
    --black-color: #000000;
    
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --gradient-secondary: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.25);
    
    --transition: all 0.3s ease;
    --animation-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-content {
    text-align: center;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--dark-color) !important;
}

.navbar-brand i {
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(0, 123, 255, 0.1);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    opacity: 0.05;
    z-index: -1;
}

.hero-content {
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title .text-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.stat-item span {
    font-weight: var(--font-weight-medium);
    color: var(--dark-color);
}

.hero-buttons {
    margin-bottom: 2rem;
}

.hero-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--white-color);
    color: var(--secondary-color);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ===== FLOATING ELEMENTS ===== */
.hero-image {
    position: relative;
    height: 500px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.floating-icon i {
    font-size: 2rem;
}

.floating-icon.aws {
    top: 20%;
    right: 20%;
    animation-delay: 0s;
}

.floating-icon.aws i {
    color: #ff9900;
}

.floating-icon.docker {
    top: 60%;
    left: 10%;
    animation-delay: 1s;
}

.floating-icon.docker i {
    color: #2496ed;
}

.floating-icon.kubernetes {
    bottom: 20%;
    right: 30%;
    animation-delay: 2s;
}

.floating-icon.kubernetes i {
    color: #326ce5;
}

.floating-icon.terraform {
    top: 40%;
    right: 50%;
    animation-delay: 0.5s;
}

.floating-icon.terraform i {
    color: #623ce4;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--primary-color);
    font-size: 1.5rem;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== SECTIONS ===== */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* ===== ABOUT SECTION ===== */
.about-content h3 {
    color: var(--dark-color);
    font-weight: var(--font-weight-semibold);
}

.personal-info {
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.info-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.info-item span {
    font-weight: var(--font-weight-medium);
    color: var(--dark-color);
}

/* Family Photos */
.family-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.family-section h5 {
    color: var(--dark-color);
    font-weight: var(--font-weight-semibold);
}

.family-photo-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.family-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: var(--transition);
}

.family-photo-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.family-photo:hover {
    transform: scale(1.05);
}

/* ===== CERTIFICATIONS SECTION ===== */
.cert-card {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #e9ecef;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.cert-icon {
    margin-bottom: 1.5rem;
}

.cert-content h5 {
    color: var(--dark-color);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.cert-description {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.cert-skill {
    background: var(--light-color);
    color: var(--dark-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
}

.cert-summary {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
}

.cert-summary h6 {
    color: var(--dark-color);
    font-weight: var(--font-weight-semibold);
}

/* ===== SKILLS PROGRESS ===== */
.skills-progress {
    padding-left: 2rem;
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-header span:first-child {
    font-weight: var(--font-weight-semibold);
    color: var(--dark-color);
}

.skill-header span:last-child {
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
}

.progress {
    height: 8px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 2s ease-in-out;
    animation: progressAnimation 2s ease-in-out;
}

@keyframes progressAnimation {
    0% {
        width: 0%;
    }
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--white-color);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    top: 2rem;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 2rem;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -20px;
    border-left-color: var(--white-color);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
    border-right-color: var(--white-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.timeline-header h4 {
    color: var(--dark-color);
    font-weight: var(--font-weight-semibold);
    margin: 0;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    background: rgba(0, 123, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
}

.timeline-body ul {
    margin: 0;
    padding-left: 1.5rem;
}

.timeline-body li {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* ===== SKILL CARDS ===== */
.skill-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white-color);
    font-size: 2rem;
}

.skill-card h5 {
    color: var(--dark-color);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tag {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
}

/* ===== PROJECT CARDS ===== */
.project-card {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 3rem;
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h5 {
    color: var(--dark-color);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--light-color);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--light-color);
    color: var(--secondary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* ===== CERTIFICATION CARDS ===== */
.cert-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.cert-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white-color);
    font-size: 2rem;
}

.cert-card h5 {
    color: var(--dark-color);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
}

.cert-card p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.cert-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

/* ===== CONTACT SECTION ===== */
.contact-form {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-info {
    text-align: center;
    padding: 2rem;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white-color);
    font-size: 1.5rem;
}

.contact-info h5 {
    color: var(--dark-color);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer .social-link {
    background: var(--secondary-color);
    color: var(--white-color);
}

.footer .social-link:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.footer-note {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 80px;
    }
    
    .timeline-marker {
        left: 20px !important;
    }
    
    .timeline-content::before {
        left: -20px !important;
        border-right-color: var(--white-color) !important;
        border-left-color: transparent !important;
    }
    
    .skills-progress {
        padding-left: 0;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .floating-elements {
        display: none;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons .btn {
        display: block;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient-primary);
}

.btn-gradient {
    background: var(--gradient-primary);
    border: none;
    color: var(--white-color);
    transition: var(--transition);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white-color);
}

/* ===== DONATION SECTION ===== */
.donation-card {
    background: var(--white-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
    height: 100%;
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.donation-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.donation-card h5 {
    color: var(--dark-color);
    font-weight: 600;
}

.donation-card .btn {
    border-width: 2px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.donation-card .btn:hover {
    transform: scale(1.05);
}

.support-stats {
    background: rgba(0, 123, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    display: inline-block;
}

/* Responsive donation cards */
@media (max-width: 768px) {
    .donation-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    .donation-icon {
        font-size: 2.5rem;
    }
}
