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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease, visibility 1s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-initials {
    font-size: clamp(150px, 25vw, 400px);
    font-weight: 900;
    letter-spacing: 20px;
    opacity: 0;
    transform: translateY(50px);
    animation: splashFadeIn 1.5s ease forwards;
}

/* Main Website - Initially Hidden */
.main-website {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.main-website.show {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

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

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #888;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #fff;
    transition: width 0.3s ease;
}

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

/* Hero Section - Main */
.hero-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 0 5%;
    background: #000;
    width: 100%;
    position: relative;
}

.hero-text {
    width: 100%;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.5s forwards;
    opacity: 0;
}

.name {
    font-size: clamp(120px, 15vw, 240px);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: clamp(-4px, -0.5vw, -2px);
    margin-bottom: 0;
}

.first-name {
    display: block;
    margin: 0;
    text-align: left;
}

.last-name-section {
    margin-top: clamp(60px, 8vw, 120px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    padding-right: 5%;
}

.last-name {
    display: block;
    margin: 0;
    text-align: right;
    font-size: clamp(120px, 15vw, 240px);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: clamp(-4px, -0.5vw, -2px);
}

.subtitle {
    font-size: clamp(14px, 1.5vw, 24px);
    color: #ccc;
    font-weight: 300;
    line-height: 1.4;
    max-width: 500px;
    margin-top: clamp(20px, 3vw, 40px);
    text-align: right;
    letter-spacing: 1px;
    padding-bottom: 5%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: #000;
    transform: translateY(-2px);
}

.btn.primary {
    background: #fff;
    color: #000;
}

.btn.primary::before {
    background: #000;
}

.btn.primary:hover {
    color: #fff;
}

/* About Me Section */
.about-me {
    padding: 100px 40px;
    background: #000;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease 0.2s;
}

.image-placeholder {
    width: 400px;
    height: 500px;
    background: linear-gradient(145deg, #333, #555);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #444;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.image-placeholder:hover::before {
    transform: translateX(100%);
}

.image-placeholder span {
    font-size: 18px;
    color: #aaa;
    font-weight: 500;
    text-align: center;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 40px;
    background: #000;
}

.section-title {
    font-size: clamp(40px, 6vw, 60px);
    font-weight: 700;
    margin-bottom: 60px;
    text-align: left;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transition: left 0.6s ease;
}

.portfolio-item:hover::before {
    left: 100%;
}

.portfolio-item:hover {
    border-color: #555;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.05);
}

.portfolio-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-item h3 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
}

.portfolio-subtitle {
    font-size: 16px;
    color: #888;
    font-weight: 500;
    margin-bottom: 15px;
}

.portfolio-description {
    font-size: 15px;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.portfolio-features {
    margin-bottom: 20px;
}

.portfolio-features h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.portfolio-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portfolio-features li {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.portfolio-features li::before {
    content: '•';
    color: #666;
    position: absolute;
    left: 0;
}

.portfolio-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-tech {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.portfolio-link {
    color: #4A9EFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.portfolio-link:hover {
    color: #fff;
}

/* Skills Section */
.skills {
    padding: 100px 40px;
    background: #000;
}

.skills-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Tech Stack Section */
.tech-stack-section {
    margin-bottom: 80px;
}

.tech-stack-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    margin-bottom: 40px;
    text-align: flex-start;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.tech-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transition: left 0.6s ease;
}

.tech-category:hover::before {
    left: 100%;
}

.tech-category:hover {
    border-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.tech-category h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 20px;
    justify-items: center;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    width: 100%;
    min-height: 100px;
    justify-content: center;
}

.tech-icon:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.tech-icon i {
    font-size: 40px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tech-icon span {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: #ccc;
    transition: color 0.3s ease;
}

.tech-icon:hover span {
    color: #fff;
}

/* Specific tech icon colors */
.tech-icon.html:hover i { color: #E34C26; }
.tech-icon.css:hover i { color: #1572B6; }
.tech-icon.javascript:hover i { color: #F7DF1E; }
.tech-icon.c:hover i { color: #A8B9CC; }
.tech-icon.java:hover i { color: #ED8B00; }
.tech-icon.bash:hover i { color: #4EAA25; }
.tech-icon.nodejs:hover i { color: #339933; }
.tech-icon.react:hover i { color: #61DAFB; }
.tech-icon.mysql:hover i { color: #4479A1; }
.tech-icon.mongodb:hover i { color: #47A248; }
.tech-icon.firebase:hover i { color: #FFCA28; }
.tech-icon.git:hover i { color: #F05032; }
.tech-icon.github:hover i { color: #181717; }
.tech-icon.npm:hover i { color: #CB3837; }
.tech-icon.jira:hover i { color: #0052CC; }
.tech-icon.adobe:hover i { color: #FF0000; }
.tech-icon.canvas:hover i { color: #FF6B6B; }
.tech-icon.powerapps:hover i { color: #742774; }
.tech-icon.teams:hover i { color: #6264A7; }
.tech-icon.outlook:hover i { color: #0078D4; }
.tech-icon.sharepoint:hover i { color: #0078D4; }
.tech-icon.dataverse:hover i { color: #107C10; }
.tech-icon.office365:hover i { color: #D83B01; }

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

.skill-card {
    background: transparent;
    border: 1px solid #333;
    padding: 40px 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.skill-card:hover {
    border-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.skill-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
}

.skill-card p {
    color: #ccc;
    line-height: 1.6;
    font-size: 16px;
}

/* Certificates Section */
.certificates {
    padding: 100px 40px;
    background: #000;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 60px;
}

.certificate-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    padding: 35px 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transition: left 0.6s ease;
}

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

.certificate-card:hover {
    border-color: #555;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.05);
}

.certificate-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.certificate-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #fff;
}

.certificate-issuer {
    font-size: 16px;
    color: #888;
    font-weight: 500;
    margin-bottom: 8px;
}

.certificate-year {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.certificate-description {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
    margin: 0;
}

/* Contact Section */
.contact {
    padding: 100px 40px;
    background: #000;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.contact-cta {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.contact-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.2;
}

.contact-text {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 12px 20px;
    border: 1px solid #333;
    border-radius: 8px;
}

.social-link:hover {
    color: #000;
    background: #fff;
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-container {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease 0.2s;
}

.contact-form {
    background: #000;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #333;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ccc;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

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

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

.form-group select {
    cursor: pointer;
}

.form-group option {
    background: #222;
    color: #fff;
}

.form-submit {
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
    padding: 18px;
    cursor: pointer;
    border: none;
}

.form-submit:hover {
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: 40px;
    background: #000;
    text-align: center;
    border-top: 1px solid #222;
}

.footer p {
    color: #666;
    font-size: 14px;
}

/* Animations */
@keyframes splashFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transform: translateX(0) !important;
}

/* Form validation styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.1) !important;
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.keyboard-navigation *:focus {
    outline: 2px solid #fff !important;
}

/* Form message styles */
.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: slideInFromBottom 0.3s ease forwards;
}

.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.error-message-global {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-main,
    .about-me,
    .portfolio,
    .skills,
    .certificates,
    .contact {
        padding: 80px 20px;
    }
    
    .hero-main {
        padding: 100px 0 0 5%;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
    }
    
    .subtitle{
        padding-bottom: 5%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .header {
        padding: 15px 20px;
    }

    .hero-main {
        padding: 100px 5% 0 5%;
        align-items: center;
        text-align: center;
    }
    
    .first-name {
        text-align: center;
    }
    
    .last-name-section {
        align-items: center;
        padding-right: 0;
        margin-top: clamp(40px, 6vw, 80px);
    }
    
    .last-name {
        text-align: center;
    }
    
    .subtitle {
        text-align: center;
        max-width: 100%;
        padding-bottom: 8%;
    }

    .hero-buttons {
        justify-content: center;
        margin-top: 30px;
    }

    .btn {
        min-width: 200px;
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .about-container {
        text-align: center;
    }

    .image-placeholder {
        width: 300px;
        height: 380px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .social-links {
        justify-content: center;
    }

    .tech-icons {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .splash-initials {
        letter-spacing: 10px;
    }

    .hero-main {
        padding: 80px 5% 0 5%;
    }

    .name {
        font-size: clamp(50px, 15vw, 100px);
    }

    .last-name {
        font-size: clamp(50px, 15vw, 100px);
    }

    .subtitle {
        font-size: clamp(12px, 4vw, 18px);
        line-height: 1.5;
        padding-bottom: 20%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        padding: 12px 25px;
        font-size: 14px;
    }

    .skill-card,
    .certificate-card,
    .tech-category {
        padding: 25px 20px;
    }

    .image-placeholder {
        width: 250px;
        height: 320px;
    }

    .contact-form {
        padding: 25px 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
    }

    .tech-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .tech-icon {
        min-height: 80px;
        padding: 10px;
    }

    .tech-icon i {
        font-size: 30px;
    }

    .tech-icon span {
        font-size: 10px;
    }
}