/* Global Styles */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #4d44d9;
    --text-color: #333;
    --bg-color: #fff;
    --card-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #f8f9fa;
}

.dark-mode {
    --primary-color: #8c83ff;
    --secondary-color: #6d64f9;
    --text-color: #f0f0f0;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --header-bg: rgba(18, 18, 18, 0.95);
    --footer-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

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

a {
    text-decoration: none;
    color: var(--text-color);
}

ul {
    list-style: none;
}

/* Custom Cursor - Enhanced */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    transition: opacity 0.15s ease-in-out, width 0.2s, height 0.2s, background-color 0.2s;
    will-change: transform, width, height;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    mix-blend-mode: exclusion;
    filter: blur(0.5px);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    transition: transform 0.15s ease-in-out, border-color 0.3s, opacity 0.3s;
    mix-blend-mode: difference;
    opacity: 0.8;
    backdrop-filter: invert(0.2);
}

.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background-color: rgba(108, 99, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, transform 0.3s ease;
    mix-blend-mode: screen;
    filter: blur(1px);
    will-change: transform, opacity;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 18px;
    color: var(--text-color);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--card-bg);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    cursor: pointer;
    margin-left: 20px;
    border: 1px solid var(--border-color);
}

.theme-toggle i {
    font-size: 14px;
    color: var(--text-color);
}

.toggle-ball {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: 3px;
    transition: transform 0.3s ease;
}

.dark-mode .toggle-ball, .theme-toggle.active .toggle-ball {
    transform: translateX(30px);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-content h2 span {
    color: var(--primary-color);
}

.hero-content h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    cursor: pointer;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 20px 30px var(--shadow-color);
    position: relative;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 18px;
}

.placeholder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title span {
    color: var(--primary-color);
}

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

/* Skills Section - Enhanced Code Editor Style */
.skills-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    padding: 20px;
    position: relative;
    font-family: 'Consolas', 'Monaco', monospace;
    border-left: 4px solid var(--primary-color);
    overflow: hidden;
    margin-top: 20px;
}

/* Code editor header bar */
.skills-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background-color: rgba(108, 99, 255, 0.1);
    border-bottom: 1px solid var(--border-color);
}

/* Window controls (circles) */
.skills-container::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 15px;
    width: 12px;
    height: 12px;
    background-color: #ff5f56;
    border-radius: 50%;
    box-shadow: -20px 0 0 #ffbd2e, -40px 0 0 #27c93f;
}

/* File name */
.skills-container .file-name {
    position: absolute;
    top: 8px;
    left: 15px;
    font-size: 14px;
    color: var(--primary-color);
    z-index: 1;
    font-weight: 500;
}

/* Code comment header styling */
.code-comment-header {
    color: #6272a4;
    font-style: italic;
    margin-bottom: 15px;
    padding-top: 15px;
    line-height: 1.5;
    font-size: 14px;
}

/* Add line numbers */
.skills-container {
    counter-reset: line;
    padding-top: 40px;
    padding-left: 40px;
}

.skill::before {
    counter-increment: line;
    content: counter(line);
    position: absolute;
    left: -30px;
    color: #6272a4;
    font-size: 12px;
    opacity: 0.6;
    width: 20px;
    text-align: right;
}

.skill {
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
    margin-top: 40px;
}

.skill::before {
    content: '// ';
    position: absolute;
    left: 0;
    color: #6272a4;
}

.skill-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #ff79c6;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary-color);
    padding-right: 5px;
    animation: typing 1s steps(30, end) forwards, blink 0.75s step-end infinite;
    animation-delay: calc(var(--index) * 0.5s);
    width: 0;
}

.typing-animation {
    width: auto;
}

.skill-name::before {
    content: 'const ';
    color: #bd93f9;
}

.skill-name::after {
    content: ' = ';
    color: var(--text-color);
}

.code-comment {
    color: #6272a4;
    font-style: italic;
    margin-left: 10px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: fadeIn 0.5s forwards;
    animation-delay: calc(var(--index) * 0.5s + 1s);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.8; }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent }
}

.skill-bar {
    width: 100%;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    position: relative;
    margin-left: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.skill-per {
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 5px;
    position: relative;
    animation: fillBars 2.5s 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 12px;
    color: white;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.skill-per::before {
    content: attr(per);
    position: absolute;
    right: 0;
    top: -30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

@keyframes fillBars {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Code editor styling for skills section */
.skills {
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%236c63ff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 5v1H0V0h5z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

/* Line numbers for code editor effect */
.skill::after {
    content: attr(data-line);
    position: absolute;
    left: 5px;
    top: 0;
    color: #6272a4;
    font-size: 12px;
    opacity: 0.6;
}

/* Typing animation for skills */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent }
}

.skill-name {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 1s steps(30, end) forwards;
    border-right: 2px solid var(--primary-color);
    padding-right: 5px;
    animation-delay: calc(var(--index) * 0.5s);
}

/* Add code comments to skills */
.skills-container::before {
    content: '/**\A * Developer Skills\A * @author Kwame\A * @version 1.0\A */';
    white-space: pre;
    position: absolute;
    top: 40px;
    left: 15px;
    color: #6272a4;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* Services Section */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-color);
    font-size: 16px;
}

/* About Page */
.about-content {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px var(--shadow-color);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--bg-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.timeline-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.timeline-description {
    font-size: 16px;
    line-height: 1.6;
}

/* Portfolio Page */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.portfolio-info p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.portfolio-links {
    display: flex;
    gap: 15px;
}

.portfolio-links a {
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.live-link {
    background-color: var(--primary-color);
    color: white !important;
}

.live-link:hover {
    background-color: var(--secondary-color);
}

.code-link {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-color) !important;
}

.code-link:hover {
    background-color: var(--primary-color);
    color: white !important;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
}

.contact-info {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 20px;
}

.contact-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-color);
}

.contact-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    font-family: 'Consolas', 'Monaco', monospace;
    position: relative;
    border-left: 4px solid var(--primary-color);
    margin-top: 10px;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-form::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 15px;
    width: 12px;
    height: 12px;
    background-color: #ff5f56;
    border-radius: 50%;
    box-shadow: -20px 0 0 #ffbd2e, -40px 0 0 #27c93f;
}

/* Terminal prompt */
.contact-form::before {
    content: 'contact.js';
    position: absolute;
    top: 8px;
    left: 15px;
    font-size: 14px;
    color: var(--primary-color);
    z-index: 1;
    font-weight: 500;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Consolas', 'Monaco', monospace;
    margin-top: 15px;
    display: flex;
    align-items: center;
}

.contact-form h3::before {
    content: '>';
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    transition: transform 0.3s ease;
}

/* Terminal-like active input effect */
.active-input {
    transform: translateX(5px);
}

.active-input label {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(108, 99, 255, 0.3);
}

.active-input::after {
    content: '// active';
    position: absolute;
    right: 10px;
    top: 10px;
    color: #6272a4;
    font-size: 12px;
    font-style: italic;
    opacity: 0.8;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
    font-family: 'Consolas', 'Monaco', monospace;
    position: relative;
}

.form-group label::before {
    content: 'const';
    color: #ff79c6;
    margin-right: 8px;
    font-weight: normal;
}

.form-group label::after {
    content: ' =';
    color: var(--text-color);
    margin-left: 2px;
}

/* Add line numbers to form groups */
.contact-form form {
    counter-reset: line;
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
}

.form-group {
    position: relative;
    padding-left: 20px;
}

.form-group::before {
    counter-increment: line;
    content: counter(line);
    position: absolute;
    left: -10px;
    color: #6272a4;
    font-size: 12px;
    opacity: 0.6;
    width: 20px;
    text-align: right;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Consolas', 'Monaco', monospace;
    position: relative;
    caret-color: var(--primary-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2), 0 0 10px rgba(108, 99, 255, 0.1) inset;
    background-color: rgba(108, 99, 255, 0.05);
}

/* Terminal-like input styling */
.form-control::placeholder {
    color: rgba(108, 99, 255, 0.5);
    font-style: italic;
    opacity: 0.7;
}

/* Add a blinking cursor effect to focused inputs */
@keyframes blink-caret {
    from, to { border-right-color: transparent }
    50% { border-right-color: var(--primary-color) }
}

.form-control:focus::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 16px;
    background-color: var(--primary-color);
    animation: blink-caret 1s step-end infinite;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Consolas', 'Monaco', monospace;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
}

/* Terminal command prefix */
.submit-btn::before {
    content: '> ';
    font-weight: bold;
    margin-right: 5px;
    opacity: 0.8;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.success-message {
    font-family: 'Consolas', 'Monaco', monospace;
    padding: 10px;
    background-color: rgba(0, 128, 0, 0.1);
    border-left: 3px solid green;
    border-radius: 3px;
}

.error-message {
    font-family: 'Consolas', 'Monaco', monospace;
    padding: 5px 10px;
    background-color: rgba(255, 0, 0, 0.1);
    border-left: 3px solid red;
    border-radius: 3px;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content p {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content p {
        max-width: 100%;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 20px;
    }
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
    }
    
    nav {
        order: 3;
        width: 100%;
        margin-top: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .social-icons {
        margin-left: auto;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .skills-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content h3 {
        font-size: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .image-container {
        width: 280px;
        height: 280px;
    }
    
    .portfolio-container {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .contact-info,
    .contact-form {
        padding: 20px;
    }
}