/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Rubik', -apple-system, system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #ffffff;
    color: #2e2e2e;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

:root {
    --primary-color: #ffbd2f;
    --dark-bg: #222;
    --text-dark: #303030;
    --text-light: #606060;
    --border-color: #e5e5e5;
}

/* Container */
.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

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

.nav-brand {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.45)),
                url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?q=80&w=1920&auto=format&fit=crop') center/cover;
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #f9f9f9;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 50% 0, 0 100%);
    z-index: 3;
}

.hero-overlay {
    display: none;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-caption {
    font-size: clamp(11px, 2vw, 13px);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-heading {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 32px 0;
    line-height: 1.2;
}

.cursor {
    display: inline-block;
    margin-left: 4px;
    animation: blink 1.2s step-end infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.social-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 0;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.mouse {
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    position: relative;
    display: flex;
    justify-content: center;
}

.mouse-dot {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        top: 8px;
        opacity: 1;
    }
    50% {
        top: 22px;
        opacity: 0.5;
    }
    100% {
        top: 8px;
        opacity: 1;
    }
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 35px;
    color: var(--text-dark);
    font-weight: 400;
    text-transform: capitalize;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: #fff;
}

.about-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-card {
    background: #fff;
    padding: 0;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.left {
    display: flex;
    align-items: flex-start;
}

.portrait {
    margin: 0;
    width: 100%;
    height: auto;
}

.portrait img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.right {
    display: flex;
    flex-direction: column;
}

.tag {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.right h2 {
    font-size: 32px;
    font-weight: 300;
    color: #333;
    margin: 0 0 8px 0;
}

.right h2 strong {
    font-weight: 700;
    color: #222;
}

.right h3 {
    font-size: 18px;
    font-weight: 400;
    color: #777;
    margin: 0 0 24px 0;
}

.right p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 18px 0;
}

.section-title-center {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #222;
    margin: 0 0 40px 0;
    padding-bottom: 0;
}

.skills-and-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: #fff;
    padding: 0;
}

.skills {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skill-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.skill-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    min-width: 140px;
    flex-shrink: 0;
    white-space: nowrap;
}

.progress-bg {
    flex: 1;
    height: 9px;
    background: #e8e8e8;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease-out;
}

.info-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 24px;
    align-items: start;
}

.info-list dt {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-list dd {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.info-list a {
    color: #333;
    text-decoration: none;
}

.info-list a:hover {
    color: #ffb300;
}

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.badge.vacation {
    background: linear-gradient(135deg, #ffb300 0%, #ffb84d 100%);
    color: #fff;
}

.date-text {
    font-size: 13px;
    color: #999;
}

/* Skills Section */
.skills-section {
    padding: 80px 0;
    background: #fff;
}

.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.skills-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-item {
    position: relative;
}

.skill-item dt {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-item dt::after {
    width: 100%;
    background-color: #e0e0e0;
    height: 8px;
    content: "";
    display: block;
    margin-top: 10px;
    border-radius: 4px;
}

.skill-item dd {
    width: 0;
    height: 8px;
    position: relative;
    top: -8px;
    border-radius: 4px;
    transition: width 1.5s ease-in-out;
    margin: 0;
}

.skill-item dd.html {
    background: #F44336;
}

.skill-item dd.css {
    background: #2196F3;
}

.skill-item dd.jquery {
    background: #FFCA28;
}

.skill-item dd.scss {
    background: #F06292;
}

.skill-item dd.javascript {
    background: #FFA000;
}

.skill-item dd.php {
    background: #303F9F;
}

.skill-item dd.xml {
    background: #27ae60;
}

.skill-item.active dd {
    width: var(--skill-width);
}

/* Projects Header */
.projects-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
                url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?q=80&w=1920&auto=format&fit=crop') center/cover;
    background-attachment: fixed;
    text-align: center;
    color: #fff;
}

.projects-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.projects-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    background: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffa726 100%);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #fff;
}

.project-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.project-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: #f5f5f5;
    color: #555;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-links {
    display: flex;
    gap: 10px;
}

.btn-project {
    flex: 1;
    padding: 10px 20px;
    background: var(--text-dark);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-project.btn-demo {
    background: var(--primary-color);
    color: #000;
}

.btn-project.btn-demo:hover {
    background: #e5aa29;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: #f1f1f1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 5px 5px 45px -27px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 35px;
    color: #fff;
    box-shadow: 0 15px 34px rgba(0, 0, 0, 0.18);
}

.service-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-transform: capitalize;
    letter-spacing: 1.5px;
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
                url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?w=1920&q=80') center/cover;
    background-attachment: fixed;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin: 15px 0;
    color: #fff;
}

.stat-item p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0 130px;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
                url('https://images.unsplash.com/photo-1517134191118-9d595e4c8c2b?w=1920&q=80') center/cover;
    background-attachment: fixed;
    position: relative;
    text-align: center;
}

.testimonial-slider {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.testimonial {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

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

.testimonial-avatar {
    margin-bottom: 24px;
}

.avatar-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffb300 0%, #ffb84d 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto;
}

.testimonial-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border: 3px solid #ffb300;
}

.testimonial-quote {
    font-size: 24px;
    line-height: 1.6;
    color: #fff;
    font-style: italic;
    font-weight: 400;
    margin: 0 0 30px;
    padding: 0;
    border: none;
}

.testimonial-quote p {
    margin: 0 0 20px 0;
    font-size: 20px;
    line-height: 1.8;
}

.testimonial-quote p:last-child {
    margin-bottom: 0;
}

.testimonial-author {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
    font-style: normal;
    letter-spacing: 1px;
}

.testimonial-dots {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 189, 47, 0.7);
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: #fff;
    color: #333;
    position: relative;
    text-align: center;
}

.contact-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-section .section-title h2 {
    color: #222;
}

.contact-section .section-title h2::after {
    background: var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 30px;
    color: var(--primary-color);
    width: 50px;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.1);
}

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

.btn-submit {
    padding: 15px 40px;
    background: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #e5aa29;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 189, 47, 0.3);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.footer-content i {
    color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .portrait {
        width: 200px;
        height: 260px;
    }
    
    .skills-and-info {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(30, 30, 30, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 30px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero {
        background-attachment: scroll;
    }
    
    .hero::before {
        height: 60px;
    }
    
    .hero-heading {
        font-size: 40px;
    }
    
    .hero-caption {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
    
    .social-links {
        gap: 6px;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
    }
    
    .scroll-indicator {
        bottom: 32px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        padding: 15px;
    }
    
    .testimonial-quote {
        font-size: 20px;
    }
    
    .avatar-circle {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }
    
    .info-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .testimonial-quote {
        font-size: 18px;
    }
    
    .avatar-circle {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }
}
